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

Sending variables to swf's

Status
Not open for further replies.

JontyMC

Programmer
Nov 26, 2001
1,276
GB
I'm constructing a web-page with three frames, a main area, title bar and navigation bar. How do I tell a flash object in the title bar that the main area has gone to a different URL?

Also, is there any way to hide a layer or multiple layers using action script.

Thanks,

Jon
 
Don't really understand your first question!
How would the main frame have gone off on a new URL, without you knowing about it?
If you mean you'd like to change the title bar or something, when a navigation button has called a new URL into the main frame... You would then have the choice of loading a new movie in the title frame as you load the new URL in the main frame, or have the movie in the title bar go to another specified frame. Since that title bar movie is embedded in it's own html, you would have to communicate with it through Flash methods (with javascript).

As for hiding layers, don't think it can be done! Only way would be to create a movie clip (same size as the main movie) with a layer(s) holding the elements you want to make invisible, and then simply turn on and off this movie clip's visibility, when you so desire.

Regards,
wink4.gif
ldnewbie
 
Cheers for the reply,

I have links on the side frame to the main frame and I dont want to keep reloading the flash objects in the title bar frame. I am new to this and dont know much javascript. Could you give the basics of what I need to do or point me in the right direction?

Is it possible to communicate between two flash objects in different frames?

Thanks :),

Jon
 
Jonty,

Have a look at these:



If your new to javascript, try going through these. This is what you'd need to make the title bar movie go to another specified frame while calling a new url in the main frame.
If you need more help, come back here and post to that effect.

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top