The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Help with basic flash animation (solved)

RankenphileRankenphile Passersby were amazedby the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
edited February 2007 in Help / Advice Forum
I'm trying to create a looping movie clip symbol of an animated GIF in Flash MX, and for some reason I can't get it to repeat.

I've already built the .gif, a four-frame looping animation that cycles just fine. I "IMPORT TO LIBRARY" as normal, it sets it up as a four-keyframe animation that plays just fine, but no matter what I try to do, I cannot get it to automatically loop.

I know that it is possible, but I use flash so rarely that I forget the basic things like this. Can anyone help?

links:
Animated sprite I'm importing
Screenshot of Flash

8406wWN.png
Rankenphile on

Posts

  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    bumping back to top. Anybody familiar enough with Flash to help with this?

    Rankenphile on
    8406wWN.png
  • Corrosive MonkeyCorrosive Monkey Registered User regular
    edited February 2007
    I'm no expert but can't you in a keyframe at the end put some actionscript in telling to go to a certain frame in this case the first one

    Corrosive Monkey on
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    I'm no expert but can't you in a keyframe at the end put some actionscript in telling to go to a certain frame in this case the first one

    I've done that, and it works for the movie clip itself, but once the movie clip is placed onto the main stage, it will not animate at all. It just uses the first frame of the animation and stays static.

    Rankenphile on
    8406wWN.png
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    last bump

    fingers crossed

    thanks

    Rankenphile on
    8406wWN.png
  • skress1skress1 Registered User new member
    edited February 2007
    I haven't used flash in a few years but I think when you publish your file you can then select to loop the animation. It's located under the HTML tab. Then next to "Playback" check the box for Loop.

    skress1 on
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    skress1 wrote:
    I haven't used flash in a few years but I think when you publish your file you can then select to loop the animation. It's located under the HTML tab. Then next to "Playback" check the box for Loop.

    that works for the entire video, but I'm only trying to get the single "symbol", in this case the animated gif, to loop and play when brought to the main stage.

    Thanks, though.

    Rankenphile on
    8406wWN.png
  • GodfatherGodfather Registered User regular
    edited February 2007
    Although won't help you as of right now, I do have a friend who's very skilled in a variety of programs, Flash I believe to be one of them.

    I could explain your situation to him and see what's up come tomorrow whenever I meet up with him.

    Godfather on
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    That would be a huge, huge help. Thanks. I've scoured the tutorial sites and done everything I can think of in the program, but I just can't seem to get it to work. I'm sure I'm missing something very simple, but I can't fucking figure it out, for the life of me.

    Rankenphile on
    8406wWN.png
  • ArbitraryDescriptorArbitraryDescriptor Registered User regular
    edited February 2007
    Put gotoAndPlay(1) in frame 4?

    ArbitraryDescriptor on
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited February 2007
    Make sure any stop() commands in your actionscript ANYWHERE say this.stop(); unless you SPECIFICALLY want it to stop something other than the stage/movieclip that it's on.

    gotoAndPlay shouldn't be required at all in this case.


    The only reason a movie clip will not play until eternity is if you have a stray stop(); somewhere.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • ArbitraryDescriptorArbitraryDescriptor Registered User regular
    edited February 2007
    The only other reason is if Flash doesn't think its a movie clip anymore. In your haste have you set the instance behavior to button or graphic?

    tmp346.jpg

    ArbitraryDescriptor on
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited February 2007
    In this screenshots it's clearly a Movie clip.

    If it were a graphic he wouldn't have a time line.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    okay, still not working right.

    Here's the source file if anyone wants to take a look. The movie clip still won't loop, and it doesn't animate at all on the main stage when given a simple movement path to follow.

    Any thoughts?

    Rankenphile on
    8406wWN.png
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited February 2007
    It loops for me and I didn't have to do anything to it.

    I'm using MX2004 Pro...


    Unless I'm missing something, it goes from left to right over and over while it wiggles.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    it's wiggling for you? argh!

    yeah, it moves for me, but it won't wiggle at all. I'm using MX, not MX 2004.

    Shit, maybe it's time to upgrade.

    Rankenphile on
    8406wWN.png
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    okay I'm officially going nuts

    looking at it in MX 2004 pro, it moves, but still no wiggle.

    Rankenphile on
    8406wWN.png
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited February 2007
    Maybe regular MX doesn't support GIF animation inside an MC.

    That's my only guess.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    oh my GOD this is driving me absolutely crazy

    I know it can be done. I'm positive it can be done.

    But fuck all, I can't get it to work for the life of me.

    Rankenphile on
    8406wWN.png
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    okay, now it seems to be working. Don't ask me what is different now than the seven billion other times I tried it, but now it seems to work.

    Thanks for the help guys.

    edit: spoke too soon. Now one is animating right and the other still isn't.

    Oh well. I'll figure this out, I hope.

    Rankenphile on
    8406wWN.png
  • MonkeybombMonkeybomb Registered User regular
    edited February 2007
    I'd help you out but I've forgotten all of my flash stuff, too. I'm reinstalling tomorrow probably so maybe I can take a look at this.

    Monkeybomb on
    Xbox Live Gamertag: Triplemonkeybom
    monkeysig-1.jpg
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    if anyone wants to see the raw file with the updated art, send me a PM. This is for a forum battle, so I don't want to just post it any more, if I can avoid it.

    Rankenphile on
    8406wWN.png
  • IriahIriah Registered User regular
    edited February 2007
    if anyone wants to see the raw file with the updated art, send me a PM. This is for a forum battle, so I don't want to just post it any more, if I can avoid it.
    Knowing little that I do I'm guessing that's it's because if it's an .swf (the usual <Ctrl+M> export format) it can display a movie clip properly, but the GIF just treats it as a graphic.

    Unless movie clips actually do work in GIFs normally.

    Hope I've helped.

    Iriah on
  • LuxLux Registered User regular
    edited February 2007
    Just out of curiosity, does it all work out okay when you publish it? When it's in it's SWF form?

    I haven't used flash in a while, and when I did it was Flash 6, but I remember getting frustrated over things seemingly not working, but that was only in the .fla file. Everything would always work as needed as an .swf.

    Lux on
  • PojacoPojaco Registered User regular
    edited February 2007
    Rather than make a new topic for a simple request, I'll just ask here:

    Can someone gmail me the install file for the latest Flash player? I just reformatted, need to install flash, and the official site seems to be down or something, it won't go above 0k/s.

    Pojaco on
  • ArbitraryDescriptorArbitraryDescriptor Registered User regular
    edited February 2007
    it's wiggling for you? argh!

    yeah, it moves for me, but it won't wiggle at all. I'm using MX, not MX 2004.

    Shit, maybe it's time to upgrade.

    For the record, that fla you posted crashes Flash 8; but when I pull the symbol out and use it in a new file it loops without provocation.

    ArbitraryDescriptor on
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    Lux wrote:
    Just out of curiosity, does it all work out okay when you publish it? When it's in it's SWF form?

    I haven't used flash in a while, and when I did it was Flash 6, but I remember getting frustrated over things seemingly not working, but that was only in the .fla file. Everything would always work as needed as an .swf.

    this was precisely the problem. Everything was staying static in the preview, but once published it started working just as it should. I've got it working much, much better now and have made considerable progress on the project. Thanks to everyone here in this thread for your help.

    Rankenphile on
    8406wWN.png
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited February 2007
    You mean you weren't testing your movie to see if it was working?

    Back to school with you.

    A basic property of movie clips is that you can't see them animate within the FLA timeline, you have to test them.


    CTRL + ENTER


    Use it.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • RankenphileRankenphile Passersby were amazed by the unusually large amounts of blood.Registered User, Moderator Mod Emeritus
    edited February 2007
    hey hey hey

    I never claimed to have gone to school for this stuff

    I'm just learning as I go

    (ctrl+enter, you say? excellent.)

    Rankenphile on
    8406wWN.png
Sign In or Register to comment.