Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you load a new movie into an HTML file?

Status
Not open for further replies.

ChrisMacPherson

Programmer
Jul 3, 2000
157
GB
I have a movie in my HTML file using an &lt;EMBED/OBJECT&gt; tag.<br>I need to UnLoad this movie and Load a new movie in it's place. The new movie will be nearly identical so there is no problem with dimensions etc. I think I need to use the LoadMovie() method but is this just for use inside a movie itself, or can I use this from a javascript command? <br><br>eg. window.document.movie.LoadMovie(0,&quot;movie2.swf&quot;);<br><br>Any help or pointers to a tutorial would be greatly appreciated. I have already studied the flash4 manual and online help, but to no avail!!
 
why can't you load the movie from flash? I'm confused. <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
Here's the situation: <br>&nbsp;In my HTML page, I have two &lt;OBJECT/EMBED&gt;tags. <br>&nbsp;In the first I have a movie with a forward button and a back button,<br>&nbsp;In the second I have a movie (movie1) which contains a .wav file.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;I also have another 9 movies which are identical to move1 except for the .wav file which is different(movies2-10) <br>&nbsp;&nbsp;<br>&nbsp;When I press the forward button(in the player movie), I need to load the next movie (i.e. movie2) in to movie1's position. BUT this takes place in seperate&nbsp;&nbsp;&lt;OBJECT/EMBED&gt; tag to the player movie. The player movie must remain at all times. Can I do this ? I may not be doing this the most sensible way. <br><br>If I have not explained this well enough, maybe you could just explain to me how you would use the LoadMovie() method. Then maybe I can work it out from there.<br><br>I am not sure whether I showed you an example before of what I'm trying to achieve:<br><A HREF=" TARGET="_new"> for your time.<br>&nbsp;&nbsp;
 
I think the entire thing might work in one movie. What's the URL, maybe I'd be able to tell why this wouldn't work in 1 movie alone, or maybe I could figure out what you'd need to make it all one movie. <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
Sorry I got the wrong URL!!<br><br>It has somehow stopped working now as well!! It actually worked before, now it is saying that the SetVariable statement doesn't exist. I think I relly need your help now!!<br><br>Some parts of the source in the HTML file are not complete, there is enough for what I wanted to do at the time.<br>You may tell me I need to completely change what I'm doing, feel free, I'm learning!! <br><br><A HREF=" TARGET="_new">
 
well here's my first suggestion- I think your application is better suited for Java :eek:) That's just my personal opinion, though.. I usually use Flash for presentation and Java for a GUI app. Seeing as how I don't usually use Flash for this kind of thing, I'm not sure exactly what you did- I don't suppose you could send me your .FLA? <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top