ActionScript 3.0 :: FLVPlayback With Buttons In External Swf?
Jul 7, 2009
Still learning my way around Flash & AS. I'm using CS3 and AS3 for this project: I'm using the FLVPlayback to display 4 videos, each one being called by it's own button (a movie clip) that sits next to the player. This .swf goes into a webpage and works very well. Each button calls the appropriate video and I have no problems.Now, I've been told that "elsewhere" on the page, we need to have those same buttons that call up the 4 videos. In essence, just a copy of those original MC buttons located in a different spot on the webpage (so they cannot be part of the original .swf).With AS3 how do I do this?
Is there anyway to add some new custom buttons on a FLVPlayback skin? i already try to put the button, everything fine, add a dispatchEvent with bubbling true,to that button to capture elsewhere in my aplications, the button appear on the skin but canīt get the Event
I've created a flv movie, and I have a button showing that I want to vanish when I press the play button on the flvplayback controller.I searched the web and came up with this:
Code: // Play Button code function btnPlayClickHandler(event:MouseEvent){
im trying to load different flv's into an FLVPlayback component on my stage via buttons.[code]1119: Access of possibly undefined property videoSource through a reference with static type flash.display:SimpleButton.
I was wondering if anyone knew how to hide the skin in the flvplayback component on ROLL_OUT. SkinAutoHide seems to work whenever it feels like it and sometimes the button controls just stay over the video. This happens in Safari and IE I believe. I am used Actionscipt 3.0OR does anyone know how to get to the display list of the component, where all the names to all the buttons (and skin) is housed, using the instance names from the component fla file does not work. I looked at the documentation and the names of all the button sprites are there, but i need the name of the background that the buttons sit on top of.
Is there a way to disable/enable the buttons in FLVPlayback component? I got a flv files loaded into a fla file and the swf file then loaded onto the main fla file which where I want to disable/enable the FLVPlayback button at certain time.
Creating a simple video for embedding by importing a video into flash creates a separate swf for the controls. Is there a way to have the controls embedded in the main SWF, so you don't have to worry about paths to the control swf?
I've been working on webdesign for some years now, having worked mainly in full flash websites with a lot of actionscripting. Thus I consider myself quite familiar with actionscript but only AS2 as I've still haven't made the cross to AS3 (I know i'm almost 5 years late...).I've been recently hired to convert interactive points on some museums that were working with dvd menu's to flash. I've constructed and programmed everything with no trouble at all using some programing to use a circular menu and the flvplayback component to load external 720P HD movies on f4v format. Everything was working perfectly until I was faced with the real PC's that were being used on the museums. Some of them are okay PC's and so I just had to reduce the quality of the videos a bit (a 20 mb bitrate was too much... lol).
However some of them are the equivalent of netbooks (like the Asus EEE PC) and that's where my nightmare begun.So the real problem is this: the computers can run the HD videos perfectly through the VLC media player. However, using the flash presentation either on flash projector or an swf running through an html on internet explorer results in an unwatchable video all sloppy and with buggy sound.I've even tried loading the videos inside a totally empty flash project which still resulted on the same problems.What happens is that when the flash loads the videos the system usage of the processor results in 60 percent with peaks reaching the 80 percent.The weirdest part is that sites like youtube that run HD movies work on those pc's but my presentation does not.Do you have any suggestions on what might be happening?? Is this a problem that has to do with the FlvPlayback component and that I could solve using the Open Source BetterFlv component instead?
I have a custom movie clip in the flvplayback skin and I am looking for a way to call an external js function.[code]Unfortunately, the External Function is not being called at all.
have a swf that plays an flv in the flvplayback component. Currently, I have an external preloader that loads the swf, then once the swf is displayed the flvplayback component buffers. I would like the external preloader to also load the flv buffer. I had done it before it AS2 by having the first 50% of the preloader be the swf,and then have the flvplayback component invisible and have the last 50% of the preloader do the flv buffer.Maybe this is a crazy solution, is there a much easier and logical way to do this?My real problem is that my external preloader loads the swf and the preloader bar using the addChild method and I can't figure out how to have the swf communicate with it's sibling to update the progress bar on the progress of the flvplayback component.
there seems to be no accepted method of playing multiple flv using buttons. My latest attempt has me putting multiple instances of the flvPlayback component in different frames and using buttons to navigate to those frames. It works but nothing anyone has posted anywhere will result in removing the flv when you go to a different frame and instance. This was simple in AS2. Load movie to a traget and each time you load a new movie the other one goes away. REALLY goes away.
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
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 am using a preloader to load external swf and accessing its functions/ variables, but after external swf loaded my movieclip (Which contains buttons to access external swf) is staying behind the loaded swf, now I want that movieclip to stay on top of the loaded external swf.Code using for loader:
I have external swf files playing in flash when clicked on their corresponding button on the menu. However I would like for two more buttons (Next and Replay) to appear at the end and on top of the external swf.
"Next" button going to the next external swf and "replay" button to replay the current external swf. I have provided the code that I have so far
ActionScript Code: import flash.display.MovieClip; var Xpos:Number = 220; var Ypos:Number = 105;
I have a container .swf file which takes care of loading a menu.swf and maincontent.swf. I finally got these working together and loading at the same time, but now I ran into another problem. None of the menu buttons work. It loads and XML takes care of creating the buttons and adding dynamic text to them. I also have it set up so that the mouse's hover position over the clip scrolls it horizontally (because there are too many buttons to show at once). All of this functionality works correctly. However, the buttons' rollovers, clicks, etc. do not register.
The cursor turns into the hand cursor over the entire movie clip into which the menu is loaded, and I'm assuming there is some problem with the events only targeting the clip it is loaded in, and not the buttons themselves. It works fine when testing it by itself. I've just recently begun working with Flash, and I learned AS3. However, I was given pre-existing commercial software to work with which was written in AS2, and now I've converted all of my work, and this is the problem I am running into. By the way, it seems to always come up from what I've seen, though I don't understand much about it -- _lockroot is set to true.
I am loading an external SWF file on button click, however, when the external SWF loads, it covers the buttons..how I can keep the buttons on top? I even tried lading the External SWF into a Movie clip and putting the buttons on a layer above it - and it doesn't work...
Here's my code:
// Array of external clips to use. Variable index refers to next clip to be displayed.var clips:Array = ["page1.swf", "page2.swf", "page3.swf"];var index:int = 0;
I am loading an external swf in an empty movie clip in my main movie. Within the external swf are several buttons (in a scrollpane). I have this code written on a frame within a movieclip which contains the buttons:
thumb_1.onRelease = function () { _root.gotoAndStop("big1"); }
"thumb_1" is the instance name of the button, "big1" is the name of the frame the button goes to when clicked. All of this works fine untill I bring it into my main movie. I believe the problem has something to do with the "_root." command. I think the main movie is trying to find a frame within its timeline, rather than the external swf. Know what I mean? Anyway, all I know for sure is that the buttons within my external swf don't work when loaded in my main movie.
I would like to load one or more buttons at runtime into my main fla. But how? I've figured out how to load an external swf (I suppose that is the way to go for this problem?). But then how do I reference the buttons in the swf?
ive been trying to get some buttons to load into my main movie called rules.swf using an external actionscript file. Ive got the buttons to load into the movie but now i cant get the buttons to load a new movie,Heres part of my code
I have a main fla file that loads three external swf's depending on which of the buttons are clicked in the main fla. These buttons work fine. The three external SWF's are all flip books. The page turns correctly on the book itself, but buttons I put at the bottom so that there is a right and left arrow for page turning do not work when loaded into the main fla. These buttons work when the swf is playing by itself, but when the main fla externally loads the swf, theses left and right buttons don't work.
You can see it here: [URL]
This is the actionscript on the buttons that work when they play individually, but you'll see in the editorial book on the site, the left and right buttons do not work.
I have four button on my main movie, which basically will load an external swf when pressed. (I have four swf in total) Right now, i'm able to load the first movie directly using this [code]...
I have a dynamic txt frame in my main swf.When buttons are selected,text from an external txt file loads into the text frame.This all works fine.What I would like to do is be able to load an external swf into an empty MC and then be able to dictate what the buttons on the external swf do (such as load text).The last line of the below AS is my attempt to path to a button that is on an external swf
//_root.1.noiseaudio.easing.theText.sad.onPress = function () { loadTxt(path+"sad") }//
but that didn't work.start here. This is on a frame on the _root swf.
I'm pretty new to working with external .flvs and I'm being requested to add buttons with "getURL" to the movie (like you'd see on [URL]). How do I go about this? Would I import the .mov into Flash, add the actions, export the whole thing as a .mov, then dump it back into the Video Encoder to convert it to a .flv? My limited experience with .flvs was using Sorenson Squeeze to convert .movs to .flvs. I've never added actions, buttons, etc. to a .flv.
I had tried to disable some button in external.swf which I loaded into the movieclip (mc_content) in the main.swf. The instance name of button in external movie is btn_1. _root.mc_content.loadMovie("external.swf"); this works perfectly - it's open that external.swf in main movie. I have also a disable button (btn_disable) in main movie.
I want to populate a series of buttons from and external text file but unsure of how to do so. Lets say I have 5 buttons. Each one with a Var (Target1, Target2, Target3, etc.). How do I change the text on those buttons from and external text file?
I have this weird problem. I'm using a main fla to address all my external swfs into a loader. This is the script:
[Code]...
It loads just fine, but for some reason when I click in every button inside the loaded movie it wont work. Nothing happens, even though the mouse cursor changes to button mode.