Creating a sprite

ok here is the deal. I want a flock of birds to fly accross
my web page. so I went to poser and rendered a bird in flight as 60
separate frames in ping format so there wouldn't be any background.
I then imported all the frames into the flash library and created
60 different layers each one with one of the frames of the bird
flying. When i play the movie the bird looks pretty good. I do not
however know how to turn these 60 layers into one flying bird. How
do i convert the layers into a sprite that I can then duplicate and
move around? something that can be exported so that I can use it on
other projects and pages?

look under help docs for "symbols" - the basic building block
of Flash - if there's one thing
everyone learns first in Flash - Symbols is it.
Open Library and from drop down menu create a new symbol -
you will want to select and copy frames
of your image sequence and paste frames into this new symbol
- now you can drag instances of this
symbol to the stage multiple times.
Chris Georgenes / mudbubble.com / keyframer.com / Adobe
Community Expert
shadowrelm wrote:
> ok here is the deal. I want a flock of birds to fly
accross my web page. so I
> went to poser and rendered a bird in flight as 60
separate frames in ping
> format so there wouldn't be any background. I then
imported all the frames into
> the flash library and created 60 different layers each
one with one of the
> frames of the bird flying. When i play the movie the
bird looks pretty good.
> I do not however know how to turn these 60 layers into
one flying bird. How do
> i convert the layers into a sprite that I can then
duplicate and move around?
> something that can be exported so that I can use it on
other projects and pages?
>

