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

Using Java scripts in Flash

Status
Not open for further replies.

brainpudding

Technical User
Sep 29, 2002
84
US
I am not sure if you can do this but I have a menu made in flash and i want to click on the link and it opens a new window of a specified size. I can do this in reg html but can it be done thru Flash also?
 
I must not be doing something right .. i dl it and installed it .. then i went to the scene dragged the component over to the button and it snapped to it .. then i set the parameters .. but nothing is happening
 
strange...probably just because you are new to the component
can you post the fla so i can see what you did
 
which button has the component attached?
i cant seem to find the component
however if you give me the name of the button, the size of the window, centered, menu,scrollbar, url, etc then i will attach the component and you will be able to see from that
 
i used one button multiple times .. move to end of the time line and you will see then across the bottom. the url window size and stuff is not needed, I saw how to changes those in the parameters, but it just wouldnt work, I could make a new button and attach it too it and it would work but it wouldnt work for me on the existing buttons
 
yes the component does seem to be failing with your buttons...cant explain why

fall back use the javascript

on (release) {
getURL("JavaScript:window.open('th=577, height=420');");
}
 
DANG I copied and pasted that code into that action scripting for that button .. and it still wont work... AHHH
 
or to target a file in the same folder

on (release) {getURL ("javascript:n_name=window.open('PAGE.html','new_name1','width=100,height=100');void(0);");
}
 
ok thanks .. ill see if i did somethign wrong .. can u seave the fla i sent you and let me get it back to see what you are doing that i am not?
 
just change swf to fla in the above link to download the file

ive changed the button code to method 2 as its more robust
 
i dl it and renamed it to top.fla and i get invalid file when i try to open it
 
ah...i am using mx...i guess you arent hence invalid...tell me what version of flash you have and i will republish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top