swf start point

Out of context: Reply #5

  • Started
  • Last post
  • 7 Responses
  • ctrlRmB0

    You could put something like this in the swf...
    /////////////////////
    startFrameFunc = function(fr,actn){
    if(actn == "play"){
    gotoAndPlay(Number(fr));
    }else{
    gotoAndStop(Number(fr));
    }
    }

    startFrameFunc(startF,startFActi...
    /////////////////////
    then in the html you add a query string to the end of the swf...
    /////////////////////NOTE you have to do this in 2 places/////////////in both the object and embed tags
    myswf.swf?startF=10&startFAction...
    /////////////////////

    any parameters you put in the query string are available to level 0 of the swf when it is placed on the page... i put that startFAction thing in there in case you want to control whether it plays or stops.

    hope it works for you

View thread