IDE :: Controlling An FLV Component In A Child?

Nov 17, 2009

I have been trying all day to find a solution to this, to no avail.. My project has a frame built in flash that loads an external swf via the addChild command. In that external swf, there is an FLV playback component that plays videos on the video tab. (There are home, video, web and contact tabs all in the parent swf) What I want, is for the FLV component to stop playing the video when one of the other tabs is clicked in the parent swf..

View 2 Replies


Similar Posts:


Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

ActionScript 3.0 :: Controlling Loaded SWF Inside A Child?

Oct 19, 2008

I have loaded a SWF and attached to a MovieClip which exist in my current movie using the following code, and now I just want to access the loaded SWF to send it orders like play() or gotoAndPlay(); I have tried also: container= MocieClip(loader.content); instead adding child, but it trhows an error

View 10 Replies

ActionScript 3.0 :: Controlling Object From Child .as File?

Jan 24, 2010

If I import pgming from one AS into an overall one like this:
 
import asFiles.slideshow.*;
public var slideshowAS:Slideshow;
//then later:

[code]...
 
how do I control one object that is within that child .as file from the parent .as file?so for instance if in the slideshowAS there is an item called "nextBtn" and I want to be able to do something with it in the parent main menu .as file.

View 15 Replies

ActionScript 3.0 :: Controlling Object From Child .as File

Jan 24, 2010

If I import pgming from one AS into an overall one like this:

[Code]...

how do I control one object that is within that child .as file from the parent .as file? so for instance if in the slideshowAS there is an item called "nextBtn" and I want to be able to do something with it in the parent main menu .as file. If you could even direct me on what to search under I that would be very helpful! I tried googling it but did not know how to search for it.

View 2 Replies

Loaded Child Movie Controlling Container Parent

May 14, 2009

i'm a designer trying to step up my flash skills and have a scripting problem that's causing me trouble. essentially i have a child swf loaded into a container in a parent swf and want the child to be able to instruct the parent. to explain in full, the child contains an flv with bespoke video player components. it's container sits in one frame of the parent. when the flv finishes playing, i need the parent swf to move onto another frame.
as it's a controllable flv, it isnt possible to predict the exact length of time the child will need to be present, so it literally needs to tell the parent it's finished playing at that very point.

[Code]...

View 9 Replies

ActionScript 3.0 :: Controlling Movieclip From Main Timeline & Child?

Sep 26, 2010

This code is currently contained within my "mc_1" movieclip. I want to be able to have this code on my main timeline, however no matter what I try I constantly get errors, multiple different versions. I've tried adding mc_1 infront of everything, but that just gives an output error about a Sprite.Also, I'm currently using visible to control whether the back image to the textbox should show - What I'd really like to do is control it using a child, but they're movieclips not buttons, so when I try to addChild within the function it errors saying I'm trying to control a movieclip within a simplebutton function.

import flash.events.MouseEvent;
stop();
mc_textbox.visible = false;

[code].....

View 12 Replies

Flex :: Controlling The Properties Of A Sprite's Child Sprites?

Dec 23, 2009

I have a sprite in which I have added other sprites. Something like:

var sp_main:Sprite = new Sprite();
var sp_group:Sprite = new Sprite();
for(i:int = 0; i < 10; i++)

[Code]....

View 1 Replies

ActionScript 3.0 :: Controlling A Flv Component?

Jan 18, 2010

I have a small website and on one of the pages I have a progressive video inside an flv component. However, when I go to a new page the video plays in the background and if I hit the play button twice, the video 'double plays'. Is there a way to control and flv component with actionscript 3? I tried using the stop(); command within the function that selects the pages but I get an error message:

[Code]...

View 1 Replies

ActionScript 3.0 :: Controlling Labelled MovieClip On Stage From A Child .as File

Jun 20, 2009

I have an FLA file with a movieclip on the stage which is labelled "blok", and a button on the stage labelled "button1". This FLA is attached to a file called main.as through the document class.

In the same folder where I am storing main.as I have a second .as file called secondFile.as. I have imported this class into main.as using: import com.tests.secondFile;

and in the constructor of main.as I have put:

loadB=new secondFile(button1);
addChild(loadB);

Within secondFile.as my constructor looks like this:

public function secondFile(button1:SimpleButton){
button1=button1;
button1.addEventListener(MouseEvent.MOUSE_DOWN, buttonPushed);
}

[Code]....

Basically I'm trying to get the MovieClip labelled "blok" to move by 50 pixels on the stage when button1 is pressed, but when I test my FLA I get the following error:

