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 7739323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:29:38+00:00 2026-06-01T08:29:38+00:00

I’ve attached a source file below, I’m kinda stuck. Basically, its an FLA that

  • 0

I’ve attached a source file below, I’m kinda stuck.

Basically, its an FLA that has a variable that changes (smscounter) based on whatever number is read in from an XML file (on my server). There is a big movieclip called “rewinder” on frame 1 of the main stage. There are left and right buttons that navigate between frames within that movieclip “rewinder”. What I’m trying to do in theory is:

if(frame != 2) {button_right.visibility = true};
if(frame == 2 && smscounter > 5) {button_right.visibility = true};
if(frame == 2 && smscounter < 5) {button_right.visibility = false}

I’ve been told that won’t work simply because once a variable (visibility) is set, it’s not going to just continually check it, so I have to dispatch an event? I’ve tried 3-4 tutorials and I can’t get any to work.

Now a few things:
– I would LOVE to avoid anything super complicated. All I need is on frame 2 for the button to not be there IF smscounter is below 5. Other tutorials required another class and document class, but I couldn’t get them working
– The buttons are currently outside the rewinder movieclip. I put them inside and on each frame, but then I couldn’t get them to react to a rollover.
– The code is about as optimized as if a first grader wrote it, mainly because I’m a designer and I’ve been having help along the whole way with this.
– Greensock LoaderMax is being used to put the videos and sound in. Not super relevant to the problem, I just left them in there to give a better picture of what I’m working on.

Link to FLA and source files:
http://www.mediafire.com/download.php?ejy6j9h9r1c1829

  • 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-01T08:29:39+00:00Added an answer on June 1, 2026 at 8:29 am

    you can add this code to the main timeline
    looks like you can only go to frame 2 and 3, but you have a total of 21 frames (from voltagebar) that’s why I used the numbers instead of 1 and totalFrames.

    rewinder.addEventListener(Event.ENTER_FRAME,checkButtons);
    function checkButtons(e:Event):void{
        if(rewinder.currentFrame <= 2){
            button_left.visible = false;
        }else{
            button_left.visible = true;
        }
    
        if(rewinder.currentFrame >= 3){
            button_right.visible = false;
        }else{
            button_right.visible = true;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an XML file, the creators of it stuck in a bunch social
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function

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.