|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
ActionScript 3 - Getting URL Parameters
This is probably a very simplistic question but my brain is fried and I must not be searching the right thing on Google because I can't seem to find the answer.
I have a SWF on a web page that is called like so: HTML Code:
Using the above HTML, how can I access the value of myvar (myval) inside the Flash file. I know this is a very noobish question but I am very new to Flash. |
|
#2
|
|||
|
|||
|
Heya, try this:
Code:
import flash.display.LoaderInfo;
trace("Path: " + root.loaderInfo.parameters.path);
trace("Myvar: " + root.loaderInfo.parameters.myvar);
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > ActionScript 3 - Getting URL Parameters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|