1119: Access of possibly undefined property blok through a reference with static type flash.displayisplayObjectContainer.

I would have thought that this.parent.blok would control my movieclip labelled blok on the stage of my FLA from within secondFile.as since secondFile.as is a child of main.as which is the document class of my FLA, but obviously this is not right.

how to access labelled items on the stage from within a child object.

View 6 Replies

ActionScript 3.0 :: Controlling Child Frame While Parent Playing/TWEENING?

Feb 14, 2012

I have a MovieClip named "all_Pages" inside of it has timeline tweening on its child "pg" which has sets of pages as child of pg on framesHere is the problemI am trying to execute the code written on all_pages first frame which is 6th frame

all_pages.pg.gotoAndPlay(6);
while executing all_pages.gotoAndPlay(1); // timeline tweening
i.e

[code].....

View 7 Replies

ActionScript 2.0 :: Controlling The MediaDisplay Component?

Jun 8, 2006

am using flash mx2004 and I have a 'MediaDisplay' component named 'vidPlayer' on my stage.How can I build my own play, pause and stop buttons? Pretend their instance names are 'vidPlay', 'vidPause' and 'vidStop'.I know if I use the 'MediaPlayback' component I have all those buttons, but I dont like that skin and I would like to create my own.

View 1 Replies

Flex :: Extending Mxml Component With From Another Mxml Component With Visual Child Supported?

May 18, 2011

I've been trying to create a custom mxml component that extends another custom mxml component (i.e.MyMXMLComponent -> BaseMXMLComponent -> Group). I've been reading that trying to add visual children to MyMXMLComponent caused error with Flex 3 but that's no longer the case with Flex 4.

What I want to know is whether this is a supported/fixed/documented feature of Flex 4? or just some undefined behavior in Flex 4 that may get changed with future updates?

if this is supported and documented feature, does anyone have link pointing to adobe document stating it as such?

View 1 Replies

ActionScript 3.0 :: Controlling A Component Within A Dynamic Movie Clip?

Jul 26, 2010

i have an flvplayback component within a dynamically-created accordion pane. when the user hovers over a new accordion tab and opens a new pane in the accordion, i want to stop the video in the first pane. how can i reference the video player?

