Solved

Timeline movement after a function call

Posted on 2002-06-02
5
139 Views
Last Modified: 2010-04-03
I have a clip where a function call is issued from it's root but no stops are in either the frame action that called the function or in the function itself. Yet my timeline _is stopping.

Here's some code...
Frame 10 Actions
  _level0.myLevelStatus.unit_ini=1;
  _level0.myLevelStatus.unit_rdy=0;

  trace("CALLS NEW UNIT: " add _root.newunit(playUnit));
  _root.newunit(_level0.holder.playUnit);

Frame 12
  stop();

Relevent bit of the newunit function:

function newunit(whichunit){

  trace(_currentframe);
//trace read '10'. Shouldn't it read 12?

  if (_level39._framesLoaded > _level39["AssetUnit" add  _level0.parseNum(whichunit)]){

   gotoAndPlay(nextFrame);
   trace(_currentframe);

//trace _still reads 10. It should restarted the timeline
//that _should have stopped at 12 and my movie _should
//be working correctly.
   } else {
     _level100.loading = "Unit Graphics";
     _level100.myPreloader.gotoAndPlay("loadingAssets");
   }
}
     
0
Comment
Question by:juststeve
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
stef4s earned 100 total points
Comment Utility
could not see any bugs of problems.
can you mail me the fla

stefank@learnscapes.co.za

I will take a look at it
0
 

Author Comment

by:juststeve
Comment Utility
thankx stef4s....I might take you up on the offer but there's 4 different independant fla involved and enough complexity that I need to 'clean 'n comment' before i send anything out.

for the time being, it's helpful to know that no obvious problems are sticking up.

thankx
--steve...
0
 
LVL 5

Expert Comment

by:stef4s
Comment Utility
are you building a advanced preloader? if you are I can send you some examples.
0
 

Author Comment

by:juststeve
Comment Utility
thankx...in a nutshell, I'm delivering web-based training programs. It's a fairly typical kinda struction...each tutorial has a number of units...each unit has several dozen screens. Everything comes from a db. Text is in 1 level...graphics & animations are in another level. Content for the whole tutorial (several units) is loaded at once.

The text level loads quicker than the grahics level... i can show the first screen (of a given unit) as soon as I know the graphics for that unit are loaded. I have a looping clip that tests _framesLoaded against 1 var per unit set at authoring time...if (_framesLoaded == var4given_unit) {it's loaded...show first screen}{else test again}

I've made this work in theory but I'm getting major strangeness when I put it into the full version .. hence my question up here. Obviously this would/will make more sense with the relevent FLAs...
0
 
LVL 5

Expert Comment

by:stef4s
Comment Utility
i can send you a fla that does some preloading.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now