The one thing I just forgot to put in here to make this whole thing
work.

If you look, you will notice that we are passing a variable to the
flash file so that it knows if it's been played or not.

You have to create you flash file so that on the first frame you have
this:

// this is how we reset the file because in IE it needs this. Firefox
reset automatically because of the 'block' css.

if (_root.vid = "played1") {
        gotoAndPlay(2);
}
stop();


Second frame has this:

// execute after vid completes - go to last frame which puts it back
on the first.
vid.contentPath = "NanaBeauticals-Intro.flv";
var vidList : Object = new Object();

vidList.complete = function() {
        getURL("javascript:toggleLayer('ShowHide1')");
        gotoAndStop("end");
}

vid.addEventListener ("complete",vidList);

stop();


also on the second frame is the close button with this code:
on (release) {
        gotoAndStop("end");
        getURL("javascript:toggleLayer('ShowHide1')");
}




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to