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

  • Home
  • SEARCH
  • 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 3782394
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:04:36+00:00 2026-05-19T11:04:36+00:00

Sure this will be a simple fix, and I’m just not seeing the wood

  • 0

Sure this will be a simple fix, and I’m just not seeing the wood for the trees. I have a movie with a movieclip called scroller_mov. Inside it are 15 movieclips named pic1 thru pic15.

My code is on one frame, on the same level as scroller_mov. Just want to dynamically assign a click action to the pic1 – pic15 movieclips! have tried hardcoded links and dynamic, but no joy! Everything else works fine. Thanks if you can help!

stop();

lv_obj = new LoadVars();

lv_obj.load("flash_carou_data2.php");

lv_obj.onLoad = function(success):Void{
product_mod.product_model = this.product_models;

var products_data:Array = product_mod.product_model.split(",");
scroller_mov.prodmod1 = products_data[0];

for (i=0;i<15;i++){
    products_data[i] = products_data[i].split("&");
    scroller_mov["prodmod" + (i+1)] = products_data[i][0];
    scroller_mov["prodprice" + (i+1)] = products_data[i][3];
    scroller_mov["pic" + (i+1)].loadMovie(products_data[i][2]);

    scroller_mov["pic" + (i+1)].onRelease = function  () {
        getURL("http://www.mysite.com");
        //getURL(products_data[i][1]);
    }
};

};

  • 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-19T11:04:37+00:00Added an answer on May 19, 2026 at 11:04 am

    You can do it just the way you do it in your code – but you have to wait for the loadMovie() to finish. When you load a MovieClip, all its properties are erased upon successful completion.

    Set an interval to check for your MovieClip’s getBytesLoaded() and getBytesTotal() methods, then assign the onRelease function when the clip is fully loaded. Here’s a quick example, you can just copy and use the same checkLoaded function:

    _root.test = _root.createEmptyMovieClip ("test01", _root.getNextHighestDepth());
    _root.test.loadMovie ( "test.swf");
    
    _root.checkLoaded =  function (clip) { 
    
       var bytesLoaded = clip.getBytesLoaded();
       var bytesTotal = clip.getBytesTotal();
       if (bytesLoaded > 0 && bytesLoaded == bytesTotal) trace ("loaded");
       else return;
       clearInterval (_root.interv);
    
       clip.onRelease = function () {
            trace ("release");
            getURL("http://www.google.com"); 
        } 
    }
    
    _root.interv = setInterval( _root, "checkLoaded", 100, _root.test);
    

    You can assign the interval to any variable, it doesn’t need to belong to _root. Make sure the first parameter of setInterval is the object where the checkLoaded method is contained, and the last parameter is the MovieClip you are loading into.

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

Sidebar

Related Questions

Im sure this will be a simple one but have a project that started
I'm sure this will be very simple for you experts. SUDZC is set up
I am not sure if this will be right place to ask the question,
I'm not sure why, but this condition will never evaluate True for me. I'm
I'm sure that there's a really simple solution to this that will make me
I am hoping this is a simple fix, or maybe my logic is just
I'm sure this will be a simple question but I still struggle with DOM
This is very simple linq and I am just beginning with it. I have
I'm sure this will equate down to the use of the COUNT statement but
I am fairly new to PHP and Codeigniter so im sure this will be

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.