PDA

View Full Version : javascript in Flash



the_artdirector
09-20-2006, 09:57 PM
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:confused:

BLiZZaRD
09-21-2006, 01:53 AM
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..



on(release){
getURL("'/images/image-1.jpg' rel='lightbox[roadtrip]'");
}


Use absolute URLs when you can, they work a tad better :D

matthewm00
11-04-2006, 01:29 AM
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..



on(release){
getURL("'/images/image-1.jpg' rel='lightbox[roadtrip]'");
}


Use absolute URLs when you can, they work a tad better :D

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?

BLiZZaRD
11-04-2006, 07:15 AM
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.