SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast theMarcin's Avatar
    Join Date
    May 2008
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Flash CS3 call JQuery?

    Hi,

    I am developing page for client who wanted Text floating over Flash.
    So, I got the text floating using CSS. And, I have JQuery loading,
    causing the Text to show, a link is clicked.

    However, I don't know how to launch the Javascript from inside Flash,
    when the correct frame loads.

    Here is what I have right now (click the link to see how the Text is
    supposed to load):

    http://marcinpiasta.com/vivid/1/index.html

    Here is the JQuery I am using right now:

    Code:
            function showHome() {
                $('#samples').show(300);
                $('#testimonials').show(300);
            }
    So, I need Flash to call showHome() when Frame 30 loads. How do
    I do that?

    Much appreciated,
    Thanks
    Last edited by theMarcin; Aug 10, 2008 at 06:42.

  2. #2
    SitePoint Enthusiast theMarcin's Avatar
    Join Date
    May 2008
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solution found:

    Paste on frame

    Code:
    import flash.external.*;
    ExternalInterface.call("showHome", "");


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
  •