PDA

View Full Version : pop up windows.....


00lewis
04-13-2005, 11:53 PM
hey guys i have been looking for a good tutorial on how to make a pop up window with just the browser type close buttons..ect.

like the way the portfolio examples are shown on this site....
http://www.mediahead.com/jakub/index2.htm
i would like to know if the files attached have to be in the library or just in the same folder as the main flash piece.... loads of tutorials refere to the html script.... only i am using flash all the way and cant do it the way that is surggested....

i have a few friends that have the same problem, all of have used the search tool (well i have anyway) but dont seem to be finding the correct thing we be looking for.........(we are all beginners)

i tried it by using the code on the button

on (release) {
getURL ("JavaScript:pop();");
}
///// not 100% where the file name goes

and also tried

on (release) {
getURL("javascript:openWindow(''Think the file location goes her",'newWindow','toolbar=0,location=0,directries=0,st atus=0,menubar=0,scrollbars=0 ,resizable=0,width=400,height=200,left=100,top=150 ')");
}

when i tried this all it seemed to was bring the web browser to the front of all other applications on my comp..... is it that i have the right code but it cant find the file to open because its not online...... is there a way to find out if the external windows are working without being online??????????
any help would be greatful

regard

Gibberish
04-14-2005, 12:03 AM
getURL("javascript:NewWindow=window.open('http://www.myURL.com/myFile.html','newWin','width=410,height=420,left=0 ,top=0, toolbar=No,location=No,scrollbars=No,status=No,res izable=No,fullscreen=No'); NewWindow.focus(); void(0);");

oldnewbie
04-14-2005, 12:07 AM
In fact visit http://www.flash-db.com/PopUp/ , and set the popup as you would like it and generate the code. Then it's simply a question of copying & pasting the generated code in your Flash movie.

00lewis
04-14-2005, 12:32 AM
hey guys thanx for the window tool....
it wouldnt let me copy paste (doh!) so me typed it instead.... it kinda did the same again it just put my current browser page infront of my flash file is this its way of saying yes it works... or not???? i'm not to sure its working....wherei type in the name of the file location for now should i type in Machintosh:desktop/filename.swf
or how ever its written???

oldnewbie
04-14-2005, 02:11 AM
You've lost me!

00lewis
04-14-2005, 02:58 AM
sorry dude... i get that a lot about many things...

i followed the getUrl.......bla bla

but when it tested the movie all the button did was to bring my web browsr up to the current page that that was on.......hmmmmm it didnt bring up a seperate box like in the example i attached......
urm... when testing popup windows before you put your file on the web does this usually happen.

oldnewbie
04-14-2005, 03:16 AM
Attach your testing .fla.

00lewis
04-14-2005, 04:07 AM
basically for now as the piece i'm working on is not on the web at the moment i need away to use the pop up windows tolaunch a file that is on my desktop and not on the web??? i will try to zip my file tomorrow... i have no to attach yet, but could try and knock an example up quickers.....
many thanx for your help and interest.....Peace