Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:31:00+00:00 2026-06-09T21:31:00+00:00

Im glad to be here! Let me ask.. I´ve a function: trace(figurasQuePiscarao) = 1,4,5,6,8,14,15

  • 0

Im glad to be here! Let me ask..
I´ve a function:

trace(figurasQuePiscarao) = 1,4,5,6,8,14,15

velocidadePiscaFigura:Number = 5

function enterFramePisca(e:Event):void {
                volta++
                if (volta >= objConfig.velocidadePiscaFigura * 3 )
                    volta = 0
                if (volta == objConfig.velocidadePiscaFigura)
                    trace('blink1')
                    for (var i:int = 1; i < objComunicacao.figurasQuePiscarao.length; i++ ) {
                        if(getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[i])) {
                            MovieClip(getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[i])).gotoAndStop(2)
                        }
                    }
                if (volta == (objConfig.velocidadePiscaFigura * 2))
                    trace('blink2')
                    for (var j:int = 1; j < objComunicacao.figurasQuePiscarao.length; j++ ) {
                        if (getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[j]))
                            MovieClip(getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[j])).goToAndStop(3)

                    }
            }

The output of debugger is:
blink1
blink2
blink1
blink2
blink1
blink2
blink1
blink2
blink1
….

So enterFrame is ok… But I want these moviclips change the frame .. but they all insist on staying in frame 2 .. I want this to be changing between 2 and 3.. looping .. using that velocity factor ‘velocidadePiscaFigura’ .. I appreciate your help, sorry about poor english … Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:31:02+00:00Added an answer on June 9, 2026 at 9:31 pm

    I think that maybe it’s a simple little misspelling:

    MovieClip(getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[j])).goToAndStop(3)
    

    goToAndStop(3) should be gotoAndStop(3), right?

    EDIT:

    Also, you should use {} brackets and ; correctly:

    velocidadePiscaFigura:Number = 5;
    
    function enterFramePisca(e:Event):void {
                volta++;
                if (volta >= objConfig.velocidadePiscaFigura * 3 ) {
                    volta = 0;
                }
                if (volta == objConfig.velocidadePiscaFigura) {
                    trace('blink1');
                    for (var i:int = 1; i < objComunicacao.figurasQuePiscarao.length; i++ ) {
                        if(getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[i])) {
                            MovieClip(getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[i])).gotoAndStop(2);
                        }
                    }
                }
                if (volta == (objConfig.velocidadePiscaFigura * 2)) {
                    trace('blink2');
                    for (var j:int = 1; j < objComunicacao.figurasQuePiscarao.length; j++ ) {
                        if (getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[j])) {
                            MovieClip(getChildByName("mcF" + objComunicacao.posicoesQuePiscarao[j])).gotoAndStop(3);
                        }
                    }
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure glad this site is here. It has helped me out every time.
I'm glad stackoverflow exists at least there is traffic. Sorry for asking these here
I'm glad C# doesn't let you access static members 'as though' they were instance
it's my first question here, glad to have found this site. My question deals
void show(QString *s){ //Here I want to show the value of the QString. }
Would be glad to see some feedback from you in using async ctp in
I develop with Actionscript and was glad to see that AIR 2.0 was going
I'm hittig my head on this and i will be glad for any help.
As i clearly mentioned above, I would be glad to hear your ideas about
there's this interesting problem i can not solve myself. I will be very glad,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.