ActionScript 3.0 :: Use The Standard Adobe FLVPlayback Components And Skins And Be Able To Play Back Files?
Jul 9, 2008
I have been trying for days to write my own custom NCManager class that allows us to connect to a Limelight stream. We have to issue a NetCOnnect.call() that has the command "FCSubscribe" and the stream name. I've written a 100% custom player(url...) (have to register!) but what I want to to resolve that player with the video-on-demand player(url...) into a single Flash project.I want to allow our Graphics guys (aka Flash developers) to be able to use the standard Adobe FLVPlayback components and skins and also be able to p lay back files, streaming content and Limelight content. To this end I thought that writing a custom NCManager class would be the way to go.
I have 99.9% succeeded: my class gets the connectToURL(),connects to Limelight, subscribes and all is well but I am really really stuck now on how to tell the FLVPlayback component that it .can start playing back now that the stream is connected.FLVPlayback and VideoPlayer parts appear to be AS2 and I cannot call the rtmpStatusInfo() function on the VideoPlayer part to tell it that it is good to go.I am so close I can taste it: If I create a NetStream object and play() it, I can hear the content to I know that if I could only get the FLVPlayback / VideoPlayer dynamic duo to playback then the job would be done.
I have attached the code, warts and all in the hope that either somebody has done this before or can tell me what I have misunderstood about the internal state-machine / FSM logistics that VideoPlayer et al implement.By reading the source code and my debugging statements I can see that I have maneuvered it towards the ultimate goal of playback but I don't know how to make that final step.
PS: I *know* that reconnect() is non-functional but if I uncomment the call all it does is go around the loop again; the real problem is I cannot tell the VideoPlayer that it can play (via rtmpStatusInfo) the data etc
PPS: The meta-data related stuff *only* gets called if I uncomment the NetStream code; this was to check that I had a valid playback stream, which I do at that point.
View 13 Replies
Similar Posts:
Nov 19, 2010
I want it to automatically detect if there's a live video,then play live;otherwise play back.
View 2 Replies
Jan 19, 2011
Some of the "skins" for the FLVPlayback component cannot be used as delivered in the Flash Professional CS5 package.
For instance, if you try simply to run the .swf file: MinimaSilverPlayBackSeekCounterVolMuteFull.swf in Program Files/Adobe/Adobe Flash CS5/Common/Configuration/FLVPlayback skins/ActionScript 3.0, you get the following error message:
VerifyError: Error #1014: Class fl.video::UIManager could not be found.
Such a skin cannot be used in a published application (though it will work within the Flash IDE in Test mode).
Not all the skins have this problem. However, at least all of the Minima prefixed ones do. Of course the one I wish to use is broken. Is there a way I can fix this? If I try to publish the corresponding .fla (in FLVPlayback skins/FLA/Action Script 3.0 I get "Warning: unable to load SWC FLVPlaybackAS2.swc".
View 16 Replies
Aug 11, 2011
When you have a flex project, is it better to use different skins for different components or to use just one big css that has all the styles together?
View 1 Replies
May 11, 2010
I'm looking for a tool to create just the skins for different kinds of Flex 4 components.I'd like to be able to create the components myself and have the designer/artist do the skin, but I don't think they'd like the idea of doing them by writing MXML files.
View 2 Replies
Feb 14, 2012
I am using flashcs5 to make a standard component, the component is a rectangle box, i have set three public properties by inspectable tag.but when export to the swc file and using to a new flashcs project that only one property is valid. [URL]
The following code is binded to rectangle box,
package com.iyoya.ui {
import flash.display.MovieClip;
import flash.filters.BitmapFilter;
[code]....
View 2 Replies
Jul 9, 2009
I would like to create multiple swf files that play from beginning to end, then load the next one without users clicking buttons. For example, I may have files A, B, C, D, E, and F. A plays and loads B. B playes and loads C. C plays and loads D..... until F finishes playing then loads A and it starts all over. What is the best way to approach this?
View 1 Replies
Jun 25, 2010
I use video player from the flash media server and it will playback url.. as this originates from Flash media encoder then i have to enter this on the videoplayer but when i replace localhost with my IP address i get no joy at all. Also i can run url...ok from videoplayer in the media server but it allows the user to use http so how is this achieve as i cannot get it to work at all. tells me there is no connection. also this i try using local host and my IP address as well but no joy.
View 4 Replies
Apr 26, 2010
I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.
[Code]...
View 5 Replies
Dec 28, 2009
I'm currently trying to built a little Air Application where I want to set the normal Command-C key to call a function? Is this even possible to use a standard Menu Command?
function createMenu():NativeMenu{
var menu:NativeMenu = new NativeMenu();
var menuOneCommand: NativeMenuItem = menu.addItem(new NativeMenuItem("Menu 1"));
menuOneCommand.keyEquivalent = "C"; //Command Shift C
menuOneCommand.addEventListener(Event.SELECT, myfunction);
return menu;
}
Moreover I would love to know how I can call a function (myfunction) which is actually a MouseEvent Handler?
function myfunction(e:MouseEvent = null) {
trace('Throws Errors at the moment')}
View 2 Replies
Sep 27, 2009
I just got Flash CS4.i think it is supposed to have several categories of templates.I only have the advertising category. How can I get the standard Adobe CS4 sample templates, like the photo slideshow? I cannot find anyplace on the [url]... site for template downloads.
View 1 Replies
Jan 19, 2010
First post here, I am a flash newbie. I have a fully completed player I have created using standard CS4 component, FLVPLayback, PlayButton, PauseButton, MuteButton and Seekbar. Everything works fine. I would now like to add and additional large centered play/pause button a la youTube.
I am completely stumped, I have tried duplicating the play button instance and quite a few other things (copying the actionscript from the original button that works) to the new button. I've investigated 'linkage' all to no avail, I can't get it to work.
View 9 Replies
Dec 11, 2009
I bought this flash player [URL] here are the files: [URL] Now I want to replace the standard play-icon with one of my own would this be possible, and if yes
View 3 Replies
Dec 22, 2010
ActionScript Code:
for (var v = 0; v <= 10; v++) {
var flv = attachMovie("FLVPlayback", "my_FLVPlybk" + v, v+1, {width:20, height:20, x:100, y:20});
}
With this code I have created 10 flvplayback components and inserted in the screen. How to access to each of this components i have created and change parameters like pause() them stop() play() add contentPath etc., I need that only after the loop is finished not while the loop is still on. Something like
findComponent("my_FLVPlybk1").stop();
View 2 Replies
Dec 22, 2009
I know very little about Flash so I apologize in advance for asking what is possibly a dumb question, although I did a fair bit of research before posting. Our current Flash app, written in AS3.0, is able to display a standard OS browse dialog for the purpose of allowing a user to select files. We are using [URL] to display this dialog.
The documentation for FileReferenceList states that only files could be selected. The new requirement is to allow the user to select directories as well as files. Afterward it would be very nice, but not required, to be able to get a recursive list of all the files in the selected directory. Is it possible to implement this in Flash running inside a browser? The closest I've seen so far is [URL] which does what I want but it only seems to work inside Adobe AIR and is not exposed to the browser.
View 1 Replies
Feb 10, 2010
I'm having a problem making my FlvPlayback go full screen. In FF it works great but in IE (8) it will only work once! the next time, it will flicker and return to normal state.
View 1 Replies
Aug 29, 2011
I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.
View 1 Replies
Sep 28, 2009
i am searching for a way to change the actions taken while clicking on the forward- and back-button of and embed FLVPlayback componente.
View 2 Replies
Jul 9, 2010
I have been working on modifying an existing FLVPlayback skin. Ideally I would like to have one that uses a counter. The problem is, all the fla's provided for the skins with counters fail to publish/compile correctly. Fla's are here: C:Program FilesAdobeAdobe Flash CS5CommonConfigurationFLVPlayback SkinsFLAActionScript 3.0
[Code]...
View 2 Replies
Feb 20, 2012
I have some files in my src directory, some are .class files (Java class files) and some are .properties files, when I create the Adobe air native installer these files are not included. Why is that? How can I work around that?
Also it excludes .mxml files, but that's good. I'm sure that's related, how to change what it includes or excludes?
View 1 Replies
Nov 10, 2009
The Slider (and all UIComponents) rely on direct access to the 'stage' - which is denied due to recent AIR 1.5 security restrictions. This restriction prevents any UIComponent from working when loaded into an AIR app as a local SWF. The parentSandboxBridge cannot return a reference to the stage.
View 1 Replies
Sep 27, 2010
I have a vertical tab-bar with 4 items with different sub tabs. All the four items use data from a single xml file, which is a big file. When the user clicks on a tab, while the data is being loaded this error is shown. TypeError: Error #1009: Cannot access a property or method of a null object reference. I want to disable all the tabs while the xml file is being loaded.
View 3 Replies
Dec 15, 2011
I am trying to override the text setter in the Label component but it behaves weirdly sometime super.text works and sometimes not! and the traces show that there's no error with my code.
here's my code:
import spark.components.Label;
public class LabelXX extends Label
{
private var _initialText:String;
[Code]....
View 1 Replies
Jan 5, 2012
I know this is really subjective, but I can not stand what Adobe has done to Flash's interface (propertys panel to the side, etc). It seems you can only manually modify it so much. Is there like, say, a third party plugin that fixes this?
View 10 Replies
Jul 9, 2009
I'm using the FLVPlayback component to play 4 FLVs.
There are 4 buttons in the swf that can call up each video to start playing. Here's what's on the button 1:
-----
function vid1(e:Event){
vidPlayer.source = "mymoviename.flv"
}
vid1_btn.addEventListener(MouseEvent.CLICK, vid1);
-----
All the controls in the skin (play, stop, pause, etc) are great, except I need to also have a "play next" control.
What type of script to do I need to attach to the "play next" control?
View 1 Replies
Jun 5, 2009
How do you make components/SWC files? Are they same thing? I would like to build an API, but I don't know where to begin. Hopefully I am making sense.
View 4 Replies
Jul 14, 2009
I have a strange problem that I was hoping someone might resolve. I'm a new visitor to the Flash world from other development platforms, so the language seems pretty straightforward, but I have now spent a week and a half on this one bug.
Basically, I'm trying to play an F4V using an FLVPlayback component. However, it seems that the video only plays if the f4v is already in the client cache. If the cache is empty, or disabled, then the FLVPlayback component throws an Error 1000, which seems to suggest it's having trouble connecting/pulling the video off the server. But since it does work on the second visit, then I suspect that it does indeed perform the download -- it just THINKS it can't. [code]...
View 2 Replies
Aug 17, 2009
I'm using Flash CS3 Pro. I want to play over 5h FLV video by FLVPlayback. but 4h video -> no problem. 5h video -> seekbar and total time view have BUG. duration : 21117.796totalTime : 4340.615 why return different value??? FLVPlayback have limit of flv??
View 1 Replies
Mar 9, 2010
Is there any way that i can load a local mp3 file using flvplayback?
View 2 Replies
Apr 7, 2010
I wanna know how to play video in flvplayback in as3. in as2 the method was flvplayback.contentpath=video.flv
but what's in as3?
View 1 Replies