Flex :: Know Difference B/w This.parent; This.parentApplication; This.parentDocument?
Jan 25, 2012What is the difference between these three:
this.parent;
this.parentApplication;
this.parentDocument;
[code].....
What is the difference between these three:
this.parent;
this.parentApplication;
this.parentDocument;
[code].....
I am trying to listen to an event created in a spark popup tileWindow. The aim is to get an array sent and updated in the popUp, to be received by the calling application, when the popUp is closed. As commented inline below, I have tested that it reaches the point of dispatching event in the popUp- and never gets listened in main application. What am i missing?My customEvent is as follows:
package folder1
{
import flash.events.Event;
[code].....
I have an itemRenderer inside a dataGrid, and I am able to access variables on the mxml file (in a *.as script file referenced from the mxml) using parentDocument. However, I am unable to access a constant in the same script file. If I change the constant to a regular var, I can access it. I created a getter function for the constant and it works, but why can't the constant be accessed directly?
View 1 RepliesI wonder is anyone can look at this code and tell me why calling the removeSelectedChild works when called from the same document, but returns the following error when called from the child document/component.
"ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller."
<?xml version="1.0" encoding="utf-8"?>
[Code]...
So What is the Real difference between .root and . parent??? I need to know the difference between the two are.
View 1 RepliesI'm trying to resolve an issue that reared it's ugly head yesterday.Frame one of main timeline I have the following code:
Code:
import flash.display.MovieClip;
import flash.events.MouseEvent;
[code]....
The newMC doesn't show up.If I add 'parent.' in front of the addChild then it appears.mc_LibItem has a base class of "flash.display.MovieClip" and is exporting for ActionScript and on frame one.For grins I created a new .fla and began messing around with the same addChild idea and it worked.
[code]All clips are squared.Ok, on the PlayerPlane, there are little soldiers, which have hotkeys. The effect I'm trying to create is I want to position the GameStage so that the currently selected soldier appears in the center of the GameClicker clip.The GameStage is movable by the player (to scan other areas of the map)by holding the CTRL key, so it's easy to kinda lose track of where your players are.I have tried using localTo Global and globalToLocal techniques, but I think I'm lost on the actual math of getting the GameStage to move the correct distance so that the selected soldier is centered to the GameClicker.[code]
View 2 Replieswhat is a difference between in flex Builder and Flex SDK?
View 5 RepliesJust want to clear a very basic doubt am having for quite some time.
Is LCDS and FDS the same
What differences are there betwee Flash CS4 and Flex, besides the GUI of Flash?
View 3 Replieswhat is the difference between skin and CSS??Why it is better to use skin over CSS in Flex.
View 2 Replieswhat the difference between height and measuredHeight is in flex?
After reading a few articles on the adobe site, I'm still non the wiser as to when to use which.
I'm new to Flex and wondering what the difference is between these two ActionScript implementations of the bit.ly API: [URL] One thing I noticed is that one comes in .as files and the other's an .swc file. Is one better than the other for learning Flex?
View 1 RepliesWhat is the Difference between ItemRenderer and ItemEditor?And When ItemRenderer is initializing and loading?
View 1 RepliesWhat is the difference between a UIComponent and a Sprite in Flex.
View 1 Replieswhat's the difference between MXML and Actionscript3 when we need to use MXML ??
View 2 Replieswhat is difference between swfLoader(load application) and ModuleLoader(load module)?
View 1 RepliesWhen state is changed, we can define the new properties for the new state overidding the properties of the base state.
But, I had a doubt. What is the difference between using setProperty() and removeChild() in Flex ?
Take the following case.
Suppose there are 2 Vbox inside the application container. When the state is changed by some event, I need only 1 VBox in the appln container.
(a) Should I set setProperty for that particular VBox of width and height to 0 ? or (b) Should I remove the VBox from the new state by using removeChild() property ?
In flex what is the difference between rollover and mouseover?
it occurs first rollover, then mouseover,then mouseout, then rollout. when these events most suitable?
what is the Difference between validateProperties() and invalidateProperties() ?
View 2 RepliesPossible Duplicate: What is Adobe Flex? Is it just Flash II?tell me in layman's term as to whats the difference between flex and flash objects. i know that programmatically there are differences and there are difference in the extension but then why do some flex programs have a .swf extension since the extension for flex is swc ?
View 1 RepliesIn my flex project i used one option like Link button . If i like it will be open new page contain more information and components . Which container is suitable one ? Where is used viewstack and stages ?
View 2 RepliesWhat is the main difference Between ViewStack Container and Canvas?
View 1 RepliesDifference between the Array and ArrayCollection in Flex?
View 2 Repliesthe difference between target and currenttarget in flex?
View 3 RepliesIf I skin a button and use the AS3 graphice.clear() and graphics.lineTo and beginFill to create a shape, the button overlaps other items in the container.
When I use the and mxml to create the same shape, the button is neatly positioned inside the container.
I am trying to find a way to compare two text files through Flex and show that diff in the UI. Is there a util or a way to do that?
View 1 RepliesI didn't get the difference between those two event.What is the difference between them ?
View 3 RepliesNeed Detailed explanation on the difference between skinning, coloring and themes.
View 1 RepliesI need to use multiple fonts in my Flex 4 application, so I compile them into swf and load at runtime. I have single .ttf file for each font. When I dont load font's swf file at runtime, flex uses copy of this font installed on my system, and it works fine - I can switch between regular, bold and italic faces of the font correctly.However,when I load fonts from swfs, setting their style to bold or italic makes no effect. I tried different ways of compiling swfs (css using mxmlc compiler, fontswf utility,.as files with [embed] tags), but nothing worked. When compiling using css it sometimes throw errors that font face is not supported, and it seems that some fonts are available only in bold-italic style only or bold style only.I use cff fonts, load them using etcs.ru.utils.FontLoader utility. Fonts are loaded correctly, I check this with Font.enumerate fonts.So is there any way to embed these .ttf files with all styles available?
View 1 Replies