Hi! I’m trying to get a URL parameter in my flash The parameter is a xml url testXML = new XML();. Need help creating a button link using actionscript Geez, it used to be so easy using getURL. I’ve tried using the following code on the. The only way to find out the answer is to read this flash getURL tutorial. 2. Choose a rectangular tool by clicking on or press R on your.
|Published (Last):||1 December 2004|
|PDF File Size:||8.95 Mb|
|ePub File Size:||5.62 Mb|
|Price:||Free* [*Free Regsitration Required]|
ActionScript: The Definitive Guide by Colin Moock
However I have been told the code above is very old and that I should use action script like below So I’ve tried to get this method below to work but nothing happens when I click the button, and I get one error, this You need to place the code below on the same timeline as the instance of the button as you tried. And the instancename of the button must be “buttonInstance”.
Actionscript get URL parameter (Pass it | Adobe Community
Ahh Can anyone please help me understand where I am going wrong? I have tried placing the new code in the Scene 1 of my actions. And I’ve also tried placing the code below, actually on my button within the actions panel My scene settings are alway this Any help would be great thanks.
Joshc 1, 15 62 You can set the instance name in the properties panel when the button is selected. Thank you – this is weird because I set the instance name set, but I had the code on the actual instance in actions.
Now works when outside of instance.
But is there not a way to do this with out setting a instance and just dropping code onto the button in actions? Adding code to instances is not a good style. Actiojscript code is more readable and easier to maintain if it is not spread over all instances, but is located on one place. If you want to have geturp code directly on your instances you need to use the on release syntax.
That does make sense. I used to use flash about 9 years ago and I was still in the mind set of applying actions directly to the instance. But your right, having all the code in one place is logical.
Problem (and solution) : getURL() in a Flash projector fails in Firefox
Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.