Solved

Timeline movement after a function call

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Action Script commands 5 238
Google Chrome Blank White Screens 13 300
Crash with shockwave flash 8 245
Install adobe flash plugin for Firefox win 7 9 70
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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

776 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