Tween or Motion path for blank keynote with animated stars?

I create star particle effect from this tutorial: http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/ and got help from this discussion: http://forums.adobe.com/message/5518425 in order to get what I wanted. My code is:
var starsArray:Array = new Array();
var myTimer:Timer = new Timer(50);
myTimer.addEventListener(TimerEvent.TIMER, addStars);
myTimer.start();
addEventListener(Event.ENTER_FRAME, moveStars);
function addStars(e:TimerEvent):void
          var star:Stars = new Stars();
          star.x = stage.stageWidth / 2;
          star.y = stage.stageHeight / 2;
          star.alpha = Math.random() * .8 + .2;
          star.scaleX = star.scaleY = Math.random() * .8 + .2;
          star.xMovement = Math.random() * 10 - 5;
          star.yMovement = Math.random() * 10 - 5;
          starsArray.push(star);
          addChild(star);
          star.cacheAsBitmap = true;
function moveStars(e:Event):void
          for each (var star:MovieClip in starsArray)
                    star.x += star.xMovement;
                    star.y += star.yMovement;
                    star.alpha -= .01;
                    star.scaleX = star.scaleY -= .01;
                    if (star.scaleX <= 0)
                              kill(star);
function kill(star:MovieClip):void
          starsArray.splice(starsArray.indexOf(star), 1);
          removeChild(star);
However, I wanted to move the star particles around. The problem is that the star isn't on the screen, but is called in the actions in the blank keynote. I don't know what I should do next to get the result. I looked up online for tweens and motion paths but all i see is that they required the star to be right on the screen, I think? I also heard something about the compiled clip but I don't know how I should go about creating one and using it to move around the stars while it's animated with all the actionscript. All I wanted is for the star particles to float around the screen (on a path that I can draw out if possible).....

Each star is created in the addStars function. Its position is set in the first two lines:
     star.x = stage.stageWidth / 2;
     star.y = stage.stageHeight / 2;
So, to move each star to a new location when it appears on the stage, you'll need to change the x and y property values for each star. One simple way to do that is to use that same Math.random() function.
Try changing those first two line to:
          star.x = Math.random() * stage.stageWidth;
          star.y = Math.random() * stage.stageHeight;

