actionscript

Delaying event handling in Flash.

I'd like to delay the handling for some captured events in ActionScript until a certain time. Right now, I stick them in an Array when captured and go through it when needed, but this seems inefficient. Is there a better way to do this? ...

Appending URL parameters to URLs in ActionScript

I'm trying to add a URL parameter to an URL string in ActionScript. Currently I'm checking the existing URL to see if it explicitly has a "?" to determine if there are any existing parameters to determine if my parameter delimiter should be "?" or "&". Is there a library or utility method in ActionScript which could simplify the code bel...

Global variable problem

I load an image and add it to the MC someMC. If "something" is true, the someVariable gets the someMC scaleX number. Let's say its 0.82. What I need is to get that number into the s.value in my Slider object. Since I want the Slider value to be where my image scale is. This of course doesn't work because of variable scope limitations. ...

Flex Builder 3 not debugging

Allope, I've recently bough Flex Builder 3 and I am completely dissatisfied with its reluctance to debug. It manages to debug a few times, but after that, it just doesn't want to "connect to the debugger". Help? ...

Actionscript: LoadVars doesn't wait until data is loaded

variable = 0; function change() { variable = 1; } go = newVars(); go.onLoad = function(success) { trace("#First"); change(); } go.load('http://www.stackoverflow.com/variables'); trace("#Second"); trace(variable); // output = 0; The problem is that it executes #Second before #First, which means that the object is not fullly loade...

Wait function Action Script 2.0

Hi, I am creating a website that has an intro splash page that waits for 5 seconds before automatically sending the playhead to frame 17 if nobody has clicked the enter button doing the same thing. My code for this is here: function wait() { stop(); var myInterval = setInterval(function () { _level0.menu_number2 = 0; gotoA...

Does anyone know anymore Shorthand Action Script 3?

I'm used to using the if else shorthand: var = (if statement) ? 'something' : 'something else'; Are there any other short hand methods available? ...

Content Managemnt System for Flash?

I'm looking to develop some CMS-able 100% Flash based websites. I have only worked with creating static based Flash websites in the past. What is the best way the approach this? ...

Flash Web Sites

i have a few questions about flash web sites. are their "pages" done using frames? is that the only way? for login/access control, is setting variables to indicate login secure? is there a way to use PHP Sessions like in regular PHP sites? or will it be the same as flash variables? ...

Can I define multiple itemRenderers in a Flex / Actionscript list

Basically I want to override some function in the flex/actionscript list class which creates a new ItemRenderer and passes it the required data ready to be displayed. I need to do this because I wish to show a different renderer based on the type of data being displayed. Is there such a function? I don't really want to pass the list a...

Request data in a Flash movie from PHP, at run-time

Hi all, Is it possible to request some data in a Flash movie from PHP at run-time? Maybe my real-world implementation can clarify some things: I use a Flash movie to store a Local Shared Object (because for some reason I need LSO's instead or regular PHP cookies). Now, when I load up a PHP file I want to somehow retrieve the data fro...

Flex Differnece between Complete and UploadCompleteData events for class Filereference

When I upload a file using a Flex application, what is the difference between complete and uploadcompletedata events? In which cases one of them will be dispatched and the other one won't? ...

Procedurally accessing a function's parameter list in actionscript 2.0

I can already get at all of the functions in a class by doing something like the following. for (var member in obj) { if (obj[member] instanceof Function) { var f:Function = obj[member]; ... } } Is there a way to get at a function's parameter list in actionscript? For example, can I write a function that does ...

LocalConnection and iframes

I'm trying get LocalConnection to work between two swf's placed within two different IFRAMES. I've worked with LocalConnection often without too much trouble. But this time --i suspect because of the iframes--i can't get it to work. Anybody experience the same? ...

Are there Decorators / Macros / Annotations in AS 3?

I'm looking for the equivalent of Python decorators / Lisp macros / Java annotations (yes, I know that these are not necessarily equivalent themselves) in Actionscript. Tools that provide similar features would also be great (I'm using the Flex Builder plugin for Eclipse on Linux). I'm writing a Flex application and here's what I want t...

Adobe flex maximum size of uploaded file

Is there a maximum size limit for files being uploaded in Adobe Flex? I am testing it on localhost and can't upload a file of roughly 300MB. Even though I receive the complete event, after I upload the file.... I was able to upload a file of roughly 10MB. I am using PHP on the server side. ...

Pausing between lines of actionscript

Here's what I want to do in code. Animate an MC of a car for a duration of x seconds. After the car is done, move an MC of a dog for y seconds. And so on... With this code, all animations execute simultaneously. car.slideTo(200,100,1); dog.slideTo(200,100,5); blimp.slideTo(200,100,2); ... Is it possible to write a pause function to...

Flash AS3 ... Visible = false not working?

So I have a simple flash movie. I have created 3 layers (actions, background, header) Background contains an image, header contains a movie clip with an instance name of "mc_header". In the actions layer I have said mc_header.visible = false; Yet when testing the movie it continues to show for no reason. ...

Javascript / Flash notifications in Slideshow Pro

Hi, I am using SlideShow Pro (a flash slideshow/media player) on a site. I want to receive notifications (in JavaScript) from the flash player when a video is finished playing so I can load another video via Ajax. There is an onVideoEnd() ActionScript call in the API: http://wiki.slideshowpro.net/SSPfl/API-onVideoEnd In ActionScript: ...

Coding constraints checker?

Hi, Please help me to get a coding constraints for action script and flex 3. Regards, Lalji ...