Results 1 to 4 of 4

Thread: javascript in Flash

  1. #1
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default javascript in Flash

    Hello! I was trying to use the lightbox tutorial on a flash buttons.
    How can I write this script [<a href="images/image-1.jpg" rel="lightbox[roadtrip]">] in getURL("?????")

    Thanks

  2. #2
    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

    Just like that

    Be careful with relative URLs though, all files called for in that way MUST be in the same directory as the HTML that calls them NOT the swf..

    Code:
    on(release){
       getURL("'/images/image-1.jpg' rel='lightbox[roadtrip]'");
    }
    Use absolute URLs when you can, they work a tad better
    {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

  3. #3
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD
    Just like that

    Be careful with relative URLs though, all files called for in that way MUST be in the same directory as the HTML that calls them NOT the swf..

    Code:
    on(release){
       getURL("'/images/image-1.jpg' rel='lightbox[roadtrip]'");
    }
    Use absolute URLs when you can, they work a tad better
    Is there a way to use the above get url to specify a group as well. Per the lightbox info, you can group images with the [roadtrip] example.. how does that translate into the geturl for multiple images?

  4. #4
    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

    Hmmm. Don't know rightly, never used the lightbox. I will have a look at its coding and see if I can figure out anything.
    {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

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
  •