Solved

Check totalframes against currentframe-load next child node

Posted on 2008-10-13
2
787 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
Flash player plugin 13 7 355
bandwidth 5 85
Adobe Acrobat Pro: chasing the white background wallpaper dimensions 3 237
Adobe Connect add-in only works in admin accounts 4 36
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…
Suggested Courses

738 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