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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:42:28+00:00 2026-05-30T20:42:28+00:00

OK here what I’m envisioning and keep in mind ive only just started playing

  • 0

OK here what I’m envisioning and keep in mind ive only just started playing with flash so I really am a total novice at this point:

I want to have two buttons which load different jpegs which are pretty large (about 5000 width x 600 height) to animate as the page background. so in my BG layer for the main timeline i added a container movie clip (5000×600 also) and in the container movie clip’s timeline i have it classic tweening across the stage back and forth. then on the main timeline i have my two buttons which are supposed to load the backgrounds. the thing that seems to be messing it all up is the fact that i call “stop();” in my action script to stop on my 3rd frame of the main timeline after the preloader etc. in my testing i added yet another movie clip that animates and it keeps animating when i cal stop(); but the background image is not animating any more.

sorry for my lack of understand and THANK YOU for your patience 😉

anyways here is the main action script code:

import fl.transitions.*;

import fl.transitions.easing.*;

// tween the main menu into place upon opening

//var moveTween:Tween = new Tween(mainmenu_mc, "y", Elastic.easeOut, mainmenu_mc.y, 70, 2, true);

// claim MCs from library to use on stage when needed using addChild

var bg1:blueBG = new blueBG();

var bg2:greenBG = new greenBG();

var bg3:testBG = new testBG();
//var p4:page4 = new page4;


containerBG_mc.addChild(bg3);

var pageMoveTween:Tween = new Tween(containerBG_mc, "alpha", Strong.easeOut, 1, 0, 1, true);



blueBtn_btn.addEventListener(MouseEvent.CLICK, btn1Click);

crazyBtn_btn.addEventListener(MouseEvent.CLICK, btn2Click);




function btn1Click (event:MouseEvent):void {


var btn1Outro:Tween = new Tween(containerBG_mc, "alpha", Strong.easeOut, 1, 0, 1, true);

btn1Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn1Transition);

function runBtn1Transition (event:TweenEvent):void {

containerBG_mc.removeChildAt(1);

containerBG_mc.addChild(bg1);

var btn1Intro:Tween = new Tween(containerBG_mc, "alpha", Strong.easeOut, 0, 1, 1, true);

}

}




function btn2Click (event:MouseEvent):void {


var btn2Outro:Tween = new Tween(containerBG_mc, "alpha", Strong.easeOut, 1, 0, 1, true);

btn2Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn2Transition);

function runBtn2Transition (event:TweenEvent):void {

containerBG_mc.removeChildAt(1);

containerBG_mc.addChild(bg2);

var btn2Intro:Tween = new Tween(containerBG_mc, "alpha", Strong.easeOut, 0, 1, 1, true);

}

}

and of course there is a stop(); action on the 3rd frame of the main timeline in a different action script layer

SUMMARY:

3 layers:
AS3 layer
button layer
BG layer

duties:
AS3 layer just has a stop action on frame 3
button layer contains two buttons to dynamically change the background jpeg image. the action script for this layer is what i posted above
BG layer has the containerBG_mc movie clip instance which on its own timeline animates left and right

if you need further clarification let me know

  • 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-05-30T20:42:29+00:00Added an answer on May 30, 2026 at 8:42 pm

    You’re tweening something with the timeline in the container movieclip, so you’re not tweening the container itself. Than you’re adding movieclips to the container, so they are not affected by the tween.

    What you want to do is add the backgrounds to the movieclip you’re tweening in the container like this:

    containerBG_mc.tweened_mc.addChild( bg3 );
    

    You can set the name to tweened_mc in the properties-panel when selecting that tweened object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a coding problem for those that like this kind of thing. Let's see
Here is an example. foreach (var doc in documents) { var processor = this.factory.Create();
Here's what I'm trying to accomplish with this program: a recursive method that checks
Here is the css: #content ul { font-size: 12px; } I am trying this:
Here is what I am trying to achieve in PHP: I have this string:
Here is my question. I am having this simple menu. <div id=menu> <ul> <li>
Here my code: $(document).ready(function() { $('#mid_select').live('click', function(e){ $('#middle').load( $(this).attr('href') + ' #middle'); var page
Here's a basic regex technique that I've never managed to remember. Let's say I'm
Here's a problem I ran into recently. I have attributes strings of the form
Here is the issue I am having: I have a large query that needs

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.