ActionScript 3.0 :: Read TotalFrames From An External SWF?

Sep 16, 2010

I want to create a kind of "video player" that will allow me to move a playhead accross all theses SWF that are playing back to back.  What I need to do is get the totalFrames of all these swf objects that are to be loaded.  I tried loading each SWF (using the Loader class ofcoarse)  and on the COMPLETE event grab the totalFrames and then move to the next SWF to populate an array that will be used to create a UI piece. The problem is that it starts playing the swf once it load and you can hear the background sound of each SWF.  It also slows the program down.  Is there anyway of grabbing the totalFrame property from external SWF's without actually having to load each SWF?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Totalframes Of External Swf

Jan 25, 2006

Is there a way to get the total frames and current frame of an externally loaded swf? The code I am using below does not work. My _root timeline has three objects: two dynamic text boxes and a container clip. Their instance names are myText_text, myText2_text, and loader_mc, respectively. I have two variables, "i" and "j", which populate myText_text.text and myText2_text.text, respectively.The problem is that the values display "1" because they are getting the value of the container clip and not the movie loaded into the container clip. I need the _totalframes and _currentframe properties of the externally loaded clip, not the container clip. My code below doesn't work. Any ideas?[code]

View 2 Replies

ActionScript 3.0 :: FramesLoaded Of TotalFrames?

Dec 28, 2010

How to get framesLoaded of Total frames

function loadswf (file:String) {var ldr:Loader=new Loader()ldr.load(new URLRequest(file))ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,getFrame s)  }

[code].....

View 4 Replies

ActionScript 2.0 :: Getting Totalframes In Movieclip?

Jul 20, 2010

i'm trying to convert the total amount of frames of my movieclip into minutes:seconds:frames, but my return value is not correct. the total frames of my mc are 3348

[Code]...

View 9 Replies

ActionScript 2.0 :: Totalframes On A Loaded Swf?

Dec 18, 2007

I have a program where I am supposed to first load a swf in the first frame (i will not know how long that swf is), and when that has finished playing the main program i supposed to move on to the next frame. Now my question is, can I somehow figure out how long that swf is from within my main program or will I have to put a simple _root.gotoAndPlay(2); in the last frame of my loaded swf?

View 2 Replies

Actionscript 3.0 :: Can't Read External Png

Feb 19, 2009

is there a difference in using this

[CODE].....

for some reason i cant get it to read either one of them...the quotes is what i am referring to.

View 8 Replies

ActionScript 3.0 :: TotalFrames Of Dynamically Loaded Swf?

Nov 16, 2009

I've been trying for 2 days now to find the total number of frames of a dynamically loaded .swf.

Here's an example code:

Code:
var loader:Loader = new Loader;
loader.load(new URLRequest("mop.swf"))
master_mc.addChild(loader);

[Code]....

View 3 Replies

ActionScript 2.0 :: TotalFrames Of A Single Scene

Jan 29, 2003

I know you can evaluate the total frames of an entire movie (read: swf) with _totalframes.

I know you can evaluate the total frames of an mc with instancename._totalframes.

how to evaluate the totalframes of a single scene within a movie?

scenename._totalframes does not seem to work

View 2 Replies

ActionScript 2.0 :: How To Read An External TXT File

Mar 19, 2010

This works if I view it locally:

Code:
myData = new LoadVars();
myData.onLoad = function(){

[code].....

View 3 Replies

ActionScript 2.0 :: External Loaded Swf Can't Read It

Jan 16, 2009

My problem is that all the action script contained in the musicplayer.swf seems not to work when I load the whole musicplayer.swf in the main movie.[code]...

View 9 Replies

ActionScript 2.0 :: Get A Form To Read From External Swf?

Mar 1, 2011

I am trying to make an external swf load into the main swf and have the input text work.

View 5 Replies

ActionScript 2.0 :: Url From External Txt File Not Being Read?

Jul 11, 2005

I've inherited a menu bar (www.ensim.com). You can see that when you hover over the buttons (most of them, anyway) you get a drop down with subnav links.

The way they did it was to populate the movie clip with text from an external .txt file, so you could easily add sub links and change urls and stuff. Nifty idea.

The problem is a new url I'm trying to add apparently contains an escape character that it doesn't like. The new url is "/index.asp?page=solutions&sec=voip". When that goes in there, it won't write the link lable (<a href="borked url">This doesn't show up</a>)

Sort of weird, I kind of assumed that, being a plain old txt file, it would just spit it out and move along.

