Results 1 to 10 of 10

Thread: Flash cs3 projector and popup window help please

  1. #1
    Join Date
    Nov 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flash cs3 projector and popup window help please

    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.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    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/

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You can embed the JS and HTML in the Flash button. Thats it really. How much control do you want?

    Code:
    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); }
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #4
    Join Date
    Nov 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default interresting

    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 !

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Check your pop up blocker

    Edit:
    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.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #6
    Join Date
    Nov 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  7. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  8. #8
    Join Date
    Nov 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  9. #9
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  10. #10
    Join Date
    Dec 2008
    Location
    New York City (NYC)
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that Question... =D
    I Understand them well ^^

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •