Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 28

Thread: Opening a popup with flash CS3 and JavaScript

  1. #11
    Junior Member Settled In gusbat is on a distinguished road
    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0

    Re: Opening a popup with flash CS3 and JavaScript

    flash templates
    I did it but it does not go out for me well, podrias to put a fla in order that it(he,she) could lower it?
    Thanks
    Es lo que hice pero no me salio bien, podrian poner el fla para que lo baje?
    Gracias!

  2. #12
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Re: Opening a popup with flash CS3 and JavaScript

    Ok,
    here the files:
    Attached Files

  3. #13
    Banned Settled In seahawkfanabc is on a distinguished road
    Join Date
    Nov 2007
    Posts
    1
    Rep Power
    0

    Post anyone here into adult dating sites?

    Just wondering. ------------------------- [/url]
    Last edited by Flep; 24-11-07 at 05:49.

  4. #14
    Junior Member Settled In dolchieg is on a distinguished road
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    0

    Re: Opening a popup with flash CS3 and JavaScript

    Hi there,

    I am using the same code that you provided in the zip file above. Instead of normal window i am opening a modal window. Now how will I let flash know that the modal window is closed, because i want to stop the execution of remaining code in the button that activates the modal window until the modal window is closed.

    Please help.

  5. #15
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Re: Opening a popup with flash CS3 and JavaScript

    Hi dolchieg,
    you should use ExternalInterface class of AS 3.
    Write JS functions and call them through actionscript.

    Here is a sample:
    Actionscript calls Javascript - ExternalInterface class of Flash CS3

  6. #16
    Junior Member Settled In longfellow is on a distinguished road
    Join Date
    Feb 2008
    Posts
    1
    Rep Power
    0

    Question Re: Opening a popup with flash CS3 and JavaScript

    Hi, great tutorial.

    I have the example working that uses the ExternalInterface class of Actionscript 3.0.

    I would like to have multiple links on the same page. How do I adjust the code to make this work. I keep getting an error saying

    function callJS(evt:MouseEvent):void {1021: duplicate function error.

    Any help much appreciated.

  7. #17
    Junior Member Settled In jeljoman is on a distinguished road
    Join Date
    Jul 2008
    Posts
    1
    Rep Power
    0

    Re: Opening a popup with flash CS3 and JavaScript

    it doesn't work. when i open it and press the button, it says:
    SecurityError: Error #2051: Security sandbox violation: file:///C:/Documents and Settings/All Users/Documenten/greffix/Menu/menu.swf cannot evaluate scripting URLs within file:///C:/Documents and Settings/All Users/Documenten/greffix/Menu/begin.html (allowScriptAccess is ). Attempted URL was javascript:window.open('website.html','popper1','w idth=800,height=600');newWindow.focus(); void(0);.
    at global/flash.net::navigateToURL()
    at menu_fla::MainTimeline/openPopUp()

    my button is called "site_btn" and the link is to "website.html" and the files are located in the same folder.

    and when I exported the flash file there were no errors

    maybe the problem is that it's not online.
    Last edited by Onsitus; 19-08-08 at 08:10.

  8. #18
    CSS.FlepStudio.org Moving My Stuff To The FlepStudio Onsitus is on a distinguished road Onsitus's Avatar
    Join Date
    Jul 2007
    Posts
    1,405
    Rep Power
    5

    Re: Opening a popup with flash CS3 and JavaScript

    Quote Originally Posted by jeljoman View Post
    it doesn't work. when i open it and press the button, it says:

    my button is called "site_btn" and the link is to "website.html" and the files are located in the same folder.

    and when I exported the flash file there were no errors

    maybe the problem is that it's not online.
    Right! It should be fine online!

  9. #19
    Junior Member Settled In Rdawg is on a distinguished road
    Join Date
    Sep 2008
    Posts
    1
    Rep Power
    0

    Re: Opening a popup with flash CS3 and JavaScript

    Hi there Flep,
    Thankyou for the code to what seems an impossible feat for a non-coder! :) I haven't used Flash for about 8 years and thought it would be more user friendly/GUI based by now haha.
    I have your multi-button pop up code working well thankyou for that. I tried inserting 'scrollbars=yes' in the javascript window.open section but it doesn't work. Do you have a way to insert scrollbars into your multi button popup tutorial? Cheer rY

  10. #20
    Junior Member Settled In Yaman Karaibrahim is on a distinguished road
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    0

    Re: Opening a popup with flash CS3 and JavaScript

    Flep this is a very usefull lesson, yet altough i applied all the codes, i couldnt get the popup work. Would you upload fla flies for single.swf and multiple.swf files so I could check what i did wrong

    Thanks
    Yaman

+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. Errore di IE7 con tutorial "Aprire una popup con Flash CS3 e javascript"
    By rtrimarchi in forum Actionscript 3.0 avanzato
    Replies: 3
    Last Post: 03-04-10, 04:38
  2. Replies: 1
    Last Post: 05-12-09, 22:43
  3. Aprire una popup con Flash CS3 e javascript
    By Flep in forum Articoli e tutorials
    Replies: 29
    Last Post: 30-10-09, 14:13
  4. finestre popup con fogli xml di flash
    By Actor in forum Flash Italiano
    Replies: 1
    Last Post: 06-09-08, 23:51
  5. javascript e flash
    By tanysonic in forum Actionscript 3.0 base
    Replies: 2
    Last Post: 17-12-07, 08:52

Tags for this Thread

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