Copy link to clipboard
Copied
Hi, I want to ask you about how can I import video into my Flash Project and make it possible to view ?
I tried to choose embed FLV but the sound quality is quite shity and the video quality too. Furthermore, It expands the timeline which is too long because my video is quite long too. It said that it can be at least 16000 Frames to run.
Now I choose Import -> Import Video -> Load External ..... and then I put it on one scene. The thing is that when I test it, it looks like I have to expands the timeline too so that I can play the videos fully. And It will slow down the computer so much when I want to export. Is there any way I can play the video only by just creating one keyframe ?
Please help me.
one problem at one time. it's too easy for you to get confused otherwise.
do you have your button working to play the video? if not, do both:
label the first frame in scene 2 (eg, "sceen2_frame1") and in your button handler use:
_root.gotoAndStop("screen2_frame1");
Copy link to clipboard
Copied
Don't import the video, use an FLVPlayback component from the component library and have the video loaded/played dynamically.
Copy link to clipboard
Copied
how can I do it ??? there is an option at the previous scene that I link to the movie scene for people to choose it and it will play the video.. I don't know how can I do it as you said .. Can you tell me more detail ?
Copy link to clipboard
Copied
Open the components library and drag an FLVPlayback component onto the stage. With the component on the stage selected, enter the path/filename of the flv file in the contentPath field in the Parameters section of the Properties panel.
Copy link to clipboard
Copied
i choose Load -> External and it gives me some FLVPlayback in the library too ... But how I can make it relate to the previous scene and it can play the whole video and then back to the first scene...
First scene is where people can choose some option that I made of ...
A is where I link to the scene 3 of my project
B comes to Scene 4
C comes to Scene 5
What I'm stucking right now is how can I made the C choice for people to choose and they can see the videos. I tried to drag the FLVPlayback to the scene 6 and it shows some result. But I think if I want to watch the whole video I need to expand the timeline as much as possible and I really don't want that. Is there any actionscript code or some tips that I can make it possible? Sorry because I'm a newbie so I don't understand your words. Can you explain it more ?
Copy link to clipboard
Copied
Sorry, I cannot explain it more. Try doing what I already explained... based on what you say you have not done that.
Copy link to clipboard
Copied
but what is the stage? contentPath field, and Parameters section ?
Copy link to clipboard
Copied
yes thank you i havee found the solution and I did like you said
But It won't play the whole video if I don't choose the keyframe in the timeline and expand it more.
The only way right now it works is that I make a new layer and put the code stop(); there.
Yes It can play the whole video well but.how can I make it go back to the scene 1 after the movie is completed ?
Copy link to clipboard
Copied
create a new fla and follow nm's suggestion (exactly) in message 3.
any problem?
Copy link to clipboard
Copied
and how i can put it into my project and use like I said in message 7?
Copy link to clipboard
Copied
try putting a gotoAndPlay or gotoAndStop at the end of your video if you're using the timeline.
Copy link to clipboard
Copied
but how can I know where is the end of the video? Do I have to expand the timeline about 16000 frames so that I can put a code in the timeline?
Copy link to clipboard
Copied
if you insist on adding the video to the timeline and continue to refuse to follow the suggestions of ned and i, yes expand the timeline. if that seems laborious, it's the least of the problems you will encounter by adding the video to the timeline.
Copy link to clipboard
Copied
No I mean I follow exactly like you and Ned said but it doesn't play the video for me. and I don't understand where can I put gotoAndPlay and gotoAndStop ?
Copy link to clipboard
Copied
then there is no video on any timeline, correct?
and, you have an flvplayback component on your stage, correct?
Copy link to clipboard
Copied
yes... there is only flvplayback on the stage .. in the timeline there is only one black dot( one frame that available) ... there contains the flavplayback. I press flvplayback on the stage .. and then on the properties i link the video location into the flvplayback. And the flvplayback is on Scene 2. On the Scene 1 I already set the action for the button that I made .... gotoAndPlay("Scene 2", 1);
But it doesn't play the video after I press it on the Scene 1 ...
Copy link to clipboard
Copied
don't use the goto function and don't use scenes to navigate in as2. use the goto methods and frame labels.
label the first frame in scene 2 (eg, "sceen2_frame1") and in your button handler use:
_root.gotoAndStop("screen2_frame1");
Copy link to clipboard
Copied
so the button i can just leave there in scene 1 and i put the action _root.gotoAndStop("screen2_frame1"); into the button action right?
and can you tell me how can I make it go back to scene 1 to choose again after the movie finished ?
Copy link to clipboard
Copied
one problem at one time. it's too easy for you to get confused otherwise.
do you have your button working to play the video? if not, do both:
label the first frame in scene 2 (eg, "sceen2_frame1") and in your button handler use:
_root.gotoAndStop("screen2_frame1");
Copy link to clipboard
Copied
yes.. it works perfectly, thanks. can you tell me the other problem?
Copy link to clipboard
Copied
1. click on your flvplayback component that's on-stage in frame "sceen2_frame1" (that's a typo but if you're consistant, it will work) and in the properties panel assign an instance name (eg, flv_pb).
2. attached to that frame paste:
var lo:Object = {};
lo.complete = function(eObj:Object):Void {
_root.gotoAndStop(1);
}
flv_pb.addEventListener("complete",lo);
Copy link to clipboard
Copied
thanks. it works but ... i think it loads only the first frame of the scene 1 and music but not all the movement that i create with classic tween. I made the blur effect for the button but It doesn't show up the button.
Copy link to clipboard
Copied
try:
var lo:Object = {};
lo.complete = function(eObj:Object):Void {
_root.gotoAndPlay(1);
}
flv_pb.addEventListener("complete",lo);
Copy link to clipboard
Copied
thank you so much. It works well. But I still have one more question.
My project has the sound, the video, and the swf. How I can make it available to play at the other computer? I export one html file, and one swf file, but it can play only my flash, without the sound and video. It works well on my computer, but I copy to the other computer to test it and it doesnt work. Though I copied all the elements of my project and put it into one folder.
Copy link to clipboard
Copied
you need the video (and you need to use a relative contentPath, not absolute) to the video and you need your flvplayback skin's swf.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now