ActionScript 2.0 :: Stage Property Of Application And All Its Component?

Nov 24, 2006

it is a little bit about flex but I have nowhere to ask. so.

Code:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()">

[Code]...

View 6 Replies


Similar Posts:


Professional :: Error When Putting Component In Stage And Change Property

Feb 7, 2010

I'm using Flash CS4, as3 and adobe air file. I have an application with 3 scenes, first scene to login, second to set up, and third to see an video. The problem is that, when I put a component in the second or third scene, if a change any property in the component inspector, any property it gives me error. So put the component and I change property by code in as3. But I'm doing things with FLVPlayback component, and now before enter the scene gives me error, the solution will be to get the original properties, but I don't remember, I could install other time Flash CS4, but I can do that for any component, better know the solution.

For example, I have an as file who is the class named p.e. MyMainclass, and in the scene3, I put FLVPlayback, who default values it's the last I used (I don't remember default after installation), if any code in as3, it gives me this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.program::MyMainClass/__setProp___id2__scene3_myvideo1_1()
[com.pro gram.MyMainClass::__setProp___id2__scene3_myvideo1_1:7]

I remove this component, I put another one I never used, it doesn't give me error, I change any property in the object inspector, p.e. color, it gives me error, I change to original property again, and then No Error.

View 1 Replies

Flex :: Come Back In Main Application On Click Of Logout Button Which Is In Application's Component?

Aug 4, 2011

How I will be back in Login Page after click of logout which is in application's component.

Project.mxml

<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" width="100%" height="100%"

[Code]....

View 2 Replies

Flash :: Swap MXML Component In Application From Another Component?

Apr 13, 2011

I am trying to create my first real world Flex application. I will have a lot of different data entry / data view screens so I thought I would create many different components to deal with each different type of data that was being returned. I have a MXML application called Layout, and have component called "Navigator" which controls the menu, as well as a ViewStack called "MainContent".

I want the Navigator component to change the ViewStack on the Layout application to that of another Component (each Component is embedded within the Canvas of each ViewStack). I have a click handler on my Navigator which looks like this: Layout.ContentFrame.selectedChild=event.itemRenderer.data.clickValue; However it shows the error "Access of possibly undefined property ContentFrame through a reference with a static type Class." Is my approach a good way of doing it? I have attempted referencing it using FlexGlobals.Layout and topLevelApplication.Layout... neither of which work?[URL]

View 2 Replies

ActionScript 2.0 :: Drag The MenuBar Component From The Component Window Onto Stage

Dec 11, 2004

I'm building this game, and it was working fine, until I used the menuBar component. It's not code related, 'cause i've commented out the script that does things with the menuBar. If I drag the MenuBar component from the component window, onto my Stage , the game refuses to work. If I deleet it (but keep it IN my library), it still doesn't work!. But if I turn the export settings of the MenuBar off, it works! The classes that i'm using for my game are called Node.as, JawBreaker.as The class I want to use to do something with the menuBar is called GameMenu.as (but that doesn't matter, since I commented the calling of that class out).

View 1 Replies

ActionScript 3.0 :: Have A ScrollPane Component On The Stage And Within That Component?

Dec 22, 2010

All I want to do is have a scrollPane component on the stage and within that component I would like to have a movieclip that is essentially a list, and each list item is a button to be clicked on. I have no problem doing this if I have buttons within a movieclip, but having them in a scrollPane produces the following error:

1119: Access of possibly undefined property mcButtons through a reference with static type fl.containers:ScrollPane.It seems that I am unable to use the scrollPane component as if it were a movieclip and to use dot syntax to access it's content.

View 2 Replies

ActionScript 3.0 :: Inspectable Component Property Example ?

Mar 5, 2009

I have having real trouble creating a component with an inspectable property.Does anyone know of an example on the web which shows how to correctly set up a simple movieclip in Flash and then save it to a SWC with an inspectable property ?

View 1 Replies

Actionscript - Flash Application Which Uses Class Method, Or Property?

Sep 6, 2011

For example, if an application uses class, method, or property which is supported only by Flash Player10.When you run the application on Flash Player9, what will happen? Flash Player will be crashed? Or Flash Player will show you a message screen to upgrade your Flash Player? Or the application will normally run and will ignore the part which uses the unsupported class, method, or property? Or the application will cause a runtime error when the unsupported class, method, or property are called?

View 2 Replies

TileList Component In An Application

Aug 2, 2009

I'm working with the TileList component in an application, and loading in an MC from the library to display multiple times across some columns and rows.How do I make an event function for the MC in the TileList, so that when a user clicks it, it will trigger a custom function?  I do not see that the TileList has something like this inherently for it's source item.I made an external class for the MC being used in the TileList, but my standard "addEventListener"s are not working.[code]}

View 2 Replies

Unable To Bind To Property Of Custom Component

Feb 25, 2010

Can't seem to bind to data from within a custom component. I've tried BindUtilis and {} but can't seem to fathom it out. Here's what I've got:

