Determining duration of .swf file
I need to find the duration of several Flash .swf files,
however, I don't have the full program, I only have Flash player.
Is there a way to determine the duration (minutes and seconds) of
the .swf files (short of using a stopwatch
) through the player, or via a plugin?
Hi UDeckM,
Flash movie duration is *really* subjective. If it's just a
straight
movie playthrough (like an animation), then it's simply a
matter of
multiplying the movie's framerate (say 30) by the total
frames in the movie
(the _totalframes property of the main timeline). The reason
this is so
subjective, however, is because a movie can run forever on
just one frame
(as most Flash-based applications do), so this can be
completely inaccurate.
Hope that at least this helps.
Regards,
Patrick Bay
BAY NEW MEDIA
"UDeckM" <[email protected]> wrote in
message
news:fnu6g4$o1a$[email protected]..
>I need to find the duration of several Flash .swf files,
however, I don't
>have
> the full program, I only have Flash player. Is there a
way to determine
> the
> duration (minutes and seconds) of the .swf files (short
of using a
> stopwatch
) through the player, or via a plugin?
>
Similar Messages
-
CF tag to determine duration of mp3 file on server
I need a way (a custom tag, probably?) for CF to determine the duration of an mp3 sound file on the server.
I found a 2000 tag by Lewis A. Sellers III (aka Min) called CFX_AudioInfo that was written for CF 3.1 and Windows NT... that was my first CF server, but today I need something newer... anyone knows Mr. Sellers? Or some other pointers for me?
Thanks for any tips.
LBPSlavaMy God! I found Mr. Lewis and the 2012 version of that 2000 tag at http://www.intrafoundation.com/software/CFX_AudioInfoMX.htm
This answerts my own question, and I am letting this post stand inc ase someone searches the forum, for this. -
Versioning of fla and swf files
Hi there,
I am working on a small flash project with one other
developer and we email fla and swf files back and forth. So far
date/time stamps and file sizes have been good enough for "version
control".
I am familiar with versioning systems for development but
what about after a release? How can I determine a released swf
file's build version? Date/time stamps can change with copying and
development could have already progressed and multiple version of
the same swf file are out there...
I am surprised that there isn't a built in mechanism to
assign a version number to a fla/swf file (e.g. as part of the
publish profile) that one can then view via the files properties
dialog... or perhaps somebody has to show me the light... :)
Does anybody have a recommendation on how to give a fla/swf
file a version number that can be checked once the file has been
released?
Thanks,
Dan.. or, Plan B), use QuicktimeX' ability of Screen-Recordings to record while you playback those files in their app.
The resulting mov can be treated as any other movie in iMovie.
Vector-graphics, interactive formats, etc are of no use in an video-editor ... -
Flash .swf file not appearing in browser when publishing from iWeb 3.02
I have been working on a site for the last couple of months that i created in iWeb 2.0 and had successfully had small flash movies that I embedded via html snippets from code provided by numerous sources and youtube videos demonstrating how to get flash movies into one's site.
The url is
www.almafoods.com
Today i upgraded to 3.02 and had to make a change to the home page. The domain opened up fine with all the HTML code and .swf on the page exactly as I had it in version 2.0
When I now publish to a folder, first of all it doesn't copy over the .swf file unless I create a link to the file, but even when I upload all the directories to my ISP's remote server, the movie isn't not showing up in the browser. The html code file and .swf file are in their correct directories on my ISP's remote server
I'm baffled as to what is going on here as its the exact same domain that worked perfectly in 2.0 and this has peed me off no end
Does anyone have any suggestions or encountered the same problem in 3.02?
Any advice would be very much appreciatedYour .swf files are in the same folder as the widget-markup files.
Keep your custom files OUTSIDE the folder with the sitename iWeb creates.
iWeb will overwrite everything when it needs to do that, wiping out your custom files.
Put the files in a separate folder and determine the link to these files.
Read this : Using the iWeb HTML Snippet
Besides that, to display these tiny pictures I wouldn't use Flash.
Read this : Create a Banner Slideshow
And then look at this page : My House -
How do I find the width of an external swf file that I am loading in
I have loaded in an external swf file and it works fine.
However, when I get the width dimensions of the movieclip that is housing the external swf file it gives me a '0' for the width.
Thanks for your time.you must wait until loading is complete before trying to access the loaded objects width. at that point you can determine the width,height of the onstage/backstage objects in frame 1 of the loaded swf.
-
How can I tell if and how a SWF file is streaming?
My department is new to Flash, but we've now been creating
basic Flash Videos for websites for a few months. We've always
encoded our videos to FLVs (Flash 8), and then used the Video
Import Wizard in Flash 8 to import those FLVs into our FLA
document. We now need to be able to error-check all of our files
(each video comprised of four files: an HTML file, an FLV file, and
two SWF files including the player skin) to make sure that
progressive videos are indeed progressive and streaming videos are
streaming.
My process thus far:
In Flash 8, I brought up the SWF file and opened the Output
window; from the Debug menu I then selected variables. I was able
to find the variable "isRTMP:false", which according to the
documentation seems to mean that the video is progressive, not
streaming. However, when I authored this FLA file, I know I chose
the streaming option (FVSS not FCS) in the Video Import Wizard. Am
I looking in the wrong place? Am I confused about the meaning of
this variable?
Bottom line, how do I determine after authoring whether an
SWF is streaming or progressive, and moreover whether it's been
authored to use FVSS or FCS?I'm sorry, perhaps I was a little unclear. The files are all
still stored herelocally, since they have not yet been deployed.
I'm looking for some property of the SWF file (maybe visible
through Component Inspector?) that will tell me how it has been
authored. Is there any place in the SWF file itself that contains
this information (since the files are not yet deployed)? -
Loading multiple consecutive .swf files in Flash 8
I have a question and hope that someone may be able to help;
this might be a piece of cake for you...
I have a container .fla movie and would like to load
consecutive external .swf files. Right now I have a play button
triggering the loading of the next movie, but what I would REALLY
like is a smooth transition from .swf to .swf using a listener so
that the next .swf will load once the previous one has finished. I
have a counter which determines the next .swf in order.
So far, my code is this:
Counter:
stop();
//SETUP OUR COUNTER
var mcCounter:Number = 0;
//THIS BLOCK IS ONLY TO HANDLE THE LOADER AND THE FIRST
MOVIE, movie0.swf
var myMCL:MovieClipLoader = new MovieClipLoader();
var loadListener
bject = new Object();
myMCL.addListener(loadListener);
myMCL.loadClip("movie" + mcCounter + ".swf", 6);
loadListener.onLoadComplete = function():Void {
_level0.play();
//-------------------------<CLIP
LOADERS>------------------------------\\
function loadNextClip():Void {
if(mcCounter < 6) {
mcCounter++;
var nextMCL:MovieClipLoader = new MovieClipLoader();
nextMCL.addListener(this);
nextMCL.loadClip("movie" + mcCounter + ".swf",6);
//LOADS PREVIOUS CLIP , WON"T GO PAST ZERO
function loadPrevClip():Void {
if(mcCounter > 0) {
mcCounter--;
var prevMCL:MovieClipLoader = new MovieClipLoader();
prevMCL.addListener(this);
prevMCL.loadClip("movie" + mcCounter + ".swf",6);
//-------------------------</CLIP
LOADERS>------------------------------\\
Any suggestions? I appreciate ANY help you can offer. I have
been unsuccessfully looking for hours online, and can't find any
examples, although it doesn't seem as if it should be the hardest
thing in the world.
Thanks!You need a monitor to know when one movie clip has completed
play. A simple
monitor could be adding onEnterFrame handler to the
container_mc when
MovieClipLoader onComplete or onInit is fired. In that
handler a test to see
when the loaded clip's _currentframe == the loaded clip"s
_totaframes.
Ex:
this.createEmptyMovieClip("container_mc",
this.getNextHighestDepth());
container_mc._x = 0;
container_mc._y = 0;
var swfNumber:Number = 0;
var swfNumberMax:Number = 25;
var swfNamePrefix = "MovieClipLoaderDetectEndOfPlay_Movie";
var mclListener
bject = new Object();
mclListener.onLoadStart = function(target_mc:MovieClip)
target_mc.startTimer = getTimer();
mclListener.onLoadComplete = function(target_mc:MovieClip)
target_mc.completeTimer = getTimer();
mclListener.onLoadInit = function(target_mc:MovieClip)
var timerMS:Number = target_mc.completeTimer -
target_mc.startTimer;
target_mc.play();
target_mc.onEnterFrame = function()
trace(this._currentframe)
if (this._currentframe == this._totalframes)
trace("Load Next Swf")
loadNextSwf()
var container_mcl:MovieClipLoader = new MovieClipLoader();
container_mcl.addListener(mclListener);
function loadNextSwf()
swfNumber++;
if (swfNumber <= swfNumberMax)
var swfSuffix = ((swfNumber<10)?"0" :"") + swfNumber;
container_mcl.loadClip(swfNamePrefix + swfSuffix + ".swf",
container_mc);
loadNextSwf()
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"dragonlilly" <[email protected]> wrote in
message
news:[email protected]...
I have a question and hope that someone may be able to help;
this might be
a
piece of cake for you...
I have a container .fla movie and would like to load
consecutive external
.swf
files. Right now I have a play button triggering the loading
of the next
movie, but what I would REALLY like is a smooth transition
from .swf to .swf
using a listener so that the next .swf will load once the
previous one has
finished. I have a counter which determines the next .swf in
order.
So far, my code is this:
Counter:
stop();
//SETUP OUR COUNTER
var mcCounter:Number = 0;
//THIS BLOCK IS ONLY TO HANDLE THE LOADER AND THE FIRST
MOVIE, movie0.swf
var myMCL:MovieClipLoader = new MovieClipLoader();
var loadListener
bject = new Object();
myMCL.addListener(loadListener);
myMCL.loadClip("movie" + mcCounter + ".swf", 6);
loadListener.onLoadComplete = function():Void {
_level0.play();
//-------------------------<CLIP
LOADERS>------------------------------\\
function loadNextClip():Void {
if(mcCounter < 6) {
mcCounter++;
var nextMCL:MovieClipLoader = new MovieClipLoader();
nextMCL.addListener(this);
nextMCL.loadClip("movie" + mcCounter + ".swf",6);
//LOADS PREVIOUS CLIP , WON"T GO PAST ZERO
function loadPrevClip():Void {
if(mcCounter > 0) {
mcCounter--;
var prevMCL:MovieClipLoader = new MovieClipLoader();
prevMCL.addListener(this);
prevMCL.loadClip("movie" + mcCounter + ".swf",6);
//-------------------------</CLIP
LOADERS>------------------------------\\
Any suggestions? I appreciate ANY help you can offer. I have
been
unsuccessfully looking for hours online, and can't find any
examples,
although
it doesn't seem as if it should be the hardest thing in the
world.
Thanks! -
How to publish a smaller SWF file
Dear Sirs,
I have create a Captivate project to output SWF file as product demo. The swf file has a high resoluation, but it is too large, I want to get it more small in file size, some compromise in quality is acceptable.
I have set a smaller Jpeg% value on SWF Size and Quality when publishing the project, but it take no effect, anyone help me? Thanks.Hello and welcome,
Several factors will be responsible for the SWF output file. You use high resolution (ppi, 24-bit; sometimes I have better results with Optimized which cannot be set here but has to be done in the slides themselves), probably needed because of quality. You can reduce more by setting only those slides that need this high quality to High (or Optimized) and leave the others at Low but this also has to be done in the Slide Properties and then you'll have to check 'Retain Slide Quality Settings'. But what is the total resolution of your project: widthxheight? Because that is also one of the main factors! Next question: do you have audio? Audio clips add a lot more to the filesize than slides and/or graphics. If you have be sure to keep the lowest acceptible settings for the audio. Do you have video inserted? Again... adds to filesize.
Maybe this seems a stupid question, but I have so often seen files with slides that have an unneccessary long duration. Each second of a slide adds 30frames to your project...
Lilybiri -
Can a swf file begin executing code before loading completely?
I have a swf file with a preloader on the stage at authoring
time. The preloader centers itself by retrieving the stage
dimensions and calculating the coordinates it needs.
This works everytime in Flash preview, but once I put it
online it only works sometimes, mostly after I refresh the page.
The stage width and height it seems, are considered = 0 when this
happens and so my preloader doesn't position itself correctly.
The only reason I can determine for this error is that when
the code begins to execute the swf is not fully loaded, and thus it
gets wrong stage dimensions. I have exported the swf file to have
100% width and heigth, don't know if there are known issues with
this mode of publishing.
Any help on this matter is appreciated, thanks in
advance.Hi Tim,
This idea offers some interesting possibilities. (Thank you.)
I'll have play with it to see if I can make it meet our needs.
I'm worried that the caption would be forced inside of the
perimeter of the movie, instead of outside next to the playback
controls.
If there was a way to get the timer to line up with the
playback controls outside of the Captivate 4 movie, that would be
ideal. Here is a
Snapshot
of what we are trying to re-create in CP4.
- Tom - -
Detect audio in swf file?
Hello,
We are working with a software package that records the
user's screen and audio from their microphone and then saves the
recorded session (video + audio) to an swf file.
Unfortunately sometimes there are audio problems during
recording and when you play back the swf file you can see the video
but you don't hear any sound;.
Is there a way programatically to detect if the file contains
audio or not? Furthermore since all files are indeed intended to
have audio, is there a way to determine if the audio in the file is
something other than the sound of silence (i.e. some actual noise
or activity in the audio stream)?
Thank you
-lucenaWhat's the name of the product? Who is the manufacture? Have you talked to them? I assume this product produces a swf but no fla. It sounds like either the product is defective or you're not using it right. I suppose there are several products that do that the only one that I know about is Captivate.
Captivate has a Forum here at Adobe. You could import the swf and talk to it but I'm still trying to figure that one out so I can't help you there. -
Editing a swf file with Adobe Flash cc or Dreamweaver
Hi,
I have a .swf file which is embedded in to a html file, I need to make changes in the swf section of the file which Dreamweaver can not help me with it.
I tried to click on the swf file and take it to Flash cc, but still I can not edit and make changes.
If I dont have the fla files, I can not edit the .swf file at all?
I have all the applications of the creative cloud but couldnt find any of them helpful in this matter.
Is there any help?
Thanks,I have no experience with any decompilers beyond possibly attempting to trial one once. The only one I have seen recommended is made by Sothink.
Here is a link to a page with a tool that has an interface you can use to determine various properties of an swf file, including the Actionscript version.
http://blog.sitedaniel.com/2009/11/swf-info-width-height-swf-version-actionscript-version- framerate/ -
Video and skin in single swf file... sigh....
Hi all,
This may be an obvious one to some of you but I have been
tearing my hair out for several days and cannot find detailed
information on what I am trying to do anywhere...
I have a requirment to convert several short DV video files
to SWF so I can publish on a web page. The finished products need
to be a single SWF files.
Importantly they also need to include a control skin.
I have been trying to use both Flash CS3 and Captivate 3 to
do this with no success. (I have found info on how to do it with
Captivate, i.e. remove borders etc, but that presents some other
problems which I won't go in to here as it's a different topic)
Is what I am trying to do possible inside Flash ? Surely it
is?! Can I import a DV video, add a control skin and publish it all
as a single SWF ?
I believe there are shareware third party products that can
do this, but I really want to use Flash and I can't understand why
it appears to be so difficult. (unless I am missing something
obvious...)
So if anyone coudl help that would be fantastic, even if
that's just pointing me in the direction of some reading material..
Cheers.oconndav,
> Is what I am trying to do possible inside Flash ? Surely
it is?!
It is. :)
> Can I import a DV video, add a control skin and publish
it all
> as a single SWF ?
You can, but be aware that video -- especially sizable video
-- works
best when the FLV file is situated outside the SWF. I
understand that your
project requirements dictate otherwise, which makes this a
bit of a
challenge, but you can put everything into a single SWF. It
just means
you'll be building your elements by hand and will control the
video as if it
were a movie clip (that is, a MovieClip class instance)
instead of an
FLVPlayback instance or Video instance in conjunction with
NetConnection and
NetStream instances.
> I believe there are shareware third party products that
can do
> this, but I really want to use Flash and I can't
understand why
> it appears to be so difficult. (unless I am missing
something
> obvious...)
Well, again, heavy Video files aren't really designed to
play inside
SWFs. For whatever reasons Macromedia/Adobe chose, video is
ideally
designed to be controlled as an external asset.
In your case, you won't be able to use the FLVPlayback
component. You
won't even be able to use the older Media components or the
component-less
Video object solution. You'll import your video asset to the
Library, place
it inside a movie clip symbol (which will stretch to an
incredible length),
then place your movie clip on the Stage and give it an
instance name. Once
it has an instance name, you can refer to it with
ActionScript. The
MovieClip class entry of the ActionScript 2.0 Language
Reference (or 3.0, if
you're uasing AS3) will give you everything you need to know
(and can do)
with movie clips.
ActionScript will give you access to the total number of
frames of that
clip, as well as the current frame. You can tell the playhead
to go to any
of its frames, play, stop, etc. In this way, you can mimic
many of the
capabilities of the FLVPlayback component -- though with less
precision.
The "skin" of your video player will be determined by you
... by button
symbols for the buttons (or you could use movie clips), as
well as other
graphic elements. It's going to be a totally
built-from-scratch project,
and you'll have to program the buttons yourself. How would
you rate your
comfort level with ActionScript?
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
Swf file getting paused/freezed while playing
Thanks in advance for the help provided.
I have created swf file using scorm format in captivate. Both in preview and publish, the frames get auto pause in the middle(it varies - sometimes middle, sometimes towards the end) of the slide duration. To resume, we have to manually select the play button in the pay bar. As a result of this, text animation with fixed duration fly in as a block once we select the play button.Hello Parvathy,
The behavior is normal. You are using a Button widget, I think the corrected Static Button widget, and that one pauses at half the duration of its timeline. Since you show those widgets for the total duration of the slide, which is 31 secs, it pauses at exactly 15,5 secs. I did check this by using a Text Caption with the system variable rdinfoCurrentFrame, it halted at the value 465 (FPS=30, so this is 15,5secs).
Do you need that widget really? For a normal button (you could create a custom image button with similar look) you can control the timing of the pause, which is not the case for this widget. Or else you'll have to delay the appearance of the widget, so that its duration is shorter and time in such a way that the last Text animation is playing totally.
Was also astonished by the size of that 1-slide file...
Lilybiri -
Hi all...
I've got problem here. I have a flash file, but in one time
i've to renew the image in it an i'm using the update or import
button in bitmap properties. After that my swf file is getting
bigger. but there is no change at all in the original fla size. i'm
using apple computer MAC OS X.
Is it normal or not?
Is something wrong with my image? what is the best image
format in flash? i'm using jpg image format.Hello Parvathy,
The behavior is normal. You are using a Button widget, I think the corrected Static Button widget, and that one pauses at half the duration of its timeline. Since you show those widgets for the total duration of the slide, which is 31 secs, it pauses at exactly 15,5 secs. I did check this by using a Text Caption with the system variable rdinfoCurrentFrame, it halted at the value 465 (FPS=30, so this is 15,5secs).
Do you need that widget really? For a normal button (you could create a custom image button with similar look) you can control the timing of the pause, which is not the case for this widget. Or else you'll have to delay the appearance of the widget, so that its duration is shorter and time in such a way that the last Text animation is playing totally.
Was also astonished by the size of that 1-slide file...
Lilybiri -
Flash CS5 SWF File not functioning in Captivate 5
Hi,
I have an Interactive SWF File created in Flash CS5 that has an Intro screen with a button to continue etc and it opens to a presentation with several buttons, and works fine.
I bring the SWF file into Captivate 5. It shows fine in the Slide, but when I test it or publish it, two things happen.
It stops after a second and disappears. I have set it to play for the duration of the animation, but it makes no difference.
If I extend the timeline out to several minutes then it will stay, but although the Start button works, nothing happens, it just sits there.
how do I get the Slide to stop and stay so that the user can take their time interacting with the animation. ( I dont how long someone will spend on the presentation)?
Why doesn't the interactivity actually work?
CheersTake a look at this other thread: http://forums.adobe.com/message/3606274#3606274
It may explain the reason for the issue and what you can do about it.
Maybe you are looking for
-
MSI Z97A Gaming 6 meets up Intel Broadwell i7 5775C
It’s been awhile since I posted short reviews of PC hardware stuff but today I have something up my sleeve. We will take a quick glance on MSI’s Z97A Gaming 6 motherboard together with Intel’s new Broadwell Processor. Box design is same as any MSI Ga
-
Camera RAW Update, Bridge default settings
I just updated Camera RAW. I use CS6, but now the Bridge is set to open in PS CC by default and CS6 is not even listed as an option. How do I get CC back off and CS6 set back to default? Thank you!
-
How do I lighten up an animated gif?
I am attempting to lighten up (brighten) all frames of an animated gif in Photoshop CS5. I can achieve the desired result in frame 1 but I can't figure out how to simultaneously apply the exact same adjustments to all the remaining frames (layers). C
-
Is this even possible with Automator???
I have a workflow that drains every bit of my memory and resources after it loops about 250 times in a row. I have to close out automator and then reopen it and the workflow to free up resources and continue. Is it possible to somehow have automator
-
Alternative ways to read excel in Sharepoint
Now I'm facing with a problem of reading excel file on SharePoint server. In the old ways I usually use the OLEDB to read excel through the connection string, but it's just work on 32 bit system, then I attempt to convert my app to x86 platform targe