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

tell swf of page change 1

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
is there any way of placing code in the html page in one frame, that tells a swf in another frame that it's just been loaded?

ie - i have a swf banner in one frame, and another frame for html pages. when the html page changes, i want the swf to react.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Yes, using javascript and Flash methods...




Regards,

cubalibre2.gif
 
i thought the java script had to be in the same page as the swf for this to work? will it still work if it's in a different html page, but part of the same frames page?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
The html called in the html pages' frame should have an onLoad function, telling the top frame (the frameset's html) to call another function in the banner's frame html, that then has the banner.swf react.

Regards,

cubalibre2.gif
 
i have placed this method in that frame that contains the swf (the frame is called 'top'):

function stopAt(frame){
myMovie.GotoFrame(frame);
}

the method works perfectly when called from the same frame. what code do i need to call it from another frame?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
s'okay, i've worked it out. cheers.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top