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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:28:13+00:00 2026-05-25T06:28:13+00:00

ok so im bringing in a test external swf like so: var loader:Loader =

  • 0

ok so im bringing in a test external swf like so:

var loader:Loader = new Loader();                     
var url:URLRequest = new URLRequest("load2.swf"); 
loader.load(url);                                    
addChild(loader);

Now im trying to envoke a goto and play like so:

var loaded:Object;

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoaded);

function handleLoaded(e:Event):void {
  loaded = e.target.content;
}

load1.addEventListener(MouseEvent.CLICK, handleClick);

function handleClick(e:MouseEvent):void {
  if (loaded) {
    loaded.gotoAndPlay("outro");
  }

  //other content here.
}

this simple external test swf has 10 frames. @ frame 1 theres a “intro” label, @ frame 5 theres a “stop” action, and on frame 6, theres an “outro” label.

problem is that, when i click the button, it reloads the external swf and plays from frame 1.

any ideas/tips/hints etc id gladly appreciate.
thanks in advance.

  • 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-25T06:28:14+00:00Added an answer on May 25, 2026 at 6:28 am

    Try casting loaded as a MovieClip:

    MovieClip(loaded).gotoAndPlay("outro");
    

    Ok, so that didn’t fix it…

    Without seeing more of the application it’s hard to say more, because the code provided works fine on it’s own. If this code is on a timeline, it might be worth putting a trace in alongside the load operation to see if the parent playhead is replaying.

    A ha

    I believe I’ve solved it. The issue is coming from the presence of the TLF text in load2.swf. I proved this by creating my own version of load2 without any TLF text, and this worked fine with your eerase.fla. When I added a TLF textfield to my load2, it started to show the behaviour you’re experiencing. So the fix is simply to not use TLF textfields in any loaded SWF. I have tested using classic textfields with no issue.

    The reason this occurs is because TLF textfields require to load data, and so it creates an artificial preloader that loads in your content. When you issue a gotoAndPlay action, you are in fact talking to this preloader, not the timeline you created, and the consequence is that the preloader ‘loads’ another copy of your content. This is not an actual HTTP request as the content is all inside load2.swf, hence nothing appearing in Firebug’s Net panel. You can see more clearly what is being created by decompiling one of your SWF’s.

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

Sidebar

Related Questions

We are bringing a new project in house and whereas previously all our work
Where can I find a list of transitions for bringing a new Viewcontroller onto
I am trying to do a file upload from gwt-ext without bringing up the
I'm trying to duplicate my live Magento install by bringing everything over to my
My company is currently looking into bringing a new piece of third party software
I have a Rails app that I developed on Windows. Now I'm bringing it
I am trying to create a test environment to test the handling of network
I'm working on bringing some old code from 1998 up to the 21st century.
I have problems with bringing a windows mobile 6 form to the front. I
I am bringing out a separate question from here . It really confused me.

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.