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

flash in different windows 2

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
hello guys, my new peoblem is like this:

i have a flash button in my primary window that opens a secondary window. in the secondary window i have another flash button that when clicked, checks if the primary window is still there (meaning is has not closed and changed url), if it is sets focus on that window, if not opens another windows which will contain what the primary windows used to display!

sound hard!?! well, it is for me, i have been pondering over this for about 2 days now, still cant figure it out, so i brought it to the attention of the tipmasters of this forum hoping i could be enlightened.

thanks and hope to hear from any of u soon!




biggie
 
Are you using javascript to open the windows? or Flash's built-in function to open windows? Seems to me like you could stick a javascript function in one of the windows (either the original or the pop-up) that tests for the presence of the original. If it isn't then open a new window with the dimensions of the original. Wouldn't preserve the user's original browser history, but hey, they closed the window, right?

TomK

Now that I think of it, the function should probably be in the pop-up, because if the original window isn't there, well, the function ain't either!;-)
 
kramerpop,

i am using both javascript and flash built in function! i used javascript when i dont want the toolbars, etc to be seen otherwise i use flash. my problem now is the code to set focus on the primary from the secondary and vice versa! (but it has to check for existence first). it could really help if anyone could state the code for me! or point me to a tutorial that solves this problem!


thanks and Godspeed!

biggie
 
Sounds like a problem for the Javascript forum Big.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
dav,


can't flash do anything like this? i mean it looks pretty simple but scripting it is complicated with respect to window heirarchy. well, ok. but im not about to give up on this. im sure there's an answer somewhere.....

biggie

 
Big,

I guess you mean you would like to have this... 'Cause if you already have it (i have a flash button in my primary window that opens a secondary window. in the secondary window i have another flash button that when clicked, checks if the primary...), you don't really need our suggestions.

Can you tell me if those windows (the main one and the popup) will only hold but Flash material? Are both windows allways in sight(ie is one of them ever going to be fullframe)? If the main window is sort of a navigation window... Why would it have been closed?
You're not giving us a lot of details here... I'd like to get an idea of the whole picture!

I don't think you can get away with this without using any javascript at all... In that regard, you may want to have a look at this thread (And they're many others...Searching for open parent from child turned up 543 records), in the javascript forum:

thread216-66579

Or even have a look at this:


Best I can do, until you give us a little more to work with!

;-)
 
old,

sori if i didn't elaborate. its like this, if u remember our site, when u open it another window pops out where our console is displayed. now, my boss wants a button there that will launch a stripped down (meaning less graphics than the standard one) version of our console. i need to figure out how to change focus from one window to the other and to control a frame from the stripped version from the standard version. that basically it! all tends to cover the entire desktop (but its not full screen). hope its much clearer to you now. i'll check out the links you gave and try to learn something from it then apply it but if u have a better idea then it would be greatly appreciated!


thanks


big
 
dav,
thanks i found the code, now i'll try some implementing! thanks. if i still dont get it you'll hear from me again! javascript's got my mind in a meld. will try to wiggle out of it!


until then

biggie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top