passing vars to flash
hey,
im not sure whether this should go in the graphics design...
basically, i want to pass variable to a flash movie when a button on an html page is clicked. when the movie loads up, it should play a movie clip depending on the variable sent on clicking the button. when other buttons on the page are clicked different variable values are passed, thereby playing a different movie clip. the idea is to make a re-usable movie.
how does one pass an external JS variable to the movie?
TIA
detox posted this at 01:30 — 25th September 2001.
They have: 571 posts
Joined: Feb 2001
Action scripting is what you are looking for here. you can pass variables etc with that.
ASP can also be utilised with flash.....
go to [URL=http://www.flashkit.com ]flashkit.com [/URL] they have a very good tutorial section etc. If not they also have a forum dedicated to flash.
Megan posted this at 01:47 — 25th September 2001.
She has: 11,421 posts
Joined: Jun 1999
There is a section on this in the ActionScript reference (from the Help menu) called "integrating flash with web applicatiions". Try that. You need to use some sort of scripting language such as PHP or ASP to store the variables and then use the loadVariables function in Flash to put them into use. As you can probably tell I'm a little unsure about this but I hope it helps.
Megan
Connect with us on Facebook!
Abhishek Reddy posted this at 09:02 — 25th September 2001.
He has: 3,348 posts
Joined: Jul 2001
thanks for ur replies
i kinda figured i needed actionscript when i set the variables...
anyway, i found what i was looking for here: http://www.flashkit.com/tutorials/Interactivity/How_to_a-Chris_Pe-577/index.shtml - just in case someone else needs it...its really hard to find info on that.
thanks again.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.