ActionScript 3.0 :: MainTimeLine.as Class & Import Fl.video.FLVPlayback?

Jan 6, 2010

i am creating a package, MainTimeLine.as, to extend my main timeline.  i use the FLVPlayback component under the package.  however, i get the compile error:

1172: Definition fl.video:FLVPlayback could not be found. so i added the "import fl.video.FLVPlayback;" line to my MainTimeLine.as file, but flash gives the above error. now i had this problem when i added this code directly under a frame of the main timeline until i added a FLVPlayback instance to my library.  now, i am trying to simply embed all of the code under the MainTimeLine.as file and have the as file encapsulate all of it.  but, i still get that error.
 
so, how do i get flash cs4 to recognize and use the import properly

View 2 Replies


Similar Posts:


Flvplayback Imported With Video Import Wizard?

Dec 16, 2009

I imported multiple flvplayback videos on my file via the Video Wizard Import. After that I removed all videos except one. But it's still trying to load those old video and the skin of their player when I preload the file. I am sure there's no player on the stage except the one I need. And when I need to play the file, it's working well, the only problem is the extra loading for 6 skins that I don't use anymore and the time to look for 6 videos that are not there. So here're my questions;
 
1-When you import a video via Wizard, it there a script hidden somewhere that can be found? 2-When you import a flv to the stage, there's a loading bar saying getting metadata. Is there a place to edit or erase this metadata ?
 
3-Any other ideas of where I could look to find this hidden data or trace or ghost that needs to be remove from the file ?

View 1 Replies

Professional :: Video On Site - Showing Error - Warning : The Linkage Identifier 'FLVPlayback' Was Already Assigned To The Symbol 'Video/FLVPlayback',?

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

Actionscript 3 :: Error #1009 When Adding An FLVPlayback Via "Import Video" Into Another Scene

Dec 21, 2009

In Flash CS4, if I create a new AS3 file and use File > Import > Import Video to bring in an mp4 video it works great. However, if I create a new scene and import the video into that, I instantly get this error at runtime:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_fla::MainTimeline/__setProp___id0__Scene2_Layer1_0()
at Untitled_fla::MainTimeline/frame1()

Is this normal behaviour? I don't get this error using AS2. How can I add the FLVPlayback object to a different scene in AS3 without explosions?

View 1 Replies

Flash :: Use FLVPlayback Class To Play An Instance Of Video?

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

ActionScript 3.0 :: Access MainTimeline From Class?

Feb 15, 2008

I have a .as class which calls an event function. When the event fires, I'd like the MainTimeline to play..

View 9 Replies

ActionScript 3.0 :: Swf Loading As MainTimeline Class Instead Of MovieClip?

Aug 18, 2009

I'm loading a few external swf's into my file at runtime using load().Once each one is loaded I run a function on it to search through it's children.I use code similar to below to iterate through all the children and check if the name contains a particular string and then perform a function on it.

