This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > May 2005 > Realy Need Help Flash and JS





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Realy Need Help Flash and JS
Banzai111

2005-05-24, 7:33 pm

I want to create a dinamic SWF using Java
I set variables for buttons and D Text filds but i can't load JPG bescause
loadMovie doesn't vork with variables
Please HELP !!

Java:

<script>
document.Rotator.SetVariable ("gr_title1", "Evel Genius");
document.Rotator.SetVariable ("gr_btn1" ,
"http://www.zgames.ru/games/strategy/evilgenius/index.html")
document.Rotator.SetVariable ("gr_URL1" ,
"20040308_ezus_wallpapers_ru_pasaka_1024x768_A(51199)PI.jpg")

document.Rotator.SetVariable ("gr_title2", "Doom 3" );
document.Rotator.SetVariable ("gr_btn2" ,
"http://www.zgames.ru/games/action/doom3/index.html")
document.Rotator.SetVariable ("gr_URL2" ,

"http://www.zgames.ru/albums/wallpapers/action/doom3/thumb_doom3_004.jpg")

document.Rotator.SetVariable ("gr_title3", "Jused" );
document.Rotator.SetVariable ("gr_btn3" ,
"http://www.zgames.ru/games/racing/juiced/index.html")
document.Rotator.SetVariable ("gr_URL3" ,

"www.zgames.ru/albums/wallpapers/racing/juiced/thumb_juiced_001.jpg")
</script>

Actions
_root.gr_ldr_1.loadMovie(gr_URL1);
_root.gr_ldr_2.loadMovie(gr_URL2);
_root.gr_ldr_3.loadMovie(gr_URL3);

Peter Blumenthal

2005-05-25, 8:06 am

loadMovie method works fine with variabkle, I do it all the time. Have you
checked that your variables are being set in Flash as expected? Try tracing
their values before the loadMovie

--
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews