A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: I don't get it...

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Location
    NYC
    Posts
    2

    I don't get it...

    Hello Flash Gurus,

    I am having trouble understanding what this means

    Scene=MAIN, Layer=actions, Frame=5: Line 2: Operator '=' must be followed by an operand
    if (_framesloaded = = doneLoading) {

    I get this message in an output window whenever I test the movie, this is originally What I wrote in the action script for the loading bar

    var doneloading = _totalframes;
    if (_framesloaded = = doneLoading) {
    gottoAndPlay("start");
    }else {
    gotoAndPlay("load");
    }

    thanxs

  2. #2
    FK's Wave Pimp kamyab's Avatar
    Join Date
    Jan 2002
    Location
    Orange County, CA
    Posts
    1,210
    It's because you have a space between = and =
    Try (_framesloaded == doneLoading) instead of (_framesloaded = = doneLoading)

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7
    try this:

    var doneloading = _totalframes;
    onClipEvent(enterFrame){
    if (_framesloaded = = doneLoading) {
    gottoAndPlay("start");
    }else {
    gotoAndPlay("load");
    }
    }

    something like that, do an event thingy or a on(blah blah) thingy. maybe thats teh prob

  4. #4
    FK's Wave Pimp kamyab's Avatar
    Join Date
    Jan 2002
    Location
    Orange County, CA
    Posts
    1,210
    Originally posted by skillswitprops
    try this:

    var doneloading = _totalframes;
    onClipEvent(enterFrame){
    if (_framesloaded = = doneLoading) {
    gottoAndPlay("start");
    }else {
    gotoAndPlay("load");
    }
    }

    something like that, do an event thingy or a on(blah blah) thingy. maybe thats teh prob
    The part highlighted in red is wrong. Again, it needs to be ==, not = =

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center