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!

remote controlled window

Status
Not open for further replies.

afCindy

IS-IT--Management
Jan 23, 2003
9
US
Hi

I have a chromeless window with a flash piece that opens seperately when a link is clicked on my main site. On the flash page i am trying to create a link that will do to things; change the link in the parent page and close its own window. I have tried with _parent (doesn't seem to do the trick) in the link and I know the commando window.close but how do I integrate it in one button in my flash?


Thank you

Karina

Any help is greatly appreciated. I will donate five dollars to tek-tips everytime I get help that resolves my problem. So we can keep this great forum going.
 
Hi Karina

From what I understand you're launching a new html window that contains an swf. You now want to control the original HTML window from the child window. Correct me if I'm wrong here. I think that, regardless of what is in the original window you're going to have to use Javascript functions in the child window to manipulate the parent window. If I'm on the right track let me know and I'll elucidate...

Ben
 
Hi Ben..

Yes you are absolutely right...

Thank you
 
well the javascript to control the parent window is such

window.parent
so you could put

geturl [javascript:"window.parent.location=']

haven't used much flash recently but that should be the syntax [Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
Yeah, something like that. You could also write the instructions as functions in the header of the html that holds the flash and just call the function from the .swf - I find that makes it easier to change things and I can proof my JavaScript in HTML rather than through flash...

B
 
bg be right [Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top