SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member millsrd's Avatar
    Join Date
    Oct 2003
    Location
    Colfax, Washington, USA
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript from swf

    read an article here about opening a popup from within a movie using typical javascript with get url.
    Didn't work.
    Is that because the script was calling an html that was calling a javascript menu, or maybe javascript doesn't work inside a swf.
    Just curious.

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    USA
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

  3. #3
    SitePoint Member millsrd's Avatar
    Join Date
    Oct 2003
    Location
    Colfax, Washington, USA
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    getURL ("JavaScriptpenWin('links.html', '250', '250')");

    this should open a popup, simple but true, other variables come after it works, works outside of swf.

    <script language="JavaScript">
    function openWin(url, w, h)
    {
    var winprop = "width=" + w + ",height=" + h;
    openwin = window.open(url,'',winprop);
    }
    </script>

    in head of html. Cannot get any simpler than this.
    does actionscript tutorial imply that you can use the popMaker function with all attributes acknowledged to open this window.
    This window is an html with a javascript call to a menu script, a .js for the engine and another for the menu format.
    The link was a very nice addition to Flash, I must be missing something little, time to kiss it (keep it simple stupid).
    Last edited by millsrd; Oct 13, 2003 at 18:56.

  4. #4
    SitePoint Member millsrd's Avatar
    Join Date
    Oct 2003
    Location
    Colfax, Washington, USA
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No bother, only gif wouldn't show, the script actually worked, so rebuilt.
    http://www.redrival.com/millsrd/index.html
    its better anyway, smaller and faster, no intro or loader needed.


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
  •