ActionScript 1/2 :: Play Button To Launch Rtmp Movie?

Jun 1, 2010

I have an .fla created with a single key frame.  In the frame I have a button instance (its own layer), a layer called "act" where my actionscript is entered, and an swf FLVPlayback instance (its own layer).
 
I simply want the button to show when launched, upon being clicked to launch my movie, and the button to disapear.  My FLVPlayback points to an rmtp stream that works fine and is setup to autoplay = true.
 
currently I am using this code but the button doesn't disappear and the movie begins to play before the button is pressed.  I have also switched the movie to autoplay = false but pressing the button does not play the movie.
 
the code on the "act" layer is (my_btn is the button and my_mc is the movie):
 
my_btn.addEventListener(MouseEvent.CLICK, btnClicked);function btnClicked(e:MouseEvent):void{my_mc.play();}

View 14 Replies


Similar Posts:


ActionScript 1/2 :: Button Sounds In Play Scenes But Not In Play Movie

Oct 11, 2009

I have five different scenes all including three different buttons. When I test the buttons in "play scene" - all buttons sounds correctly in all scenes. But when I play movie, there is sound only with one button (the same button in every scene). I have looked for differences, but this button seem to have all the same parameters as the others.

View 10 Replies

Media Server :: Play 2 Rtmp Videos At The Same Time?

Apr 22, 2010

My swf is playing one video in using NetConnection, NetStream and Video object. If I want to stream one more video simultaneously in the same swf I have a few problems. It works when I create more NetConnection, NetStream and Video objects but is that necessary? The code rapidly becomes complex to handle.
 
Is there an easier way like perhaps share the NetConnection, or something (same FMS server)?
 
Question 2
 
The two videos on the stage are suppose to have different size, placement etc. Still the last one created inherit the properties of the first video display. It also starts playing for an annoying couple of seconds before the first one. How can I avoid that (inherit and delay)?
 
var ns1:NetStream;
var ns2:NetStream;
var nc1:NetConnection = new NetConnection();

[Code].....

View 7 Replies

Media Server :: Play .3gp Videos In Mobile Using RTMP (FMS) And HTTP?

Apr 21, 2010

I am not able to play video on mobile device which is .3gp container and H.263 / AMR_NB encoded. I just want to play my website videos in mobile device also just like[url]....I want to use RTMP and HTTP both. My requirement is as follows - Which codec and container will be best? Should I use FLV to play video on mobile device? RTSP required or can be use RTMP? Is NetStream and NetConnection methods different from Flash Player in Flash Lite Player? How to play 3gp video using RTMP stream ie.ns.play(mp4:mobilevideo.3gp, 0, -1, true) is it ok or any thing else required? For mobile browser and computer browser,can I use single player or I have to make different player for computer browser and mobile browser? It would be better if I can do it with single player for both mobile and computer browser. Sample code required for testing. If you can.I got below article in which they mention that we can play video 3gp container in mobile also.

View 2 Replies

ActionScript 3.0 :: Flash - Play Movie Clip With The Button Click Without Playing All The Movie Clips On The Main Timeline

Apr 26, 2009

I'm trying to make a flash website that has clickable buttons that will play different movie clips. But I dont know how to make it to just play the movie clip with the button you click without playing all the movie clips on the main timeline.

View 1 Replies

Media Server :: Unable To Play HTTP Sample,RTMP File Is Not Working?

Aug 12, 2009

i have installed flash media server 3.5 ..windows vista and using FLASH 10right now in Flash Media Server page I am only able to play HTTP sample,RTMP file is not working , i check the sample folder >> and open HelloWorld >> that shows error :: Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failedat HelloWorld/connectHandler()what should i do now need ur help urgent

View 5 Replies

Media Server :: One Play Back RTMP Files In Internet Explorers Browser

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

Media Server :: H264 Rtmp Poor Video Quality Compared To VLC Play

Apr 8, 2011

Same file streamed from FMS4 (same on 3.5) with rtmp protocol has very poor quality compared to real file quality. Is there some low level configuration to do on Flash Server? Is the streaming server making some kind of transcoding before sending the stream? Or it can be Flash Player? Tried unchecking "hardware acceleration" but nothing changes. I am on a local gigabit network, so no network bottlenecks. Video seems very pixelated on the edges (not soft/antialiased). These are the file details:

