Solved

Check totalframes against currentframe-load next child node

Posted on 2008-10-13
2
791 Views
Last Modified: 2013-11-11
Hello All,

I am having some issues for some reason getting my code straight for this test project I am doing.  I have an XML file that I am using to manage and load external swf's into a "wrapper" exe file.

I would like to write a bit of code that will evaluate the total frames of a swf and when that swf reaches a certain current frame it calls the next child node in the XML.

I thought that would look something like this but I am afraid I am wrong.

function checkFrames (){
for (i=1;i<dZone._totalframes;i++){
//_____call to the next child node_____\\
}

thanks for your help,

-FB
0
Comment
Question by:frankybones
[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
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 250 total points
ID: 22708290
below is the sample code, update it as per your requirement...
var intId = setInterval(this, 'checkFrames', 100);
function checkFrames() {
	if (dZone._currentframe>=20) {
		clearInterval(intId);
		trace("reached frame number 20");
	}
}

Open in new window

0
 

Author Closing Comment

by:frankybones
ID: 31505688
Excellent response and great timing...thanks again for all of your help.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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,…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.

717 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