Newbie - There has to be an easier way to enlarge a mc and shrink mc on click

First off I'm a newbie, so sorry -
What I am trying to do is make a image enlarge on click and then click it to go back to the original size. I am using TweenLite to achieve this. I am thinking that AS 3.0 code would be easier to do this. I tried it but was coming up with no error it only worked one time. So I was able to get it to work, sort of. Right now, it eases larger but when clicked again it jumps back down to the original size (no easing). I am not asking for you to do the code, unless you want to, I just was wondering if anyone knows where I could research it. I am new to AS 3.0 so forgive me. But, there has to be code for this.
Any help is greatly appreciated. File is attached if you want to see how a newbie can butcher a file.
I am using Flash CS4 ActionScript 3.0

Here is the code for the first frame.
stop();
import flash.events.MouseEvent;
import flash.net.URLRequest;
import gs.TweenLite;
import fl.transitions.*;
import fl.transitions.easing.*;
TweenLite.to(p17_mc, .5, {x:275.2, y:349.4, scaleX:1, scaleY:1});
TweenLite.to(black_mc, 0, {autoAlpha:0});
function main(event:MouseEvent):void {
MovieClip(root).gotoAndPlay("first");
trace ("something good just happened!");
p17_mc.addEventListener(MouseEvent.CLICK, main);
Code for the Second Frame.
stop();
import gs.TweenLite;
TweenLite.to(p17b_mc, 1, {x:250, y:100, scaleX:5, scaleY:5});
TransitionManager.start(blackb_mc, {type:Fade, direction:Transition.IN, duration:4, easing:Strong.easeOut});
function home(event:MouseEvent):void {
MovieClip(root).gotoAndPlay("firstfadeout");
trace ("going to fade out");
p17b_mc.addEventListener(MouseEvent.CLICK, home);
Code for the Third Frame.
TweenLite.to(p17b_mc, .5, {x:275.2, y:349.4, scaleX:1, scaleY:1});
TransitionManager.start(blackb_mc, {type:Fade, direction:Transition.OUT, duration:4, easing:Strong.easeIn});
gotoAndPlay("home");
trace ("going home");
Thanks

Similar Messages

  • Consolidating your library....there has to be an easier way!!

    My external hard drive somehow was renamed from f:/ to g:/, and subsequently now itunes can't find half my music. So, my question is how do you delete all of the files in itunes that have an exclamaton point next to them without doing it manually (which would take hours) so you can add g:/ to the library? As user friendly as apple is, there has to be a way to delete all tracks that itunes can't find.

    OOOooooohhh man, i FEEL your pain. The short answer is...NO. I had this exact same problem a while ago and there really is no way around it. The only option is to consolidate your music, make sure it will never move again, and have iTunes make a whole new library. This of course means that you will need to make all of your playlists over again. I know this ***** but consider the alternative (finding all your songs individually). The other option you may have is if you have your entire library on your iPod, then you could use a program like iPodcopy to makes things right again. Good luck and sorry.

  • There Has to Be an Easier Way ...

    W3C says you should notify a visitor of where they're being
    directed once
    they click a link. For external links, I'm simply placing a
    "double-window"
    icon next to the link. At this point in time, I'm coding the
    image in each
    time, like so:
    <img src="...." width="x" height="x" alt="..."
    title="...">
    It's just getting cumbersome to do this - and I've seen other
    websites use
    this icon technique but the explicit coding of the image was
    not there.
    What's the "known" work-around?
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================

    To elaborate - Thierry - I'm really interested in the
    methodology your
    article demonstrates the potential for. For learners like
    myself - it's a
    bit hard to catch on to what exactly is going on. In the
    code, I don't see a
    way to implement displaying the image when Javascript is
    enabled and to not
    do so if it's disabled.
    Also - how is this relayed to only *certain* links. Looking
    through your
    personal code on your website, the <a> links only
    contain the href="..."
    location - no hooks or anchors such as rel, class, etc.
    If you could elaborate - I'd truly appreciated it, Thierry.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Shane H" <[email protected]> wrote in
    message
    news:[email protected]...
    > Fair enough - but what happens with the length of the
    text changes - the
    > padding would off, no?
    >
    > --
    > Shane H
    > [email protected]
    >
    http://www.avenuedesigners.com
    >
    > =============================================
    > Proud GAWDS Member
    >
    http://www.gawds.org/showmember.php?memberid=1495
    >
    > Delivering accessible websites to all ...
    > =============================================
    >
    >
    > "Thierry | www.TJKDesign.com"
    <[email protected]> wrote in message
    > news:[email protected]...
    >> Shane H wrote:
    >>> Thanks Thierry. I've already implemented a
    Javascript solution for
    >>> pop-ups; however, reading through your article -
    I didn't see any
    >>> indication of how to add the double-window icon.
    >>
    >> It's all over the place
    >>
    >>> Do you have an explanation?
    >>
    >> You set a class to these anchors and then use a
    background image with
    >> padding.
    >> You should also add something in the title of these
    links to let users
    >> know
    >> they open a popup.
    >> Check your JS solution to make sure it degrades
    nicely regarding the
    >> title
    >> attribute value; with JS off, there is no need to
    warn the user that
    >> these
    >> links open in a popup
    >>
    >> --
    >> Thierry
    >> Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    >> The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    >> CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    >> CSS Tab Menu:
    http://www.TJKDesign.com/go/?3
    >>
    >>
    >
    >

  • Has to be an easier way? Rules, playlists

    1) is there any way to copy a smart playlist to another playlist folder and 2) is there no way to create an "or" rule? It seems the "and" operator is the only choice. Why not "Genre contains Rock OR Blues"?
    If you have 15 genre's and want a smart playlist that contains only Rock and Blues, the only way is to do 13 "does not contain" rules? And then there is no way to copy this rule to another folder?
    There has to be an easier way.

    "Playlist is whatever " has been there for years, actually. Here is my most recent playlist I got from another site. It's called Fresh Mix:
    It's a playlist to give you a mix of your new tracks, favourite tracks, and stuff you like but haven't listened to for a while, and it will automatically refresh as you listen to music in iTunes or on your iPod.
    You'll actually need 4 smart playlists to start, and you need to be rating your music with star ratings as well. CHange the days and limits for your listening habits and iPod capacity.
    1. in iTunes create a new smart playlist and call it 'Not Recent'. Select match 'ALL' of the following rules. For first condition set 'Last Played' 'is not in the last' '2 days'. New criteria (click the plus sign), Playlist is Music to make sure no podcasts, audiobooks Movies, etc go into it. 'Limit to 600 Mb selected by least recently played. Select match checked songs, and Live Updating.
    2. New smart playlist 'Not Recent and Rated'. Set match all conditions. First criteria, 'rating' 'is in range ** to ***'. (or whatever rating system makes sense to you). New criteria (click the plus sign), 'Last played' 'is not in the last' '2 days'. Add Playlist is Music. Set 'Limit to 600 Mb selected by least recently played. Select match checked songs, and Live Updating.
    3. New smart playlist 'Recently Added'. Match 'all' of the following rules. Set 'Last played is not in the last 2 days. Add Playlist is Music. Limit to 600 Mb selected by *most recently added*. Select match checked songs, and live updating.
    4. New smart playlist 'Top Rated'. Match 'all' of the following rules. set 'Rating' 'is greater' than 2 stars. Add Playlist is Music. Set 'Last played' 'is not in the last' '2 days'. Limit to 1200 Mb by least recently played.
    5. New smart playlist 'Freshmix'. Match any of the following rules. Playlist is 'Not Recent' + Playlist is 'Not Recent and Rated' + Playlist is 'Recently Added' + Playlist is 'Top Rated'. Limit to 300 items selected by random.
    So there you go! You now have a playlist that plays 20% old stuff, 20% old stuff you like/don't hate, 20% new stuff, and 40% favourites. Of course you can vary the star ratings to suit your own style, and the proportion of each category by changing the size in megabytes of each playlist (in theory).
    If you want you can limit particular genres. If you want to listen to this playlist on the iPod whilst running, exclude classical music and spoken word tracks. To do this add a new condition in each of the 4 feeder lists, and for each condition set 'Genre' 'is not' 'Classical' (or Spoken, etc, and assuming you have all your music tagged like this...)

  • There has to be a better way for Paths & Zooming?

    Hi All,
    Thanks for looking in and poinitng me in the right direction. (Trust me when I tell you I have been reading and watching tutorials)http://www.schoolofflash.com/2008/12/custom-motion-paths-flash-cs4-tutorial/
    I am attempting to create a Tween. with a specific path. All whilst trying to make my 2D assett, or Instance go from one point to other and rotate from one direction like this <---- to half way through the animation Tween then going this direction ----> and then having that Instance grow larger as appears to get closer.   Yes there is a quick point when switching direction of the 2D Instance where it dissapears for a split second. because I cranked up the skew to get the Instance to point (or flip) the other direction or is it the 3D under "Free transform"? I forget now. Anyhow...
    Think  "creating from Template/Advertising/Scripted Snow"  Installing an Instance like a sled that comes from the Right upper mtns across to the Left side weaving and growing in size to give a 3d look as it comes down the mountain zig zagging. -If I lost you just ask.
    I did create this and with great pain. Weeding through old tutorials. Yet they do not give shortcuts. IE: Is there a short cut to make an instance grow on it's path? Instead of doing it frame by frame? As you can do with a path by setting the frame to say number 1 then place your Instance and then move your play head to say frame 400 and then drag your instance to wherever you want it to end up. Then all those frames are created. Albiet the shortest path and with barbaric adjustment of the path itself. 
    I come from AVID editing and if I want an asset to grow I park it in it's "start area and set it's size" then move the play head to the stop point hit 'zoom' set it's finished growth size and it grows smoothly as it moves to it's stop point. No keyframing. Does this flash software have that or must I create my flash video in Premier Pro for that kind of ease? If so ..Will Premier import an SWF form Flash into it's timeline? IF so some steps please.
    I have been learning a few of these softwares I bought CS6 Master Suite and feel like I am new to the whole thing again. I went from GIMP and AVID as an intermediate  to CS6 and am knocked back to a Novice. I have AVID on my desk just waiting for me to go running back to it. LOL However I know if I stick with Adobe I will have more control. Once I learn where and what the shortcuts are. I spend more time hunting a pecking looking for stuff a tutorial rips by as though I am supposed to know where the Pen tool is? Yeah it was buried under another tool. I got it now...
    Regards,
    NetCommercial

    45 views up to date with no answer... OK I got it.
    The frames that you want zoomed can be handled like this. IE: You want frames to go from 10% to 100%. When your Tween layer has been created, select the Start frame or 1st frame and shrink your image to 10% at that key frame. ( I am assuming you know about Transform tool) Next drag your object/Instance to the end point of your path and increase +90% or to desired size.
    That is it.

  • Is there an easy way to switch between ehternet and wifi connection without having to disconnect the ethernet cable?

    Hi All
    Was wondering if there is an easy way to switch between ethernet and wifi connection on Apple TV without having to disconnect the ethernet cable. The reason I ask is that I find it quicker to use my ethernet connection via a Netgear Powerline Home Theatre Set-up to stream Trailers and Movies on the Apple TV, however this is no good when connecting directly to my Mac to stream music or TV shows in iTunes, so revert to the wifi connection that I created on my Time Capsule to do this.
    Would be handy if Apple TV had a menu option where you could manually change the connection type depending on what you were doing, as per above scenario.
    Cheers
    Brett

    brettfromseabrook wrote:
    Hi All
    Was wondering if there is an easy way to switch between ethernet and wifi connection on Apple TV without having to disconnect the ethernet cable.
    Unfortunately not.

  • Please tell me - there absolutely MUST be an easier way to 'duplicate' a page! A simple ⌘D use to work in my older version - HELP :'(

    Please tell me - there absolutely MUST be an easier way to 'duplicate' a page! A simple ⌘D use to work in my older version - HELP :'(

    Sorry, but no.  Pages 4 is still in an iWork folder within your Applications folder.  You can use that to get work done.
    Please also let Apple know at:
    http://www.apple.com/feedback/pages.html

  • HT1688 Is there an "easy" way to either 1) cut and paste a large block of text from the Messages app or 2) access this text through a computer?

    Is there an "easy" way to either 1) cut and paste a large block of text from the Messages app or 2) access this text through a computer?

    Tap and hold the text you want to copy, then tap Copy.

  • There has GOT to be a way to sync Entourage on one mac with Entourage on...

    There has GOT to be a way to sync Entourage on one mac with Entourage on another mac! So far, the only way I can find to keep my mail synced on two macs using Entourage is to kill the Daemon on one machine and copy over the contents of the Microsoft directory to the other machine, but this is NOT a sync, it's a replacement. This will not work if email has been exchanged on both machines before the copy can be done. So what are we supposed to do? Thx for any help on this perplexing problem.
    coocoo

    Wait, I'm confused. Chronosync is just a fancy filecopy no? I think i tried it once moons ago just for folder syncing. it worked, but i did not see much advantage of that over just dragging the files. It still won't sync the individual emails right? (ie. add new, leave old alone). But u say using an imap server will help there? I don't even know what that is, but I guess I can install it on one of my macs right? Or do I have to pay to subscribe to one (like mac.com or whatever that thing is)? not an option here in Nepal. Well thanks for ur help so far!

  • TS1363 is there an easier way to connect my ipods and phones so that my devices are recognised in my itunes?as i am not ver good with pcs..thanks

    i am having trouble with my laptop/itunes finding my devices?i am unable to transfer anything from my itunes to devices as i dont really no what i am doing?is there an easier way to sort this so that my devices can be found and recognised?thankyou

    Rather than creating your report directly from a SQL statement use the "Sql Query (PL/SQL Function Body returning Sql Query)" option and re-write your code in PL/SQL. PL/SQL gives you greater control and allows you to test the "null" values and add where clauses to your SQL query based on whether or not a value was selected in the SELECT list.
    For example, I have a report parameter screen that has a state drop down list that returns a value of -1 if no state is selected. I can, therefore, code:
    IF :P6_STATE_CODE != -1 THEN
    query := query + " WHERE state_code = ' ||
    :P6_STATE_CODE ;
    END IF ;
    I have a more complete example if you would like to send me an email ([email protected])
    Jeff

  • Is there an easy way to copy a clip and stack it on top of the clip I copied it from?

    I know I can copy it at the end of the sequence and then move it on top of the clip I want, but am thinking there MUST be an easier way.
    Thanks

    Yes.
    Double click the clip in the Timeline and it opens in the Viewer.
    Drag the Viewer clip to the Supeimpose area of the Canvas.
    Make sure the Playhead is on the clip you require before starting.
    Al

  • There Has Got to Be A Way to Do This

    Is there any way to change your ipod preferences without plugging it in. If i plug it in, i will lose stuff immediately because it is set to auto update, i need to change that setting...please share your knowledge

    Here is the offical apple article on that. I think it's a hassle.
    Prevent iTunes From Automatically Updating Your iPod
    You can just have iTunes > Edit > Preferences up on the screen, and the iPod won't update when you plug it in.
    And here is yet another easy way
    http://discussions.apple.com/thread.jspa?messageID=1611119&#1611119

  • HT5228 How to find out if your Mac has the Flashback Trojan EASY WAY!!!!

    http://www.cnn.com/2012/04/06/tech/web/mac-flashback-trojan-check/index.html
    Just did it works great and they also have a post on how to remove it as well.

    Here is an even easier way, it will remove most infections too:
    I have created a user tip and malware checker/removal tool: https://discussions.apple.com/docs/DOC-3271

  • Easier way to rename music files and locate them with iTunes? Help, please!

    A while back, I used a 3rd party software (Yamipod) to move all my music off of my video ipod to a new computer. Yamipod converted all of my music file names to read "album name - artist - song name", instead of how iTunes imports music "01 song name". Yamipod also created a sub-folder "1" for each album the artist has in my iTunes music folder.
    For example, when in my iTunes music folder, if I click on Justin Timberlake, it will show the two albums I have "FutureSex" and "Justified". If I click on "Justified" it shows a folder "1" which I have to click on to get to the song which is then named "Justified - Justin Timberlake - Rock Your Body" instead of "06 Rock Your Body"
    When in my iTunes folder, a lot of my music cannot be found (even though it is not technically lost), so I manually have to click through all my iTunes music folders to "re-attach" the file so iTunes can then play the music.
    Here's what I am looking for:
    1. I want to rename all of my music files back to iTunes format of "track # song name" (i.e. 06 Rock Your Body) without manually retyping every song title.
    2. An easier way for iTunes to "find" all of my music instead of me manually pointing to each and every file. I have all the music, I just have to manually show iTunes where each of the 1600+ songs is located, which is a long and tedious process that I do not have the time or patience for.
    I would greatly appreciate any advice on how to manage this without going bonkers.
    Thank you!!

    Well, the one problem you have is that for the "Move" function, the source file input should be wired to the output of the "Build Path" function, not to the duplicate path out of the "List" function. Also, you need to pass the error cluster around with a shift register. Otherwise you will not catch an error that may have occurred during one of the file rename operations.

  • There just has to be an easier way

    I will admit it. I am new at this stuff. I want to present a couple of newlyweds with a DVD of their wedding.
    I shot the footage and captured the video into FCP using the HDV1080i FireWire Basic capture preset. Did the edits then exported the thing into compressor. I used the apple > Best Quality 90 minute setting. After 15 hours or so I loaded the result into Studio Pro and had a look. Horrible combing(mouse teeth whatever)in the motion areas and especially high contrast areas. (White dresses and all that)
    Someone, on one of the half a dozen forum sites I looked at suggested that I create a new timeline using the ProRes422 preset then copy and paste the old sequence into the ProRes422 timeline...which I did.
    He went on to say that I should export the ProRes422 timeline footage into compressor and apply the following settings:
    Apple> Best Quality 90 minute setting.
    For Audio (Dolby Digital Professional 2)
    Inspector > Encoder > Data Rate 224Khz
    Frame Control > on
    For Video (MPEG-2 6.2Mbps 2-pass
    Inspector > Encoder > Video Format > PAL
    Frame Rate > 25
    Aspect Ratio > 16:9
    Field Dominance > Top First
    Frame Controls > on
    Well I did all that and 15 hours later it still looked the same to me.
    Seems that if I continue to make changes at the rate of one every 15 hours the newlyweds will have had kids, got sick of each other and be divorced by the time I get things good enough to print to a DVD.
    Can some person out there who understands what it is like to be a frustrated student give me a few clues to piont me in the right direction?

    First, I suggest you experiment with only a couple minutes of your project until is looks right. You'll save a lot of time.
    Plastique45 provided a workflow recently that really improved my output results. His post is in this thread:
    http://discussions.apple.com/thread.jspa?messageID=7519012&#7519012
    The things that made the biggest improvement were his suggestions involving Compressor settings. Specifically, the bit rate settings and the Frame Control settings.
    Good Luck.
    Larry

Maybe you are looking for