?
Solved

Timeline movement after a function call

Posted on 2002-06-02
5
Medium Priority
?
149 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 400 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

752 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