Forum Moderators: open

Message Too Old, No Replies

Switching Flash movies via link

         

sgietz

7:42 pm on May 29, 2007 (gmt 0)

10+ Year Member



OK, this is more along the lines of JavaScript, rather than Flash, so I'm in the right forum.

What I need to do is create a placeholder for a flash object that plays different movies based on a users selection. This is my idea:

<div id="flashmovies">
=== code for flash object that plays movies ===
</div>

<a href="javascript:;" onclick="playmovie('movie1.swf');">Movie 1</a>
<a href="javascript:;" onclick="playmovie('movie2.swf');">Movie 2</a>
<a href="javascript:;" onclick="playmovie('movie3.swf');">Movie 3</a>
<a href="javascript:;" onclick="playmovie('movie4.swf');">Movie 4</a>

I'm not sure how to do this, but I think I'm on the right track. How would the playmovie function look like, and what would I have to put in the flashmovies div?

Thanks :o)

rocknbil

10:00 pm on May 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The Flash documentation is pretty robust on this - you use fscommand to send messages from Flash to the hosting web page (to be captured by Javascript) and LiveConnect for NN/FF, ActiveX for IE to send messages to the Flash object. (May be old technology, using MX '06 here)

sgietz

3:06 pm on May 30, 2007 (gmt 0)

10+ Year Member



I'll look into that. Thanks.