header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
nannu
Points:0
Posts:0

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



1
Ashley
Points: 0
Posts:0
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")

2
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 ?

3
nannu
Points: 0
Posts:0
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

4
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
nannu
Points: 0
Posts:0
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

6
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 ?


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions