Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Trouble Adding Flvplayback Flash Cs3



Hi,I can't seem to add the flvplayback component to the stage to a flash actionscript 3 file (for that matter my video imports seem to fail as well)---i have no trouble doing it in a action script 2 file though.any advice?thanks.



Adobe > Flash General Discussion
Posted on: 08/11/2007 07:25:34 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

FLVPlayback Trouble
Hey All,

I am creating video preview pages on my porfolio site utilizing the FLVPlayback drag-n-drop component.

when I run the swf file the player resides in, everything runs flawlessly. However, when I test the entire site (loacally and remotely) the swf file with the vidPlayer that gets loaded into my main site will no display the player anymore Im new to flash video, but I just cant see how it works when you run just the swf that the player is in, and then doesnt all of the sudden when that swf is loaded into a flash site... Grrrr...

Im almost there, but how can I get it to behave like the video players on http://okaydave.com << the way they show the green barber poles while buffering the videos etc. Mine looks exactly like his, but doesnt work like it!

Thanx in advance for any tips!

Trouble With FLVPlayback.complete
I need help bad, so I've cross-posted this on a couple of forums.

I'm trying to build a simple video player using ActionScript 2.0, since I have no experience with AS3.

The user has the option to choose to view one of seven video clips from a menu or play them successively from the beginning.

I'm trying to achieve the following:

On FLVPlayback.complete, the playhead will gotoAndStop() on a particular frame where a frame Action would load the next FLV file.

After the second video completes, I get unpredictable results; the third video plays, but the timeline doesn't move to the correct frame or the wrong video will play.

This is the video code:

import mx.video.*;

loadFLV_videoClip("video_01.flv", "c01");

function loadFLV_videoClip(FLVClip:String, nextChapter:String):Void {

var listenerObject:Object = new Object();
listenerObject.stageRoot = this._root;
listenerObject.complete = function(eventObject:Object):Void {
this.stageRoot.gotoAndPlay(nextChapter);
};

videoClip.addEventListener("complete",listenerObject);

videoClip.skin = "SteelExt_Cornered_PlaySeekMute.swf";
videoClip.bufferTime = 20;
videoClip.load(FLVClip);

videoClip.play();
}

This is driving me nuts, I'd pull my hair out if I had any!!
Any help would be appreciated.

Thanks
Maury

[F8] Adding A Function To FLVPlayback Component
Hi everyone,

Does anyone know how I could apply this code to this component when the stopbtn is pressed?


Code:
stopBtn.onRelease = function() {
tvMC.gotoAndStop(1);
}


Any help appreciated, thanks

Adding Transition To FLVPlayback Component
hi guys,
is there any way to add transitions to FLVPlayback component using Transition manager class. all i wan to do is to add start effect to clips that enter the stage.this can be easily done for movieClip but is there any way to do this for FLVPlatback component.
thanks in advance...

XML Video Playlist Tutorial Adding The FLVplayback
Could anyone tell me how I can switch the Video (actionscript-controlled video,which is used in the tutorial) with the FLVplayback component? (i really like those controlles/skins)

Tnx

Adding Buttons To Stock FLVplayback Component. . .
Ok guys, more issues with the same project. I'm really starting to see what a beginner I am at this. I have a request from the higher-ups to add a rewind button to the FLVplayback component I'm using. It's for a tutorial site with quizzes, so they don't want the option to fast forward or scrub forward, but they want the user to be able to rewind. So I'm trying to skin the FLVplayback instance called SteelExternalPlayMute to include the rewind button as well. Please bear in mind that I have little to no actionscript experience, so talk to me like you would a monkey. A DUMB monkey. Here's a direct link to one of the videos if that's needed: http://www.bullydoguniversity.com/Nissan%20Power%20Pup.swf Thanks again, you're all awesome.

Adding Extra Features To FLVPlayback Component Skin
Hi There,

Can I add Textfields to a "FLVPlayback Component Skin" entering values like playheadtime & totaltime.
Other than that... how can I have additional Moviclips... because I was my created MCs are not reflecting.

Thanks in Advance,
Siraj R Khan
khan_siraj@yahoo.com
---

Adding UIComponent To Library Causes FLVPlayback Rendering Issues
This one is very strange. Another way to phrase the question would be "what does the act of adding a UIComponent to the library actually do?". Warning: by necessity, long winded.

We are building a gallery that must display both images and videos in any order. There needs to be a transition between assets as you iterate over the array of assets. At any one time we have a movieclip that is actively displaying the asset. If it's a video, then there's an FLVPlayback child component in the movieclip created with attachMovie(). When an image is loaded we use a movieClipLoader. When it's time to load the next asset while the previous one is displaying, we clean up the hidden/background MovieClip with removeMovieClip() and then reuse the variable:

// clean up any existing content
clipToLoad_mc.removeMovieClip ();
// get ready for the load
clipToLoad_mc = createEmptyMovieClip ("image1_mc", this.getNextHighestDepth ());

All this has been working great. We've got a nice fade with pan-and-zoom as well as a Tween down to nothing transition working.The fla just has a single FLVPlayback component in the library. The rest of the code lives in action script files and classes.