Similar Messages

  • Creating Sprite Dynamically

    I don't want to place sprites on stage at design time I want
    to create them dynamically say on mouseDown event; is this
    possible.
    Rite now what I am doing, deleting the object from stage and
    leaving the empty sprite on score window then my following script
    works but I want to create empty sprite on the fly.

    If you have a behaviour named "doSomething", and you want
    your sprite to
    be in channel 1 using a member named "button", you would add
    it like this:
    channel(1).makeScriptedSprite(member("button"))
    sprite(1).scriptInstanceList.append(script("doSomething"))

  • Create sprite in Flash Pro?

    You can create a movie clip within the Flash Pro interface and then use it with actions script. But how do you create a sprite element in the Flash Pro interface (by that I mean creating it without using action script)?
    Best regards,
    Åsa

    While creating the movieclip, export for actionscript with the base class as Sprite as like above.

  • Creating sprite sheets with Photoshop CC

    Hi,
    I am creating a sprite image that is 200x 125px that has 8 images accross and 5 images down with each image on its own layer and each image is a max size of 25px x 25px. 
    How do I have Photoshop align the layers to have each image centered within its individual grid square?
    Thanks

    In the Move Tool settings (see pictures) you can use the align function. Select more than one layer to align layers to each others, you can also make a selection and align to it. Short answer, try it out and if you need more help let us know...

  • Performance and Sprite objects

    I've written an application in Flex 2 that consists of
    several accordions containing custom canvas objects, and it is
    having performance problems.
    I'm running the application within IE 6.0 under Windows 2000.
    The application loads an XML file and uses the data to create
    custom Sprite objects in the canvases. Each Sprite consists of two
    swf images that are loaded using the Loader class, a small
    rectangle created by using the Sprite graphics property, and a text
    label. In addition, each Sprite is connected to one or more other
    Sprites by a line drawn using the Sprite's graphics property. The
    Sprites have the capability for being dragged, and for being
    highlighted when clicked.
    My problem is performance; these Sprites perform slower than
    a similiar program that I wrote in ActionScript 2.0. From what I
    understand, Flex 2.0, ActionScript 3.0, Flash 9, and the new Sprite
    class are supposed to deliver greatly improved performance, but my
    new application seems worse than the old one under Flash 7 using
    MovieClips. The more Sprites on the screen, the worse the
    performance, and the lines seem to contribute to the degradation.
    There is way too much code involved to include in this
    message, so I'm looking for general info. Is there some basic point
    I am missing?
    The performance is also degraded when triggering instances of
    the Menu and Popup classes. When running the Task Manager during
    the application, I've noticed that both Memory Usage and GDI
    objects increase whenever I display a Menu or Popup. Both Memory
    Usage and GDI objects go up and down, but there is a steady
    increase in both metrics as I continue to use Menus and Popups. As
    far as I can tell, I am disposing of both types of objects
    properly, but it appears that their allocation is remaining in
    memory.

    I've written an application in Flex 2 that consists of
    several accordions containing custom canvas objects, and it is
    having performance problems.
    I'm running the application within IE 6.0 under Windows 2000.
    The application loads an XML file and uses the data to create
    custom Sprite objects in the canvases. Each Sprite consists of two
    swf images that are loaded using the Loader class, a small
    rectangle created by using the Sprite graphics property, and a text
    label. In addition, each Sprite is connected to one or more other
    Sprites by a line drawn using the Sprite's graphics property. The
    Sprites have the capability for being dragged, and for being
    highlighted when clicked.
    My problem is performance; these Sprites perform slower than
    a similiar program that I wrote in ActionScript 2.0. From what I
    understand, Flex 2.0, ActionScript 3.0, Flash 9, and the new Sprite
    class are supposed to deliver greatly improved performance, but my
    new application seems worse than the old one under Flash 7 using
    MovieClips. The more Sprites on the screen, the worse the
    performance, and the lines seem to contribute to the degradation.
    There is way too much code involved to include in this
    message, so I'm looking for general info. Is there some basic point
    I am missing?
    The performance is also degraded when triggering instances of
    the Menu and Popup classes. When running the Task Manager during
    the application, I've noticed that both Memory Usage and GDI
    objects increase whenever I display a Menu or Popup. Both Memory
    Usage and GDI objects go up and down, but there is a steady
    increase in both metrics as I continue to use Menus and Popups. As
    far as I can tell, I am disposing of both types of objects
    properly, but it appears that their allocation is remaining in
    memory.

  • How to delete objects created with new

    Hello,
    I am having a problem creating a behavior or script to delete new sprites created in channels. I have a behavior script that creates new sprites using the following (simplified) script:
    First, a Beginsprite creates a gChannel_list and assigns a beginning gChannel value. pSprite is used to establish the sprite that in the mousedown is clickon.
    on Beginsprite me 
      gChannel_List =[]
      gChannel = 70
      pSprite = sprite(Spritenum)
    end
    In the mousedown the gChannel is incremented and the newly created channel is added to the gChannel_list.
    on Mousedown me
      gChannel = gChannel + 1
      theChannel = addat(gChannel_List,gChannel)
      themember = pSprite.member
      channel(gChannel).makeScriptedSprite(themember, point(80,160))
      sprite(gChannel).width = thememberW
      sprite(gChannel).height = thememberH
      sprite(gChannel).rotation = theMemberR
      sprite(gChannel).moveablesprite = 1
      sprite(gChannel).ink = 36
    etc
    After creation of several sprites based on the the gChannel, the following globals, for example, are returned.
    -- Global Variables --
    gChannel_List = [71,72,73,74]
    gChannel = 74
    My problem is that I am unable to delete these created gchannel sprites with a lingo command. Deleting them from the list, for example, using deletat(gChannel,1), does nothing to remove them from the stage (they do disappear from the list). And while I can display their attributes such as width [n=getat(gChannel_list, x); put sprite(n).width], nothing seems to relate to deleting these gchannel sprites.
    How is it done?
    Hope this is enough information. If not, please let me know. I can provide whatever you might need. Please help.
    Rod

    Sean,
    DUH! Didn't even know that a 'removeScriptedSprite()' command existed! Very logical. It works perfectly. Thanks again so very much.
    Rod

  • How to create pdf

    i am trying to create a pdf.... of data i requested thorugh php........ can u tell me how to achieve this........
    or any other method by which i can get the output in a file so that i can easily print it and save for my records.......

    if your trying to print a 2-3 thousand row datagrid, you have a project that may be too ambitous for you at this time:  hire me or someone else to do this or if you want to proceed on your own:
    1.  read about the printjob in the help files
    2.  learn how to create datagrid instances using actionscript
    3.  learn how to assign data to your datagrids from 2. using actionscript
    4.  learn how to use the flash drawing api.
    then to print:
    1. start your printjob using the start() method.
    2. using the pageWidth and pageHeight properties of your printjob
        a.  create a sprite and draw a white fill with those dimensions
        b.  create a datagrid that's centered on 2a. and assign a block of data that fits in the datagrids display (with no need for scrollbars)
        c.  add the datagrid to your sprite
        d.  add your sprite to the printjob (using the addPage() printjob method)
    3. repeat 2a-2d for each block of data in the original datagrid until all data has been assigned to a datagrid and all datagrids have been added to sprites and all sprites added to the printjob
    4.  execute your printjob's send() method.

  • How do I convert a jpg to a Sprite

    Just want to turn a jpg into a Sprite dynamically.

    When you load an external jpg, your Loader.content is of type flash.display.Bitmap. I don't believe you can convert this Bitmap to a Sprite.
    Why do you need it to be a Sprite? Bitmap is a display object.
    If you definitely need a Sprite, all i can think of is to create a Sprite and add the Bitmap to your sprite using Sprite.addChild.

  • Best way to handle Sprite animation

    Hi all,
    Comments on overheads (memory/performance) on the following techniques?
    These are overly simplified, but you get the idea?
    Bitmap.visible
    // Assume we have a bunch of sprites already in memory as bitmap data
    var spriteData : Vector.<BitmapData>;
    // Now we create a sprite for each 'frame' of animation
    var bitmaps : Vector.<Bitmap> = new Vector.<Bitmap>();
    var bitmap : Bitmap;
    for (var i:int=0; i<spriteData.length; i++){
         bitmap = new Bitmap( spriteData[i] );
         addChild(bitmap);
         bitmaps.push(bitmap);
         bitmap.visible = false;
    // Now when we animate we simply set bitmaps visiblity
    public function gotoAndStop( frame : int ):void{
         bitmaps[ currentFrame ].visible = false;
         currentFrame = frame;
         bitmaps[ currentFrame ].visible = true;
    BitmapData replacement
    // Assume we have a bunch of sprites already in memory as bitmap data
    var spriteData : Vector.<BitmapData>;
    // Now we create a single sprite
    var bitmap : Bitmap;
    addChild(bitmap);
    // Now when we animate we swap bitmap data
    public function gotoAndStop( frame : int ):void{
         bitmap.bitmapData = spriteData[ frame ];
    I haven't performed this test on mobile yet - just wanted to get thoughts first.  Obviously if the animation has a lot of frames then the top one has a huge overhead, but is there a performance hit to swapping the bitmapData of a bitmap?
    Cheers,
    Peter

    This page has a good review that may be helpful:
    http://blog.starnut.com/flash-to-ios-performance-tests/

  • Program to Create Game Images

    What are some good programs? I don't really need a 3d imaging program, just want images that look nice. Like, planet graphics and space ship graphics. I have tried The Gimp, but I have windows, and the dang thing crashes every time I try to save something. Is there anything similar to The Gimp? I just really like all of the functionality that it provides for the user. All help is greatly appreciated.
    ReptileKing234
    A voice of reason in a world gone mad

    I work with graphics all the time and I can tell you that If you are looking for easy backgrounds (mountains, lakes, clouds) or props (trees, rocks, mountains) etc. Get Bryce 4 or preferably 5. Anyone can use it
    (even amateurs). My RPG backgrounds and props are done with Bryce 5. Bryce is relatively inexpensive (you will get more than your money's worth).
    Another (possibly the best) 2D imaging software is Adobe Photoshop but it is horribly expensive (you may check to see if there is a demo version)
    It's not only for editing, I create many sprites using combination of filtered shapes (like 90 possible shapes) to make masterpiece-looking spaceships and stuff. There are dozens of free plugins once you have Photoshop like "Eye Candy 4000" which can add all kinds of effects to images like flaming sprites, furry sprites, water creation, wooden textures, melting sprites and like 2 dozen more. What's even more useful is that Photoshop has a filter that allows you to take a tile (say a grass tile) and make it "seemless" in the sense that when you tile it in Java using AffineTransform, it is impossible to make out the individual tiles (Awesome for RPGs)

  • CS6 Sprite Sheet animation alignment puzzle

    Hey all, I greatly enjoy using Flash CS6's Generate Sprite Sheet tool since it's much much quicker than exporting all the sprites and using TexturePacker (though I wager TP would provide far better optimization). One problem I seem to have is aligning different animations to the same origin - which isn't the origin of the sprite (top left corner).
    Say my character Jim has two animations:
    Run (small sprites, as he runs in place)
    Jump (short and tall sprites, and a bit wider than the Run)
    I currently generate a sprite sheet by highlighting both clips and right clicking. This gets me a perfect Sprite Sheet with both animations and their respective names (based on MC name). The Run and Jump frame sizes are different, because the Jump sprites are taller than the Run sprites -- this all makes sense.
    What doesn't is that there's zero information on how those two animations should be placed such that Jim can go from playing his run animation and then his jump animation with his feet in the same place, despite the fact that if you inspect either of those clips Jim is standing right at Flash's little origin point at the start of both.
    Sure, the data file (JSON in my case) has all the offsets for placing the individual frames in the right place, but how do I align Jim's feet from one set of frames to the next without having to do it all by hand? To date the only workaround I've found is to dump all the animations into a single timeline such that they all take the same frame size, but this is TERRIBLE for managing sprites and animations since it gives all the frames the same name as the combined timeline.
    What I really need is another set of numbers in the Sprite Sheet data file that tells me the frame x & y offset from Flash's movieclip origin. I have a suspicion this doesn't exist and is impossible.
    At a loss here other than aligning each animation's frame by hand, which may have to be done every time an interal sprite changes size.
    Thanks for any insight, none of the Adobe pages or demos go into any depth other than creating a sprite sheet of a single image or animation.

    Yes, I understand how to make animations blend together, but my question relates to the technical side of how sprite sheets are generated.
    When I generate a sprite sheet from multiple animation movieclips each animation has a unique frame size that Flash calculates and codes into the data file, and that frame size is not the size of document but the size of the smallest frame that can fit all of the sprites in the animation. I can't control this frame size or define a region within the document that is the frame size. Each animation within the sprite sheet could have a different frame size.
    I'm interested to know if there is a way to view, generate, or export the data that would relate one animation frame to another so that a character (Jim) could be standing at the movieclip origin in the Run animation which is size A and also be standing at the movieclip origin in the Jump animation which is size B, and not only are A and B different sized frames, but none of the corners are coincident. Since it doesn't do this currently I'd have to manually code the offsets of each animation to a common origin instead of being able to use the one that's already in Flash.
    I don't see how any of the default data that is exported along with the spritesheet PNG could relate that info and I'm very curious.
    (I could do it by putting every animation within the same movieclip, but then the spritesheet tool is pretty useless since it'd all be one animation)

  • How do you manipulate a scripted sprite?

    After creating a sprite using makeScriptedSprite() I want to
    control its width. As soon as I attempt to change the width the
    sprite ceases being visible. I’ve traced the sprite’s
    position and scale before and after I transform the width, and it
    appears to change width without changing position. Any
    thoughts?

    Try setting the height in addition to the width. I seem to
    remember a
    bug where sometimes the height will be set to 0 if it is not
    specified
    when changing the width. Something like that.

  • Revealing sprites dynamically

    Hi,
    I've adapted the built-in behaviour 'Turn towards mouse' so
    that a ruler appears on my stage when the 'r' key is down and the
    user clicks and holds the mouse button down. It rotates around the
    point at which it was placed, and follows the mouse as long as the
    'r' key (and mouse button) is down. What I want to add to this
    behaviour is revealing the ruler image dynamically as the pointer
    drags away from the point of origin. In other words, the finished
    effect will be to click anywhere on the stage and effectively
    'draw' a ruler in the direction and to the length desired. Can
    anyone point me in the right direction?
    Many thanks,
    TzK.

    it works now. - thank you. oh man. lingo is soo
    time-consuming if you don´t do it regularly... :(
    but at least i´m able to be pleased with the little
    successes....
    that´s the code that worked for me, if someone else
    should be searching for this:
    vFolder = the moviePath --startupFolder
    gFolderList = baFolderList(vFolder) -- list subfolders of
    startupFolder
    gFolderPosList = [point(100, 100),point(100, 200),
    point(100, 300), point(100, 300), point(100, 300), point(100, 300)]
    -- erase all fields on startUp to avoid thousands of fields
    later.. ;)
    repeat with vEraser = 1 to (the number of members of castlib
    "internal")
    if member(vEraser, castlib "internal").type = #field then
    member(vEraser).erase()
    end if
    end repeat
    repeat with vFolderName in gFolderList
    vFieldMember = new(#field) -- create new field
    vFieldMember.name = vFolderName & "member" -- give field
    same name as the folder has
    vString = ""
    put RETURN & vFolderName after vString
    delete char 1 of vString -- initial RETURN
    vFieldMember.text = vString -- put name of the field/folder
    into field
    vSprite = new(#sprite) -- create new sprite (necessary for
    displaying on stage)
    sprite(vSprite).member = member(vFieldMember) -- fill
    sprites with field-members
    actPos = gFolderList.getPos(vFolderName) -- temp. shortening
    of that listPos-thing
    channel(actPos).makeScriptedSprite(member(vFolderName &
    "member"), gFolderPosList.getAt(actPos))
    end repeat

  • Images for sprite

    Hi guys,
    I would like to create a user interface for my application and i am looking for some ready image that i could use to create some sprite.
    Does any of you know some web site where i could find these "ready" images?
    thank you in advance...
    antonio

    I need an environment like a landscape, people walking and maybe the sunset.... exactly i dont know because i would like to see some of them before deciding....
    I did some search in google but i found really a few of them.....
    Do you know where i could find them?

  • Printing database content, or creating a pdf from it

    Gidday guys
    Today I'm researching using AS3 AIR to format and print data from a database.
    It needs to...
    - take the data, and format it from a selection of page formats I present
    - either print it to the printer, or save it to a pdf
    I'm wondering if someone with experience can please nudge me in the right research direction to answer...
    - what's the process for taking data and formatting it into an object to be printed of turned into a pdf?
    - is the object you make for printing a sprite? ie for multi page printing, do you create multiple sprites that contain your data formatted a particular way, and then create a multipage document out of them.
    Cheers for your guidance.

    No that won`t work. AlivePDF uses its own method of embedding fonts (if I remmeber correct you can only use ttf not otf font formats). AlivePDF is not exactly well documented or much used. Its technics are a little "arcane". It was created by the same Guy whose brainchild was Stage3D so you can imagine how complex it is for us mere mortals. A good start is this little blog .
    I also can see why Adobe (who is his boss) isn`t exactly highly motivated to make AlivePDF too much of a Acrobat Double ;-)

Maybe you are looking for

  • How much space to backup my mac mini

    My mac mini was running on 512 GB's I've increased to 2GB How much space do I need to do a full backup before upgrading? I thought  2GB usb would be enough, but I obviously figured wrong.... advice?

  • Changed Router - Can't Setup Wireless printing

    I recently changed my internet router. i did have my printer setup with wireless printing, now i cant connect to the new router.

  • Time and date notation

    Hi, is there a way to change time to a 24 hrs notation instead of using the AM and PM? And also I would like to use the european way of date notation day/month/year instead of the american way month/day/year. Any help appreciated! Ernest

  • SSO with Custom LDAP

    This is the landscape :- Web Application / Portal at Oracle Web Center Suite (WCS). SAP BO 4.0 Authentication using Custom LDAP & SSO with Trusted Authentication. Used OpenLDAP for authentication via RadiantOne VDS as the proxy. Activities : Authenti

  • Slow Start on Safari 4.0.3

    Safari stats very slowly on my account but not on my wife's account - same machine! It takes 25 seconds for me to start Safari, on her account it takes 3 seconds. Why? I have browsed the forums and based on posts here have found very clear advice fro