ActionScript 2.0 :: [CS3, AS2] Only One Instance Of FLVPlayback Allowed?
Feb 16, 2009
I have a site on which I need to have multiple videos.
The way I have it set up is that there are two frames, one for each video, each with an instance of FLVPlayback on it. For some reason, only the last one that I designate will work.
I have tried the following:
-Importing both videos separately onto their frames
-Copying an instance of FLVPlayback from the working frame and pasting it on the other, only changing the variable that tells it where to get the FLV from
Yes, the videos are both linking to the right place, in the FLA I can see that each parameter points to the correct video, but whichever one I do last is the only one that will work. The other video won't even come up with a dead player, the screen is simply blank. No visible instance of the FLVPlayback box, no sign of the control (I am using ClearExternalAll).
View 1 Replies
Similar Posts:
Oct 27, 2009
I want to utilize the FLVPlayback component so I don't have to create my own skins and the documentation says the FLVPlayback class "wraps" the VideoPlayer class and ALL the methods/props available in the VideoPlayer class are available to the FLVPlayback class, BUT I notice the FLVPlayback class doesn't inherit or subclass the VideoPlayer class and some of the methods/props for the VideoPlayer class generate errors when utilized by the FLVPlayback class.
In short, I want to take a NetStream instance that has the stream I want to utilize and force that on the FLVPlayback instance. I can get it to work with the VideoPlayer instance BUT NOT the FLVPlayback instance. I don't want to set the FLVPlayback instance's "source" property with a string as the documentation suggests, I want to do something like:
Code: flvPlaybackComp.attachNetStream(stream); how can I accomplish this? I've seen the "getVideoPlayer" method on the FLVPlayback class and thought that might be a "round about" way of controlling the underlying VideoPlayer instance, but haven't gotten that to work properly.
View 3 Replies
Nov 18, 2010
Is it possible to use the FLVPlayback class to play an instance of the Video class? I'm loading the video (which is just an audio track with cue points) in using GreenSocks LoaderMax (along with the rest of my assets) and so have various instances of Video. The FLVPlayback class only accepts a String as its' source. Is there any way to hack it to bypass whatever loading it does and just feed it the video directly?
View 1 Replies
May 27, 2009
I'm trying to use FlashVars to pass a FLV path from html a FLVPlayback instance. I get how this is supposed to work, but I can't find any good documentation on the needed ActionScript. The closest thing I could find was a discussion about a script that looked something like this:
[Code]...
View 4 Replies
Jan 5, 2011
I'll start by saying that I'm in the process of learning actionscript. That said, I'm wanting to play two videos with actionscript. I went through a tutorial and using a pre-built flash player I used the following script
[Code]....
Which worked fine. That said, that was just a test. We are wanting to use the F4 Player. I opened up the player and looked at the actionscript (which is below). I had some trouble, so I posted on here and this was my response..
[Code]....
View 0 Replies
Feb 21, 2011
I am trying to find when an FLV I am using with a FLVPlayback component with an instance name of "videoComp" is finished playing. Here's the code:
videoComp.addEventListener(VideoEvent.COMPLETE, movieDone);
function movieDone(event:VideoEvent):void {
trace("movie complete");
[code].....
View 1 Replies
Mar 20, 2009
Does creating a new instance of an Object that uses an identical name to an older instance, delete the previous instance? Or should the original instance be deleted first? The code uses a ridiculous amount of XML vars. Isn't it less memory intensive to parse the XML and save the properties to an Object, and then delete the XML Object, rather than keep the XML Object around and reference it's child nodes directly? Is it better form to break up a huge XML file (>600lines/3200vars) into smaller chunks?
View 1 Replies
Apr 27, 2010
I have attached a video on a frame of my website in Flash. When I preview the movie the film plays as it should.But when I export the Fla. as a Swf. file it then doesn't have the movie there anymore?It does show this error:
**Warning** The linkage identifier 'FLVPlayback' was already assigned to the symbol 'Video/FLVPlayback', and cannot be assigned to the symbol 'FLVPlayback', since linkage identifiers must be unique.
I really don't know what that refers too.
View 1 Replies
Dec 4, 2011
For a download.php I need to set allowed file extensions. What do I need to insert for an Adobe Air file (.air) file?
$allowed_ext = array (
'zip' => 'application/zip'
View 2 Replies
Dec 19, 2010
I'm dynamically creating an instance of a textField into my "stage" as a input text. This works fine but somehow, it doesn't allow me to type some keys such as "w", "p", "�" and the letter "b" is always displayed as "B". I'm working with Flash Professional CS5 and I've also tried to compile my class with Flash Builder 4 both with an AIR 2.0 project but it work just like described above.
View 6 Replies
Apr 20, 2009
Fullscreen mode feature can be enabled/disabled with allowFullScreen attribute of the embed/object tag.
Is it possible to know inside action script code if the fullscreen mode is allowed .
I want to hide fullscreen button in my app if fullscreen mode is not available.
View 4 Replies
Aug 15, 2009
I have the student edition of adobe flash cs3 and I currently have it installed on my desktop. I was wondering if it is legal to also install it on my labtop. It is for personal use, I don't know if that changes anything. I'm sure this is somewhere on the adobe site, but I can't seem to find it.
View 1 Replies
Apr 9, 2011
i made both the scrollpolicies (horizontal and vertical scrollpolicy) to "off", but if i scroll the mouse the content was scrolling. how to avoid this behaviour?
the sample code is
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark" xmlns="*" creationComplete="init()">
[code]....
if you just click the hgroup and scroll,then the contents are scrolling. now i want to aoid this behaviour.
View 2 Replies
Apr 27, 2005
How to specify in this validation script that letters are not allowed?[code]box is a text field.
View 6 Replies
Jul 22, 2003
I use a free web host for a site but they don't allow uploading of mp3 files (they filter and block them)
I want to offer visitors a choice of background music that would have to be streamed or loadMovied'ed as mp3 files, here lies the problem.
I thought a work-a-round would be to have a small empty movie off stage that contained the swf music file but I then thought that someone might have a more elegant solution.
When you use loadMovie to download a swf file into a parent movieclip, what's the best way of initially filling the parent movie BEFORE anything is downloaded, assume you use attatchMovie - is this correct ?
View 6 Replies
May 31, 2010
I am currently working on a simple program that when the user clicks a button it adds 1 to a textbox for whatever button has been pressed. For example they click a heads button it puts 1 into the box, they click 1 in the tails button and it displays another 1 in the the box. What I am having a problem with is that once the total number of clicks has been done (15) I want it to stop and not allow anymore clicks.
Here is my code so far:
btn_Heads.addEventListener(MouseEvent.CLICK, runHeads);
btn_Tails.addEventListener(MouseEvent.CLICK, runTails);
btn_Clear.addEventListener(MouseEvent.CLICK, clearData);
var coinArray:Array = new Array();
var headsTotal:int=0;var tailsTotal:int=0;
var counter:int=0;
[Code] .....
The code runs all and well but when the total value reaches 15 I want it to stop and not allow anymore clicks.I was trying a for loop. Basically all I need it to do is that the Box's that are getting numbers put in them I need the total 1 to stop at 15 and not allow anymore changes.
View 1 Replies
Jan 5, 2011
I have two functions that use loadNext. How can I have that? I don't quite understand it and would greatly appreciate help. I'm bolding the two areas that use the loadNext function.
[Code].....
View 1 Replies
Sep 30, 2010
I'm getting the "Component declarations are not allowed here error" where I've got my RadioButtonGroup. Below is the custom component. Why can't I put a RadioButtonGroup in it?
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[code].....
View 1 Replies
Jan 28, 2010
I'm using CSS in an AS2 Flash file to format my text. I'm having problems using classes in conjunction with tag selectors in order to obtain two levels of specificity - does this NOT work in flash? Are you only allowed one level of specificity?For example, there are instances where I want my links to be one color, and other instances where I want them to be another color. There also are instances where I want them underlined by default, and with no decoration on hover. Then there are other instances where I want it exactly the opposite, where they would have no decoration by default, and underlined on hover. So far, I can't get this to work.[code]
View 3 Replies
Feb 25, 2011
Is polymorphism is allowed in class? I mean without using get and set accessor.
View 1 Replies
Jan 25, 2003
im working on a preloader for it. i have a 5.5mb file on a remote server which i link to to test my preloader. when i preview the fla, it works fine. but when i publish and upload to my server, it doesnt work right. it keeps 0 of 0 on the screen. im pretty sure flash can load remote swfs using loadMovieNum() so im reallly not understanding why the preloading works fine in test movie, but doesnt work in my browser. the fla is attached, and you can see the preloader
View 2 Replies
Apr 2, 2007
How to manipulate radioButton using action script and I am developing an application using it, I choose it but not checkBox coz radioButton allows u to make only 1 selection. Now I am kinda stuck coz within the 3 multiple choices. I only want 2 allow the user 2 select only 1 (which might be right or wrong) and after that I want to disable all d radioButtons, so that he won't keep selecting around until he gets the right answer?
View 5 Replies
Apr 27, 2005
How to specify in this validation script that letters are not allowed?
on (release) {
if (Number(_parent.box) < 1 || Number(_parent.box) > 12) {
_parent.worning.gotoAndStop(2);
} else {
[code]...
box is a text field.
View 6 Replies
Sep 18, 2010
How do I write a cross domain policy file which will allow an xml file from [URL] and from [URL]? The only cross domain policy files I've ever used use * as allowable domains I don't want to do this.
View 1 Replies
May 18, 2009
This is showing up in my logs, and i have no idea what is causing it and can't find any more Dropping application (stream_app/_definst_) message. Clients not allowed to broadcast message. It doesn't happen very often, about once every 1 to 2 days.
View 1 Replies
Nov 21, 2009
I have a code like the one below
<mx:Button id="TestingID" width="100%" height="20">
<mx:Script>
<![CDATA[
[code]....
View 3 Replies
Dec 22, 2009
Blank space should not be allowed in Flex Input field... one is fine... but not more than one...
View 3 Replies
Jun 5, 2010
I'm looking for a regex or a way to format the NumberValidator so that only decimal places are allowed.The domain="real" allows you to put integer values, but I need to force the user to but in 2.0 if they want an integer.This is because they pass through a Castor mapping file, it complains if it gets an integer when it expects a decimal.I dont want to restrict the number of decimal places, just insist that there must be a point, and a number after it.
View 1 Replies
Mar 10, 2012
There is a parent Flex application that allows you to embed custom tools in it (SWF files).
I have inspected the HTML wrapper for the parent and it uses SWFObject, and has full screen permitted:
<param name="allowFullScreen" value="true" />
<param name="allowFullScreen" value="true" />
I am trying to put together a tool that simply takes the parent application to & from full screen mode.
Here is a simplified version of the code. I have tried several variations, but still had no luck.
public function toogleScreen():void
{
// this is fired from a function within the child swf
[Code].....
View 1 Replies
Sep 9, 2009
i have a webcam script , how do i auto allow the webcam xcess?
View 1 Replies