Log in

View Full Version : save as an FLV



evan
08-08-2008, 07:08 PM
This may be one of the dumbest questions yet
but.... here goes
Flash doesn't seem to have an export for FLV unless i'm not paying attention.
There are utils that I can get to convert files.


also..

is there an advantage to using flv with the player on your site as opposed to using swfs?
The files in question that I would be working with contain no interactivity.

mburt
08-08-2008, 07:10 PM
is there an advantage to using flv with the player on your site as opposed to using swfs?
The files in question that I would be working with contain no interactivity.

Flv's are just video. Swf can be interactive. Yeah, I'm 90% sure on this one, you'd be better off with flv's.

smswetz
08-08-2008, 08:02 PM
This may be one of the dumbest questions yet
but.... here goes
Flash doesn't seem to have an export for FLV unless i'm not paying attention.
There are utils that I can get to convert files.


also..

is there an advantage to using flv with the player on your site as opposed to using swfs?
The files in question that I would be working with contain no interactivity.

An FLV will save you some space, but it will have to be put into a swf anyways because you need a swf player to view and FLV, well you do if it's on a webpage.
You're going to want to run the FLV compression and link it to the swf player component in flash.

evan
08-08-2008, 09:28 PM
The reason I asked is becuae I want it to stream -play at it load -can't do that with swf It think.

With interractive work -preloaders are the way to go.

Whith video or just animation I want to limit wait time.

Medyman
08-09-2008, 01:08 PM
Depends on the content. As you said, "with interactive work preloaders are the way to go". The same principle can be applied towards static .swf files. Just play the animation once it gets to 10% loaded instead of 100%.

If the content isn't an actual video, you won't get much benefit from converting it into a .flv. In fact, you might lose some clarity (unless you first record the animation in some sort of video format).

evan
08-10-2008, 11:53 PM
In the case of the flv
It's movies no animation this time no interactivity.

Can you steer me over to a place that discusses the way to set the swf to play at 10%

also I found a good link (http://www.flashmagazine.com/Tutorials/detail/how_to_make_a_custom_as3_preloader/)

that talks about as 3 preloaders -but he uses scenes in his tutorial -so the example there has limited use.

I would really like to see how those "percent" preloaders work-ie the ones that show you the percentace of your file that is loaded.

That would be super cool

loginn
08-12-2008, 12:17 PM
If no interactivity, you just can see it wihout any pause. It is not possible to stop it or drag it for fast speed.. Really. :)

evan
08-12-2008, 03:29 PM
That much I have -namely using buttons -ie
stop();
play();
rewind:
gotoAnd Play(1);
speed it up:
stage.framerate +=5;

etc.
I wanted to set up an array like this:


var clips:Array = ["introswf","pt1.swf","pt2.sfw" ];
var index:int = 0;


// Stuff for loading files

var thisLoader:Loader = new Loader();
thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);

var thisMC:MovieClip = new MovieClip();
stage.addChild(thisMC); // Add empty MC initially so the nextClip function works even on first call

// Gets the next MC, waiting for INITialization before adding it to the stage

function nextClip():void {
thisLoader.load( new URLRequest(clips[index]) );
}


// Remove old clip, tell AS that the loaded file is the new one, add it to the stage, and play.

function doneLoading(e:Event):void {
stage.removeChild(thisMC);
thisMC = MovieClip(thisLoader.content);
thisLoader.unload();
thisMC.addEventListener(Event.ENTER_FRAME, runOnce);
stage.addChild(thisMC);
thisMC.gotoAndPlay(1);
//I added this to center the movieclips --Evan----------------------------:)
//thisMC.x=150;
//thisMC.y=100;
}


// When currentFrame equals totalFrames in loaded clip (playing), increment index & play the next clip.

function runOnce(e:Event):void {
if (thisMC.currentFrame == thisMC.totalFrames) {
thisMC.removeEventListener(Event.ENTER_FRAME, runOnce);
index = (index + 1)%(clips.length);
nextClip();
}
}


// Call nextClip to automatically start the first clip

nextClip();

// Call nextClip to automatically start the first clip

nextClip();

With this script the arrays loop over and over again.

What I want to do is get them to just stop after the last one.

loginn
08-13-2008, 12:49 AM
code? AS3?

:confused:

evan
08-14-2008, 02:03 AM
code? AS3?

The original reason for this post was to figure out how to do something simple. -namely import an .avi .mov, and make it stream in the case of a swf you can also export it as one of those files and import it again(why in a minute).

I overlooked a nice feature, that is.. Flash allows you to import video and stream it with a pluggin. How? just choose one of the radio buttons to import it as streaming media, the it has a dropdown selection to allow several stock choices of buttons.

So if you just want to play a non-inreactive swf just export as an avi or mov and import with these option (it WILL compromise some quality though).

If you want to controll a swf without doing that -you can do it programmatically as I showed above. The only thing a HAVE NOT figured out is how to possibly get a SWF to stream without exporting it and importing it.

There should be a way to do that with actionscript-I think

Medyman
08-14-2008, 05:09 PM
There should be a way to do that with actionscript-I think

Flash is interactive media. If your intent is to play animations, use video! Flash's runtime behavior makes it important that all assets be loaded at the beginning of the runtime.

techno_race
08-14-2008, 10:48 PM
Sorry, but I'm not understanding your problem.
FLV is Flash's native video format. These can be played in Flash (editor) and a few other third-party programs. Yes, no interactivity. These are used for storing Flash movies while working on them.
SWF is the common Flash format. It is used for interactivity and playback. It can be played in Flash (player) which is simply a Web browser plugin. Just because you have a SWF doesn't mean it has to be interactive. It's like Java or JavaScript.
Both of these are JavaScripts:

document.write('Your browser supports JavaScript');

document.write(document.getElementById('select1').value;);
You can save an FLV from Flash (editor) by going to File > Save As.
You can save an SWF from Flash (editor) by going to File > Export > Export Movie.

Medyman
08-15-2008, 04:03 AM
@tecno_race

The question was to mimic the streaming capabilities of video with .swf files.

This isn't possible in the same sense as streaming .flv or other media content. You can, of course preload it. But all of the assets will have to be loaded for the actionscript to execute. If you had separate scenes, or were doing the animations programatically, you could of course load the assets in a streaming fashion.

evan
08-15-2008, 06:41 PM
That is what I needed to know.
SWF interactive
FLV streaming flash format works with pluggin NOT intercative - That much I understand.
:rolleyes:

after determining how to work with FLV -which is pretty simple in itself ,
I was looking to control SWFs like FLVs -why?
I can design cooler buttons -pluggin buttons are dull.
also I want to know more about creating preloader that show you how much of your SWF is downloaded -strictly on interactive projects.

;)