[CODE]....

View 4 Replies

ActionScript 2.0 :: Bar - Play And Stop Button To Play And Stop Frames In A Flash Movie

Dec 1, 2004

give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck

View 2 Replies

IDE :: Movie In Button: Play Movie In Reverse?

Jan 9, 2009

I have a MC inside a button and I put in in the "Over" state how to make the MC play in reverse on mouseOut? Or is there a better or easier way of doing this?

View 1 Replies

Create A Button That Will Launch A New Email Window?

Nov 5, 2009

how to create a button that will launch a new email window.

View 1 Replies

Get Adobe RTMP SDK / Other SDK Which Implement RTMP Protocol?

Dec 26, 2010

Know how can i get the Adobe RTMP SDK or any other SDK which implement the RTMP protocol.[url]...

View 1 Replies

ActionScript 3.0 :: Launch A Movie Clip In A Sub Menu?

Jul 20, 2010

1st: main button call a movie clip on click which call my

2nd level menu composed of 3 button fading in (movie clip). Each one then call a different movie clip making appear my 3rd level menu composed of 5 button.Here is my problem, when I want to lauch a movie clip from those 3rd level button, nothing happen.

View 2 Replies

Actionscript :: Launch An External .pps File With A Flash Button?

Jun 29, 2011

I have a flash application in which there is a button. On clicking that button, a pps file should play. What I did is published the flash file in a projector format (.exe), created a folder named 'fscommand' and put the pps file inside that folder, and tried to launch the file lying inside that folder from this flash file by using following codes:

on (release) { fscommand ("exec", "file.pps"); }

Another way I tried which I found is:created a .bat file named launch.bat, put it in that folder & tried to launch the pps file via this .bat file using following codes:

Actionscript code:

on (release) { fscommand ("exec", "launch.bat"); }
'launch.bat' file code:
START "file.pps"

But still it's not working.

View 1 Replies

CS4 To Make A Button Play A Movie?

Sep 6, 2009

what is the script in CS4 to make a button play a movie?I have a button that opens each page as a movie. To align the movie I use a blank movie.I have been using the below....what replaces it in CS4?

View 1 Replies

Use A Play Button To Run Movie In Flash?

Dec 6, 2010

Alrighty so I'm super new to actually using coding in Flash (this is my first time, actually) so... yeah. And I pretty much registered an account on here just to ask this.I'm using ActionScript 2 and Flash CS4, and I'm trying to get my play button to play a movie clip. Originally it was in .wmv format, but I have tried importing it in different ways in different file formats to see if it works any better. It works perfectly when I demo it in Flash with the ctrl+enter thing and if I just open the thing in my browser, but when I upload it to my deviantART (to showcase video since they don't support video) it clicks the button and displays a white screen.I'm really not sure what I'm doing wrong, as I've been leafing through a lot of tutorials and trying those out, and it works fine in Flash.

View 2 Replies

ActionScript 3.0 :: GetURL - Launch A URL That Loads Up Another Flash Movie

Jun 6, 2008

At the end of my movie I want to launch a URL that loads up another Flash movie. In the past I would use something like getURL("[URL]"); how to perform this task in Actionscript 3?

View 3 Replies

Flash :: RTMP Streaming Server Implementation: Connect/createStream/play Message Sequence Passed, But No Video/audio In Flashplayer

Oct 8, 2010

Writing RTMP Streaming Server for streaming AVC+AAC video. And it works fine with rtmpdump. But I can't force it to work in flowplayer and other flash video players.The message sequence after handshake is similar to FMS / RED5 / erlyvideo / haxevideo servers: I've tried a lot of variations.

