onClick function to swap Flash movies

Discussion in 'Programming' started by pcoulter, Jun 15, 2007.

  1. #1
    Hi,

    I'm trying to setup a web page where, when a user clicks an image link the flash animation on the page changes without reloading the page. Can anyone point me in the right direction?

    Thanks.
     
    pcoulter, Jun 15, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    post the code your using for a flash player ....
     
    krakjoe, Jun 15, 2007 IP
  3. pcoulter

    pcoulter Active Member

    Messages:
    279
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    78
    #3
    The website is www.theraynes.com - I would like to set it up such that when a menu selection is clicked, a new animation plays.

    Here is the code to call the Flash:

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
    WIDTH="400" HEIGHT="390" id="myMovieName"><PARAM NAME=movie VALUE="main.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="main.swf" quality=high bgcolor=#FFFFFF WIDTH="400" HEIGHT="390"
    NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>

    Thanks!
     
    pcoulter, Jun 15, 2007 IP
  4. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #4
    first of all - you should use js or another alternative to embed the flash. (try SwfObject). In your flash, you can communicate back and forth with JS. So you could literally pass it the new .swf to load in the current .swf which woudl make it completely dyanmic.
     
    ccoonen, Jun 15, 2007 IP