I have a class DataModel which has been made bindable

Within Mainn.mxml I have two components: DataGrid (used for testing) & CustomComponent (which extends Canvas)

When the data within DataModel.somelist is updated the DataGrid reflects the changes but the CustomComponent doesn't appear to.

I was expecting to see the trace (CustomComponent.dataProvider) fired whenever this._dataModel.itemList is changed. [code]...

View 1 Replies

ActionScript 2.0 :: Setting Property Of Duplicated Component?

Aug 31, 2004

ive got a radiobutton component on my stage named radio1. I need to duplicate it and then change a few properties, but i cant seem to get the path/naming right. This is my code:

Code:
i=2;
radio1.duplicateMovieClip("radio"+i, radio1.getNextHighestDepth(), {_x:20, _y:20});
_root["radio"+i].setLabel("test");
i++

if i use a constant name instead of "radio"+i it works but the ["radio"+i] seems to be the problem, could someone help me with this? (using flash mx)

View 7 Replies

Flex :: Setting Text Property Of A Combobox On Application Start?

Jul 20, 2011

I am using the combocheck example from the following site: [URL]

It's a very useful component and works very well.

Now, I need to set the text property of this combo box upon application startup with certain values (which are defined dynamically according to some criteria). The problem is that although I have no problem setting the text property of the combo box at other times of the application run, setting the property at startup seems to have no effect unfortunately.

For example, I want to set the text property of the combobox to "Bob" (which is one of the items in the dataprovider for the combobox) and the "set text" method is called on the combo box. Performing a step-through shows that the "set text" method is receiving the correct value item but not setting the _text property.

I have tried not doing anything until "ApplicationComplete" but no joy there either.

Here is the code (a combination of the code from the URL above and some other changes to it). However, as I've stated above, the codes does work. The problem is that it doesn't work at the application startup. Whenever an event is fired and setComboText is called as a result, the text of the combo box is set correctly.

