Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : Load dynamic data into a Flash movie


iain_mcguinness
4/13/2004 10:01:33 PM
Hello all.

I want to load dynamic data into a Flash movie by passing an ID variable. I
think the solution might work like this:

[num]Use the FlashVars parameter to pass the ID variable into the movie[/num]
[num]Fetch an external string by appending the ID variable (using
sendAndLoad?)[/num]
[num]Pass the selected data into the movie from the external string and
display it[/num]

The external string is created dynamically by a PHP file (already written)
connected to a MySQL database. The format of this string is correct, because
the data displays as intended if I hard code the ID variable into a LoadVars().
My troubles start when I try to make everything dynamic, in order to use the
same movie to show different, ever-changing content.

I have tried numerous methods already, all of which seemed pretty close to
what I want, only to become deadends.

I would really appreciate if someone could help me with this, or maybe point
me towards an article which demonstrate this. I have a pretty basic knowledge
of ActionScript, but hope to expand this by trying out new things like this.
Thanks for your time.
Paul Whitham
4/14/2004 11:55:43 PM
Iain

I have done something similar with CF passing different elements through
flashvars and it worked reasonable well, but one early lesson was that Flash
seems to treat anything coming in this way as a string value.

Given your combination of PHP & mySQL you may want to have a look at
www.flash-db.com as it has a number of tutorials on linking flash &
databases together.

--
regards

Paul Whitham
Valleybiz Internet Design
www.valleybiz.net

Team Macromedia Volunteer for Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia/
Certified Dreamweaver MX2004 Professional


[quoted text, click to view]

iain_mcguinness
4/15/2004 10:36:58 PM
AddThis Social Bookmark Button