Copy link to clipboard
Copied
I load external video with playback component (skin over play stop seek mute vol.swf), its working great but when I use
fscommand("fullscreen", "true");
on my first scene (first keyframe in time), and after that when I reach my video scene. I got just black screen
use the netstream class:
var nc:NetConnection=new NetConnection();
nc.connect(null);
var ns:NetStream=new NetStream(nc);
var video:Video=new Video();
addChild(video);
video.attachNetStream(ns);
ns.play("yourvideo.flv");
Copy link to clipboard
Copied
nothing crashed.
assign your video's fullScreenTakeOver property to false.
Copy link to clipboard
Copied
Sorry to say. Can you please tell me how?? In the property i canāt find āfull screen take over - falseā.
Copy link to clipboard
Copied
click the flvplayback component shown in your screenshot. in the properties panel assign it an instance name (eg, flv_pb).
click frame 1, layer 3 and in the actions panel, add:
flv_pb.fullStageTakeOver=false;
Copy link to clipboard
Copied
I try but got compiler error
Copy link to clipboard
Copied
my error. that should be,
flv_pb.fullScreenTakeOver=false;
Copy link to clipboard
Copied
Sorry to say boss in this time I didnāt received any compiler error but same previous problem. Black screen come
Copy link to clipboard
Copied
try:
1. use a skin that has a fullscreen button
if that fails
2. try
flv_pb.fullScreenTakeOvwer=true;
Copy link to clipboard
Copied
sorry to say boss, same problem
1. when i try fullscreen skin then got black screen
2. got compiler error
itry this both
flv_pb.fullScreenTakeOvwer=true;
flv_pb.fullStageTakeOver=true;
Copy link to clipboard
Copied
you have a typo in fullScreenTakeOvwer
Copy link to clipboard
Copied
sorry, what you say? I didnāt get your meaning
Copy link to clipboard
Copied
can you see the bolded w in fullScreenTakeOvwer?
that's an extraneous letter that should be removed.
Copy link to clipboard
Copied
same problem, black screen
Copy link to clipboard
Copied
then you have a video driver problem.
you could try updating your video driver. if that fails, you can try to disable hardware acceleration.
Copy link to clipboard
Copied
I follow these steps and disable the hardware acceleration. after that I publish may file but same problem
Copy link to clipboard
Copied
Still facing the black screen problem.
Copy link to clipboard
Copied
then you'll need to remove the flvplayback component and use the netstream class to play your video.
Copy link to clipboard
Copied
sorry to say how??
Copy link to clipboard
Copied
use the netstream class:
var nc:NetConnection=new NetConnection();
nc.connect(null);
var ns:NetStream=new NetStream(nc);
var video:Video=new Video();
addChild(video);
video.attachNetStream(ns);
ns.play("yourvideo.flv");
Copy link to clipboard
Copied
I try this but got these compiler errors
package {
import flash.display.SimpleButton;
import flash.events.MouseEvent;
public class clickbutton extends SimpleButton {
public function clickbutton() {
this.addEventListener(MouseEvent.CLICK, clickF);
}
private function clickF(e:MouseEvent):void{
var nc:NetConnection=new NetConnection();
nc.connect(null);
var ns:NetStream=new NetStream(nc);
var video:Video=new Video();
addChild(video);
video.attachNetStream(ns);
ns.play("video_test.flv");
}
}
}
Copy link to clipboard
Copied
import the needed classes:
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
Copy link to clipboard
Copied
in this time. compiler error
Copy link to clipboard
Copied
a simplebutton can't have children.
add the video the the button's parent. assuming your button's already been added to the display list:
this.parent.addChild(video);
Copy link to clipboard
Copied
still problem boss
i try this
package {
import flash.display.SimpleButton;
import flash.events.MouseEvent;
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
public class clickbutton extends SimpleButton {
public function clickbutton() {
this.addEventListener(MouseEvent.CLICK, clickF);
this.parent.addChild(video);
}
private function clickF(e:MouseEvent):void{
var nc:NetConnection=new NetConnection();
nc.connect(null);
var ns:NetStream=new NetStream(nc);
var video:Video=new Video();
addChild(video);
video.attachNetStream(ns);
ns.play("video_test.flv");
}
}
}
Copy link to clipboard
Copied
you can't add the video until it's created.
and, you still have the line of code that triggered the error in your message 21.
replace that problematic line of code (was 19, now 20) with the code i suggested.