Solved

Timeline movement after a function call

Posted on 2002-06-02
5
141 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Video sharing with user login 3 197
Embedded Webpage Videos don't auto play on Windows 7 1 103
How to block online streaming via TMG2010 ? 2 122
Flash ActionScript 6 42
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

911 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

18 Experts available now in Live!

Get 1:1 Help Now