ActionScript 1/2 :: Video Player Not Working Inside A Movieclip
Dec 10, 2010
I'm editing a flash site that needs a multi video player. I've already added a few other features to the site, so know the drill now... This video player just doesn't load the external files to it. I'm doing exactly the same thing I did with the other elements, but this doesn't seem to want to work. I've triple checked the spelling of 'config.xml' and even tried changing the action script settings to frame 2, which just makes all the preloaders spin around!
I have a site I've added a few new modules to, but the video player module just doesn't want to play at all All the components load when I test the movie but none of the external data loads, and when I test the scene with all components on its own it works fine.I've tried a few things but, still can't get this to work, and I've even tried downloading another multi video player and it did the same thing, I don't know where I'm going wrong It's all contained in a movieclip called 'bsv' and as I said works fine when I do test scene or be able to take a look at the site if I were to upload it?
[code]This is my code that i have inserted into the first frame(?) of the fla file.When I use the swf in a html web page, i can hear the video but I can't see it and play skin cannot control the video.This is also a part of a security token code which i'm implementing on the client-side.
I'm creating a video player that is linked with XML. Everything seems to work fine with no errors in the compiler, but my foward_btn and back_btn don't seem to do anything. It shows the trace "foward button" and "back button" but does not move to the next or previous video.
I have this streaming video player with an asyncErrorHandler function which isn't working correctly.In Flash player 10 I get no errors, but in Flash player 9 I'll get a popup window with the error message that shows up in my output window when I test on my local machine.
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on src.display.VideoClass and there is no default value.
I feel that I have my AsyncErrorEvent setup correctly however, but am unsure as to why I still get a massive error in my output window, here is the popup window and code below:My statusEventHandler function
// ☼ --- Handle Status and Errors function statusEventHandler(event:NetStatusEvent):void { trace("connected is: "+ncConnection.connected); trace("event.info.level: "+event.info.level);
Usually maximize, and minimize works while i am opening video player in windows, but when i upload it on website, i cant use maximizie and minimize option. Any working code for websites.
here is my html code: < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
everyone out there that is smarter than me. I have made this little prototype video player, and it isn't working. It'll eventually become a nice little player show videos from our summer camp for the last few years, but first I want to make it work in a basic stripped down version. There is a playback component with one of the skins right above the three buttons.
Here's the ActionScript: btn1.addEventListener(MouseEvent.CLICK, vid1);btn2.addEventListener(MouseEvent.CLICK, vid2);btn3.addEventListener(MouseEvent.CLICK, vid3);
function vid1(e:Event):void{vidPlayer.source = "Video1.flv"};function vid2(e:Event):void{vidPlayer.source = "Video2.flv"}; function vid3(e:Event):void{vidPlayer.source = "Video3.flv"};
It runs fine when I test in in flash and even the .swf file runs fine alone, but when I put it in a .html file via Dreamweaver and in the published .html it doesn't run. What up?
I have four movieclip buttons inside my swf file.I have to add function on each movieclip. I tried it is not working.example code swf_name.butn1_mvc.addEventListener(MouseEvent.Cli ck, functionname);
I have a couple buttons that work outside of the ScrollPane but don't work within it. This is my exact code, how do I get them to work? scrollPane.source = myContent; scrollPane.setSize(173,500); K1Button.addEventListener(MouseEvent.CLICK, playVid); function playVid(e:MouseEvent):void{ myVideoPlayer2.myFLV2.source = "video/K.mp4"; [Code] .....
This is my first time coding a website using ActionScript. So far everything has went very well, I designed the website in Photoshop, and imported to Flash CS5. Then I cleaned everything up, and started adding navigation to the various pages using buttons.The website is constructed in a very simple manner, there are five main pages and they are connected by buttons on a static navigation bar (the first page, home, doesn't have a corresponding button). Then there are nine sub pages, that each contain information on a character of the game, and are connected to corresponding buttons in the 'Character' layer/MovieClip. My four menu buttons (Story, The World, Characters, Extras) all navigate correctly without problems.
The problem arises because inside my Characters page (a movie clip) are nine buttons, each linking to a different page. These buttons should bring the timeline to the frame specified, but when the buttons are clicked nothing happens. I've spent hours searching for a solution to this, but with no avail, and I have a feeling the answer is prettysimple.gotoAndStop("gowang", "Scene 1");line in the Gowang character button function with:MovieClip(root).gotoAndStop("gowang");
i created a flash form which collected data and sent it to an asp file which inturn sent it to me as an email. (for my website).
The form worked fine, as a standalone swf file, BUT now its not working since i did this:
instead of running it as a standalone file, im now trying to run it inside a main, bigger swf file, as a movieclip.Its running inside a movieclip called 'Movieclipcontainer.' And as a result its no longer working!
I havent changed my actionscript, and im thinking I probably need to! but i dont know what changes need to be made. Here is the actionscript on the form:
I created a flash form which collected data and sent it to an asp file which inturn sent it to me as an email. (for my website).
The form worked fine, as a standalone swf file, BUT now its not working since i did this:
instead of running it as a standalone file, im now trying to run it inside a main, bigger swf file, as a movieclip.Its running inside a movieclip called 'Movieclipcontainer.' And as a result its no longer working!
I havent changed my actionscript, and im thinking I probably need to! but i dont know what changes need to be made. Here is the actionscript on the form:
onClipEvent(data){ // show welcome screen gotoAndPlay("brochure", 46); }
I have followed Lee's Flash Video Basics and XML Video Playlist tutorials. All is working great, but I have one problem that I can't seem to solve.The playlist is on my main timeline. What I'm trying to do is load the actual video player in a new movieclip. My problem is I don't know how to reference the xml links to tell it to load movie in a new movieclip when clicked.My script is exactly like Lee's finished tutorial file with one exeption, a movieclip named VideoPlayer_mc with all the player buttons etc.
I have two flash files (say screenOne.fla and gameA.fla). After importing the main symbol of screenOne.fla into gameA.fla as a movieclip symbol (call it screenOneSymb), the simple buttons in the instance of screenOneSymb do not work. By "do not work" I mean they have no rollover, not mouse action, nothing. If I go into the edit "screenOneSymb" in gameA.fla and turn on "Control->enable simplebuttons" the buttons will work while in edit "screenOneSymb" but not on the main flash stage. I've worked around it, but this is driving me crazy. How do I import multi-layered movieclip symbols (with buttons and animations, etc, etc) and get them to work out of the box?
I'm working with several videos each inside their own movieclips. When I click my forward button to jump to the next video I get the second video playing over the first one especially towards the end part of the first video. I can play and stop the movies just fine but it's the gotoAndPlay that's causing me problems right now with forwarding and rewinding clips.
Hope my explanation was clear cause I'm just starting out with AS3
I am trying to create my first semi-serious flash game. The problem I am having is I want to be able to click a button in the players inventory to equip a different armor to the player, and have that armor work in the game on the same movieclip(Player) without having to re-make all the attacks and moves etc. for each change on another movieclip. My ideas are extremely novice like putting each armor and update on a different frame inside the Player movieclip and then doing a gotoAndStop to the frame. Though that may work I don't know how to goto a frame inside a movieclip. I would like to control this using as much code as possible.I would paste my code but I don't have any code for this part of the game so far. I have tried some simple coding but so far I cannot get the pieces together.
i want to know how i can put a flash file inside a flash wbsite. i have found a tutorial [URL] that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf. how i can do that?
i want to know how i can put a flash file inside a flash wbsite. i have found a tutorial (search on google for 4906532_within-another-flash-swf-file.htm since i cant add links) that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf.
Is it possible to use JavaScript to "stop" and "play" video that's inside an FLV player?I want to do this using only JavaScript and without modifying the FLV player or movies.
I have a flash code where i am loading an AS 2 SWF inside AS 3. The thing is if i put the AS 2 SWF on same domain its working fine but if i put AS 2 SWF on different domain it loads the SWF properly but the "stop()" written inside the AS 2 frame doesnt work... and it keeps on playing all the frames continuously...
I need a movieclip to move against the player when the player touches the movieclip i used:
[Code]...
When i put the code in the movieclip on stage level it works perfectly. but when i put it INSIDE the movieclip it only moves right. no matter which side the player is, when the player touches the mc it moves right no matter what.
I have developed a player in AS3. It is working if i provide the IP of the website. But, it is not working when i provide the full domain name. Even, i provide the crossdomain.xml for global access.
I have two mp4 video files on webserver, i wanted to play them in flash player(flv player) on my asp.net page, but i couldn't be able to play them, i also tried to play them in quick time player the same prob occured. but i waz giving the accurate path, there were no spaces in mp4 file names etc. Does it need to have mp4 player(or codec etc) installed on webserver?
I have also some wmv files on that server , and i am playing perfectly using silver light player, and media player object on my website.
I'm trying to get a video (flv) or an swf video player to work on Facebook walls, however no matter what I do - facebook posts the raw fbml and ignores the code.