5 Replies Latest reply on Oct 11, 2007 7:29 AM by kglad

    Dynamic loading of movie not working

    pandxsg
      Hi, I've got a noob question to ask :P

      I've got 5 movie clips, namely "1.swf", "2.swf", etc..

      I've got a numerical variable "scene", which captures a number relevant to which button the user clicks. So if the user clicks the first button, "scene=1", and so on.

      When I call for the movie to load, I use the script: < loadMovie(scene+".swf",1) >;

      However, nothing shows up. When I tried hardcoding < loadMovie("1.swf",1) >, it works. I've even tried < trace(scene+".swf") >, and the trace result is "1.swf".

      Can anyone correct where I've gone wrong? Thanks!