Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Using MC Tween Add On Question...

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using MC Tween Add On Question...

    Hi All,

    I downloaded the MC Tween extension and things are working really well with it so far! Just have a few questions and I've attached the file:

    1) If you take a look at the file you'll see that when the user rolls over an mc it slides to the right, and holds there until they roll off it. The issue I'm having is that, if I make rollOver area too small when they rollOver, the mc moves and they rollOff... So I have to make the RollOver active area as big as the image which I'm fine with the only issue is that it activates even if it is hidden by another mc... How can I stop this?

    2) Also does anyone know an easier way to slide 5 mc's to the right at the same time easily? Or do I have to tell each one exactly where to be?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Actions Layer says:

    Code:
    #include "mc_tween2.as"
    however, that file is not included in your zip. You will need to attach it as well so we can see what is going on
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD
    Actions Layer says:

    Code:
    #include "mc_tween2.as"
    however, that file is not included in your zip. You will need to attach it as well so we can see what is going on
    Hi sorry .as file is attached now

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Okay, have the files now. Will take a looksee when I have a free oment to do so
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD
    Okay, have the files now. Will take a looksee when I have a free oment to do so
    Hi Blizzard,

    Thanks again! I have another issue now, to make the each mc go back to the origianl position without having to specifiy specific _x & _y values I added this:
    onClipEvent (load) {
    this.originalX = this._x; // store the original position
    }
    , It all worked fine until I added my intro, because the original _x value the mc is hidden this is where it returns too... If you look at the new attached file and roll onto the bars you'll see what I'm talking about

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    I haven't had a chance to look at the files because I can't get to my desktop to open them, LOL so much going on right now..

    But I have a question. What you are trying to accomplish is this: You have 5 "buttons" or MCs whatever, that you want to slide to the right when someone mouses over them, and then again back to the left when someone mouses out of them, yes?

    If this is correct, then why bother with the complicated AS file? If each is a button, why not just make the up/over/down states reflect what you want?

    If they are MCs, why not do your tweens yourself inside the MCs and use AS to tell the movie which frame to go to on mouse over?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD
    I haven't had a chance to look at the files because I can't get to my desktop to open them, LOL so much going on right now..

    But I have a question. What you are trying to accomplish is this: You have 5 "buttons" or MCs whatever, that you want to slide to the right when someone mouses over them, and then again back to the left when someone mouses out of them, yes?

    If this is correct, then why bother with the complicated AS file? If each is a button, why not just make the up/over/down states reflect what you want?

    If they are MCs, why not do your tweens yourself inside the MCs and use AS to tell the movie which frame to go to on mouse over?
    Well I'm using the MC Tween it gives better transitions for tweening, I guess there is probably better ways to do it? Maybe I could still use the tweening but make the code work better... I guess you'll see what I mean when you get to your desktop Ahhhhhh I'm so confused!

  8. #8
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Yes, I see what you mean. However the problem still remains you are using too much coding for a simple thing.

    Look at this: MouseOver Tween

    You will see how mousing over the image and not moving the mouse will make the image slide right and sit. mouse out and it returns.

    3 layers, 2 stop(); codes, and 2 mouse action codes. done.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  9. #9
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD
    Yes, I see what you mean. However the problem still remains you are using too much coding for a simple thing.

    Look at this: MouseOver Tween

    You will see how mousing over the image and not moving the mouse will make the image slide right and sit. mouse out and it returns.

    3 layers, 2 stop(); codes, and 2 mouse action codes. done.
    Ok I have done some thinking... I think this works better, it's a bit cleaner... although still complicated I guess, but needs to be as it will be doing other things later on... Can you see why the red bars don't return to their original position??

  10. #10
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Not 100 percent, but it looks like you have 2 states for the button, pre activated and post activated.

    in the AS file you have 2 functions. The first: ActivateItem, makes the bar move to the right, and then holds it there, and then disables the bar.

    then you have deActivateItem.

    Now the enabled = false in the ActivateItem function concernes me, if you want the button to beable to go back to where it was on mouseOut, then you can't disable it.

    Try setting that to "true" instead of false and see what happens.

    I did notice they return to their position when you click on another one though. Weird.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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