PDA

View Full Version : set LoadMovie variable from text file


Rodeobill
04-11-2003, 03:43 PM
Here's the scenario -- I am putting a news section into a Flash site. The news will consist of five items, each with a headline, an image, and hopefully a link to an existing swf in the movie. The data for the news will be pulled in from an external source (most likely just a text file, but potentially from perl or PHP).

What I'd like to know is whether it's possible to use a value from the data pulled in to set the value for the button to link to. As in:

&Headline1=The book will publish 1 month earlier...
&Image1=bookcover.jpg
&NewsItem1=Book1.swf

Book1.swf would be a swf that already exists in the current movie.

Every news item would have a button that would send the viewer to the appropriate area within the Flash movie. In this case, it would be "Book1.swf" Is this possible?

tg
04-11-2003, 03:49 PM
yes its possible, you can load swfs into levels/movieclips in your movie with loadMovieNum/loadMovie.

do a search on those terms, you should find a ton of examples.