Code:
for(var k:String in theMC){
if(k.indexOf("character")==0){

[code]....

View 3 Replies

Actionscript 3.0 :: Accessing Function From Doc Class Of Maintimeline?

Mar 30, 2009

Found several suggestions, none of which have worked. I am sure I am probably overlooking something really stupid, so I need another set of eyes to look at my code. I have a main.swf that preloads and loads an intro.swf. On the intro.swf there is IntroMC that contains skip_btn. When the user clicks skip_btn, I need to call a function named traceMe() from the document class of main.swf. If you look at the comments for the intro.swf code, you can see the error I am getting.

Here is the code for main.swf
Code: Select allpackage
{

[code].....

View 6 Replies

ActionScript 3.0 :: Calling A Function On Maintimeline From Class?

Apr 17, 2009

How do i go about calling a function in frame 1 of my timeline from a class file?

my function TEST on frame one of main timeline is just using a trace.

This is my error:

1061: Call to a possibly undefined method TEST through a reference with static type flash.displayisplayObject.

View 1 Replies

ActionScript 3.0 :: As3 MainTimeLine.as Class Access From Symbol MovieClip

Jan 9, 2010

i have a MainTimeLine.as Document Class using as3 in flash cs4.it beginning looks like:[code]where the as file is declared in the Document Class of the primary fla file.  under this primary fla file, i have a MovieClip symbol which points to another fla file.  well this file declares a Class Linkage and i can access the properties and objects of the embedded symbol fine from the MainTimeLine.as script file.however, i have the above public player variable defined, as shown above, in the MainTimeLine.as code.i am having trouble accessing the player properties/methods from the embedded symbol fla file.  how do i do that?

View 5 Replies

Flash :: Access MainTimeline Symbol Using Class-level Embed?

Jan 18, 2012

Here's the scenario: We have a creative team that operates in Flash CS5.5 and produces SWF assets which have both graphics elements and actionscript code in them, and an engineering team which authors .as files and builds "code SWFs". The code SWF files must load or embed the creative assets and interact with the code therein for our apps to function.

For iOS mobile development, there is another consideration - it is not possible to load runtime code in an AIR app packages for iOS because of Apple TOS (see related question). Hence, it is not possible to use a Loader to load SWFs in an iOS environment and retain their code.

Embedding a SWF into an ActionScript file the standard way results in a Loader that loads the embedded SWF directly as bytes. This results in access to the top-level, main timeline as follows:

[Code]...

View 1 Replies

Flash :: Professional - Import YouTube Videos Into FLVPlayback Component?

Jun 18, 2011

I'm now working on a flash website, i need to play a youtube video inside my flash movie. In this Flash file i have a FLVPlayback component and i tried to link the youtube video into this but did'nt work.

View 1 Replies

ActionScript 3.0 :: FLVPlayback.complete - Play The Video Files With The Playback Component In Each Of The Frames Where The Video Was

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

ActionScript 3.0 :: Undocumented "MainTimeLine" Class?

Aug 19, 2009

Has anyone ever put this code in the timeline?

Code:
trace(this);
//result: [object MainTimeline]

[code].....

View 5 Replies

ActionScript 3.0 :: Call The Class Into To My Control As File But Can't Import A Class?

Mar 18, 2009

I need to call the class into to my control as file. The problem I'm getting now is this error. "environmentTab.lightsButton.addEventListener(MouseEvent.CLICK, selectLights);" environmentTab is a instance name of a movie clip that is on the stage of my .

View 2 Replies

ActionScript 3.0 :: Create A Main Class And Then I Import Another Class Into It?

Sep 25, 2009

I have a problem with classes. What I am trying to do is this: I create a main class and then i import another class into it.then I create an instance of the new class and add it to the stage.the problem occurs when im trying to use the new classes methods.

import classes.NewClass;
var test:NewClass = new NewClass();
addChild(test);[code].....

View 2 Replies

ActionScript 3.0 :: Flash Import A Class That's In A Package Into Another Class?

Jun 18, 2010

So basically i have my root folder with my fla and my document class in it, then I have a folder called 'main' with another class in it (Control)

But I can't seem to import my main.Control into my document class... (I would like to create an instance)

Code:
package{
import flash.display.*
import main.Control//is this wrong?

[Code]....

View 3 Replies

Loading Video To FLVPlayback?

Jun 26, 2009

I'm doing the exercises included in the book "ActionScript 3.0 for Adobe Flash CS4 Professional Classroom in a Book", but I have run into a problem I cannot solve regarding the use of the source property of the FLVPlayback component.

[Code]...

An error like this appears: "NetsStream.Play.StreamNotFound", saying that there is no video file there I also try with absolute paths, with slashes instead of backslashes..., and I just get to get it working if I copy this video file in the same folder in which lesson11_start.fla is, and enter "solution5.f4v".

View 1 Replies

IDE :: FLVPlayback Loop The Video?

Jun 14, 2006

We have a major project on here at the moment to do with flash menu designs and videos etc. Basicly we have a menu where u click a button and it jumps to a frame. On that frame is the information etc, and a video for that particular subject. What im asking is this: We have put the video in using FLVPlayback and was wondering if it is possbile to have the FLV loop the video.

View 12 Replies

ActionScript 3.0 :: Playing .mov Video With FlvPlayback

Apr 22, 2009

I have some .mov files I need to play with the flvPlayback component. When I had them in my actionscript it does not work. I've read allot and it says that the component will play mov video but it does not for me.
 
I am running CS4 with FlashPlayer 10 and AS3.

View 1 Replies

FLVPlayback Plays Audio But No Video?

Jul 30, 2009

this one is really doing my head in and any advice (even vague thoughts) would be really great.I have an FLVPlayback component on the stage and I am loading 8 FLVs in to 8 separate video players within it. I then play the first one and when it ends I randomly select which to play next.Everything seems to work fine except that each time I run it one or two of the clips play back with only audio only and no video. It is not the same clip each time but whichever one it is will consistently fail to playback untill I re publish when it chooses a differrent clip to fail on.I am publishing for FP8 from CS4 on a Mac and it fails when I test movie as well as in FF and Safari.
 
If anyone has any ideas on this at all please shout them out or I am heading for the forrest never to return

View 3 Replies

ActionScript 3.0 :: Play Video In Flvplayback?

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

ActionScript 3.0 :: FLVplayback Video Must Be In Same Directory?

Oct 28, 2011

I try loading my video from a swf file using flvplayback component using the script below

[Code]....

but I notice that the swf file doesnt link the video instead i have to place my video the same directory with the swf file and change to flvPlayback.source = "Listening_to_Community_Voices.flv"; Does that mean the video file im linking must be on the same directory as the swf or did I wrote my code wrongly.?

View 2 Replies

Use File=> Import=> Import To Library... Or Import To Stage...the Flash Environment Becomes Terminated?

Aug 18, 2009

I`m using flash cs3 for my works , but i have one problem!when i use File=> Import=> Import to Library... or Import to Stage...the flash environment becomes terminated.I changed my flash version to CS4 and I have this problem again.

View 2 Replies

ActionScript 1/2 :: FLVPlayback Audio But No Video When Streaming?

Aug 7, 2009

I have a flash program that loads an external flv dynamically. I first create an empty movie clip then I attach an instance of the FLVPlayback component using Moviclip.attachMovie();. Then i control the FLVPlayback component with AS2. I have a play and pause button, a scrubber, and a loading progress bar.  None of these are components. When I publish and preview the file in Flash CS4, Adobe Flash Player 10, and all my internet browsers everything works fine, all the buttons, the multiple functions of the scrubber, and even the loading progress bar.

However when I uploaded all the files from my computer to my company's server and tested it from there, I recieved audio but no video. All of the various controls still worked for the audio but I couldn't see anything on the stage. If I waited for the loading progress bar to complete and then reloaded the external flv then I got video, but the purpose of this program is to stream the video and I cannot have the users waiting for a preloader.

If you want to look at my FLVPlayback code here it is:

_root.createEmptyMovieClip("lesson_mc",-16381);
lesson_mc.attachMovie("FLVPlayback","lesson_video",0);
lesson_mc.lesson_video.contentPath = page.attributes.url;
lesson_mc.lesson_video.autoSize = true;

[code]....

View 4 Replies

ActionScript 3.0 :: Checking For End Of Video With FLVPlayback.STOPPED?

Feb 22, 2010

Forgive my "desperate newbie" begging, but I could really use a little help here. REALLY new to actionscript 3.0, can't really get my brain wrapped around it yet. I'm working on a kiosk presentation that allows a user to select from a number of videos. When the video is complete, I'd like playback to return to the main menu. This is running directly from a hard drive, so there's no need to dynamically load and stream video. I've placed several FLV Components at various points on the main timeline, and set the pathname for each using the Parameters on the Properties box. ALL I need to figure out is how to set up a listener to detect when the video ends and perform a navigation function that I've set up. Pretty sure it's gonna use FLVPlayback.STOPPED, but I've tried a zillion different options on how I think it's supposed to be used, but nothing is working out for me.
 
The clock is ticking on my deadline and I just...can't...figure...it...out. If anyone can tell me how to accomplish this I will sing your praises to the heavens. I know it's simple stuff and I promise not to bother you anymore with stupid questions.
 
If you have a solution for me, please be VERY specific as to where any code gets placed ("put this in frame 1 of the main timeline," and "put this in the frame where your video starts.")

View 8 Replies

Professional :: FlvPlayback/flvPlaybackCaptioning - Video Not Loading?

Jul 14, 2010

I'm using the flvPlayback/flvPlaybackCaptioning components.My file works perfectly when I test the movie within Flash.When I publish it,I cannot see any video, even on my own PC.I have the fla, flv and xml files in the same directory.In flvPlayback component,I have skin set to None and I'm using a captionButton and playPauseButton.The source has the flv filename and autoPlay is set to False.In flvPlaybackCaptioning, source has the xml filename and the captionTargetName has the textbox instance.showCaption is set to False. Everything works fine until I insert the captioning elements.  The captioning works perfectly when testing.I can't see where I've gone wrong.

View 2 Replies

Professional :: FLVPlayback Component Video And Skin As One Swf

Sep 7, 2010

Is it possible when publishing a Flash CS4 file to have the Video swf and the Skin swf be in one swf file? I have a Flash CS4 (AS2) file that has a FLVPlayback Component. When I publish or test movie 2 swfs are output. I need only 1 swf as I am then going to insert this 1 swf into a Captivate 4 project. When I insert the video swf by itself into Captivate 4, I do not have a play bar/skin. If it is not possible to publish as one swf, how I can insert the 2 swfs into a Captivate file and get them to work?

View 3 Replies

Professional :: Play H.264 Video Using FLVPlayback Component

Jul 27, 2011

i'm trying to embed h264 mp4 video into website using flash cs3 professional.
when i select the source file it's looking for .flv files and not the mp4 file so the mp4's are greyed out.i read a great tutorial using a pc which shows the workaround for being able to see the mp4 files.url...I'm however using a mac and this method of putting an * in the file name box doesn't work on mac.

View 1 Replies

ActionScript 3.0 :: Cue Points On Video NO Flvplayback Component

Oct 19, 2011

Is there any way to read cue points from a flv which i load intro a netstream object? I dont want to use a component.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved