- Home /
Flash: read in variable from actionscript
I'm trying to use 1 flash file. What I want to do: The first scene of the file should read in a variable using the ActionScript "root.loaderInfo.parameters.sceneNum". That first scene will then take that variable and open the appropriate scene based on the number it reads it.
I need help incorporating the ActionScript code in my C# script so that it can read in the variable that the ActionScript reads in from the HTML file.
For example, in the html the flash file will be embedded as so: "flashfile.swf?sceneNum=1".
ActionScript is capable of reading in that sceneNum = 1. But how do I get that 1 from the ActionScript to my scripts in Unity?
Thanks.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to create a file (png) using Unity Flash? 1 Answer
How do I implement a third party API into Unity 3D? For Flash. 0 Answers
listen for flash events 2 Answers