Tween in two directions?

I am trying to create a burst using tweens, but I can't seem to get it to work. I can get the clips on the stage but I can't control them to go in different directions. What I tried:
Generate a random number to choose a direction
var posneg:Number=Math.floor(Math.random()*(1+1-11))+11;
generate a random number for distance
var randNum1:Number= (Math.random()*(1+75-25))+25;
use posneg to choose a direction
if(posneg<5){}
less than 5 would got to the left, poitive would go right
I cant figure how to get box_mc to tween the distance or randNum1 in one direction than the the other.
anybody?

How are you doing the tweens, via the timeline or via actionscript?

Similar Messages

  • I can't work out how to get type on a path in two directions.

    Hello All
    I am wanting to put type around a circle in two directions like this.
    However to get this far I've had to create two separate paths as shown. is there a way to put it on a single path?  The reason obviously being so I can resize and get it looking right in one operation...

    Stix Hart wrote:
    You still have to adjust the type itself separately but grouping sure makes it a lot easier for sizing.  I didn't think of it because I was struggling to put them on a single path, the usual trees & wood situation!
    No, you don't. Re-read my post. You can use the sacle tool or Proportionally scale the group with the selection tool by holding Ctrl/Cmd + shift whle you drag a sizing handle.

  • How to use snp heuristic with two direction transportation lanes?

    Dear Expert,
    now, i want to run snp plan for two location 1000 and 2000 with heuristic method.
    at the difference point of time, i run difference snp plan. for example, this month i run snp with transportation lane from 1000> 2000 for product A113 and A124. but in three next month i want to run snp with transportation lane from 2000-> 1000 for A113, A124 and A224.
    so i don't know how to config snp to do this. 'cause i know with two direction transportation lane the system will have a loop.
    please help me.
    thanks so much.

    Hello,
    If you just use location heuristic, the system is OK with the cycles. You can just run it.
    Even if you use network heuristic, the heuristic can also run. The only problem is that the low level code may not be correctly determined, which cause the sequence of the locations incorrect.
    And you also have the following options:
    1)Block the unused the transportaion lane when you want to switch to the other way.
    2)Use BADI /SAPAPO/PWB_SOS method PWB_USEX_SOS to filter the unused transportation lane.
    Best Regards,
    Ada

  • Two-directional Mapping

    I need to make use of a data-structure for mapping an integer with instance of Object and vice-versa. Hashtable would be an ideal solution, but first time I need to map the integer to Object and the second time I have to map back the Object to integer. So we can call it two-directional mapping. We could use Hashtable, but it would be one directional mapping, right? Also it might not be v efficient if the table is large...
    Data-structure that I need should provide me functionality something like this:
    Object obj1 = data-structure.get(intValue1);
    Object obj2 = processObj(obj1);
    Integer intValue2 = data-Structure.get(obj2);
    I would like to know if there is any data-structure that Java provides for this two-directional mapping. If not, then what is the best way to go abt it?
    Thanks.

    Please don't cross-post.
    http://forum.java.sun.com/thread.jspa?threadID=627170

  • Sharer folder issue between two directly connected PC

    Dear All, I have an issue regarding folder sharing. need your help to resolve this. the scenario is
     two PC's are connected directly to share a folder, to open *.mdb file of a accounting software. this problem start when I moved windows XP PC's and installed windows 7 64 bit PC's. there is no compatibility issue as I run the same software on other
    locations
    PC A (192.168.1.200) has that *.mdb file and PC B (192.168.1.100) has to open this file through a network.
    when I configured the folder share  and network setting, all done well and PC B can connect with PC A and that software work well. After two days, when we start the software at PC B, its not responding when  it try's to open that database file.
    while analyzing, I found out that PC B can open the share folder of PC A but when open the desired database folder explore starts not responding and need to quit it by force. I also tried to share another folder of PC A but results are same.
    PC A run the software with out any problem.
    It seems like network issue, so I check the cable with cable tester, found it good, than I check the connectivity by ping command, it giving me <1ms time. but still change the connectors.
    the hard part is that, this share folder issue arises 3-4 days a week and 2-3 days it works well, and this is happening from last 28 days. I mean, one day we start the the PC B and use the software via network, the next day we start the PC B and we don't
    able to use the software,..strange.
    I also change the cable connection from cross to straight as both new PC's have gigabit Ethernet but results are same.
    I already contact with software company, as per them its network issue as we can use the software on local PC (PC A) and there is no error messages popup.
    please help me out in this regard.
    Thanks Tanveer

    Hi,
    Firstly, we need to identify is this file sharing or netowrking problem. If you can access to the shared folder and modify its files which locate at PC B through PC A, it indicates file sharing works with no problem.
    After that, we need to check if its networking or software itself problem when reading the .mdb file.
    Put the .mdb file at PC A, then using the software open it for test. If no problem, we need to use Process Monitor to capture the access trace of the software process, we should be able to find some clues.
    You can access to the link below to download Process Monitor:
    https://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    How to capture a Process Monitor trace:
    http://blogs.msdn.com/b/dswl/archive/2010/01/10/how-to-capture-a-process-monitor-trace.aspx
    Learning Example:
    Using Process Monitor to Troubleshoot and Find Registry Hacks:
    http://www.howtogeek.com/school/sysinternals-pro/lesson5/all/
    Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Roger Lu
    TechNet Community Support

  • Just bought nano 6th gen, it won't turn in all directions, I have a wrist band for it, but the display only turns in two directions, not all 4. What do I need to do?

    I just bought an iPod nano 6th gen. I bought one earlier and returned it bc of the same problem. So I am thinking there is something I have missed. It's advertised to turn with you no matter which way you turn the nano. Mine only turns up or down. I have a wrist band so I can wear it as a watch, but I have to hold my wrist funny to read it bc it doesn't turn like a normal watch would be facing. Please help!

    Using two fingers, you can rotate the screen on the Nano 6th Generation in any direction you wish.
    http://www.youtube.com/watch?v=zq3tKK4Qg-U
    i

  • Can't properly create motion tweens between two keyframes in flash CS4

    I'm trying to create a flash animation of a wing flapping using three keyframes. The first keyframe is at frame 1. I then created a second keyframe at frame 5 by pressing F6, and then I created another keyframe at frame 10 by pressing F6. At frame 5, I rotated the wing so that it is going up. Frame 10 is the same as frame 1.
    frame 1:
    frame 5: frame 10:
    I right clicked on a frame between frames 5 and 10 and then clicked the first option, "Create Motion Tween"; I then performed the same action on a frame between frames 1 and 5. When I preview or test the movie, there is no transition between the frames. From frame 1 to 5, there is supposed to be a transition of the wing flapping up. From frame 5 to 10, there is supposed to be a transition of the wing flapping downwards to its initial position. Instead, when I test the movie, the wing remains still until frame 5 and instantly goes to its "wing up state" and when it gets to frame 10, instantly goes to its "wing down state".
    Here is what the timeline looks like after I've made the changes mentioned above:
    I'm using Flash CS4 to make the animation but the tutorial I'm following is using Flash CS3. I know I can use other methods to create the motion tween but I want to know why the method I'm using isn't working.

    I did switch to classic tweening. I pressed F6 to make a keyframe at frames 5 and 10. I then right clicked on a frame between frames 1 and 5 and then clicked
    "create CLASSIC tween"; did the same thing between frames 5 and 10. I'm not seeing the transitional frames between frames 1 and 5 that the tutorial showed.

  • Tween properties in CS4

    Hello All,
    I am rusty.  Not using flash for a while. Just installed CS4.
    I was using CS3 and Flash 8 (macromedia).
    I am working on a file that was created in maybe flash cs3 or perhaps flash 8, from another developer.
    It shows tweens on the time line.  The developer created fade tweens, with names like
    "Transform 1" etc.  The fades are on symbols (the developer converted  jpegs to a symbols)
    from 100 percent to 0 percent alpha.  I can see the fade go from 100 to 0, but I am
    unable to see the "alpha" properties when I select the symbol or the tween in the timeline.
    The tween is displayed in the timeline as a line with an arrowhead at the keyframe when the
    visibility goes to zero.  I do not seem to be able to see the properties for the tween, i.e. 100 in keyframe 1, to 0 in keyframe 20.
    No information shows in the CS4 "Motion Editor".
    I created a tween in a layer that I added, and it seems that CS4 no longer show the lines with arrowheads, but
    uses a different color for the tween range.  And I get the motion properties in the "Motion Editor"
    I am sure it is pilot error here.  Since I just installed CS4, etc.  How can I view tween properties, like
    alpha on a symbol created in an earlier version of Flash?
    Thanks for any help,
    ewholz1-mac

    Hi there,
    There is a new motion feature in CS4, which is why you can see properties in the motion editor for these new tweens but not the old ones. In CS4, you are able to animate the properties of a single object, whereas in earlier versions of Flash you tween between two instances instead of animating properties of a single object (and as such, the Motion Editor cannot be used for the older style of tweens). So for the classic tweens, you are limited to the way Flash has always worked for those tweens (looking in the PI), and new tweens afford you the usage of the Motion Editor for examining tweened properties.
    For more info on the differences between the two motion models, and migrating between the two, see http://www.adobe.com/devnet/flash/articles/motion_migration_guide.html.
    Jen.

  • Basic Motion Tween not working?

    I created a graphic symbol in Illustrator and copied-and-pasted it into Flash. I placed a keyframe further in the Timeline and scaled the symbol down on that frame. I went back to the first frame and right clicked on it and chose to create motion tween, though nothing visually happened between the first frame and last one like it did in previous versions, and the the symbol did not not animate. What did I do wrong?
    Thanks.

    Adobe has made it a wild goose chase. For me, it only works if I don't have a second keyframe. Baffling, why should it behave so differently than classic tweening?!
    People like me have been hitting their heads against the wall for years trying to get this to work. Absolutely asinine.
    For the record and to repeat my huge gripe, it behaves nothing like classic tweening, where you define an end point and then "tween" between them. You can end up doing that, but you can't create the tween between two existing keyframes (even if they have the exact same single object in them).
    So this is what's working for me now:
    1 - Create a timeline layer with one single object in an initial keyframe (black dot indicates a keyframe). No more than one object can be tweened in one layer, but Adobe will not give you any userful feedback about this while you're working.
    2 - On that layer, farther out in the timeline where there are no frames (what is the name for these "non-frames"?), right click where you want the tween to end, and select "Insert frame". (You'll have a black dot keyframe, a row of grey empty frames, and white box as a blank keyframe.
    3 - Right click anywhere on the active part of that timeline and choose "Create Motion Tween", even though there is nothing to tween yet. After you do this, the span of frames should turn blue and the blank keyframe white box should disappear. Congratulations, you've created your first motion tween, but Adobe doesn't want you to know that. You need to actually go to individual frames and move the object around to get tweening to happen, as I outline in steps 4 and 5. Assuming your object is where you want it in the starting position, I would recommend going to the last frame to determine the final position next. Then you can do any number of middle positions (each frame can have a new position).
    4 - (optional step, helps with positioning on the timeline) Scrub the timeline and find a frame where you want the trajectory of your object to change (at the very minimum, you'll want to move the object for one frame, otherwise there will be no motion)
    5 - Move the object on the stage.
    6 - Repeat 4 and 5 for as many frames as you want.
    If you're not seeing motion paths that chart the motion, play with the little buttons on the bottom of the timeline, such as Onion Skinning. Lastly, just move the playhead left and right. If you're not seeing your object move, then blame Adobe some more, because this is far from immediately intuitive.

  • GTX 970 vs. 980 - do perf benchmarks exists comparing these two with all else being equal?

    Do stats exist comparing these two directly in APP (all else being equal)?
    Have a defective 970 and considering a 980, but wondering if it's worth the extra cost. In other words, does the extra cost yield significant real world performance gains in APP?

    I don't believe so, however the price difference is pretty big. Where I live it's around €350 for the 970, €450 for the 780 ti and €550 for the 980. It would seem that (at least for the time being) the 780 ti is on par if not slightly faster than the gtx 980. I am not entirely sure how much upcoming drivers and better future support for Maxwell might help it swing in favour for the 980, however I do believe the 970 to hit a solid sweet spot. It might depend on the rest of your system configuration, was the defective 970 DOA or did you manage to run it for a while to see if your setup managed to max out the gpu?
    Keep in mind if anyone reading this starts to consider choosing between the 780 ti that it does use more power and doesn't come with hdmi 2.0.

  • Can't get motion Tween to work - just upgraded from a previous version to CS4

    I am attempting to create a motion tween between two keyframes.  The image is the same...the first keyframe has the image set to an alpha of 0 and the second keyframe some 20 frames down the timeline is set to an alpha of 100%.  The keyframes are on the same layer.  The image has been transformed to a symbol.  Yet when I double click between the two keyframes and create the motion tween so the image will fade from 0 to full view at 100% nothing happens.  I don't see the familiar arrow that normally indicates a motion tween between the two keyframes.  I've created this transformation a thousand times before but don't understand what is different in CS4 that isn't creating the tween.  When I double click on a frame in between the two keyframes it indicates I can remove motion tween so, it makes me believe the motion tweening has been set but, it isn't.
    I am quite frustrated and don't understand if I haven't set something in the preferences so the tweening will work or just what is going on.
    Help!

    And here's the article that was written specifically to update your skills with all the changes between the earlier tweening and new tweens in CS4:
    http://www.adobe.com/devnet/flash/articles/motion_migration_guide.html

  • Tween a Group of Groups

    How can I tween a Group of Groups to scale?
    I use my Pshop groups in a similar fashion to how Flash uses Display Object Containers. I have one group containing the rest of my groups serving as a 'master group' so I can perform global transformations to all of my layers. For some reason, it stopped letting me scale.
    Using frame animation (yes I'm using frame on purpose, not motion), I would like to get the master group to tween a scale and tranlate. I can get it to translate it's XY coordinates, but for some reason the scale doesn't work anymore. It was working before but not now. I even tried converting the group to a smart object but that doesn't help, and that's fine, I try to avoid smart objects where possible.
    Does anyone know how to get this to work or what I might have done wrong to the file?
    Thank you.

    Sorry, I can't make heads or tails of the gist of your post.  I also confess I have never gone anywhere near Flash, so that reference is lost on me.
    Further, I looked up tween in two dictionaries, and I only got this:
    tween |twēn| (also tweenie |ˈtwēnē|)
    noun
    short for tweenager .
    and:
    tween
    (twn)
    n.
    A child between middle childhood and adolesence, usually between 8 and 12 years old. 
    [Blend of teen and between.]

  • Motion tween question in cs5

    Hi,
    I'm trying to create an animated movie clip button in AS2 using CS5. The button should fade in/out as the mouse moves over and away from the button.
    Lets say my frame rate is 30 FPS. When  I insert a motion tween on frame 1, the timeline is automatically extended by 30 frames. I then select frame 30, select the button and change the alpha value to 30%. When I drag the head marker back and forth, the button fades in and out smoothly exactly as I wanted.
    But I want to create a motion tween between frame 1 and 10. So I select frame 10, insert a keyframe, select frame 5 and insert a motion tween. Then I select frame 10, select the button and change the alpha value to 30% like before. When I drag the head marker, there is no fade in/out. When the head marker is exactly over frame 10, the button is faded, but when it is on any frame between 1 and 9, it is normal.
    How do I fix this problem?
    thanks for your help
    Rashinkar

    If I'm following correctly, you are trying to tween between two keyframes instead of within a single tween span. If you want to create a tween between frames 1 and 10, insert a keyframe on frame 1, and then insert frames to frame 10 instead of creating a keyframe (press F5 on frame 10). Then right-click one of the frames or the object and choose Create Motion Tween. Then move the playhead to frame 10 and change the alpha.
    Hope that helps.

  • Animation Tweening is producing a transparent to opaque transition

    I have two frames with the start and end of my animation. My two layers contain a transparent background and an opaque object. When I choose the tweening option and add my specified number of frames, then test the animation, the start of the animation is 0% opaque and slowly becomes 100% at the end.
    My two layers used for start and finish are opaque. I have all the checkboxes checked by default for the tweening, and I can't figure why I'm getting a fade-in effect for my animation.
    What am I missing here?
    David

    Solved it. I found a great YouTube video tutorial about this. He showed that I needed to DUPLICATE my first frame with only one layer of content in the file, not having a separate layers of content to tween between two existing frames.
    Now I understand what was going wrong. My tweening was only working on one layer, and it was going from nothing to opaque.
    Here's the video link if it will help others.

  • Trouble with Motion Tween (Can't find answer)

        Hello,
    I've been having trouble using a motion tween in an animation I'm creating. I have an object (a cartoon character's talking head) that I'm trying to move along a motion tween. At one point I want to make him stop moving for a beat, then continue. However, when I have two keyframes in the same place, the object will move up and down between the two keyframes that have the same position and rotation. When I click on the tween's path, I don't see anything that would make the object move (at least I don't think so, it's a small movement),
    I looked around and couldn't find any fixes on the interwebs. However, it does seem similar to the "boomerang effect" of motion paths in AE. Especially since it appears to only happen when I make the motion paths into a curve.
    I'm using Flash CS4.
    Any help would be greatly appreciated!!

    i'm not arguing with you.  i'm just telling you how to prevent tweening between two frames.
    if you want to do it your way, do it your way.  but, while it may seem obvious to you that there should be no tweening between two keyfames with identical content, it's not obvious to flash especially when you add a motion tween between those two identical keyframes.
    that said, you should double check the two keyframes and make sure the object's properties are indentical (using the properties panel).

Maybe you are looking for

  • Problem while creating JAR file for my swing application

    Hi... Using my swings application I am trying to Run different software�s . My program is Running fine from command prompt. If I create JAR file It is giving error like �Failed to load Main-Class manifest attribute from .jar� Can anybody help me to c

  • High pitched whine from netbook when power is plugged in. Does not charge when computer is on.

    I have a specific power / charging issue On HP Mini Netbook 210-1077CA. Windows 7 starter ( I think) With the computer OFF ... When I plug in the power it gives a high pitched whine. Red battery light is on, showing it is charging. (computer is off.)

  • Connecting Devices to TV

    I have the Toshiba 40E220U model television and am having issues connecting multiple devices to it. My satellite box hooks up via composite A/V cables (I believe I had the option of an HDMI cable but I didn't have an HD TV when I got the satellite se

  • Synching iCal with iPhone calendar through iTunes on Snow Leopard

    Hi, I've seen some threads on in similar matters but none of them related to this problem: I can't seem to sync my iPhone's calender and iCal throught iTunes. I CAN'T sync the two using iCloud, because I'm using Mac with Snow Leopard, which doesn't s

  • Queue processing in receiver idoc adapter

    hi all i am doing file to idoc scenario and i want to use queue proceesing option can anybody tell me the entire process regarding queue processing.