Actionscript 3 :: Access Swf Component From Another Swf File?

Jun 9, 2011

I have two flash files myVideo1.swf and myVideo2.swf Each one contents FLVPLAYBack component . myVideo1.swf FLVPLAYBack component instance name is "video1" myVideo2.swf FLVPLAYBack component instance name is "video2" I want to be able to access myVideo2.swf from myVideo1.swf using as3. I want when I click play button on myVideo2.swf the myVideo1.swf would stopped. Bother flash files are in the same folder.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Access Swf Component From Another Swf File?

Jun 8, 2011

I have two flash files myVideo1.swf and myVideo2.swf  Each one contents FLVPLAYBack  component . myVideo1.swf  FLVPLAYBack  component instance name is "video1"  myVideo2.swf  FLVPLAYBack  component instance name is "video2"  I want to be able to access myVideo2.swf  from myVideo1.swf  using as3. I want when  I click play button on myVideo2.swf  the myVideo1.swf  would stopped. Bother flash files are in the same folder.

View 2 Replies

ActionScript 3.0 :: Access Main Objects From Component File?

Feb 22, 2009

I have my main:

Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:comp="components.*">

[Code].....

How do I access objects in main application, I tried application, or main, they don't work.

View 1 Replies

IDE :: Access Component Definitions From Withing Class File?

May 14, 2007

I have an as3 component I made in CS3 and need to access the Component Definitions. Defining component parameters using the Inspectable Tag metod does not return success.

View 1 Replies

Actionscipt :: Flex - Access Mxml Component From External File?

Feb 18, 2010

i'm trying to access an mxml component from my external as file. e.g

main.mxml:

[mx:text id="myText" />]

file.as:

var mainM:main = new main();
mainM.text.visible = true;

i get the following error:

