AJAX and Actionscript to Control FLV Playback Skin
I have AJAX running on an application that opens up a new panel displaying a flash video. The flash video uses one of the FLV Playback skins. When I play the video on the panel, everything is fine. But, when I close the panel with the javascript-enabled button, the video would still play even though the panel and video are "gone" from the html page.
I was looking into using javascript to talk to actionscript to control the FLV Playback skin's stop function so that when the close panel function is activated, the video play's stop function would be called. How do I find out the path to and the name of the stop function inside the playback skin? Is it possible to call the stop function inside the FLV Playback skin? Or, would it be easier to create my own video controller?
I hope this is clear. Any help is appreciated. Thanks.
I don't clear your questions
Regards,
nha khoa
nhua
gia cong
nhua
gia cong chi
tiet
khuon mau
thiet ke web
do dung cho be
Similar Messages
-
Add a button to a FLV Playback skin
I'd like to add a button to an FLVPlayback skin. This button
should shrink the size of the VideoPlaceholder and display a menu
to the right of it (I'll need help with this too, but one step at a
time). I've been able to put a button into the skin, but it'll only
show up when I vies the skin file itself, not when I use it AS a
skin for the FLVPlayback component. How do I get it to appear?
[edit]I'm using a normal button, but I've noticed that the
buttons in the skin are individual graphics tied into the skin
using actionscript. Do I have to do something like this?
[edit2] I've got Flash CS3 and am trying to use AS3I don't clear your questions
Regards,
nha khoa
nhua
gia cong
nhua
gia cong chi
tiet
khuon mau
thiet ke web
do dung cho be -
Control FLV playback with button on different timeline
I have an FLVPlayback instance on my stage within a movie
clip within a movie clip eg.
_root.showreel_mc.showreelHolder.showreel (where showreel is
the instance name given to the FLV component itself)
I already have a button that fades out showreel_mc in order
to fade other content in but I also need it to pause the FLV so it
doesn't keep playing in the background. I've tried this...
_root.showreel_mc.showreelHolder.showreel.pause()
But it doesn't work - anyone got any ideas? I'm using
Actionscript 2.0.
Cheers!I found the option to sync with rest of project under the options tab and this solved my problem.
-
Control FLV Playback with separate SWF
So, I have an HTML file with three Iframes. Just know that
due to the nature of my project I need to use iframes. Basically,
in one iframe is a bar with playback controls. play, pause, stop.
In a second iframe is a video, in a third iframe is a you tube
style panel that allows you to select different videos to watch. I
need to control the video in iframe A with the controls in iframe
B. If using iframes makes this solution untenable, a solution sans
iframes is welcome.
Is this possible? and if so, could someone direct me to some
resources?
I know a tad of actions script, and a decent amount of
javascript, so I'm not a script expert by any means, but I
understand the language enough to be functional.
Thanks
lukeBTW, I realize that this will require the use of Local
Connection Objects, as I have found some useful tutorials on the
subject, but modifying them for my flvPlayback purposes has proven
difficult due to my inexperience with action script.
So, again, thanks in advance.
Luke -
Flash and actionscript to control multiple LEDs
Hello:
I was wondering if any one in this forum would be willing to either share a good example of an actionscriopt that runs two or more LEDs each with its own button. Or if you wish to sell me an actionscript code that would communicate with arduino uno. I can use PayPal to pay for the service.
If it easy to do I would like to when pushing one of the 6 button (6 buttons all) would make an LED come ON and stay ON for a selecte number of seconds. Each LED with its own button to come ON (HIGH). Then if it is doable to have a 7th button that would make all 6 come ON in a sequential way (one after the other after a number of seconds). Also, if possible allow the user to change the intensity of the lit LED. I know for some of you actionscript is really easy but I am new to all of this. If someone is willing to share a code that I could easily modify to my needs it would be immensily appreciated. I would even more than happy to send a monitary gift, using Paypal.
Thanks in advance and any help will be truly appreciated. Ocin1It's not hard for Flash to communicate with Arduino. Just Google 'Arduino AS3' and you'll find good tutorials. Here's one that should have what you need:
http://arduino.cc/playground/Interfacing/Flash -
How to load and display the external flv video files in dynamicly and the how to control the flv fil
How to load and display the external flv video files in dynamicly using AS 3.0
and How to control the flv file add the play paus button and add seekbar.
I have using to load the flv file following code
var flvPlaceHolder1:MovieClip = new MovieClip();
var vid1:Video = new Video(734, 408);
flvPlaceHolder1.addChild(vid1);
addChild(flvPlaceHolder1);
flvPlaceHolder1.x = 1059;
flvPlaceHolder1.y = 152;
var nc1:NetConnection = new NetConnection();
nc1.connect(null);
var ns1:NetStream = new NetStream(nc1);
vid1.attachNetStream(ns1);
var listener1:Object = new Object();
listener1.onMetaData = function(evt:Object):void {};
ns1.client = listener1;
ns1.play("GV-1600 TURNING.flv");
ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
function statusChanged1(ns1:NetStatusEvent):void
trace(ns1.info.code);
if (ns1.info.code == 'NetStream.Buffer.Empty')
trace('the video has ended');
removeChild(flvPlaceHolder1);
//trace('removeChild');
gotoAndPlay(1786);
then how to add the play,paus ,full screen button and seekbar,volumebar.I have to Create the flash presentation for our company product
In this presentation the left side the text animation are displayed then right side the our product video is displayed.
In this presentation i need the following option :
1, The first product video and animation is finished then the next product is played
2, then the video displayed (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
3, then the playing video i control it play, stop, paus button and volume bar, seek bar.
4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
I have finished first two steps 1 and 2
the following are the screen short and code:-
code :-
var count=0;
var flvPlaceHolder2:MovieClip = new MovieClip();
var vid2:Video = new Video(734, 408);
flvPlaceHolder2.addChild(vid2);
addChild(flvPlaceHolder2);
flvPlaceHolder2.x = 1059;
flvPlaceHolder2.y = 152;
var nc2:NetConnection = new NetConnection();
nc2.connect(null);
var ns2:NetStream = new NetStream(nc2);
vid2.attachNetStream(ns2);
var listener2:Object = new Object();
listener2.onMetaData = function(evt:Object):void {};
ns2.client = listener2;
ns2.play("GS-4000.flv");
this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
function BtnFadeIn2(event:Event):void
if (this.currentFrame == 387)
/*flvPlaceHolder2.x = 30;
flvPlaceHolder2.y = 140;
vid2.width=1800;
vid2.height=800;
trace('Screen size is changed');*/
if(count==0)
flvPlaceHolder2.x = 30;
flvPlaceHolder2.y = 140;
vid2.width=1800;
vid2.height=800;
count++;
ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
function statusChanged2(ns2:NetStatusEvent):void
trace(ns2.info.code);
if (ns2.info.code == 'NetStream.Buffer.Empty')
trace('the video has ended');
removeChild(flvPlaceHolder2);
//trace('removeChild');
gotoAndPlay(433);
flvPlaceHolder2.buttonMode=true;
flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
function home2(e:MouseEvent):void
if(vid2.width==734 && vid2.height==408)
flvPlaceHolder2.x = 30;
flvPlaceHolder2.y = 140;
vid2.width=1800;
vid2.height=800;
else
flvPlaceHolder2.x = 1059;
flvPlaceHolder2.y = 152;
vid2.width=734;
vid2.height=408; -
Flex 4 Migration: skinning, and Actionscript
Hello,
I've been researching about this topic, but I wasn't able to find any examples on "how to skin in flex4" using actionscript. I'm trying to make a simple test, just load an image inside a container and set the borderSides properties. This property, and many others, are missing from flex 4 "by default", now I have to create/define a skin and code it using Line graphics components, is that correct?
anyways, my "real" (probably not the smartest but...) I've been struggling around this problem for a couple days:
- How do I migrate from Flex 3 (css styles and other stuff) to Flex 4 (skins), BUT I don't want to use mxml files, I'd like to keep everything written in actionscript in my application. It has to be feasible but I couldn't figure out how.
Thanks in advance
RenanThanks for the help, we managed to do a skin in actionscript.
Can you help me with two other issues, I'm still not comfortable with this Flex4 transition:
Is it possible to load/add an image to a group from the container (in actionscritpt), or you can only do that using skins?
Can I inherit skins like other classes? For instance: I have a skin to draw borders and another to draw an image, can I extend it to "merge" these two behaviors, border+image.
Thanks
renan -
Captivate 3 - Getting playback skin and presentation on same file when publishing
When I publish I am getting two different files - one for the skin and one for the preso. The skin files shows the skin w/o preso and the preso file plays fine but w/o the playback skin. How do I publish in order to get both on one playable file?
Thanks for your wisdom
JCHi there
In addition to what Lilybiri offered, try clicking Project > Skin > Borders tab and DE-selecting the "Show Borders" check box.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
FLV Playback Component - specifying an image before it plays
I am using the FLV Playback Component to play a video.
Instead of playing automatically, I want to be able to set an image
(or a frame of the movie) to display and only play the movie after
the user clicks the play button. I can't find anything anywhere to
explain how to do this or a workaround for it. Can anyone point me
in the right direction? thanks.Actually, I'm just trying to access the movie controls in the
FLV Playback component, so I can adjust how the work.
This does not work:
this.movie.forward_mc.addEventListener(MouseEvent.MOUSE_DOWN,someFunction)
Neither does this:
MovieClip(this.movie).forward_mc.addEventListener(MouseEvent.MOUSE_DOWN,someFunction) -
Auto/Hide with Flv playback doesn't work with javascript lightbox, need help?
Hi everyone,
i created some swf loading a flv file in a flv playback and
check on the auto/hide parameter. When i test the movie it works
very well. BUT, in my website, i put those swf files in Lightbox
(javascript computed) and when the mouse goes Over the flash video,
it shows the Skin player and when the mouse goes Out, the Skin
player stays over the video!? Why? Does someone has an idea on how
to force the auto/hide paramater in this case?
Thanks for your help
OrlenkaFound this post when searching for an answer, but didn't find much elsewhere so I'll post my quick and ugly solution here. I'm sure it can be vastly improved, but I didn't have much more than 5 minutes. Note - setting .visible to false just ended up causing the autohide transition to occur over and over, so instead I'm just temporarily moving the whole sprite offscreen.
(AS3, using CS5 component... note that 'player' is the FLVPlayback instance):
//### force 'autohide' when mouse inactive
var timer:Timer = new Timer(1500, 0);
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();
var skinSprite:DisplayObject;
var prevMouseX:Number;
var prevMouseY:Number;
function onTimer(e:TimerEvent):void {
//get skinSprite if we haven't already
if(!skinSprite) {
var child:DisplayObject;
for(var i:Number = 0; i < player.numChildren; i++) {
child = player.getChildAt(i);
if(i == 2) { //this is the skinSprite
skinSprite = child;
//check to see if mouse hasn't moved since last timer event
if(skinSprite && mouseX == prevMouseX && mouseY == prevMouseY) {
skinSprite.y = -1000;
prevMouseX = mouseX;
prevMouseY = mouseY;
stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_onMouseMove);
function stage_onMouseMove(e:MouseEvent):void {
if(skinSprite) {
skinSprite.y = 0; -
Best method for flv playback in flash 8
group,
i am currently trying to get to grips with flv playback with
flash 8. i have come across a number of methods for flv playback
within flash 8 and am curious to know the difference between
methods and ultimately if there is such a difference discover which
is best. I have had a few issues with some methods and was
wondering if it was because that method sucks.
In particular i am looking for the best method for allowing
custom skinning of the player with the ability to have a player
somewhere on stage without it being stapled to the darn flv file.
METHOD1:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("testmovie.flv");
METHOD2:
import mx.video.*;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
{_width:360,_height:240,x:0, y:0});
my_FLVPlybk.skin = "SteelExternalAll.swf"
my_FLVPlybk.contentPath = "testmovie.flv";
my_FLVPlybk.autoSize=true;
my_FLVPlybk.autoPlay=false;
what are the differences??
any help would be much appreciated. Thanks for your time and
expertises,
Flash fan.Adobe has announced that it has ceased development of Flash for mobile phones (in favour of HTML5, and due to the opposition of both Apple and Microsoft to allow support of Flash for their mobile operating systems), so from that direction neither Microsoft nor Nokia is going to get any help.
If the Adobe Flash Video format specification is publicly available to use or to license (I don't know if it is), then at least Microsoft could implement support for it, if they wanted to (Nokia might not have sufficient rights from Microsoft to add new codecs to Windows Phone).
So, you might direct your question primarily to Microsoft, rather than Nokia (of course, a Microsoft representative will probably read this, too, but whether they'll response or not is another matter). -
Does anyone know where I can find a controller skin for
playing an mp3 in a swf - just like the flv playback component but
for sound only?The playback time would vary based on any number of factors:
Temperature, volume, other operations, how long the screen is on, how many times you change the volume, eq settings, if airplane mode is on or off, any calls, e-mails, push on or push off, how often to fetch mail, screen brightness, 3g on or off, wi-fi on or off, location service on or off,etc.
The 24 hours is based on a specific situation and is not likely to be reproduced with normal use.
Just use it and see what you get. -
Get rid of rounded corners in Flash flv player skin?
Hi,
I'm using Flash CS3 on Mac OS X creating a couple of clips.
Regretfully,
the default flv player skins in CS3 all have rounded bottom
corners. As
the site's entire layout is very "square", these corners are
standing
out like sore thumbs.
I suspect that there has to be a parameter somewhere within
the swf-file
that takes care of this, but I haven't a clue, really.
Can someone please explain how to make the corners square
shaped?
TIA
MacaroniFrom the Flash help:
The best way to create a skin SWF file is to copy one of the
skin files that come with Flash, and use it as a starting point.
You can find the FLA files for these skins in the Flash application
folder in \en\Configuration\FLVPlayback Skins\FLA\ActionScript 3.0
To make your finished skin SWF file available as an option in the
Select Skin dialog box, put it in the Configuration/FLVPlayback
Skins/ActionScript 3.0 folder, either in the Flash application
folder or in a user's local \en\Configuration\FLVPlayback
Skins\FLA\ActionScript 3.0 folder.
Or, you can completely make youre own buttons and asign them
to the FLVplayback as controlls with actionscript. For example:
myFLVplayer.stopButton = myStopButton;
myFLVplayer.playButton = myPlayButton; -
Stuttering flv playback issue- need help asap
We need help asap. Have a project is due to deliver today (5/14).
We have a video to go on a dvd-rom, live action with Motion Graphics behind.
When output is done thru Projector the Motion Graphics stutter as they scroll.
Here is more technical info:
Stuttering flv playback issue:
Prores 422 timeline 29.97fps 1280x720 output from fcp using current settings.
Mov file is approx 7gb, plays relatively smooth on a mac pro with no raid.
Frame by frame analysis shows all frames are present with no jumps tears or skips.
Tried several output paths, programs and settings to create a smooth flv file to no avail.
We adjusted data rates from 2k, 3.5k, 4k and 8k, no luck
We adjusted keyframe rates from low to all frames, no luck.
We tried cs3 flash encoder, cs5 media encoder, squeeze ect, same results.
Playback in the flash projector seems to choke slightly no matter what we do.
Have also posted in the Director Forum.
Any help much appreciated!Here are a few ideas off the top of my head:
Try playing the file using a different xtra, sometimes different ones will work better. If you have Director 11.5, there is a native flv playback xtra.
You can build a player easily in Flash using the flvPlayback component, then bring that into Director as a swf.
Once you have the video in Director, try making the member Direct To Stage (DTS). If it is already DTS, try making it not DTS.
Make sure the video is not transparent, and nothing in Director overlaps the video... in fact, when the video is playing, nothing should be moving at all, and try to keep the amount of code that is running to a minimum.
Try lowering your video's data rate further or try using a different codec.
Using VBR (Variable Bit Rate) compression often makes the video appear to play smoother.
Try compressing the flv with different software. FFMpeg, for example, is free and does a very good job, often better than the Flash Video Encoder that comes with Flash/Creative Suite. -
IPhone headset no more able to control iTunes playback on MacBook Pro
After I have updated to Mac OS X 10.6.5 and iTunes 10.1 on the latest 13" MacBook Pro, it's not possible to control the iTunes via iPhone headset anymore. Only the volume keys work but the middle key (which can be used for play, pause, next, previous, fast forward) stopped working. I've been looking for any possible settings to activate that in iTunes but I can't see any. Can anyone else confirm that? And could you suggest a solution? I was really used to controlling iTunes playback the same way I am controlling it on the iPhone and I thought it was really cool that Apple has allowed such consistency and interoperability between products. I hope that's a bug and not a decision.
There is another thread about this problem:
http://discussions.apple.com/message.jspa?messageID=12605653#12605653
Maybe you are looking for
-
URGENT - Oracle Reports errors
Hi All, I have two serious problems which are giving me a massive headache. We have a forms 10g application which calls Reports 10.1.2.0.2 reports in a pdf format. 1) When reports are called by say User A, the reports generated in the browser are for
-
Purchase order for the Invoice
Hi, Iam an ABAP er can any one guide me to find the purchase order for the Invoice posted please help me out with some tables related to this
-
Are Stickies in StickiesDatabase? I need to backup bad system in Disk Mode
My friend has a PowerBook G4 with a pretty corrupt OS 10.3 on it. I'm praying I'll be able to get it started in FireWire Target Disk Mode so I can backup files, then I'll re-install the OS. Are the Stickies kept in ~/Library/StickiesDatabase ? If I j
-
Expression Web to Dream weaver
I am tired of using EW and would like to phase it out completely unless a customer asks for it specifically. I have old website that I maintain developed in EW and I would like to move them over to DW to work on. Most of the website that I am using d
-
Hello Hello I was able to create a slide show from photos that I recently put in the Main Library. The 52 photos that I inserted in the Main Library, were tagged with numbers from 1 to 52 (with a few tagged as 16a, 16b, 16c etc ...) I was able to vie