I'm building a Flex application with about a dozen different screens. There's relationships between the screens such as when on screen 1, I click on something that is an input to screen 2. Then I might bring up screen 3, then go back to 2 and then bring up screen 4. To make it clear to the user where they are in the application, we'd lik...
The default value for weakReference in the call to addEventListener() is false. Many memory issues can be resolved by using weakReferences; in fact, some industry experts "strongly recommend always using weak references with listeners".
If this is the case, can someone provide me with a good reason why weakReference defaults to true? ...
how to create custom class?
...
Can anyone tell me how to duplicate a MovieClip in ActionScript 3 in Flash CS4?
...
Hi ,
I am looking for a text to speech component that i can use with as3/flex .
Thanks
...
Can I load something using AS3/SWF and then create a DOM element using javascript to display the loaded data, without having the browser to load the same data twice?
...
Well the question is quite simple but I somehow can't figure it out.
For example I have string variable ts. After my loader loads image in movieclip instance i want to change ts value to something. The problem is - ts value isn't changing on my doneLoad function. Here's the code
var ts:String = "loading";
var imgload = new Loader()...
I'm trying to do something exceedingly simple: write a function that reads text from a text file and returns the text in a string using AS3.
The Function
public function readData(path:String):String
{
var dataSet:String;
var urlRequest:URLRequest = new URLRequest(path);
var urlLoader:URLLoader = new URLLoader();
urlLoader...
I have been moving over to JavaScript (esp. canvas) from Flash / Flex / ActionScript 3 (JavaScript is a more open platform), and I was wondering if anyone has any advice on differences between the two platforms, important things to note, pitfalls, optimizations, etc.
...
Hi there, I have instantiated a class (class1) that loads some data via PHP in an AS3 Flex project.
I instantiate class1, which is asynchronous and utilizes a URLLoader() to obtain its data.
Then I would like to instantiate class2, which needs to USE the data from class1, but when I simply instantiate it I find that class1's instance va...
Hello all,
I am trying to display a text field that has text inside it, and display the flashing Caret at the end of the text.
I have tried the following:
Code:
// ti_title is my textField
stage.focus = ti_title;
ti_title.setSelection( ti_title.length, ti_title.length );
I have also tried:
// ti_title is my textField
ti_title.st...
Hi, i followed this excellent as3 preloader tutorial, and below is the code i have so far.
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("content.swf"));
function loop(e:ProgressEvent):void
{
var perc:Num...
Hi.
I have a flex project with a mx:Text.
i have a class that is loaded at the beginning of my project and i want this class to enter text in that text element. the id of the text element is "messagePanel" but when i try to type messagePanel.text i get 'Access of undefined property'. how do i resolve the issue?
example
general.FMS3Conn...
Hi I want to use mutliple images in my flash script and instead of writing tons of code I want to get the 'currentTarget' and assign a variable name to it so I can tweenlite it . Instead of me naming all the instances i thought the following would work but it doesn't. Can anybody give me some pointers , thanks
wedding.addEventListener...
Hi I have just posted something simalar but i have not explained it very well. I want a to control the alpha of a movieclip when the mouse is over it . This works fine where 'wedding' is the movie clip .
wedding.addEventListener(MouseEvent.ROLL_OVER, pan_over) ;
function pan_over(event:MouseEvent):void{
var ct:String = event.curr...
hi there I have a flash cs4 countdown clock but I want to play a sound when timer reaches hours 0, minutes 0, seconds 0. e.g. New Years Day as target time any ideas?
p.s this is using actionscript 3
...
in flashCS3.app i think all you have to do is:
var thumb_url = my_images[i].@URL;
var thumb_loader = new Loader();
thumb_loader.load(new URLRequest(thumb_url));
but i am using flex + as3project.
how can i translate?
do i need some sort of bitmapdata class or is there a more transparent translation?
the error i get is something along ...
Hello all,
I am trying to take a snapshot of the masked region of an image... so, I load my image then perform the following functions:
private function manageLoadedImage(e:Event):void
{
_bitdata = e.currentTarget.content; // get the bitmap
_bithold.addChild( _bitdata ); // add the bitmap to a sprite on the stage
_bithold...
I found this reflection class:
http://www.adobe.com/devnet/flash/articles/reflect_class_as3.html
However, I have some questions about it.
Let´s say I have a moviclip named “ref_mc”, to add a reflection I use:
import com.pixelfumes.reflect.*;
var r1:Reflect = new Reflect({mc:ref_mc, alpha:50, ratio:50, distance:0, updateTime:0, refle...
This happens to me a lot and I've yet to find a good solution. Say you have two classes, Tree (com.company.Tree) and Fruit (com.company.Fruit). On the stage in Flash, the Tree has an instance of Fruit (class=fruit1, base class=com.company.Fruit), and it's instance name is fruit. Everything is fine, until you duplicate the tree and fruit ...