when you click on an image from the flash movie it will load that particular image in HTML. That is pretty awsome, Does anyone know how to do this?
http://www.arista.com/Page.asp?sn=Arista&pn=Photo%20Gallery&artist=Usher
when you click on an image from the flash movie it will load that particular image in HTML. That is pretty awsome, Does anyone know how to do this?
http://www.arista.com/Page.asp?sn=Arista&pn=Photo%20Gallery&artist=Usher
i dont’ think so? isn’t it just some action script stuff? maybe my definition to flash remoting is wrong :-\
Good, that means I can do it. How do pass a variable from flash to javascript, say in this case, image number to javascript and javascript to html?
yeah, Flash is probably sending a variable to javascript and that changes the images. To send a variable you use getURL
on(press){
getURL("JavaScript:nChangeImages(variable);");
}
Something like that. I’m not huge on javascript…LiB will know better than I do, but that should push ya in the right direction.
just there shouldn’t be a space between ‘java’ and ‘script’
the message board puts one there for some reason… irks me…I tell ya…
That was the correct syntax, thanks Jubba. It was a lot easier than I thought. I just passed the image number to a javascript function from actionscript and use the javascript image object to replace each the image. THanks Guys for your input.
No its javascript. they named it that because of the popularity of java. but it has no simularities and here is the EXACT WORD FOR WORD HTML code they used:
"
src=“http://images.aristarec.com/common/javascript/arista_navigation.js”></script><script language=“javascript”>
function getPhotoGalleryImage(index)
{
if ( index < 10 ) index = "0" + index;
document.images["gallery_photo"].src = "http://images.aristarec.com/common/img/artists/usher/usher_290x290_" + index + ".jpg";
}
Looks like an array passing to js.
that I can’t hep ya wit!
I think I messed this thread up…
sorry
:: Copyright KIRUPA 2024 //--