Similar Messages

  • [ER] Jdev should check paths for blanks at startup

    Hi,
    Jdeveloper should check the relevant paths for blanks (and other problem making characters) and raise a warning message to the user.
    There are new posts nearly every week in this forum which are caused by blanks in jdev path or similar things.
    regards
    Peter

    Hi,
    though it sounds like a plan, I'd prefer the bugs to be filed and fixed. Since errors propagate from one release to the next, chances are that if we would ask our users to adapt their development environment to known issues in JDeveloper, probably in 2015 you will have to move your desk to south at sunrise, shout cheers when the splash screen launches and press any key every five minutes.
    I too use blanks in my install path for the purpose of detecting issues and file them accordingly. I would like to ask anyone detecting a path related issue to track it down so it reproduces and report it.
    Frank

  • Using Light as Motion Path for Trapcode Particular

    Hi,
    I am trying to make an animation for a project, but I cannot figure out some things.  I am trying to create the effect that a person is throwing money out the back of a car.  I have the live shot of the person in the car, but I cannot get the money to behave how I want it to. I am trying to use the Trapcode Particular, but I can't get the particles to follow any motion path.  When I set the settings to motion path, it prompts me to create a light.  I create a light, but can't figure out how to make that light have an actual path rather than simply being a spot light.  Please help! I'm sorry if I don't make any sense, please ask me to clarify if you need it.
    Nicole

    KWNWY wrote:
    I am trying to use the Trapcode Particular, but I can't get the particles to follow any motion path. ...
    Because you are doing it all wrong! If you wanted to use the Motion Path option in the Air physics model, your light would have to be exactly named like that - Motion Path 01. It's not what you want, though. I'm 100% certain of that. You are looking to create a conventional light emitter, which is a whole different thing. For that, your light should be named Emitter (or whatever other prefix you define in the plug-ins Options/ Settings panel). Then you must set the emitter type to Light. If you use spot lights and want your money to emit directionally, you need to set the emitter to Directional as well. Apart from that, Particular will use the light's color, cone angle and intensity to colorize and eject the particles. After that, you can animate the light in 3D space to whatever you need it to do.
    Mylenium

  • Multiple motion paths for my 3 photos

    I’ve been trying to use key frames and motion paths to create a particular effect, but am not really getting anywhere.
    This is what I’m TRYING to achieve using 3 different photos.
    (Step1) Photo 1 appears full screen, zooms out as it reduces in size. Ends up at a position occupying left third of screen.
    (Step2) Cut to Photo 2 full screen, does the same thing – zooms out – reduces in size (in the process revealing small Photo 1 on left). Ends up in middle third of screen.
    (Step3) Cut to Photo 3 full screen – does the same thing – zooms out – reduces in size (in the process revealing small Photo1 on left and small Photo 2 in middle). Ends up on right hand third of screen.
    However, although I have been able to complete these as individual moves on each of the 3 photos, they remain as 3 separate clips in the timeline.
    I can never get the small Photo 1 to be revealed under Photo 2 as it zooms out, or in turn the small Photos 1 & 2 to be revealed under Photo 3 as it zooms out. After a day on this, I’m obviously doing it quite wrong. Maybe it can’t be done in FCP5.
    Any advice appreciated.
    Robert

    Are you putting them on three different tracks?
    Yes, on V1, V2, V3 – but no matter where I put them or how I staggered them in relation to each other, it doesn’t work. Each track totally covers the others up – no “transparency”.
    Before I possibly went crazy I decided to start fresh.
    First, I trashed all my FCP preferences, double checked everything in FCP, and repaired permissions. In FCP I created a new clean “test” project with just the 3 video tracks as before. I also got a friend a little bit familiar with FCP to watch exactly what I was doing. I re-did the three motion paths. Same 3 photos, same moves in each.
    It worked perfectly!
    I don’t know what’s happened. My first attempt was obviously quite wrong somewhere. My old G4 has been a bit cantankerous lately with FCP. It's all very weird.
    Andy - I’m giving you the points, because you forced me to seriously forget about trying to do a fix - instead, redo the whole thing. I’ve lost a day, but it’s been worth it.
    Regards
    Robert

  • Script for saving GIF with Animation Loop Endless

    Hi,
    I am searching for a way to use  "save for web" in a Photoshop CC Script.
    I already found how to use the "save for web" using Script, but now i am stuck, because i cannot find any information on how to set
    that the animation, i want to save as a Animated GIF File, can be set to loop endless.
    I already tried to search in all the docs i found about scripting, but there is not a single information about saving gif with animation loop endless...
    thanks,
    Philipp

    When you do use "save for web" and select GIF, on the bottom right, the loop mode can be selected. But i think i wouldn't matter to me if it's being set before saving the image.
    I already tried to run the script, but somehow
    "charIDToTID('Ordn')" for example won't run. Is this the same as charIDToTypeID? because i found charIDToTypeID is a function, but charIDToTID is not...
    also the third line from the end, one of the functions seem not to work, i think....
    But already you given me a real good answer to what i may try to search for, since i did not actually know that this is set within the timeline, i always used the option within the "save for web" dialog on the bottom-right.
    I Solved my own problem ...
    I just made Photoshop CC with a script log everything, then gotten to this:
    function setLoopForever() {
    var idsetd = charIDToTypeID( "setd" );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idanimationClass = stringIDToTypeID( "animationClass" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref2.putEnumerated( idanimationClass, idOrdn, idTrgt );
        desc5.putReference( idnull, ref2 );
        var idT = charIDToTypeID( "T   " );
            var desc6 = new ActionDescriptor();
            var idanimationLoopEnum = stringIDToTypeID( "animationLoopEnum" );
            var idanimationLoopType = stringIDToTypeID( "animationLoopType" );
            var idanimationLoopForever = stringIDToTypeID( "animationLoopForever" );
            desc6.putEnumerated( idanimationLoopEnum, idanimationLoopType, idanimationLoopForever );
        var idanimationClass = stringIDToTypeID( "animationClass" );
        desc5.putObject( idT, idanimationClass, desc6 );
    executeAction( idsetd, desc5, DialogModes.NO );
    Works perfect!

  • Relative path for Download directory folder.I created a firefox profile and i wanted to use this profile in multiple machines.I wanted to use a relative path for download directory with respect to the profile folder.I need this on Linux machines

    I have a use case where I need to use different download directories with different firefox profiles.I need to use this profiles in multiple linux machines.
    I need to have a relative path to my download directory with respect to the profile folder.
    Ex: I have a selenium test which opens a website and downloads it to my machine.I want this downloaded file to go into some specific folder relative to this profile folder.How do I do this??

    That is not a practically empty xinitrc - that file only needs one line: exec WM.  Other things are entirely optional, and some of them very useful, but I'd encourage you to stick with the simplest xinitrc that will do what you require.
    Is slim involved?  Probably.  That is the source of many problems.  But to start narrowing this down, I have 3 suggestions:
    1) temporarily (at least) change your inittab to default to runlevel 3 ... actually, is it currently set to 5 or 3? if it is currently 3 that would explain why slim doesn't start.
    2) at a tty in runlevel 3 use "xinit" instead of "startx".  Startx is fine most of the time, but it is essentially just a complex wrapper for xinit.  That complexity can often iadd useful functionality, but it *always* makes troubleshooting more difficult.  So for now just use a vanilla 'xinit'.
    3) remove dbus-launch from your exec line in xinitrc.  This is done by console-kit so it is redundant and potentially problematic.  Further BOTH of these are taken care of by slim, so I'd even suggest getting both a jump start on being ready for slim and simplifying troubleshooting by removing both of them.  Just make that line "exec openbox-session"
    Edit: adding one more:
    4) temporarily switch out openbox-session for openbox.  I suspect the reason feh's setting of the background is getting overridden is due to a script or setting in openbox's autostart settings - many of these are only invoked when "openbox-session" is called, while "openbox" starts *just* the window manager itself.
    Last edited by Trilby (2012-10-03 17:30:36)

  • Is there a fix for a problem with animation using nested graphics (parent/child)?

    I am not sure if its because of my lack of experience with 2D programs or not, however I am having issues with nested graphics and animation. I am normally a 3D user and as such grouping and parents are very key to how things are able to move. The problem I am having (just as an example because its hapening in multiple areas) is I have an arm of a character that is grouped 3 times. The upper arm is the parent, the lower arm is grouped inside the upper arm, and the hand grouped inside that, all of which were converted to graphics. I did this so the lower arm and hand follow the upper arm, and the hand follows the lower arm. This would be a common sense thing to do in 3D however when it comes to animating the hand, usually when double clicking a graphic it takes you to the same frame for the child as is selected with the parent (if the parent is on frame 20, double clicking the parent should take you to frame 20 of the child). I should also add that all graphics have the same frame count.  The problem being when i double click, the child does not have the same frame count and throws off everything done to the child in relation to the parent's animation. I am not sure if its something i did, or a problem that exists inside flash. I have a deadline coming up and this has been a bad problem to have last minute so if anyone has advice on the matter, that would be greatly appreciated!
    I also tried using the bone tool in flash, and besides no obvious way of re-adjusting the bones that are attached to the graphics (short of deleting them and trying again), this was difficult as well. I looked up ways to adjust the position and it seems you can only adjust the graphics themselves, not the bones. Normally this wouldn't be a big deal if it didn't start skewing the graphics out of place randomly. 
    I hope this isn't too confusing and I would certainly appreciate some feedback!

    Would you mind reposting this question over on the Flash Professional forums?  This forum is primarily for end users, the Pro forums will get you in touch with a wider developer audience.
     

  • Bad sound when recording presentation in keynote with animation

    When recording audio for a presentation, in a slide with some animated objects the recorded voice explaining the slide sounds crasping or double with lot of noise while the animation is taken place, after the animation the recording it's ok again.

    I have it set to 44.1kHz and "4ch-24bit". The only other option for the bit depth is "encoded digital audio".

  • Select the Motion Path of a PageItem

    Does anyone know a way to select (or access) the Motion Path of a PageItem with animation applied using ExtendScript?
    I know it appears as a graphic line in the document, but I'm wondering if there's any connection between the animated item and the graphic line that represents the motion path.
    item.animationSettings.motionPath (and motionPathPoints) give the relative numbers, but I'd like to get my hands on the actual InDesign object. Any ideas?

    I'm not sure if you can do this from a script. From C++, you have. IAnimationFacade.h
      /** Given an interface for an item with a motion path, create a new page item from the motion path points and select it.
      @param pageItemRef is the UIDRef of the page item to created a motion path item from.
      @return the UIDRef of the created item.
      @see SetPageItemAnimationMotionPath
      virtual UIDRef CreateAnimationMotionPathPageItem(const UIDRef& pageItemRef) = 0;
    P.

  • Drawing a Motion path

    Hi fellows!!  I would like to ask please, if there's any way which allow me to draw an arbitrary line with the pencil tool for instance, and then tell to flash to use this path as a motion path for an object on the stage by creating a motion tween.  I know that this can be achieved by classic tween, but I look for a way to achieve the same effect but by using the new animation model of motion tween.  Cheers!!  Atar.

    Thanks for your response, but I'm already know that I can edit a motion path after it was created. But this process is harder than to draw the desired path with the pencil tool. I look for a way to a priori draw the path as I want.
    Cheers!!
    Atar.
    ב-24 ביול 2011, בשעה 17:04, kglad <[email protected]> כתב/ה:
    after creating a motion tween you can edit the path so it matches what you want.
    >

  • Motion Paths In After Effects CS6?

    Hello,
    I was wondering if you could draw a motion path for objects to follow. I have multiple objects(12) that all need to follow on the same path. Do I have to animate all of them individually, or can I draw a path? These objects are NOT masks. They are text imported from Illustrator(CS6).
    If Microsoft Powerpoint can do it, then surely Adobe can...
    Thanks,
    Jack Reynolds
    Reynolds Films 2014

    You can do this in several ways. The easiest is with Parenting. Next would be to tie position of one layer to position of another layer with an expression. You can also draw a mask path on a layer, select the mask in the timeline, reveal the position property of another layer, set a new keyframe for position to guarantee the mask path will be used as a motion path, and paste.
    See this thread for details and a screenshot.
    http://forums.adobe.com/message/6084453#6084453
    These are AE basics. You can also find more information by using the Search Help field at the top right corner of AE.

  • Multiple motion paths in CS5?

    Hi-
    I'm new to Flash and have a question. I'm creating a Helium atom for my technology class and am trying to get 2 electrons to circle the nucleus. I've successfully created a classic motion path where one electron circles the nucleus. How do I create another (duplicate) motion path for the other. I'm not sure this can be done, hence the question.
    Any suggestions for the newbie would be greatly appreciated.
    Thanks,
    Mark

    Select the frames where your motion path is being placed on, right-click and select "Copy Frames" and paste them on a new layer

  • FCX & FCP:  Keyframing and Motion Path

    I need to find out if keyframing and motion paths are accomplished pretty much the same way in FCP as in Express. Someone is going to help me with keyframing and motion paths but works only with Final Cut Pro. Anyone know if that will be a problem?
    Thanks.
    Lee

    Your FCP person should know how to do this in FCP.
    I believe he does, and I think I can figure out that part of it (eventually) in FCX.
    The "walking forward" means that, at the same time the image is scaling up, the right front lower corner of the image moves forward, then the left front lower corner moves forward, etc giving the appearance of the image "walking." I don't know if that makes any sense. What's more, I don't even know if it is possible in FCX.
    It was suggested I start the image as a square or rectangle and change it into a trapezoid giving the illusion of its "moving." While I understood it as a theory when explained, actually doing it in FCX is another story.
    Lee

  • How can I assign a period (instead of B) in Keynote for blank screen so I can use a Logitech R800 presenter? An option in next version?

    I have recently bought a Logitech R800 presenter which works very well with Keynote on a MacBook Pro. The start/stop presentation key does not work but that can be easily fixed by assigning F5 to "Start presentation" for Keynote in the keyboard system preferences. The remaining issue is that the blank screen button sends a period (".") which works as a prompt for a blank screen in PowerPoint, but in Keynote it causes the slideshow to end. Keynote uses the letter "B" for blank screen.
    How can I assign a period (instead of B) in Keynote for blank screen? Some sort of work around would be very useful as I often use blank screen in my presentations and much prefer Keynote to PowerPoint.
    Perhaps it will be an option in next version of Keynote?
    Thanks

    As far as I know you can not change these keystrokes without changing the Program files. I am sure it is possible there, but I have no idea where to even start to tell you where to find it.
    Your best bet it to go to the Keynote Menu>Provide Keynote Feedback and let Apple know you would like the option to change them.

  • Advanced motion paths in Keynote?

    Is it possible to create advanced motion paths in Keynote?
    I want to make a motion of a circle moving from left to right while the circle is growing bigger.
    Is that possible in Keynote?

    Not currently. (If you watch Steve's presentation at Macworld, you'll see effects like this, and since it is known that he uses Keynote for these events, we may see this capability at some point in the future, but when is unclear.)

Maybe you are looking for

  • Services for Object/store Business documents in AS01

    HI We have a requirement to enable the services for object to attach documents to Asset master. We have made configuration in Trx OAC2,OAC3 for object type BUS1022. The ICON is appearing for AS02 & AS03 but not for AS01. We are 6.0 version How can I

  • How to make totem display subtitles of xvid movie

    I am informed that xine-lib and totem are enable to load subtitles of a Xvid movie, but I just can't turn it on, anybody has successed? I usually have two kinds of subtitle, one is srt format, the other is idx and sub format.

  • Web Dynpro Model help

    I have a Web Dynpro application in which a user will enter information and click a button to call an RFC.  The RFC then returns data to a new view.  The user can make changes to this view, and will hit a button to call a BAPI.  I am using a custom co

  • Slow searches in large file ...

    It is almost unusable to use the find function as is in my large file, as the program won't let me complete my text in the search field once it starts looking for the first string of text i type. I have enabled the whole words option, but this doesn'

  • Error in MR90

    Dear, While take print out for credit note in MR90 below error are appearing ''Document /2 (CoCd ) not output due to missing entry in table RSEG'' Message no. M8307 Regards Aamir