From Chrome debug console I can see, what all negotiating messages passed to the flowplayer. The last one is onMetaData. And after this the working sample (rtmp://flash.tvwmedia.net/LiveVideo//Live300) gets NetStream.Buffer.Full. And streaming from my server don't get it.

I'm starting with AVC Header message, containing sps/pps. After it first AVC picture passed. After - AAC header and AAC sample. And then AVC/AAC samples. This dumped OK by rtmpdump - I have working flv on exit. But flowplayer and others does not work.

[Code]...

View 2 Replies

Get A Movie Clip To Play When A Button Is Clicked ?

Apr 12, 2009

On looking into buttons, I understand that to get a movie clip to play when a button is clicked you simply place the movie clip on the buttons 'hit' state. Having done this it does not work? Have I read wrong? Also the movie clip has a background the full size of the stage area. So when I attach this to the button, the button changes size to the same size as the movie? (i.e. whole stage area). How do I keep the button in it's original size while still playing the movie clip with large background?

View 2 Replies

CS3 Making A Movie Play When Clicking A Button?

Jun 10, 2009

im making an intereactive map and i have certain areas in the map where you can click and a video pops up so you can view real footage of the area. I just need help making the video pop up like how to import it and whatnot.

View 1 Replies

ActionScript 2.0 :: Play A Movie Clip On Button?

Jun 12, 2010

I have a simulation of a 3d rotation in a movie clip and what I want to do is on button press:

1) check to see if the movie clip is on a certain frame and if it is do nothing

2) if it is less than the 16th frame reverse the movie clip and play until it gets to a certain frame

3 if it is more than the 16th frame play until it gets to a certain frame

View 13 Replies

Button From External SWF To Play Movie In Main SWF

Oct 11, 2009

I'm building a website, in which the 'Gallery Page' has a link to an external swf file, which is a scrolling clip of thumbnails.
 
What I want to do, is create each thumbnail into a button, which will then play a Movie Clip from a frame located in the Main swf file. (So basically, each thumbnail button is a small photo, will play that photo in a large scale as a movie)
  
eg.
 
thumbnail1_btn  needs to go to main swf and play movieclip1.mc, frame 1
thumbnail2_btn nends to go to main swf and play movieclip1.mc, frame 2

View 2 Replies

ActionScript 3.0 :: Roll Over A Button And Play A Movie?

Jan 25, 2010

OKay I have a button, "home_btn". I also have a movie clip, "movie1_mc."
 
What I want to do is when I roll over "home_btn," I want it to play "movie1_mc."
 
What is the action script code to make a roll over on a button play a movie.
  
*The movie is going to be a sub navigation list containing other buttons, which will fade in when you roll over the main button.

View 18 Replies

ActionScript 3.0 :: Play Movie With Text Button?

Mar 25, 2010

I'm trying to get a movie to start once I click on a text button (play movie).So far I have this code in place and it is working.I just need to know the function necessary to start the movie to put in place of the comment I have below.[code]...

View 1 Replies

ActionScript 3.0 :: Play A Movie Clip With A Button?

Feb 14, 2009

i am tryin to play a movie clip with a button and my code is like this..

stop();
function onSouthClick(evt:MouseEvent):void {
gotoAndPlay("southsouth");

[Code]....

View 1 Replies

ActionScript 2.0 :: Play Movie Clip From A Button?

Nov 18, 2009

I have a button which I have made into a button symbol.

I have created a movie clip in which a panel fades in and out.

I would like to play the movie clip when the button is hovered over.

I have the below entered on the button but not sure what to put next to make the clip play.[code]...

View 3 Replies

ActionScript 3.0 :: Get Button To Play Another Movie And Frame?

Feb 9, 2010

I have a menu bar at the top and and when i click the different buttons i want to play different movies from the start i.e different pages, and where i used to just type goto and play etc

I have the impression that i cant type straight on the button layer anymore so I need to type the code on an actions layer (right or wrong?)

I think this is nearly the code i need but what do i type to get it to go to a particular movie and frame?[code]...

View 2 Replies

ActionScript 2.0 :: Make A Button Play A Movie?

Jun 27, 2007

Need the action script that makes a button (when rolled over) play a movie. I have a stop action in the first frame of the movie and know to point the action FROM the button to the second frame, but I need the rest of the script.

Imagine four buttons next to each other, each, when rolled over, make text movies fade in and out when user rolls off the buttons. Each text movie would play in the same spot on the page.

View 6 Replies

ActionScript 2.0 :: Get Button To Play A Movie Clip (a Door Opening) And The Same Button To Close The Door

Sep 3, 2004

im trying to get 1 button to play a movie clip (a door opening) and the same button to close the door i know its possible and i think its by arrays

View 1 Replies

ActionScript 2.0 :: Get 1 Button To Play A Movie Clip (a Door Opening) And The Same Button To Close The Door?

Sep 3, 2004

im trying to get 1 button to play a movie clip (a door opening) and the same button to close the door i know its possible and i think its by arrays .

View 1 Replies







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