The ide i am using is flash cs3. the as2 swf contains a tween code using mx transitions.
when i remove this tween code and hard code it on the enterframe there seems to be no problem.
afaik avm2 should fully supports the as2 and as1 code. so i am unable to understand why this disparity when coding a simple tween in as2 swf.
i had made a ...
How can I pass a variable to javascript in actionscript 2?
Thanks.
...
I have been searching all over and have yet to find an actual working solution for this
I have 2 movie clips, one being loaded into a container MC via "loadMovie();"
In the main movie there is a variable with no value, in the external movie there are 5 frames, each with a value to update the variable in the main movie.
IE: if on fram...
Hi there
I have this application authored in Flash CS4, and it uses ActionScript 2.0 due to the reason that I am not the original developer. I am just updating it for another client.
The thing is, this application previously compiled a PDF using Director, and now the Director file is giving script errors. I have seen that there are PDF...
I have a SWF that I wish to debug on with the flash debugger. I have the debug flash player and the 'Debugger' context menu option is greyed out. If I check the 'Permit debugging' option in the SWF publish settings, this does not become enabled.
My hunch is that this is down to the fact that my SWF is being loaded by another parent SWF....
Hi,
I am writing a bit of actionscript that loads an xml file and displays movie clips etc.. appropriately on the stage. However I have come to bit of problem where i want to reset the display via a function through loading a different xml file. I have loaded the new file but the display doesn't change as if its still loaded the previou...
Hi guys,
Has anybody ever had any issues with loadMovie in as2?
I have inherited some horrific code and need to solve an issue, if you imagine a gallery and clicking back and forward would call loadMovie and get the URL address from an array, each time the back and forward buttons are pressed the number is increased and references to a ...
hey, i want to use the itunes cover flow but i have a problem with my flash, on the server i use, i cant use the root comand or actionscript 3, so i basicaly found what i needed in as2 but it has the command root in it and because of that, the flash cant load on the server, could anyone help me by telling me what should i do to get the r...
Hello
Here's my current code:
if (Key.isDown(Key.UP)) {
//do stuff
}
What I want to do, is to detect if user presses a button. My code atm just detects if it's pressed down continueusly. Is there a way to detect when user only presses it down, doesn't hold it down?
And please, no AS3 answers here.
Martti Laine
...
I am creating a game which uses the sharedObject to save each players progress locally. It also connects to a central database to create an online scoreboard. When a user inserts a score for the first time a unique ID is sent out of the database to the swf and saved as part of the sharedObject data.
Absolutely everything works and the ...
I have a little job modifying an old build - or so I thought.
Currently I am being given a url which dynamically generates the xml
eg: http://server.com/generateSomeXML?pathToFile=/files/file.flv
This works fine
eg: as above but ?pathToFile=http://streamingServer.com/files/file.flv
This does not work, fails to load the xml.
I have tr...
I have an instance of an object that starts and stops tweens for sub-movieclips. However I want to do stuff when the tween is finished.
So I would like to assign a calling object to events; such as the attach() function does. However when using the attach() function on events it is called right away with the correct object, but when the...
Hello again all,
I have built a movieclip (parentMC) that houses two movieclips within it (mcA, mcB).
in mcA, i'm dynamically attaching movieclips from the library through a loop.
in mcB i'm trying to reference a particular movieclip from mcA via "_parent.mcA". Doesn't seem to be working. However, when i reference said movieclips f...
I've coded a little game, but now I realized that I should include all the actions to frame on layer called "actions". This far I've written my code to movieclip. Any help on transforming this to frame?
onClipEvent (load) {
yspeed = 0;
lastx = 0;
gravity = 0.2;
speed = 5;
}
onClipEvent (enterFrame) {
yspeed += gravi...
I am working on a Flash AS2 script that adds an instance of a movieclip for each node in an XML file. I have also included titles for each node in the XML file and I would like to display these when a user clicks on one of the individual movieclips. I have played around with clipevents and attachMovie but for the life of me I can't figur...
Hi,
I was wondering if someone can look at the ActionScript (2.0) i have from a flash menu that I bought. I know some flash but can't seem to find a way to make the images cycle through all the photos in the folder instead of loading just one random static .jpg. Also, I would like the images to load with a fade effect.
Thanks for any h...
I have a project developed using Flash 8 Professional which uses the FLVPlayback component to load video from our Amazon S3 bucket. Everything works great. I have tried to bring this project into Flash CS4 Professional and swap the Flash 8 FLVPLayback component in the library for the CS4 component. When I publish however the video does n...
How do I embed a Vimeo video in a Flash AS2 site? Thank you.
...
I have encountered strange problem. I have created simple Flash text field control and I wanted to compare its content with some other string. This comparison in triggered when user is pressing the button.
In Action Script 2.0 code I noticed that a caret return character (\r) was added at the end of the string coming from the input text...
I have a Flash AS2 application that is made up of many SWF files. I need to create an OnClick event in a container SWF that will work for every SWF called. I am trying to avoid adding code to every SWF (over 100).
Currently I can get access to the click in the container for the first SWF but when the second SWF is called it seems to ove...