2 Replies Latest reply on Sep 12, 2007 1:34 AM by Obesyana

    Passing parameters to a swf file

      I'm trying to do something that sounds simple but for some reason it is not working.

      I have a simple SWF file that I want to start at a different frame depending on the parameter passed to the SWF file.
      (.e.g. if parameter a, start at frame 20, etc)

      I know the SWF is receiving the parameter properly as I was able to display it through a dynamic text field.
      I'm placing the script on the first frame so I thought maybe I was missing an event handler or something like onEnterFrame.

      The script looks like this:

      var page:String = _root.id;
      onEnterFrame = function() {
      if (page == "a") {
      } else if (page == "b") {
      } else if (page == "c") {
      } else {

      Even a simple gotoAndPlay(frame); doesn't work on the first frame.

      Hi, I've been trying to figure out why this is not working for a while but I can't really find the reason.
      Am I missing an event handler? Or something that needs to load the movie first?

      I am beginner at this so it would be great if somebody can suggest a solution.