Solved

Timeline movement after a function call

Posted on 2002-06-02
5
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
stef4s earned 100 total points
ID: 7059041
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
ID: 7061809
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
ID: 7063485
are you building a advanced preloader? if you are I can send you some examples.
0
 

Author Comment

by:juststeve
ID: 7063626
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
ID: 7066274
i can send you a fla that does some preloading.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

707 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