5/27/2010 1:34:10 AM
Title:
access video display from other components
hi all,
i have two components ,in the first component there is video display and tabnavigator upon click of any item of tab navigator the video will play
in the second component i have hbox and upon click the video should play
how can i access the video display from second component
how can we pass two video objects to one video display based on click
5/27/2010 2:38:17 AM
in your first component , declare a public function in actionscript and use that function to play the video in video component
//In first component
public function playVideo(anyParameters):void{
myVideo.play();
}
// to access from second component use this kind of code in second component
Application.application.firstComponent.playVideo("param")
Tyson
Points: 680
Posts:0
5/27/2010 5:52:19 AM
what do you means by passing two video objects on single click. Do you want to say pass two video urls to play ?
5/27/2010 10:23:06 PM
hi tyson,
i have two image list,click on any image would play the video. i want to know how we can pass the video display source two objects in one at a time will play the video
Tyson
Points: 680
Posts:0
5/27/2010 10:44:17 PM
you can only set a single source to VideoDisplay component. There is no such provision in videoDisplay COmponent. What is the exact functionality you want to achieve by passing two flv paths.
5/27/2010 11:56:12 PM
hi tyson,
i have two components ,in the first component there is video display and tabnavigator upon click of any item of tab navigator the video will play
in the second component i have hbox and upon click the video should play
how can i access the video display from second component
how can we pass two video objects to one video display based on click
Tyson
Points: 680
Posts:0
5/28/2010 7:36:34 AM
if you can you share your project , I can more clearly solve your problem.
you should be able to access the videoDisplay component using
yourComponent.videoComponent
I can't really understand what do you mean by passing 2 video objects . we cannot not pass any object to videocomponent. What is the object that you pass ?