here's the code on the root timeline:
function _open(ev:AccordingEvent):void {
MovieClip(root.instance7.flvPlayback).stop(); 

[code]....

View 2 Replies

ActionScript 3.0 :: Slider Component - Arrow Keys Stop Controlling Game Characters

Mar 1, 2009

I was hoping to use the slider component to control some parameters in a game. However, after clicking on the slider to adjust it, the arrow keys start controlling the slider and stop controlling the character in the game. Is there a way to disable arrow key control of flash's built in slider component?

View 3 Replies

ActionScript 2.0 :: Component Skin In Child Swf?

Feb 13, 2010

I have an elearning course, a .swf, that loads multiple .swfs as the user progresses through the course. At the end, there is a quiz. The quiz.swf uses the radiobutton component. I have developed some custom skins to use on the radiobutton component. I have figured out that:I have to add an instance of a radiobutton in the main .swf for the radiobuttons in the quiz .swf to show.I have to copy the radiobutton intance from the quiz swf library to the main swf library if I want my custom skins to show in the quiz swfWhile, this works fine. It is not practical. I want the quiz.swf to more modular. So I can pop it in to any course and not have to go back in and add the radiobutton skins to each course.

View 1 Replies

Change Child Component In Another In A Repeater?

Nov 10, 2010

I have a custom component in a repeater. This component has a child component which can be of two types depending on some conditions. [coed]...

When I place breakpoints in the functions called at creationComplete, I can see that the component assigned to placeHolder is correct but it does not show on my display. I tried refreshing by calling invalidateDisplayList in every place I can think of but it does not seem to work.

View 1 Replies

Actionscript 3 :: Add Child On Dynamic Component Name?

Jan 31, 2012

As I must to add image on several group on the same form, I'd to customize my procédure to do that.[code]...

View 1 Replies

ActionScript 3.0 :: Child Swf With Component Loaded In To Parent Swf

Feb 13, 2010

I have an elearning course, a .swf, that loads multiple .swfs as the user progresses through the course. At the end, there is a quiz.

The quiz.swf uses the radiobutton component. I have developed some custom skins to use on the radiobutton component. I have figured out that:
I have to add an instance of a radiobutton in the main .swf for the radiobuttons in the quiz .swf to show.I have to copy the radiobutton intance from the quiz swf library to the main swf library if I want my custom skins to show in the quiz swf While, this works fine. It is not practical. I want the quiz.swf to more modular. So I can pop it in to any course and not have to go back in and add the radiobutton skins to each course.

View 2 Replies

Flex :: Child - Access A Component's Grandchildren?

Oct 21, 2010

I need to access topBox's grandchildren and determine whether they're buttons or not. This function belowgrabs topBox's immediate children which are the HBoxes. How do I go one level lower to topBox's grandchildren? Or is the only way to do this is to run this function on each HBox?

for (var i : int =0; i<topBox.numChildren; i++){
var child : DisplayObject = topBox.getChildAt(i);
var myButton:UIComponent = child as UIComponent;

[code].....

View 1 Replies

Flex :: Toggle Viewstack Within Child Component?

Feb 12, 2011

I have a viewstack with two tabs.In one of them there is a data grid shows a list of notes. The other one is includes a form that can edit notes or crates new note. I want the user to be able to add new note or edit existing note when clicks an item in data grid. I mean when user clicks an item the viewstack must become editor.

View 1 Replies

Flex :: Adding A Child To A VBox Component?

Mar 8, 2011

I'm having a problem when adding a child to a VBox component. Is it not the same thing?:

List Item:

<mx:Script>
<![CDATA[
public function addChildren():void {

[Code]....

I am injecting two properties (question and answer) to the FaqItem component from an auxiliar file (using BabelFX) that depends on the id of the FaqItem, but it is only working when I choose the second option. If I use the first option, I get a child but with the text in question and answer fields is empty. I need to use the first option.

View 1 Replies

Flex :: Static / Private Child Component In Mxml?

Oct 14, 2009

Are there any way to declare a child component in mxml which is private/protected or even static? Sure we can do this inside a script tag, but are there any other way?

View 2 Replies

Flex :: Adding MXML Component As Child Of Main App Using AS

Apr 26, 2010

How can I add an MXML component as a child of the main application using ActionScript. It's not possible to instatiate it, is it? Assuming that behind every mxml file stands an actionscrpt3 class, I tried to import it but id didn't show up.

View 1 Replies

Flex :: How To Access Variable In Parent Component From Child

Sep 18, 2010

I have a public variable set within fx:Script tags in a parent component that I'd like to access directly from a child component. How can I do this? I don't want to pass the variable to the child component (I know how to do this and am currently using this approach). Following is a simplified version of the mxml:

Note: SimpleComp is an HBox with a couple of lists.
<mx:Accordion>
<comp:SimpleComp/>
</mx:Accordion>

View 4 Replies

Flex :: Put MXML Child Nodes Within A Custom 4 Component?

Nov 27, 2010

Here is an example of a custom component. It is just a box with a title label and a close image (X):

[Code]...

When using the component in an MXML document, I would like to have the "(HEADING TEXT)" replaced with a parameter (should be easy) as well as the "(INSTANCE MXML)" with several labels, text inputs, check boxes, etc. (maybe harder). I have found this script-based method, but I would like a cleaner compile-time solution if one exists.

View 2 Replies

Flex :: Dynamically Initializing A Child Component At Run Time?

Jun 22, 2011

In a current Flex project, i have an issue where a certain child component must be initialized and ready when the user clicks a button. the button is a mouseClick Event.

//mouseClick Event
protected function tableSearch_searchClickHandler(event:MouseEvent):void
{

[code]......

View 1 Replies

Flex :: Does Disabling Parent Component Affect Its Child?

Aug 30, 2011

I have many buttons in HBox. Instead of disabling each button, I've disabled HBox. But I am able to click buttons even though the HBox is disabled. Disabling parent component will not make difference on its child? it shows like disabled but mouse events will generate.

View 1 Replies

ActionScript 3 :: Drag And Drop Child Component In Parent

Oct 18, 2011

I need to drag the child component in the parent such a way that the child component can replace the place they have in parent. E.g. If I have a 3 button a,b,c inside a panel and need to movie the position of a,b,c with drag and drop the placement could be b, a, c or c, a, b and so on.

View 1 Replies

Flex :: Forcing A Child Component To Resize Itself Larger Than Its Container?

Mar 29, 2010

I am creating a component that displays a variable amount of "gauges" (square tiles of content if you will), that is laid out like so:

<HDividedBox id="container">
<VBox id="myComponent">
<HBox id="header">

[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved