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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Change Flash Movie

Status
Not open for further replies.

ADACProgramming

Programmer
Dec 21, 2005
5
US
The site I am working with is

What I am trying to do is when I click on one of the small pictures I want to change the large picture to show a diffent flash movie.

Currently I am using images for the small pic and a javascript onclick. When it is clicked I am changine the src for the lage pic which will be a embed

this is my code for the large Pic
<DIV align="center"><EMBED id="MainPic" src="Common/Images/bath1.swf" AUTOSTART=TRUE width="295" height="220" type="application/x-shockwave-flash"></EMBED></DIV>

THis is my code for the small pic
<IMG onmouseover="Pointer" onclick="MainPic.src = 'Common/Images/living1.swf'" onmouseout="DefaultCursor"
height="75" src="Common/Images/Cottage1LivingThumb.jpg" width="100">

If I change this to use images it works fine, but when I do the flash, the movie does not change to the new movie, No errors, it just doesn't change.

Do I need to add something to get it to start running the new src?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top