I've searched high and low for an answer and it might be a foolish endeavour but i'd like to be able to read fonts from a directory at runtime for use in an actionscript/flex app
Ive seen the answers on the web and all rely on putting fonts in external swfs and certainly rely on embed meta tags or styles when i'd like a local fonts dire...
Hello
My code looks like :
private function createExportButton() : void {
var exportButton : Button = new Button();
exportButton.label = "Export";
exportButton.x = 600;
exportButton.y = 10;
exportButton.addEventListener(MouseEvent.CLICK, function
clickH...
Hi all,
we are working on a project involving lots of flash remoting stuff. Particularly, we build on Flex Builder 3 using Flex SDK 3.2.
An interesting question here: when a connection to the remote server (FluorineFX-based) is established, and we issue a call via NetConnection.call(), is it allowed to place another NetConnection call...
Here I i'm trying to parsing a XML in like below:
<?xml version="1.0" encoding="utf-8" ?>
<spearkerslist>
<speakers langid="afb" countryid="SA">200000</speakers>
<speakers langid="acw" countryid="SA">6000000</speakers>
<speakers langid="ars" countryid="SA">8000000</speakers>
<speakers langid="arb" countryid="SA">20600000...
Is there any way to force Flex to draw empty PieChart when all data in the PieSeries equals 0. The result I'm getting now is just a blank space in the place where my chart is supposed to be.
...
Hi,
I've been looking on the net for a response to my problem without success .
I've made a swf containing a font in the library the class name of my font is "MVerdana".
this swf is loaded in another swf wich display a textfield.
the swf is loaded by a Loader.
in the commplete event,
i'm getting the font class using
var loaderInfo:Lo...
Hi,
I have tried really hard to find an example showing how to play speex encoded audio in flash. I tried the following code -
var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var stream_ns:NetStream = new NetStream(connect_nc);
stream_ns.play("RE-Sample.m4a");
avaible at -
http://www.adobe.com/devnet/fl...
Hello, I need to take control of how my base game class updates:
package
{
import flash.display.Sprite;
import flash.events.KeyboardEvent;
public class Test extends Sprite
{
private var sprite:Sprite;
public function Test()
{
sprite = new Sprite();
sprite.graphics.beginFil...
Can you add a movieclip to the stage from a child class? My setup is as follows:
DocumentClass
->SubFolder
--->ChildClass1
--->ChildClass2
DocumentClass calls ChildClass1 and creates an instance of it.
ChildClass1 has in it's constructor a call for ChildClass2 and creates an instance of it.
What is the cleanest way to have ChildClas...
Using SharedObject.getLocal I can get access to what appears to be an infinite number of files simply by using unique identifiers in the method call; What I want to know is how can I retrieve a list of all active files or shared objects that have been saved for my current domain.
I'm trying to write a save game mechanism that allows you...
Is there a way to log debug messages with Actionscript 3 like log4j? i want to log user interactions in a Flash app(all the events and the user inputs).
...
I like the Eclipse SDK for other languages like python/java etc for writing code. But the Flash CS4 environment is not as intuitive (specially the editor). Is there any alternative for writing actionscript?
...
I have a flash application in which I need to scale a MovieClip. This MovieClip contains an image (in a Loader) with a resolution of 1024x768 (which is the size of the MovieClip as well).
When I want to scale this MovieClip to 80% I do:
myMovieClip.scaleX = 0.8;
myMovieClip.scaleY = 0.8;
The problem is the resulting scaled image has...
I am basically trying to create a display object transformation manager which will allow me to scale/rotate objects. I am currently trying to figure out how to rotate an object so its corner follows the current x and y of the mouse.
I always get confused on the math of things like this. I know how to listen for the events and everyt...
Hello everyone,
I just would like to know how can I dynamically change a label's values while on mousedown.
I basically have a mousedown event and I also have two labels in my application. What I would like to happen is to get the current x and y position of my mouse pointer as I move my mouse through the screen and changing the values ...
I am creating an AIR nativeWindow. I am adding two children, an HTMLLoader and a Sprite. The child Sprite has two children, a TextField and a Sprite that will be used to draw. I have set stage.scaleMode = "noScale" and stage.align = "TL", which the HTMLLoader seems to respect. However, the child Sprite scales its children whenever I set ...
Bulkloader (code.google.com/p/bulk-loader) typically loads different types of URL, Images, XML, etc. Is there a way to include Flex 4 HTTPService calls as loadItems.
Or any other way of bulk loading with overall progress for multiple HttpService calls?
Any help, suggestion or recommendation would be welcome.
...
I have about 90 images which I need to embed into action script (version 3). The only way I could figure out is typing the following code 90 times for each image.
[Embed(source="images/door0091.bmp")]
private var Door1:Class;
var door1:Bitmap = new Door1();
It's really painful to write it so many times. I would like to know if...
Hi guys, quite an explanation here, hope someone has the patience to read it through
I'm building an application in Flex 4 that handles an ordering system. I have a small mySql database and I've written a few services in php to handle the database.
Basically the logic goes like this:
I have tables for customers, products, productGroup...
Hi guys,
I'm trying to load some adsense ads in my flash file. Any suggestions?
Thanks,
Adrian
...