dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: initiating lightbox inside flash

  1. #1
    Join Date
    Apr 2010
    Location
    Brooklyn NY
    Posts
    104

    initiating lightbox inside flash

    I'm trying to find exactly how to load an image through lightbox with just the the javascript lightbox functions. I'm using lightbox 2 (from http://www.huddletogether.com/projec...box2/#download)

    the most I've got right now is an actionscript function sending the url and title to a javascript function called "dude" to try to load the image, but it's not working.

    function dude(url,title) {
    var imgLink = document.createElement('a');
    imgLink.setAttribute("href",url);
    imgLink.setAttribute("rel","lightbox");
    imgLink.setAttribute("title",title);
    Lightbox.prototype.start(imgLink);
    }

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    ActionScript 2 or 3?
    Anyway, you could get some solution straight to the source:
    http://www.actionscript.org/

  3. #3
    Join Date
    Apr 2010
    Location
    Brooklyn NY
    Posts
    104
    It's as3, but the actionscript's not my problem, I just need the javascript code to initiate the lightbox function with any image for now, and I can incorporate the correct image later once I figure how how to just start it without clicking a link in html with the right 'rel'.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles