Skip to main content
Participant
October 24, 2007
Question

how do i do with this code

  • October 24, 2007
  • 3 replies
  • 484 views
i´ve got this to link a time line to a url.... is that correct?

to be clear i just need to open a "menu2.swf" related in what page i´m ex. if i´m at ww.xxxxxxxxxx.com/clientes.html, i needed flash to start a "menu2.swf" from frame 30 and playing

// AS3
var url:TextField = new TextField();
url.text = root.loaderInfo.parameters.clientes;
gotoAndPlay(30);

// AS3
var url:TextField = new TextField();
url.text = root.loaderInfo.parameters.sevicios;
gotoAndPlay(20);

i got this code for the html:

<script type="text/javascript">
var so = new SWFObject("flash/menu2.swf", "menu", "100", "475", "9", "#FFFFFF");
so.addVariable("flashvars", value="url=clientes");
so.write("flashcontent");
</script>
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
October 25, 2007
you're welcome.
Alex_brAuthor
Participant
October 25, 2007
thank´s very much for your help!!!
kglad
Community Expert
Community Expert
October 24, 2007
your parameter is url, not clientes and not sevicios. those are the parameter values.