Log in

View Full Version : Flash cs3 projector and popup window help please



serazoo
12-08-2008, 04:18 AM
Hello all

please help !

I'm using Flash cs3, I have a button in a projector movie. I don't want it to just get a url, I want it to popup a window, center screen, no toolbars, no resize...

can this be done ? I've read so many threads and tried so many codes...none worked sorry...

1-what is the script used in the html page itself (if any) ?

2-what is the script for the button in the projector movie ?


do you think this will work on a MAC too ?


I would appreciate any suggestions
cheers
San.

bluewalrus
12-09-2008, 12:55 AM
Geturl will load the page and then you need java in the actual page to have no tool bars and scroll bars. This page does what I think you want but I don't want to give you half a javascript that won't function so I'm going to leave it as is for someone that knows a little better and you can clairfy if that is what your're looking for.
Click "USA" then "fine jewelry and watches" I'd put the address in but it's different by your screen size.
http://www.chanel.com/

BLiZZaRD
12-09-2008, 02:48 PM
You can embed the JS and HTML in the Flash button. Thats it really. How much control do you want?



on (release) {
MovieClip.prototype.openWin = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable){
getURL("javascript:var myWin;if (!myWin || myWin.closed){myWin=window.open('"+url+"', '"+winName+"', '"+"width="+w+", height="+h+", toolbar="+toolbar+", location="+location+", directories="+directories+", status="+status+", menubar="+menubar+", scrollbars="+scrollbars+", resizable="+resizable+", top='+0+', left='+150+'"+"')} else{myWin.focus();};void(0);"); };

address = "pop1.htm";
winName = "window1";
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
openWin(address,winName,width,height,toolbar,location,directories,status,menubar,scrollbars,resizable); }

serazoo
12-09-2008, 04:03 PM
thank you Bluewalrus !

Cheers blizzard, looks like a complete code !

I've tried it...no errors in script when generating projector... great !

But I only get a clicking sound and no window popping up !

any ideas ?

cheers !

BLiZZaRD
12-09-2008, 06:30 PM
Check your pop up blocker ;)


I guess I should mention that this code because of the embedding and such won't work when testing through Flash (Control > Test Movie) You will have to upload it to the server to test it.

serazoo
12-11-2008, 12:31 PM
Thank you Blizzard !

although I do get popups from Explorer itself...they open up with no blockage...do you have an idea ?

If this is really a popup blocker problem ?...most poeple have blockers...maybe this is not a good idea...


I have an another idea: is there a way to load an external swf directly into the projector movie ?

what could be the script for the button ?

thanks so much for your help !
San

Medyman
12-11-2008, 03:01 PM
As long as you initiate the popup manually (i.e. a user has to click to launch a popup), most popup blockers will let it go. You might have problems in Firefox because Firefox is tougher on Flash-originating popups. It's hard to make a generalized statement because it all depends on individual browser settings.

serazoo
12-11-2008, 05:50 PM
Thanks Medyman !

From a flash projector, I want the user to load within the projecor (if possible) or external popup...i want to hide adresse, no toolbars, or right click...

what is the best way ? so I can avoid any problems ?

can this also be MAC compatible ?

Ive searched all over the net with some solutions but none are working..I have Flash CS3...I can't believe I can be the only on with this kind of problem...

I would like the user to get external info other than what is in the Flash projector, info that I can change from time to time via ftp...

any comments on all this would be appreciated !

cheers
San

Medyman
12-12-2008, 12:24 AM
Hi San...

I have absolutely no experience with flash projectors so I can't confidently comment on the specific concerns related to them. But judging from their presumed usage, I would be surprised if popup blockers played any role. I can't imagine how a browser, since the popup isn't instantiated from within the browser, could tell the difference between a "popup" and a regular link.

When you publish the projector, Flash should give you Windows and Mac specific projector files (i think). Either way, you can create the files you need from within CS3. The coding is the same. I'm sure the help files will have something regarding this.

D-ultimate2008
12-28-2008, 03:09 PM
Thanks for that Question... =D
I Understand them well ^^