A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Converting A/S for buttons to MCs

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    27

    Converting A/S for buttons to MCs

    hey,

    download my file. it works great, just how i want it to work.

    Right now, all the pictures are buttons. How can i change the buttons to MCs and still have my effect work?

    I tried putting my buttons into a MCs, but then my effect would stop working, i think maybe it's because my A/S right now is meant for a button, so putting that button into a MCs makes the A/S not work? i'm not really sure.

    Thanks.
    Attached Files Attached Files

  2. #2
    illusion luvenny's Avatar
    Join Date
    Sep 2004
    Location
    In your mind
    Posts
    303
    why would you want to change it?
    why MC? why not button?

  3. #3
    Junior Member
    Join Date
    Oct 2004
    Posts
    27
    LOL!

    why?

    i'm trying to do a mouse over/out effect that requires you to use MCs (not buttons!).


    So....do you know how to change it to MCs and still have the effect work?

  4. #4
    illusion luvenny's Avatar
    Join Date
    Sep 2004
    Location
    In your mind
    Posts
    303
    actually i do (or so i guess).

    first thing first:
    code:

    on (release) {
    setProperty(_root.c, _x, "0");
    setProperty(_root.c, _y, "158.7");
    }
    on (release) {
    setProperty(_root.cc, _x, "0");
    setProperty(_root.cc, _y, "158.7");
    }
    on (release) {
    tellTarget ("mth") {
    gotoAndPlay("Jan");
    }
    gotoAndStop(2);
    }




    why would you need to separate those 3 mouse release event?

    what is "mth"? i can't find you mth movieclip.

    my guess is when you change to movieclip, the reference to "mth" is different. remember, "this" keyword in the button script will refer to the movieclip who contains the button, but "this" in movieclip script will refer to itself.

    and why would you still use tellTarget anyway? you can change it to mth.gotoAndStop(2);
    if you change to movieclip you can try _parent.mth.gotoAndStop(2);
    i think that will work.

    hope that helps.

  5. #5
    Junior Member
    Join Date
    Oct 2004
    Posts
    27
    hey,

    thanks for that. this was a 'pre-made' movie that i found here on flashkit...

    http://www.flashkit.com/movies/Scrip...4457/index.php

    I cut out all the stuff that i didn't need. i am not very familiar with A/S, i didn't want to mess around with the A/S at all because i was afraid i was gonna mess it up or something. do you think you could convert just 1 of the buttons to a MC so i can see how you did it?

    Thanks.

  6. #6
    illusion luvenny's Avatar
    Join Date
    Sep 2004
    Location
    In your mind
    Posts
    303
    actually i kinda having problem finding certain objects in your movie like i said. i'll try to look into it again and post if i managed to do it.

    in the mean time maybe some good soul can help.

  7. #7
    illusion luvenny's Avatar
    Join Date
    Sep 2004
    Location
    In your mind
    Posts
    303
    I just checked the link to the original file. and i realised quite a major changes had been happening there. and I might trying to shoot down a bird that doesn't exist!

    your variable names, frames name, most of them need to be taken out.

    sorrie but with the .fla you supplied i can't hunt down the bird.

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