[TypeError: Error #1009: Cannot access a property or method of a null object reference]

View 2 Replies

Actionscript 3 :: Access Label Component Defined In Mxml File Within Class Method?

Mar 25, 2010

I have a label component in a mxml file like below

<mx:Label x="700" y="409" text="Label" id="lble" width="131" height="41"/>

if i want to access it and change its text content within a method defined in action script class that i have written, how to do it?

lble.text="test";

View 2 Replies

Actionscript 3 :: Flex - Access Component Inside Another Component In MXML?

Sep 3, 2009

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.

View 4 Replies

Flex :: Access The One Component Properties Form Other Component With Out Binding?

Sep 21, 2011

I would like to bind two components with out binding and which resides in different MXML.for eg: A.mxml has textinput and B.mxml has a combobox when choose one item in B.mxml selected item should be display in A.mxml textinput.

View 2 Replies

Flex :: Access Component Properties From Extending Component

Jul 29, 2011

I have a component with a public variable declared

[Bindable]
public var mnuSource:String;

When I extend this component, I can reference mnuSource (it compiles) but Runtime complains about the property not being accessible (error 1056).

How do you modify / declare component properties so they are actually available to other components?

View 2 Replies

Flex :: Access Component Id Of One Mxml From Another?

Sep 21, 2009

I have two mxml files. one is main that is application tag mxml file and another is my mxml component file. I have a viewstack in my main mxml whose id is, say, "mainViewStack". Now I want to set selectedChild property of "mainViewStack" from my mxml component file. [code]...

View 4 Replies

ActionScript 1/2 :: Access A Component Code Flash CS3?

Jul 21, 2008

Can anyone explain me how you access a component code in flash CS3?

View 1 Replies

ActionScript 3.0 :: Access Slider Component Values?

Jul 16, 2010

First, is this even possible? Inside a function, I want to change the min and max values that the slider component will use. Say for instance, the slider by default has the min set to 100 and the max to 200. Using the slider to scale a graphic, I want to increase the min/mal values.
 
Can this be done? I've been searching the web for things like ".min.value" and the sort, but can't seem to find anything.

View 5 Replies

Flex :: Access The Datagrid In One Mxml In Another Component?

Oct 9, 2009

I have a datagrid in my mxml file, say, samp.mxml.

<mx:DataGrid id="taskDataGrid" dataProvider="{initDG}" variableRowHeight="true"
editable="true" width="100%" paddingBottom="1" paddingTop="1" height="55" >
<mx:columns>

[code].....

View 3 Replies

Flex :: Access Datagroup's Itemrenederer's Component?

Jun 9, 2010

I have a datagroup where I use a custom itemRenderer with a datagrid inside. What I want is to access each datagroup's itemRenderer's datagrid and get it's dataProviderAll I know is that you can access the ItemRenderer by using myDataGroup.getElementAt(index)

View 1 Replies

Flex :: Advanceddatagrid - Access Component Id's Generically?

Jul 16, 2010

I have some generic functions like copy, paste,etc in an AS file. I want to use them for editing data present in different mxml applications embedded in one application. If I pass the child's component id as a parameter of a function in one of the events, I get the value as either null or the parent app name. But I want the id of the child's component to access the values.

[Code]...

View 1 Replies

Actionscript :: Flex - Access Variable From One Component Into Another?

Jul 18, 2010

I have a main application which has an int variable declared. I want to access this variable in another component which is present in another package. How can I do this?Main.mxml (default package)

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"

[code].....

View 4 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 - Access The Top Level Component From Within The Script Tag?

Oct 30, 2010

I have done this many times but can't remember the syntax for the life of me and am obviously asking Google the wrong questions.

[Code]...

I can't give the TitleWindow an id as it's the top level component. How do I access the TitleWindow component from inside the script tag, the 'this' keyword will give me type Object, which one of its properties will give me the title window?

View 1 Replies

Flex :: Access Main Function From Component?

Dec 6, 2010

How do I get "close" button to run runFunction() from within component to outside declaration? FxGlobals.topLevelApplication doesn't seem to be working for this.

<fx:Declarations>
<fx:Component className="MyNativeWindow">
<s:Window>

[Code]....

View 1 Replies

ActionScript 2.0 :: [MX04PRO] XMLConnector Component Access?

Jul 15, 2004

I have an XMLConnector component instance that is communicating fine with the external XML file from which it is reading the data. The XML file is structured like so:

Code:
<data>
<category id="0">
<name>Category 0's name</name>

[code]....

Now that you've got a general idea of what I'm working with, I'll move onto what I want to do with it. Let's say when the 1st frame (which has the XMLConnector on it) loads, we want to calculate the sum of all the values from the XML categories. It seems like an easy concept, but I can't figure out how to traverse through the array of objects without user intervention.

View 1 Replies

Actionscript 3 :: Access Scrollbar In A Group Component Flex 4?

Jul 22, 2010

This is the setup. I have created a timeline with a playhead. When my playhead is dragged I would like the timeline to scroll with the drag.

So far, the only way I can do this is by setting clipAndEnableScrolling to true. But in this case I lose the scrollbars(not to mention the impact on my view). So what I would like is to set this property to false and dynamically affect the horizontal scrollbar's position, in other words enable scrolling without the clipping.

View 1 Replies

Flex :: Access Items Selected In A Component From The Main App?

Sep 11, 2010

How can I Access Items Selected in a Component from the Main App I've got a component that has a listControl and a couple of RadioButtonGroups. I need to access the selected items in the main application. What's the best/simplest way to create and access the array of selected items. So, the user clicks the button to confirm the selections and then I need to access those selections in the main app. Is there a way I can use a public var to build the array? Another idea?

<mx:Tile direction="horizontal">
<mx:Box>
<mx:Label text="Year" fontWeight="bold"/>
<mx:List id="myYear" >

[code]....

View 2 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 :: Access A Component Within <fx:Declarations> In A MXML Class?

Dec 20, 2011

Is it possible to access a declared component as an IFactory within an MXML class? I've used this style of declaring factories many times for Skin Parts, but I've never figured out how to access those factories from within the MXML.

Here's an example of what I would expect to work:

<fx:Declarations>
<fx:Component id="labelDisplay">
<s:Label fontSize="12" fontWeight="bold"/>

[Code].....

View 2 Replies

Flex :: Access Items Selected In A Component From The Main App

Sep 6, 2009

How can I Access Items Selected in a Component from the Main App

I've got a component that has a listControl and a couple of RadioButtonGroups. I need to access the selected items in the main application. What's the best/simplest way to create and access the array of selected items. So, the user clicks the button to confirm the selections and then I need to access those selections in the main app. Is there a way I can use a public var to build the array? Another idea?

<mx:Tile direction="horizontal">
<mx:Box>
<mx:Label text="Year" fontWeight="bold"/>

[Code]....

View 2 Replies

ActionScript 3.0 :: Access Skin_mc Inside Of FLVPlayback Component?

Nov 16, 2009

I need to get access to the buttons inside an flvplayback skin. After a bit of googling I've come across several solutions for AS2 but it doesn't seem to function in a similar way. I know skin_mc is a private function of the flvplayer but I can't for the life of me figure out how to access it as an object that retains its properties all I get back is a string with the path to the skin swf.

View 4 Replies

ActionScript 3.0 :: Access Skin Mc Inside Of FLVPlayback Component?

Apr 6, 2005

I need to get access to the buttons inside an flvplayback skin. After a bit of googling I've come across several solutions for AS2 but it doesn't seem to function in a similar way. I know skin_mc is a private function of the flvplayer but I can't for the life of me figure out how to access it as an object that retains its properties all I get back is a string with the path to the skin swf.d.

View 10 Replies

Flex :: Access Properties Of Component Inside Item Renderer

Jun 1, 2010

I have an Item Renderer having HBox. Now I want to add child in that HBox from my application file using addChild method. Any way around for the same. I am not able to access the properties of HBox inside the item renderer.

View 1 Replies

ActionScript 3.0 :: Flex 3.0 Stage Access From Within Component Class Code?

Nov 25, 2009

how to access the stage from within component code. (I am very new to ActionScript)

Here is the cut down code of the main application entry point:

Code:
package {
import flash.display.Sprite;
public class Main extends Sprite {

[Code]...

I need to access the main stage to add a mouse up event listener.

View 1 Replies

ActionScript 3.0 :: Flash Access Component Params From Class Constructor?

Jan 18, 2011

have a movieclip on the stage, whose Class is "com.nestor.elements.letterKey". The class funcKey extends "key" which contains a "public var val:String". I have many instances of letterKey(asdfghj.... a full keyboard), so I'd like to use the IDE to arrange and pass variables. SO, within the Flash IDE/Library, I rightclick the symbol to access its component definition, and add a parameter for the var in the baseclass name:value,variable:var,default:whatever,type:Str ing).Now, in the constructor function for the baseclass, if I trace my variable: it is null.

View 1 Replies







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