View 2 Replies

ActionScript 3.0 :: Migrating ASC1 TotalFrames To ASC3

Mar 20, 2012

Good to see Flash Kit forum lasting a long time. It's been some time since I was last here. Just upgraded to CS5.5 from Flash 8 and having difficulty migrating a counter to ASC3. Managed to rebuild my other time line controller buttons. The counter is ASC1 and inside a movie clip Total Timeï In the clip are 2 dynamic/variables text boxes. min0 and sec0ï They output minutes and seconds as 2 figures. 00 : 00. With a colon graphic in-between. It takes the old _root._totalframes count then produces the times.

[Code]...

View 2 Replies

ActionScript 3.0 :: TotalFrames Attribute Of MovieClip Object

Jun 27, 2011

Recently I got trouble with totalFrames attribute of MovieClip object, this is the case: in Flash CS, I created two movieclips, one has say 10 frames animation, another one, I drag the first MC in to it, then the second MC has only one frame in it's own time line, right? Then I export them as SWC file to include them in my project. Here's the problem, when I'm trying to get total frame number of these to MC like below, I just get to actual number of frames in the second MC:

[Code]...

So my question is, is there any way to get the actual number of frame for those MovieClip resource like the second one, without visiting any sub-movieclips in it

View 4 Replies

Professional :: CurrentFrame And TotalFrames Not Working As Intended?

Nov 25, 2011

I have a peculiar problem with a swf published from Captivate (full motion recording, single slide). I wish to use the swf in another flash movie, and basically want to have things triggered when the movie has finished playing (like going to the next frame, where I plan to embed another swf). After doing some research, I decided to go with a method in which the movie's current frame is compared with the movie's total number of frames. To my surprise, the trigger occurs after only one second. Tracing the MovieClip(myLoader.content).currentFrame and MovieClip(myLoader.content).totalFrames reveals that the first one stops at 32, and the second one returns also 32 (according to captivate, it has 1411 frames). Yet the movie keeps playing.
 
I'm guessing that I'm referencing the wrong "currentFrame" and "totalFrames", but am completely lost as to why it's not working like it should.

[Code]....

View 2 Replies

ActionScript 2.0 :: Read External .as File Without Recompiling?

Dec 21, 2009

Just wondering if flash is able to do this using a 3rd party app perhaps? Im creating a flash application (closed source), and I want it for others to be able to customize the program in the means of changing text colors by editing the actionscript using an external .as file. Problem is, the external actionscript works, but it will only work when I recompile or republish the fla file in flash.

Looking for a way for flash to read the external .as file without using the fla file.

View 4 Replies

ActionScript 1/2 :: Write / Read An External Variable?

Jul 9, 2009

I currently have a flash video player and I want to add some code that will update a variable in an external .as or .txt file. I then want to be able to pull this variable into a different .swf when required.
 
My variable I want to create will be CurrentVideo and it needs to be a number e.g. _global.CurrentVideo = 2

View 1 Replies

Flsah :: Xml - External Links Read From XML File

Feb 2, 2011

I was wondering how you use Actionscript 2, to read a URL/web address in a XML file and when you click a button, or an icon, you are then taken to a page specified in the XML document?

View 2 Replies

ActionScript 2.0 :: External SWF Doesn't Read .as Class

Jun 3, 2011

In my emptyMC, i'm calling a newsticker, that needs an external .as class to works propertly. But when it opens, it doesn't read my _x and _y coordinates and neither the .as.

My code to it, is in a frame:

Code:
this.createEmptyMovieClip ("noticias", 2);
loadMovie("newsticker.swf", noticias);
noticias._y = -50;
noticias._x = 0;

In my first frame I have locked the root with:

this._lockroot = true and i has been working perfectly.

Also in the root in a frame i'm loading a music.swf.

for further doubts, just ask.

I'm working with Flash CS5 and AS2, Flash Player 8.0. It's a TM template.

View 2 Replies

ActionScript 3.0 :: Read From An External Text File?

Jul 27, 2011

I have an ActionScript driven flash project that displays a sequence of images. Currently I am using an array with the names of the images. Is there any way I can open a text file for reading and populate the array. Otherwise I would have to keep compiling the SWF each time.

View 6 Replies

ActionScript 3.0 :: Loader Reporting Incorrect TotalFrames Of Content?

May 9, 2011

detecting the totalFrames of content loaded into a Loader?
 
I made a dummy animation just for testing (150 frames of text just tweening across the screen) to load. I load that in and when it's loaded I'm always told it's only 2 frames long.
 
e.g.:
 
package {
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;

[Code].....

I just wrote that by hand now as an example so there might be a typo here or there but you get the general idea. I'm using CS5, flash player 10, just testing the movie and every time it traces 2 total frames. how to tell how many frames the loaded content actually has?

View 2 Replies

ActionScript 3.0 :: Accessing And Removing A Randomly Added Mc On TotalFrames?

Nov 22, 2010

i have an array containing 4 mc:

Code:
private var notesDefinition:Array = [Note1, Note2, Note3, Note4];

When faceMc moves (while dragging or as a mouse trail), points are created dinamically every 200px and one of the array�s mclips is added there in a random function. Now i need to remove that mc when it reaches its last frame (just the mc on stage, not remove from the array). I tryed the following but its not working.

Code:
private function drawingAPI(event:Event):void{
var addNewNote:Boolean = false;
//add first point

[Code]....

View 1 Replies

ActionScript 3.0 :: Cs3 - Create A Glossary That Is Read From An External *.txt File

May 11, 2009

I wish to create a glossary that is read from an external *.txt file. The glossary function like a dictionary in that there is a word, its definition, and a link to a relevent page where the word appears. e.g. <label="apple" def="that thing people eat" url="apple.txt"> The reason I want it external to flash is so that new words can be added and removed manually and flash will simply update. A user can type in a word to search for in the "sorted alphabetically" list within flash.

View 2 Replies

Media Server :: Application Read From External Xml File Not In It

Aug 22, 2010

I have below code

[Code]....

I need this application read from exteral xml file not in it.

View 28 Replies

Professional :: Name A Button / Movie So That An External Script Can Read It?

Oct 28, 2010

I have a javascript on my website that is called on any click. The script reads the name of the clicked item. This works fine for all jpg/gif images with a name, but how can I name a flash movie in such a way that this script can read it? I tried several things, the name (and id) in the published parameters, the name of the instance, of the button, etc. But nothing works?

[Code]...

View 2 Replies

ActionScript 2.0 :: Refresh Or Loop To Read External Xml File?

Nov 12, 2009

I have a swf with the following script:

XML_var = new XML();
// now load up the url.
XML_var.load("http://www.lick.fm/tracklist.xml");
// when xml is loaded call functon displayXML

[Code].....

This ascript reads an external xml file and picks up the tracklist names for current playing and previous playing songs on my radio station website. It works and looks perfectly fine but i need this to refresh every 30 seconds to read the dynamic xml file and update flash.

View 1 Replies

ActionScript 3.0 :: Possible To Read Declaration When Loading External XML File?

Aug 16, 2010

When loading an external XML file into flash, is it possible to read the XML declaration and other data such as xml-stylesheet? If so, how?

XML FILE
Code: Select all<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="books.xsl" type="text/xsl"?>
<content>
<book>Hello</book>
</content>

AS3:
Code: Select all//Set XML calls
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(new URLRequest("xml/books.xml"));
function xmlLoaded(e:Event):void {
var xml:XML =new XML(e.target.data);
When tracing, the XML declaration is gone, so I am not sure how to read or target it.
trace(xml);
}

View 1 Replies

ActionScript 1/2 :: Using Currentframe And Totalframes To Have Dynamic Text Fields Display?

Jul 20, 2009

Is there a simple way using currentframe and totalframes to have dynamic text fields display what frame the user is on? (exp.  Page: 4 of 25) I have been looking and can't seem to find anything.

View 6 Replies

ActionScript 3.0 :: Read And Write To External Text File Or Cookie

Jun 8, 2010

I am creating a CBT course using Flash CS4 As3. I need to capture progress information from the user as they complete each unit in the course so that the next time they access the course they can pick up where they left off. To do this I need to know how to write and retrieve this information to and from a text file or a cookie so that it can be retrieved re-enters the course.

View 2 Replies

ActionScript 3.0 :: Error: Property TotalFrames Not Found On Flash.display.Loader And There Is No Default Value

Mar 3, 2009

I am loading an external swf as a child and I want to get its "totalFrames", but I get the following error: "Property totalFrames not found on flash.display.Loader and there is no default value."Is there a way to get totalFrames from a child? Here is what I have:

Code:
var movieArea = new Loader();
addChild(movieArea);
movieArea.load(new URLRequest("slide1.swf"));
movieArea.x=5;
movieArea.y=5;
var framesTot = trace(movieArea.totalFrames);

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved