A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Help on movieclip scripting

  1. #1
    Senior Member
    Join Date
    Sep 2003
    Posts
    974

    Help on movieclip scripting

    help... (of course, i'm not genius at actionscripting) sorry...

    i can't seem to get the events right for movieclips... and my AS is wrong...

    on mouseover, it moves to 400, _x-wise...

    then it's supposed to move back to 100 when i hover again..

    can anyone try checking this? it's in mx.
    Attached Files Attached Files
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You need 2 "==" in a comparisom if statement...

    if (this._x == 100)...

    But as coded, your clip will first move to 100, then move from 100 to 400 and so fourth.

  3. #3
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    gee wizzz.... how could i have forgotten? *bonks herself on the head*

    thanks!
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    herself? Didn't realize that!

  5. #5
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    oh, dear....

    i apologize.. i think i do have to say it clearly... i'm a girl...

    i'd prefer "gal", but i might hear something nasty...

    thanks, oldnewbie... bytheway!

    how can i get the movieclip to act like a clip that will bring you to the next frame?

    i tried using nextFrame, but it doesn't work...

    what actionscript should i use to have the movieclip go to the next frame? i have placed a stop(); on each and every frame...
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Why not "mxgal" then as a handle?

    Don't quite understand your question... This testmc .fla only has one frame?

    Got to get back to my Christmas cleaning...

    Catch you later!

  7. #7
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    christmas cleaning? why? you have a dirty closet?

    ...men... (just kidding!) ..phew... it seems like i feel better that ppl know i'm a gal... wel, i guess i could drop this account, have it smashed and bashed, then create mxgal!

    well, i mean, that i'd have 20 frames, each frame with a stop AS, and then i want to have a movieclip that, when clicked, will play the next frame...

    aw, well... i guess i'll have to wait til later... =)
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    on the first frame of your movie...

    code:

    stop();
    _root.mcWord.onMouseDown = function(){
    _root.nextFrame();
    };



    You don't necessarily nead a stop action on each frame, since nextFrame is not a play action... It goes to the next frame and stops.

  9. #9
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    thanks! i'll do that..
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

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