The trouble starts by adding any UIComponent to the library (you don't even have to use it yet, just add it to the library) and all of a sudden rendering the FLVPlayback control breaks. The call to removeMovieClip() to clean up the movieclip that's not showing doesn't work. Setting either of the clips _visible to false doesn't work. If you're not using the FLVPlayback control, then iterating from image to image still works. When a video loads and the MovieClip hosts a FLVPlayback control, it plays (audio) but the videodisplay nor the skin renders. The previous image which has been told to disappear doesn't.

Any clues on how to debug this? It makes no sense to me that the simple act of adding a UIComponent (button or anything else) to the library would cause a problem to something that was working perfectly. Delete the added component out of the library the code starts working again.

I can't post the project we have as it's huge. My next steps will be to try to build up a tiny repro case that demos the problem I guess. I'm hoping someone with a deep understanding of components and FLVPlayback will have a clue. I've already tried the drop dead simple repro of ploping an FLVPlayback and a button onto the stage and just setting FLVPlayback.contentPath via the Flash 8 IDE. That works. There's some hocus pocus going on with dynamically instantiating the FLVPlayback with two MovieClips and an image loaded into one with video in the other.

thanks,
Mark

Adding Total And Elapsed Time To A Custom Skin In FLVPlayback
I have this player and I am using the FLVPlayback. I have tried to include this code in the skin to see the time displayed there, but it doesn't work. If i use this code in the player itself, it works fine but if i place the text zones in the skin to display the time it doesn't show anything. I am at my wits end. how can i make a skin show the total time and duration for a FLVPlayback player?







Attach Code

myFLVPlybk.addEventListener(MetadataEvent.METADATA_RECEIVED, timeListener);
function timeListener(eventObject:MetadataEvent):void {
var totalSeconds = String(eventObject.info.duration);
var durationTime:String = (totalSeconds > 3600 ? Math.round(totalSeconds / 3600) + ":" : "") + (totalSeconds % 3600 < 600 ? "0" : "") + Math.round(totalSeconds % 3600/60) + ":" + (totalSeconds % 60 < 10 ? "0":"") + Math.round(totalSeconds % 60);
timer_mc1.TxttotalTime.text = durationTime;
//trace("Total time is: " + eventObject.info.duration);
}
stage.addEventListener(Event.ENTER_FRAME, updateTime);
function updateTime (ev:Event):void {
var elapsedSeconds = String(myFLVPlybk.playheadTime);
var runTime:String = (elapsedSeconds > 3600 ? Math.round(elapsedSeconds / 3600) + ":" : "") + (elapsedSeconds % 3600 < 600 ? "0" : "") + Math.round(elapsedSeconds % 3600/60) + ":" + (elapsedSeconds % 60 < 10 ? "0":"") + Math.round(elapsedSeconds % 60) ;
timer_mc1.elapsedTime.text = runTime;
//trace("Elapsed time in minutes:seconds: " + runTime);
}

Adding Textfields/MCs To A "FLVPlayback Component Skin"
Can I add Textfields to a "FLVPlayback Component Skin" entering values like playheadtime & totaltime.
Other than that... how can I have additional Moviclips... because I was my created MCs are not reflecting.

Thanks in Advance,
Siraj R Khan [khan_siraj@yahoo.com]

Trouble With Adding A New Scene
Hi,

I have a main scene that begins with a animation. Now when i add a new scene to house a preloader and place it above the main scene and play the movie the preloader works fine but when it plays the next scene everything stops at frame 1. At 1st I thought it was my preloader but i tripled checked it and it was fine, I also just added a blank scene but i get the same problem. Im using flash 8. ne 1 ever get this problem?

thx

Having Trouble Adding A SWF File To Vb.net
Ok so I found this on a help site somewhere but I can't seem to locate the Shockwave control in VB.net. I am currently using the trial version of Flash 8 and vb.net from 2002. Are my versions incompatible?

VB.Net
Right click on the tool box. Select “Add/Remove Items…”. Select “COM Components”
Select “Shockwave Flash Object”. Click OK
Draw it on the form
Name it “SF1”

Adding Load Bar Trouble
hey guys, i think i posted this once before but i still havnt gotten a solution.
basically what i want to achieve is a site like the "Preloader and Transition for Dynamic Files" tutorial but where it says "loading" i want to replace with a loading bar. now i thought this would be pretty simple and straight forward but as hard as i try to make it work, it wont

this is my best guess so far in the 'content' actionscript

onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadBar._width = getPercent*100;
_root.transition.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}

i thought that should work but it doesnt? can anyone help me out? ill really appreciate some help.

cheers, evan

Adding Load Bar Trouble
hey guys, i think i posted this once before but i still havnt gotten a solution.
basically what i want to achieve is a site like the "Preloader and Transition for Dynamic Files" tutorial but where it says "loading" i want to replace with a loading bar. now i thought this would be pretty simple and straight forward but as hard as i try to make it work, it wont

this is my best guess so far in the 'content' actionscript

onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadBar._width = getPercent*100;
_root.transition.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}

i thought that should work but it doesnt? can anyone help me out? ill really appreciate some help.

cheers, evan

Trouble Adding .mp3 To Project
Hello, I have just started to play around with Flash this week and I am having trouble importing an .mp3 file to my project.  It gives me the error, "One or more files were not imported because there were problems reading them".  However, this is only for certain .mp3 files.  I can import some .mp3's, just not all of them.  They all exist in the same folder and I made sure that the file name were legit.  I am completey lost, so if anybody could help, I would appreciate it!

Regards,
Corey

Still Having Trouble Adding Link To Swf File
Hey There,

I'm still having difficulty adding a hyperlink to an swf file... i tried adding the 'get url' action into the graphic itself, even changed it into a movie behavior- but for some reason when i go to 'basic actions', and scroll down to the 'on mouse event' or 'on clip event', they aren't highlighted- so i can't choose them.

so- essentially. i want the animation to loop, but i only want the url link to open if someone clicks on the animation. the animations i want to become hyperlinks are at the bottom of this page: http://www.lynnguppy.com/johnnyfish.htm

? any more help ? i know i'm probably missing something simple. but i guess that's why i'm a newbie.

thanks for your kind indulgence, lynn

Having Trouble With Dynamic Text Adding, Etc
Hello, Ive gotten lots of help here for my dynamic text and this is the last thing to complete my site.

What I have is a main scene with 2 movie clips
one movie clip you make a selection
the other movie clip shows the total cost, adding or subtracting the amount of your choice.

Its confusing so ill show you what code I have
On first frame of the main scene

Code:
_root.baseprice=700;
_root.surfaceprice=0;
_root.cupprice=0;
_root.legprice=0;
_root.addonprice=0;
_root.total_price=_root.baseprice + _root.surfaceprice + _root.cupprice + _root.legprice + _root.addonprice;


In the movie clip where I want to display the total (named "right"), i have a dynamic text field var: named "total_price" and this code in the first frame of the clip

Code:
_root.right.total_price=_root.total_price;


Now this displays the "700" like it should. But I want it to change as i make my selections in the other movie clip.
So I have this code for 3 buttons, one button makes the value 0, one 100, and one 200.

Code:
//first button
on (press) {
_root.surfaceprice =0;

//different button
on (press) {
_root.surfaceprice =100;

//last button
on (press) {

_root.surfaceprice =200;



So, in theory, shouldnt pressing these buttons change the value of the "_root.surfaceprice" in the main scene, then in turn chang the value of the "total_price" in the other movie clip?

Thank you for the help.
Brian

Trouble Adding Eventlistener In Loop
I'm having trouble adding this eventlistener in a simple loop. Can somebody tell, why the eventhandler doesn't get triggered?


Code:
// handler
function countryHandler(e:MouseEvent)
{
trace(e.currentTarget.name);
}

// add eventlistener loop
for (var i:Number = 0; i < isoCountriesArr.length; i++)
{
var tempId:String = isoCountriesArr[i];
if (map_mc.getChildByName(tempId) != null)
{
var tempCountryMc:MovieClip = MovieClip(map_mc.getChildByName(tempId));
countryArray.push(tempCountryMc)
tempCountryMc.addEventListener(MouseEvent.CLICK, countryHandler);
}
}

FMS 2 - Trouble Adding Application (CentOS)
Hi,

Very recently I managed to install on a CentOS 4.4 platform. I checked what services were running:

./fmsmgr list

21937 pts/0 00:00:00 fmsmaster
32580 pts/0 00:00:00 fmsadmin

I tried to develop my first test application found in 'Learning Flash Media Server 2' book. After creating the subfolder under applications folder, I them tried to add the application inside the Admin Console. The application was added momentarily and then disappeared. I went to check the messages log and by stopping and starting the fms server I was able to isolate the weird Failed messages below:

Jul 27 14:21:49 popcodestudio 257[21937]: Server starting...
Jul 27 14:21:49 popcodestudio Server[21937]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio 257[21937]: Server started (/opt/macromedia/fms/conf/Server.xml).
Jul 27 14:21:49 popcodestudio Server[21950]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio Server[21953]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio Adaptor[21950]: Listener started ( _defaultRoot__edge1 ) : 19350
Jul 27 14:21:50 popcodestudio Adaptor[21950]: Failed to create thread (TCProtocolAdaptor::startListenerThread).
Jul 27 14:21:50 popcodestudio Adaptor[21950]: Failed to start listeners for adaptor _defaultRoot__edge1.

Can anybody help me please, I couldn't find any help anywhere on the WEB.

Thanks a lot

Trouble Adding Commas To String
I'm using code I found on this site to add commas to a large number (so that a number like 1000000 appears as 1,000,000). Below is the actionscript I'm using.

When I define the variable debt as any number, the script works perfectly. But if I define debt as a variable passed to the movie from a PHP file, then the script puts the commas in the wrong places (i.e., 10,000,00). Can anyone explain to me why this would happen, and how to fix it?

var input = debt;
var inputString = input.toString();
var finalString = "$";
var count = 0;
var tempString = "";
for (var i = inputString.length-1; i>=0; i--) {
count++;
tempString += inputString.charAt(i);
if ((count%3 == 0) && (i - 1 >= 0)) {
tempString += ",";
}
}
for (var k = tempString.length; k>=0; k--) {
finalString += tempString.charAt(k);
}
return(finalString);

Trouble Adding Numbers In Array
As an excercise, I'm trying to create a class that will take the average value of numbers in an array.
I'm stuck on adding the values of the array elements. I keep getting "NaN" for the total. Below is my code.


ActionScript Code:
private function getTotal ():Number
    {
        var total:Number;
        for (var i = 0; i<numArray.length; i++)
        {
            total += Number(numArray[i]);
        }
        trace("total= "+total);
        return (total);
    }

Having Trouble Adding Adverts And External Xml
Hello,

I am having trouble adding adverts and external files to a flash website.

I needs some guidance on how to do this properly. Can someone share their knowledge with me?

Thanks,

Sid

Trouble With Adding Buttons That Link To Other Scenes...? (PLEASE HELP)
Greetings...

I have put in the following code, to link to various scenes in my movie...
================================================
For example:

on (press, release) {
gotoAndPlay("Scene 6", 1);
}
================================================

Now, I place these actionscripts on the images that I converted to Flash Buttons and the following error comes up...

================================================
Example:

Scene=Scene 2, Layer=Presentations, Frame=485: Line 1: Mouse events are permitted only for button instances
on (press, release) {
================================================

When I play my movie, the "Buttons" that I created do act like real buttons (my mouse changes on MouseOver) but when I click them, nothing happens...

Why would this happen? I have other buttons in my movie, on other pages that link just fine and I used the same code... Why isn't it working now?


Thanks!!!
Dan

Trouble Adding Duplicated Movieclips To Array
whats up everybody,

once again its almost time to choke the young'ns. I'm on my last nerve and someone or something is gonna catch the wrath.

i have a question or problem that seems easy enough to handle. i've been trying to store my duplicated movie clips inside an array so i can access the x and y positions later. i have duplicate about 20 movie clips and need to have their names stored in an array while they're being duplicated. here's what my code looks like so far:

var intervalID;
intervalID = setInterval(checkLoadStatus, 100);

function checkLoadStatus() {
if(Title.loaded){
clearInterval(intervalID);

//split artist string into array
aArtists = Title.artists.split(",");
aPhotos = Title.photos.split(",");

// initialize stars with Title data
star_amount = aArtists.length;
trace("XXstar_amount = " + star_amount);



//declare arrays
a_Stars = new Array(star_amount);
a_centerCheck = new Array(star_amount);


for (i=0; i<star_amount; i++){

a_Stars[i] = duplicateMovieClip("star", "star" + i, 1+i );

//set length of array
a_Stars[i] = this["star" + i];

//set boolean values to check for position
a_centerCheck[i] = false;

}
star._visible = false;
trace("AAthe elements in a_Stars: " + a_Stars[1]._name);
trace("ZZthe elements in a_centerCheck: " + a_centerCheck[5]);
}
}


the problem is that flash is not storing the elements of the array. on my trace command a_Stars array keeps coming up empty while a_centerCheck displays its elements all fine. stars(the duplicated movie clip) is a child so the target is i believe to be ok. (but is probably wrong also - i just don't know).
any help, as always, is greatly appreciated.

thanks
erase

Having Trouble Adding Action Script To Button Symbol
Hello everyone:
I am hoping someone will read this as I am a developer in 'dires straits' with Flash ( a newbie). My problem regards a layer called "button" which has already been converted to symbol and turned into an invisible button. The problem lies when I try to use the selection tool to select it so that I can add action script to it. Instead of the actions dialogue box saying "actions-button", it says "actions-frame", and as a result, the action script doesn't work. I don't know what to do, it should be simple to select it but something is wrong. If you feel a need to help a developer in need, you can email me at support@tahutiwebsites.com, and I can e-mail you the file so that you can help. Thanks, or you can call me at 310-867-5167
Corinna

Trouble Adding Dynamically Named Elements To An Array Immediate Help Is Needed
OK, here we go... if someone can help me figure this out, I will have successfully completed my site in time for the deadline today at noon...

-- I have an array located at "_parent.emptyWindows"
-- "_parent[this._name]" gives me the name of the current MC and the value I want to add to array "emptyWindows"
-- I'm trying to add an element in this manner:


Code:
_parent.emptyWindows[_parent[this._name]] = _parent[this._name];
That is not working, but not even this is working for me:


Code:
_parent.emptyWindows["bird"] = "bird";
Here I've given an explicit value and name for the element to be added to the array, but obviously something is wrong in my context and I just am NOT finding it.

Any guesses???
Much appreciation,
The Dust

Trouble Adding Animation To Existing Rollover Animation
Hey all,

I'm using Flash 8. I have a picture of a building which is segmented into floors. Upon rolling over a grouping of floors the user sees either a blue overlay, indicating they can click, or a gray overlay simply describing what the floor is. I already have some actionscript in place and I don't need to alter it, I just added more animation to an existing movieclip rollover, but it's not quite working. On one of the floors that rolls-over gray, I want an additional rollover with some text. So I made a movie clip of the rollover animating out and the type coming in and I just added it to the gray fade in movie clip since there was already onRollover actionscript in place there. However, the rollover kept playing over and over again. So, of course I added a Stop action. Then, the animation didn't work anymore, it just rolled over to the final state of that animation. Does anyone have any ideas of what I can do, or what I can do as an alternative? I'll post the actionscript in case that helps. Like I said, the rollover "rolls-over" but either loops (without a Stop action), or rolls over to the final frame in the animation (with a Stop action).

Thanks!
Mc

Having Trouble Adding Additional Text To Text Stored In Var
How can i add "&print=page" to printVar=facility.php?type=all&state=ak so it would be, printVar=facility.php?type=all&state=ak"&print=pag e in a button?
I tried this and it won't work..
[code]
on(release){
getURL(printVar+"&print=page")
}
or
on(release){
newPrintVar = printVar+"&print=page"
getURL(newPrintVar)
}

Flash 8 FLVPlayback
I've been working with the new play back component for the past half hour and something has me stumped. I can view the video and skin if I access the URL of the SWF which contains the play back component.

However, when I load the project through my container file, all I get is the video, no skin. I have checked three times and the skin is there. Is there some weird Flash bug that I don't know about?

Thanks for any insight.

FLVPlayback Changing Another FLVPlayback
Hi,

I have a movieclip with an FLVPlayback component and a second movieclip on it. In that second movie clip, there's another FLVPlayback component. I was wondering if there was any actionscript I could use in the second movieclip to change the contentPath of the first FLVPlayback component upon the completion of the second FLVPlayback component.

This is the code I tried, but didn't work:

var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
this._parent.flvp1.contentPath = "vid2.flv";
}
flvp2.addEventListener("complete", listenerObject);

(flvp1 is the first FLVPlayback component, flvp2 is the second, and vid2.flv is the file to be played in flvp1)

Also, I know that the listenerObject function is working because I tested a trace() command earlier, and it worked.

If anyone could point me in the right direction, I would appreciate it.

Thanks,
Brad

Flash 8 FLVPlayback With FLV Custom UI
Has anybody else seen this problem? I have developed a flash 8 Media player application using the Flash 8 FLVPlayback Control and the CustomUI components, which I have reskinned. When I drop the SeekBar on the stage, and then the volume bar next to it, after testing the movie, I find that the volume bar quits responding to volume adjustments, and when I click on the control handle to adjust the volume, I see a little rectangle appear briefly over the SeekBar handle. However, when I reverse the order of dropping the components on the stage, (Volume bar first, seekBar next), I get the same issue, only in reverse order... meaning that the volume bar works, but the seeker bar does not.

Any assistance would be greatly appreciated.

Thanks
Don

Flash 8 - FLVPlayback Problem
I have lost 3 days on this one, so ANY help is appreciated. The gist of the problem seems to be that once I unload FLVPlayback, it won't attach again.

I successfully display a .flv using the following:

attachMovie("FLVPlayback", "my_FLVPlybk", getNextHighestDepth(), {_width:320, _height:240, x:389, y:226});
my_FLVPlybk.skin = "file:///C|/Program Files/Macromedia/Flash 8/en/Configuration/Skins/ClearExternalPlaySeekMute.swf";
my_FLVPlybk.contentPath = "file:///C|/Documents and Settings/HP_Administrator/My Documents/My Videos/VidOne.flv";

After using unloadMovie: unloadMovie("my_FLVPlybk");, the above code will no longer attach FLVPlayback to the stage.

Any ideas or suggestions for troubleshooting this one?

Thanks.

AS2 FLVPlayback Question (Flash CS3)
Hi, folks. First-time poster here.

Ive got a movie clip in the library featuring an instance of the FLVPlayback component, which plays dynamically loaded videos. (URL strings are fed to its contentPath parameter when corresponding thumbnails are clicked). This mc where, again, the FLVPlayback instance resides, is dynamically attached to the stage via a linkage identifier and then dynamically destroyed (removeMovieClip()). Then re-attached and destroyed again, etc. It seems that the overall performance of the entire SWF drops each time a video is loaded and played. Monitoring the Flash player or the browser through Windows Task Manager when running this SWF file revealed that the memory footprint of the process increased with each time a video was played, which was also reflected by the dropping frame rate. Would anyone have a clue as to what could be causing this? Perhaps the key to understanding this would be to know what happens to the previously loaded flv when a new one is loaded. Does the previous vid still sit somewhere in the memory after the contentPath is set for the next vid, or is it automatically unloaded?
Thank you for any insight.

Flash 8 FLVplayback Problem
I am working on a flash project that is going on a CD and I am using the FLVplayback component to handle video clips. When I view the flash file locally on my machine the scrubber, play button etc on the video shows, but when burned onto a CD the scrubber and play button do not show - video plays fine but there is the little quirk of the disappearing scrubber..... Anyone else know about this? Not sure if it is a bug or something stupid I am doing.

Making A Seekbar Using Flash Mx Not Flvplayback
how would i make a seekbar using flash, i don't want to use the one already supplied on flash 8, which you have to use with flvplayback.

i have searched everywhere on the net, i can't find it.

thank you

FLVPlayBack With Flash Media Server 3
Hi,

Our company has recently started trialing Flash Media Server 3, however, I am having issues attempting to play flv files through it.

Obviously, to cover the simple and obvious answers...
1. Domain restrictions ahve been disabled until I know the playback works
2. Ports are open on the server to play the file
3. On the server administration, in the live log, I am seeing "Accepted the connection from IP:{our ip}"

Ok, so here is the issue...

In the AS2 sample provided with Flash Media Server(FMS herein) 3, the sample file plays fine on the url rtmp://{theServer}/vod/sample/sample.flv, this is no issue. This plays both locally on my pc, on the server (when logged in, thus, in this case theServer = localhost) and when on our HTTPServer

In as3 however, the file does not play. For what ever reason. I had a swf which was playing the flv's off the HTTP server just fine, and all I did was change the source of the FLVPlayBack to rtmp://{theServer}/vod/sample/sample.flv and its a no go.

I even tried dumbing it down, using flash as3, I went to "import to library", selected a random flv off my hdd, then opted a flash streaming server and put in the url mentioned earlier. The flv playback component even matched the dimensions of the video on the server!

But upon publishing, no play!

How To Apply FLVPlayback To Flash Swf Movie
Hi,

I generated a Flash movie (.swf) with frame by frame animation. Each frame is interactive with many dynamic movie clips, and some actions are defined on these movie clips. Each frame is the data for each day. I want to use FLVplayback component to control the play of the Flash movie. I want to stop at a frame, play with it, then continue playing. Previously, I added two buttons (next and previous) to control the movie play. Now I want to use the media playback components to provide more controls.

After I output the Flash swf movie to avi format, I found all the dymanic movie clips disappear (only a few static texts exist). After the conversion from avi to flv format, I got the same thing: all the dymanic stuff is gone. How can I keep the interactive dymanic movie clips, and use FLVPlayback to play the Flash movie?

I think the format conversion causes this problem. How should I convert the swf to flv file? Is there a way for FLVPlayback (or other media playback components) to directly support the Flash swf movie? Or do I have to write some action script for this? Any good suggestions to achieve this?

Thanks a lot,

-zcx000

Flash CS3 - FLVPlayback Control Problem
Hi,

I am creating a simple video playback application where it publishes the flv file on the server using the media server.
It writes the flv file in a folder named "videorecordings". But the FLVplayback control is not able to read this flv file from this folder.

If I put this flv file on another folder named "videoplayback", this FLVplayback control can read and play the flv file.

Pl. suggest any solution to view the flv files.

Probs Resizing The Flash 8 FLVPlayback Component
I'd like to use the FLVPlayback component, and I see that it defaults to 320 by 240. I'd like the video to be smaller, so I resize the component. However, what happens is that while the video itself is smaller, the playback controls do not become smaller. Is there a way to make the playback controls smaller along with the video?

Thanks,

Michael

Flash Video Wrong ContentPath - FLVPlayback Pro's Please Help...
Hi Forum

This one is for FLVPlayback experts. I am using flash 8 actionscript 2.

I am getting a connection error (Error 1000) from the FLVPlayback when the contentPath of a Video does'nt exist. Once I try to stop and close the videoplayer (FLVPlayback .closeVideoPlayer()) the whole site freezes and I get this message in the output:

"1000: Unable to make connection to server or to find FLV on server"

I have added a listener for this error. The listener seems to read the state changes but in the end the system again freezes.... is this a bug ? does anyone know of a workaround? or am I doing something wrong?

Any leads or insight is much appreciated.

Thank you

Stephank








Attach Code

//this is the core of my AudioPlayer class

[...]

private function init(){
bhsModel = BhsModel(getModel());
bhsController = new BhsController(bhsModel);
setController(bhsController);

root = InstanceManager.ROOT;

root.createEmptyMovieClip("audioUI",DepthManager.AUDIOPLAYBACK);
root.audioUI._x = ConfigData.STORYPLAYER_AUDIOPLAYER_TOP;
root.audioUI._y = ConfigData.STORYPLAYER_AUDIOPLAYER_LEFT;
root.audioUI._visible = false;

root.audioUI.attachMovie("audioPlayback","playback",DepthManager.AUDIOPLAYBACK,{width:310, height:40});
audioPlayer = root.audioUI.playback.audioPlayer;

InstanceManager.AUDIOPLAYER = audioPlayer;

}


private function destroy(){}

private function initAsset(_pers:Number,_cat:Number,_clip:Number){
addListeners();
loadAudio(_pers,_cat,_clip);
root.audioUI._visible = true;
InstanceManager.BHSCONTROLLER.on_SP_Launched("audioPlayer");
InstanceManager.BHSCONTROLLER.onPageLoaded();
}

private function destroyAsset(){
trace("destroy Video Player Asset");
removeListers();
root.audioUI._visible = false;
audioPlayer.stop();
audioPlayer.closeVideoPlayer();
}

private function loadAudio(_pers:Number,_cat:Number,_clip:Number){
var aPath:String = StoriesData.getAudioClipFile(_pers,_cat,_clip);
audioPlayer.skin = PLAYER_SKIN;
audioPlayer.contentPath = aPath;
}

private function addListeners(){
playerListener = new Object();
playerListener.stateChange = function(eventObject:Object):Void {
if(eventObject.state == FLVPlayback.CONNECTION_ERROR){
eventObject.stop();
eventObject.closeVideoPlayer();
trace("State: " + FLVPlayback.CONNECTION_ERROR);
}else{
trace("New audio state: "+eventObject.state)
}
}
audioPlayer.addEventListener("stateChange", playerListener);
}

private function removeListers(){
audioPlayer.removeEventListener("stateChange", playerListener);
}

[...]

Using FLVPlayback Component W/ Flash Communication Server
Hello,
I have connected to Flash Communication Server and I am able to load the flv files. However when I try to use the FLVPlaybackComponet, nothing happens it just stays on the preloader. I am using "rtmp://webaddress/moviefolder" in the Content Path field of the Component Inspector. I am interested in using the controls for video playback that are included in the FLVPlaybackComponet.

Can anyone point me in the right direction?

Flash: Video-- Flvplayback--using SWF File In Dreamweaver.
I have placed a video into flash cs3 and made the swf file using the flvplayback, and i have put the swf or published it ...putting it in dreamweaver, I can see the video and hear the sounds when I preview in firefox or iexplore however once I put in my server I cannot see anything or hear anything. It does not show up,. Can anyone help me with this problem. I just took the SWF file and uploaded it through dreamweaver using the insert, media,, flash and placed in my template.

Closed Caption For Flash 8 FlvPlayback Component
Hi all,

I am having a problem in CaptionDisplay class used to add captions for a video.
In my project I have to show many videos in a flvPlayback component, and every video have their own caption xml file.
The caption file is working fine for the first video but when the video is changed the caption doesn't work, here is the code snippet I have used:
In the root I put this code:-

import mx.video.captions.*
var initObj:Object = new Object();
initObj.font = "_sans";
initObj.embedFonts = false;
initObj.textSize = 16;
initObj.textColor = 0xFFFFFF;
initObj.textShadowColor = 0x000000;
initObj.backgroundColor = 0x000000;
initObj.backgroundAlpha = 60;
initObj.overlay = true;
var CC=new CaptionDisplay(_root.tv,initObj);
var ccbtn_ref=new CaptionButton(_root.controls_mc.cc_mc,CC);
ccbtn_ref.toggled=true;
CC.useTimedText=true;
CC.source = "test.xml";

And when the video is completed then I call a function, in which I change the contentPath of the flvPlayback and also put this code :
'_root.CC.source = "test2.xml";'
but this way the next video keep playing but the caption is not shown for the second video.

I also tried to make a new CaptionDisplay object every time a video is changed for the same flvPlayback component. But doing that way the flvPlayback goes to "loading" state and never recover from that state.
Any help will be most welcome.

Thanks in advance,
Vikas.

FLASH 8 -------> FlvPlayback Component (play Next Video After Finished)
Hi All,

My Challenge is this...

To feed up to 5 video references (filepaths) into the SWF which contains the FLVPlayBack component, and have these play in sequence automatically.

Once the first video ends, the next begins...

Currently our FLV player takes 1 filepath passed by FlashVars and plays it.

First things first... I just want to get the function of having one .flv file play after the first has finished... do I need some kind of listener?

Thanks,
B

FLASH 8 -------> FlvPlayback Component (play Next Video After Finished)
Hi All,

My Challenge is this...

To feed up to 5 video references (filepaths) into the SWF which contains the FLVPlayBack component, and have these play in sequence automatically.

Once the first video ends, the next begins...

Currently our FLV player takes 1 filepath passed by FlashVars and play it.

First things first... I just want to get the function of having one .flv file play after the first has finsihed... do I need some kind of listener?

Thanks,
B

Flash CS3 Video Player - Flvplayback Problems With Widescreen
Hi All,

This is my first post and I actually joined this site just to talk about this problem. What I want is to load dynamic movies and check for the dimensions of the video. If the video is in widescreen format, I want to move the movie into the center of the flash player.

Here's a better example, let's say I create a flash video player from the flvplayback component and lock the dimensions of the player so the movie has to play inside a 400x300 window. The video player toolbar (play button, volume control, etc) is about 45 pixels high, so the actual stage is 400x345.

Now when I load a movie dynamically that has an aspect ratio of 4:3 (standard ratio for video) the video gets resized and everything looks fine. However, if I load a widescreen video, the video player toolbar automatically attaches to the bottom of the video. Instead of it being centered vertically with a black border. So let's say we have a widescreen video that is 400x200, I can't seem to figure out how to add a black bar between the video player toolbar and the video itself.

I've attached to images to show what I mean. The first shows what I want it to look like, the second image shows what's happening.

--
The solution I think is to check the height of the dynamically loaded movie and then compare it to the stage height.

What I thought would work would be something like this (forgive syntax errors, just presenting the logic):

if (myflvvideo.height < (Stage.height - 45)) // 45 represents the toolbar
{
myflvvideo._y = ((Stage.height - 45) - myflvvideo.height) / 2;
}

However, the above doesn't work right... I can't seem to get the dimensions of a dynamically loaded video and I also can't seem to separate the video toolbar from the video itself. Any help would be greatly appreciated... I've spent dozens of hours trying to figure this sucker out.

FLVplayback Complete Vs Hiding W/ Javascript(triggered By Flash Button)
Hello,
I am really stumped on this and would greatly appreciate any help.

quick overview of what I'm trying to do:

1. A swf embedded (via javascript) in a page, by default hidden.
2. user clicks button on page to show movie (via javascript/dhtml), auto play (has FLVPlayback that loads external flvs)
3. when user clicks close button (in flash) the play list index is incremented, next flv loaded (to prepare for next view)
the flash 'window' is closed
4. OR when the movie completes the play list is incremented, the next flv loaded (to prepare for next view)
the flash 'window' is closed
5. Next time the user clicks the button, same behavior - show movie, auto play, etc (this time playing the
next flv in the playlist)

Make sense?

So - let me focus on the close button vs the flvplayback complete
if I click my close button, all works as expected - play list index increments, next flv loaded, hide flash (it is now NOT playing)
--> the flash window is hidden, no sound or other indication of the flv continuing play
if I seek the movie any amount, and then let it finish up playing, all works as expected...like just described above.

HOWEVER, if I just let the movie play through, w/out seeking or clicking close - the play list index increments, next flv is loaded, the flash
'window' is closed BUT the newly loaded flv continues to play!

I have it set up such that the button release event AND the flvplayback complete event share the same code to increment, load, close...

So what is the possible difference in how this is getting executed? the 3 scenarios:
button click - works
seek movie a bit, let it play out - works
let movie play in entirety - almost works but flv continues to play in backround! its hidden, but hear audio...

Thoughts or suggestions?

I would greatly appreciate any suggestions/help ANYTHING!

I've included my code:
////start of code
//the base url
var baseUrl:String = "http://www.site.com/";

//our incoming playlist
var playListArray:Array = playList.split(",");

//the playIndex
var playIndex:Number;

//should we play or stop, by default we play
var isPlay:Boolean = true;

//the current movie
var movieUrl:String;

//get the shared object
var so:SharedObject = SharedObject.getLocal("mySO");
//we clear the shared object in case there is old data
so.clear();

this.attachMovie("FLVPlayback", "myFlvPlayback", 10);

//load the player skin
myFlvPlayback.skin = "http://www.site.com/test/MyExternalPlaySeekMute.swf";


//set the movie/index
setMovieIndex();

//listen for the end of the movie
var listenerObject:Object = new Object();

//update our play index for the next time through
listenerObject.complete = function(eventObject:Object):Void {
buttonClick();
};

myFlvPlayback.addEventListener("complete", listenerObject);

myFlvPlayback.play();

///////////////////////////////////////////

function setMovieIndex()
{
//default to first in playlist
if (so.data.movieIndex == null || so.data.movieIndex >= (playListArray.length - 1))
{
so.data.movieIndex = 0;
}
else
{
so.data.movieIndex = playIndex;
}
so.flush();

//make sure index and shared object are in sync
playIndex = so.data.movieIndex;

//get the movie
movieUrl = baseUrl + playListArray[playIndex];

//attach it to the player
myFlvPlayback.contentPath = movieUrl;

}

closeButton.onRelease = function() {

//increment to the next video index before closing
_root.playIndex++;

_root.setMovieIndex();


getURL("javascript: closeFlash()");
}

buttonClick = closeButton.onRelease;

////end of code

Thanks!
-K

[F8] FLVplayback Complete Vs Hiding W/ Javascript(triggered By Flash Button)
Hello,
I am really stumped on this and would greatly appreciate any help.

quick overview of what I'm trying to do:

1. A swf embedded (via javascript) in a page, by default hidden.
2. user clicks button on page to show movie (via javascript/dhtml), auto play (has FLVPlayback that loads external flvs)
3. when user clicks close button (in flash) the play list index is incremented, next flv loaded (to prepare for next view)
the flash 'window' is closed
4. OR when the movie completes the play list is incremented, the next flv loaded (to prepare for next view)
the flash 'window' is closed
5. Next time the user clicks the button, same behavior - show movie, auto play, etc (this time playing the
next flv in the playlist)

Make sense?

So - let me focus on the close button vs the flvplayback complete
if I click my close button, all works as expected - play list index increments, next flv loaded, hide flash (it is now NOT playing)
--> the flash window is hidden, no sound or other indication of the flv continuing play
if I seek the movie any amount, and then let it finish up playing, all works as expected...like just described above.

HOWEVER, if I just let the movie play through, w/out seeking or clicking close - the play list index increments, next flv is loaded, the flash
'window' is closed BUT the newly loaded flv continues to play!

I have it set up such that the button release event AND the flvplayback complete event share the same code to increment, load, close...

So what is the possible difference in how this is getting executed? the 3 scenarios:
button click - works
seek movie a bit, let it play out - works
let movie play in entirety - almost works but flv continues to play in backround! its hidden, but hear audio...

Thoughts or suggestions?

I would greatly appreciate any suggestions/help ANYTHING!

I've included my code:
////start of code
//the base url
var baseUrl:String = "http://www.site.com/";

//our incoming playlist
var playListArray:Array = playList.split(",");

//the playIndex
var playIndex:Number;

//should we play or stop, by default we play
var isPlay:Boolean = true;

//the current movie
var movieUrl:String;

//get the shared object
var so:SharedObject = SharedObject.getLocal("mySO");
//we clear the shared object in case there is old data
so.clear();

this.attachMovie("FLVPlayback", "myFlvPlayback", 10);

//load the player skin
myFlvPlayback.skin = "http://www.site.com/test/MyExternalPlaySeekMute.swf";


//set the movie/index
setMovieIndex();

//listen for the end of the movie
var listenerObject:Object = new Object();

//update our play index for the next time through
listenerObject.complete = function(eventObject:Object):Void {
buttonClick();
};

myFlvPlayback.addEventListener("complete", listenerObject);

myFlvPlayback.play();

///////////////////////////////////////////

function setMovieIndex()
{
//default to first in playlist
if (so.data.movieIndex == null || so.data.movieIndex >= (playListArray.length - 1))
{
so.data.movieIndex = 0;
}
else
{
so.data.movieIndex = playIndex;
}
so.flush();

//make sure index and shared object are in sync
playIndex = so.data.movieIndex;

//get the movie
movieUrl = baseUrl + playListArray[playIndex];

//attach it to the player
myFlvPlayback.contentPath = movieUrl;

}

closeButton.onRelease = function() {

//increment to the next video index before closing
_root.playIndex++;

_root.setMovieIndex();


getURL("javascript: closeFlash()");
}

buttonClick = closeButton.onRelease;

////end of code

Thanks!
-K

Customize "FLVPlayback.as" Provided By Flash CS3
How can we modify & recompile "FLVPlayback.as" provided by Flash CS3 located at [C:Program FilesAdobeAdobe Flash CS3enConfigurationComponent SourceActionScript 3.0FLVPlaybackflvideo]

Thanks in advance,
Siraj Khan
khan_siraj@yahoo.com

Copyright 2005-08 www.BigResource.com, All rights reserved