private function onComboChecked(event:ComboCheckEvent):void {
var obj:Object=event.obj;
var index:int=selectedItems.getItemIndex(obj);

[Code]....

View 2 Replies

Php :: Databinding Between Custom Component In AIR Application?

Jul 31, 2009

In my Main application I used label (like id=firstname) so we can use in main used firstname.text for databinding. But I have created canves custom component and load in main application using viewstack.In canves custom component how can I Bind label(id=firstname).I tried:var username:string = firstname.text but not show undefine firstname.How can I access all label and component in Main application to custom application.

View 1 Replies

Flex :: Different Uses Of Component And Module In Application?

Jun 9, 2010

purpose of component and module of flex app

View 1 Replies

IDE :: Flex Application As Custom UI Component

Dec 22, 2009

I'm making a UI for a component in Flash. I wanted to use Flex and have had no luck getting the onUpdate exernalInterface call to fire properly. I'm referencing the functionality described here: [URL]. First off, I can't embed the SWF in the FLA. It just won't start the Flex SWF. Even using the external swf, it seems that the onUpdate function is either called too early or not at all. Here's what I've tried:

Tying the externalInterfce declaration to the initialize, preinitialize, applicationComplete, and creationComplete events. Sub-classing my application and putting the externalInterface in the constructor. Neither of these options work. When I create a basic AS3 project in Eclipse and put the externalInferface in the constructor, it works as expected.

View 1 Replies

ActionScript 3.0 :: Can't Control .tabChildren Property When Using ScrollPane Component

Feb 13, 2011

I have multiple tab loops, where I enable/disable the loops as needed to control the tabbing experience. I'm attempting to set control the tabbing with the tabChildren property on the Movieclip or Sprite containers I have by setting their tabChildren property to true/false. I am trying to set up tabbing that has three distinct tab loops (three different containers), each with their own internal Sprites/Movieclips that have their tabIndex properties set as needed.  I am able to properly set tabChildren to false, and back to true. But with the component, once I set it to false, I can't set it to true again.
 
Tab loop 1: main content (a loaded SWF file)

Tab loop 2: nav bar (previous & back buttons to load different SWFS, and a Help button)

Tab loop 3: a help pop-up window (a Sprite container) with a scrollPane component used to show scrolling content
 
Things seem to work fine without the ScrollPane component involved in the mix.Have others experienced this inability to control tabChildren like this? And with regards to using components? I am not using the FocusManager class in any capacity, and believe that it only applies to the components (unless I created my own components and implemented IFocusManager, which I haven't).

View 1 Replies

Flex :: Bind Class Property To Mxml Component?

Nov 25, 2009

Is is possible to bind class properties to mxml components ? E.g.: I have a class A.as with a String property nameValue. What I want to achieve is always having the latest value of a mx:Text component in nameValue.

View 2 Replies

Flex :: FCustom Button Component Protected Property

Jan 5, 2010

In my custom button component, I want to get a handle on the textField (The internal UITextField object that renders the label) in the Button so I can modify some properties on it. It exists as a protected var in Button.as How can I do that in my mxml component?

View 1 Replies

Flex :: Bind Variable To ItemRender Component Property?

May 16, 2011

I would like to bind a variable from my ActionScript to a property of a component that is in a ItemRender. But I always get this error:

1120: Access of undefined property currentRoom.

Here is my code

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:solutionItems="com.barco.components.ControlRoomConfigurator.solutionItems.*">
<mx:Script>

[Code]....

I would like to use the object currentRoom in my ItemRenderer component.

View 2 Replies

Flex :: Custom Component DataGrid SelectionMode As A Property?

Aug 3, 2011

I have a custom component of which have a advancedDataGrid inside it. I want thiscomponent to be reusable so need is set the datagid selectionMode as a component property.In mxml i want set property like this:

<comp:MyComp itemDataGridSelectionMode="singleCell" .../>
Inside MyComp actionScript i have a metatag like this:
[Inspectable(enumeration="singleRow, multipleRows, singleCell, multipleCells",

[code]......

View 3 Replies

Flex 4 Custom Component - Notify Skin Of Property Changes?

Jan 30, 2012

I have a custom Flex 4+ component that I am trying to make and have the skin be aware of changes to a custom property. This property will determine the graphic on the button (and some other visual changes) but the data will change constantly as it will be updated by a timer.

I've looked at untold examples and still seem unable to get the syntax correct or discover how things should be separated. I've looked at overriding commitProperties and the PropertyChangeEvent without success. So I have two questions.

1) How can I get a skin to be notified of a bound property when it changes?

2) If the data for a bound property of the component is an object, will binding work properly if a property of the object changes (or would it be better to pass each property separately)?

[Code]...

View 3 Replies

Actionscript 3 :: Animate A Custom Graphic Component Property?

Feb 9, 2012

I created a custom timer component, which basically renders a circle sector, with a default start angle (0) and an end angle:

public class Arc extends FilledElement
{
private var _endAngle:Number = 0;

[code].....

View 1 Replies

Flash :: Pass A Property From A HTML Page To Application Created With Flex?

May 11, 2011

I want to specify a string value in the HTML containing my Flash created using Flex 3. This value is a URL that is used by the Flex code and I want another dev to be able to update it. How do I do this? I'm using Flex Builder 3.

View 2 Replies

Actionscript :: AIR Application: Cannot Access A Property Or Method Of A Null Object Reference?

May 24, 2011

I'm using code for the open source MP3 player Howler and trying to port it to a Spark MobileApplication type. I'm getting a null pointer exception and I have no idea what's causing it. I've tried debugging extensively with breakpoints at what I think is causing the error, and set breakpoints in the untouched Howler project but all the variables in scope seem to be identical between my non-working project, and the Howler project. The only thing I can think of is that Howler uses MX components and I am using spark. I've pasted all my code below (which is very long) but I've bolded the lines that are throwing the error. The error occurs immediately after I choose a folder in the browse folder dialog.

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Home"

[code].....

View 1 Replies

Flex :: Load My Own Custom Component Into An AIR Application?

Jul 23, 2009

I created separate own canvas component for Home page, Contact page, Rules page etc.In my main application it has link button like Home,Contact,Rules in application controller(child state) . [code]...

View 1 Replies

Flex :: What Component To Extend For Drawing Application

Jul 28, 2009

I wonder which component to extend in Flex 3 in order to make a drawing stage.

View 1 Replies

Flex :: Change Value Within Component From Within Main Application?

Jul 19, 2011

So I'm using a custom auto suggest component that I found online at [url]... The background color for the item is set within the following folder[code]...

I use this component from within a component I created called "position.mxml" that is located in a folder named "modules". Is there any way that from the position module, I can change the background color of the autosuggest box?

View 1 Replies

Flex :: Assign The Property Bottom In My Custom Component Class?

May 14, 2010

I would like to know if it is the same to assign properties to my custom component in its own class, or from the parent document. Here I assign the property bottom in my custom component class:

<?xml version="1.0"?>
<mx:LinkButton bottom="20" >
<mx:Script>

Here I assign the property bottom when I use the component in my main MXML file

<myComp:Brick bottom="10"/>

View 2 Replies

Flex :: 4 - Why Does Recognize PaddingLeft As A Property On A Component But Not As Part Of A Style?

Jun 8, 2010

In my application this works:

[Code]...

View 1 Replies

ActionScript 3.0 :: Accessing Property Of A Custom Component Through The GetChildByName Method

Jul 23, 2010

I have written a piece of code where I have created a custom class containing some of my custom properties.I have used multiple instances of this custom class in my main class and added it to a container.Now I need to access one of my custom property in the main class through container.getChildByName()."custom property", but I am not able to access my custom property using this.I get an error saying
Access of possibly undefined property orientation(this is my custom property) through a reference with static type ..name of my main class.

Is there no way that can i access custom property of components through the getchildbyname method of the parent container ??

View 0 Replies







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