Flex :: Adobe - Possible To Clone Component At Runtime

Jul 6, 2009

I am trying to duplicate a flex component at run time. For example if I have this:
mx: Button label="btn" id="btn" click="handleClick(event)"/>
I should be able to call a function called DuplicateComponent() and it should return me a UI component thts exactly same as above button including the event listeners with it.

View 6 Replies


Similar Posts:


Flex :: Adobe Flex - Event MetaData Tag And Clone Method?

Jul 22, 2011

overriding clone() while creating custom events?I read in the Flex cookbook that we need just in case we want to redispatch this event. Does this exactly means that when we want event to be bubbled up the display hierarchy , at that time our custom cloned event should be dispatched and not the Event object.

second - whats the need of metadata tag -
[Event(name="modelEvent", type="com.abc.data.model.ModelEvent")]
public class LoginModel extends EventDispatcher
I understand we need to extend EventDispatcher in case we want to dispatch evnet from class.. but In what cases i would need to specify the MetaData TAg

Third is.. If i write -- "dynamic customEventClass extends Event".. Is there any use of Dynamic i can make?

View 3 Replies

ActionScript 3.0 :: Clone A DisplayObject Created At Runtime?

May 14, 2010

I do not know how to copy a DisplayObject can anyone can help me on this one? I've downloaded an image from a website at runtime and putting it into a DisplayObject and now I'd like to create a completely separate copy of it so I do not have to make another request to download it again.

View 3 Replies

ActionScript 2.0 :: Duplicate/Clone Runtime Drawn MC?

Jan 29, 2007

with a "small" problem:I can't seem to duplicate or clone a mc created at runtime, with a child mc inside, which is attached at runtime... Here is my file:

View 6 Replies

ActionScript 3.0 :: Make A Clone Of Sprite / MovieClip At Runtime?

Jan 10, 2012

How do I make a clone of a Sprite or MovieClip at runtime? So that if I make changes to the copy, the original remains unchanged.

And you can turn any Sprite or MovieClick in a class? So that I can create instances of this class (using new) and thus create copies of the display objects.

View 6 Replies

Flex :: Assessment Of Adobe AIR As An RIA Runtime?

Sep 14, 2010

Is Adobe AIR the best cross-OS-compatible, browser-less runtime for RIAs? What are drawbacks unique to AIR? What are positives unique to AIR? Is AIR expected to grow and develop for years to come? Who's the industry leader?

View 2 Replies

Start Adobe Flex App On OS X With Just AIR Runtime And Swf?

Jan 23, 2011

I know it is possible to run an Adobe Flex compiled .swf from the command-line using the adl command-line tool.

Is there an equivalent way to run a Flex .swf from the command-line using the system installed AIR runtime?

My question applies to OS X, but I'd interested to know about other platforms also.

View 2 Replies

Flex :: Download Adobe AIR Bundled Runtime Installer?

Oct 20, 2011

I am trying to package air runtime and air application in a native installer. i googled a lot on how to achive the same. i found this link [URL]..which says u need ' AIR bundled runtime installer' to package air runtime with air application.

But havn't found any air bundled runtime installer. from where i can download 'AIR bundled runtime installer' alternative way to package the air runtime with air application except badge from web page.

I am trying to create AIR native installer bundled with AIR runtime for windows, Mac and Linux operating system??

View 1 Replies

Flex :: Make Use Of The Adobe Air 3 Captive Runtime Feature?

Dec 28, 2011

I'm using Adobe Flash CS5 with Adobe Air 2.5 to build an air app. Is there a way to make use of the Air 3 captive runtime feature? Do I need additional software to publish the Air app with the captive runtime?

View 1 Replies

Difference Between The Flash Player Runtime And Adobe AIR Runtime?

Nov 16, 2009

I've been into coding for about 5 years now, but I'm a recent convert to Flash development. One of the questions I have at the moment is, considering that SWF files can be run by either Adobe Flash Player OR Adobe AIR, what's the real difference between the two runtime environments? What API's and Objects exist in one environment, but not the other?

Basically what I'm more or less trying to establish is, when would I want to develop an SWF for AIR, and when would I want to develop for Flash Player, considering that Flash Player can also execute locally (providing support for creating "desktop applications")

View 1 Replies

Actionscript 3 :: Flex 4 - Add New Component At Runtime?

Feb 1, 2011

I'm looking to make a "Generate component" button that will add a new component such as a Button to a Group. There could be any number of components added, so I don't want to use states. How can I do this?

View 1 Replies

Flex :: Swapping Movieclips With Other Assets At Runtime In A Flash Component

Sep 2, 2011

I have an animated character swc that is an empty skeleton basically (has all the body parts, animations, and functions/vars). I want to essentially put different clothes on that character at runtime so I don't have to have many copies of this character in my resources.

For example, I have 'skeleton' (the non-clothed model) and 'Bob', 'Jane', and 'Mary' characters. 'skeleton' is animated and fully works as an exported swc, and to get the other characters in their clothes/skins, I open up Flash CS5 and replace the movie clips with the 'clothed' versions of the components. To clarify,'skeleton' has "body parts" as movie clips that are all animated on the timeline, such as "head","face","left arm","right arm", etc. I open up 'Bob', who has the same exact design as 'skeleton', with the exception that 'Bob' has all the clothes and such as differently-designed movie clips. The size, shape, orientation, and reg points are all the same across all the components. After I've replaced all the movie clips in 'skeleton', I export it as a swc named 'Bob.swc' and I do this for all the characters.

What I'm asking is, how can I do this process ^, but at runtime instead, so I don't have all these duplicate root swcs ('skeleton' has a lot of frames on it) so I can cut down on a bunch of space? So I can do something like:

// bob gets all the actions and animations of skeleton
var bob:UIMovieClip = new skeleton()
// replace the body movieclip with a new looking one
bob.body = resources.bodyassets['bob']['body']

View 1 Replies

Actionscript 3 :: Flex - Ribbon Component For Adobe Flex Or Aswing?

Apr 1, 2011

Anyone can point me to free or commercial Ribbon component done for Adobe Flex or Aswing? I seen one at some point but for some reason cant find any now. (Please don't mention minddomo, since it has nothing to do do with my question).

View 2 Replies

Adobe Flex Toggle A Component Full Screen?

Aug 25, 2010

I have 5 components on my Flex application(actual view) and they are:

x = main panel
y = bottom panel
z = left panel
a = right panel
b = top panel

I have a toggle full screen button. When clicked I want the main panel(x) to become full screen. At this point only main panel(x) should be visible. when I click on the toggle button again, it should become normal displaying all 5 components(the actual view).

View 2 Replies

Javascript :: Run Inside HTML Component In Adobe AIR Flex 4?

Mar 26, 2011

I have the following component in an AIR application from Flex 4:

<mx:HTML id="viewObject"
x="10" y="42" width="634" height="313"
location="http;//localhost:8080/mypage.php" />

Now I want to run a javascript when the page loads but the javascript isn't inside the target page. I want to run the following javascript:

javascript:alert('Hello world.');

I tried approaching it by setting the location property again to the javascript after the page has loaded like below.

<s:Button x="10" y="10" label="Button">
<s:click>
<![CDATA[

[Code]....

Unfortunately for me, that doesn't seem to work.

View 1 Replies

Flex :: Adobe : ToolTip Of A Spark Component With Enabled=false?

Oct 19, 2010

I have a Spark Component (a Group) which doesn't behave as wanted.The tooltip is only shown when the component is enabled=true which the following example shows:

<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]/....

In the Halo component the toolTip is shown. And this is, what I want to achieve.In my case I want to try something like this:

<s:Group toolTip="{cartEntries > 0 ? 'great!' : 'go and buy!'}"></s:Group>

View 1 Replies

Flex :: Adobe - Get An Ordered List Using Htmltext Property Of Text Component?

Feb 1, 2011

how do i get an ordered list using htmltext property of Text component? I tried using this: <ol><li>item</li><li>item</li></ol> but it rendered like an unordered list.

View 2 Replies

Adobe Flex 4 Rendering Issues With Text In Disabled TextInput Component?

Apr 22, 2011

I have an application which displays employee information. If the user opening the detailed employee information page is not authorized to make changes I set the TextInput to disabled. Some users are reporting rendering issues with this. The TextInput's text value does not appear inside the box but is misaligned and is outside of the component. You can see the screenshow below of the disabled ID column where the numbers which are supposed to be in the TextInput box are far off to the right.

[Code]...

View 1 Replies

Flash :: Line Chart Possible To Achieve Using Adobe's Built In Charting Component In Flex?

Jan 13, 2012

I'm new to Flex/AS3. I've attached an example line chart below. I want to know if this type of graph can be created using the standard line-series chart available in Flex (Flash Builder 4.6), or whether there's something drawn below that is non-standard and would therefore require some rather involved customization. The key features are:

-Different line styles and colors (dashed, dot-dash, solid, thick, thin, opacity)
-Placement of units (y-axis "seconds" and x-axis "Hz")
-x-axis zoom/pan control bar below graph (move knobs in and out to set x-axis min and max plotted values)
-Log x-axis scale, linear y-axis scale
-Data Tip (or, some call it tool tip, not shown below)
-SI units for x- and y-axis tick labels.

My guess is that everything should be pretty standard to accomplish using Adobe's built-in charting (with the possible exception of item 6, see below). Is that a good assumption?I'm particularly concerned about the x- and y-axis tick labels (item 6). For example, the x-axis tick marks as a number would be:1, 10, 100, 1000, 10000, 100000, 1000000, 10000000 but they need to be replaced with SI units, where k=1000, and M=1000000, so the corresponding marks would be (replacing the numbers above with the strings below)"1", "10", "100", "1k", "10k", "1M", "10M".The same goes for the y-axis, where p represents 1e-12, and n represents 1e-9.I can create an algorithm that accepts a number and outputs a string to do the SI unit conversion. But given that, is there a way to easily manage the tick mark labels to replace the default numbers with such strings?

View 2 Replies

Actionscript 3 :: Adobe AIR Runtime Compatibility?

Mar 21, 2012

Is it possible that an adobe air application that runs fine with an older installed AIR runtime stops working or works buggy if it is installed on a system that has a newer version of the runtime installed?

View 2 Replies

Flex :: Clone Function Duplicate Data

Feb 4, 2010

I've some strange behavior using ObjectUtil.copy() and ByteArray.writeObject/readObject(). I clone an ArrayCollection and sometime the result is two identical instance of the class. Example :

[Code]...

View 1 Replies

Actionscript 3 :: Adobe Flex - Embed Component Inside An Image's "window"?

Sep 2, 2009

I have a an image, lets call it "StageSkin.png".This is an image which is really just a border, and the middle of the image is "windowed", meaning that it is meant to show other information inside of it.The information inside of it is in the form of a component (based on a canvas component, lets call it 'Gauge').I want to create a component out of the 'StageSkin' image and the 'Gauge' component inside of it that would allow me to resize the component with the 'Gauge' component staying inside of StageSkin's window.I searched on this, and got the code below, but the embedded component just overlaps the entire image. What do I need to do?

<mx:Style>
.nineSliceScalingBackground
{
background-image: Embed("assets/StageSkin.png",[code]..........

View 2 Replies

Flash :: Adobe - Making An Interactive Charting UI Component "from Scratch" (without Flex)

Feb 14, 2011

I'm looking for resources on making an interactive charting component in Adobe Flash without use of Flex (or, minimal use). That is, starting "from scratch" with Flash and ActionScript 3.0. Is there recommended reading? Perhaps a good recent book on the subject, or a detailed blog article, or an open source project to look at? I'm interested in the development process, and specific design patterns (for example, extending Sprite as the logical base class for your component).

View 1 Replies

Why Doesn't Adobe Opensource The Flash Runtime Engine

Nov 17, 2010

It seems to me like the biggest arguments against Flash right now falls into three categories:It is slow and battery intensive. Basically that it uses too much CPU than it should. It is not an open standard. Eveyone knows how HTML/CSS and JavaScript operate inside. Flash is not open.It has security flaws which make it insecure.

Seems like all of these concerns could be addressed if Adobe opensourced the Flash player. Third parties could contribute to and audit the code base, and optimize and fix bugs. Adobe could concentrate on making the apps and environments that author Flash content best. Well, Adobe hasn't done that yet. Why not? What are the business/technical reasons that makes Adobe want to keep control of a closed source Flash player?

View 3 Replies

Flex :: Dynamically Create Axis Via ActionScript In Adobe Flex Charting Library; Adobe Bug?

Mar 21, 2011

Multiple axis creation via MXML works fine:
http:[url]...

But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....

View 2 Replies

Bind A Component To An XML Node Dynamically At Runtime?

Sep 13, 2010

I have a custom component based on mx:ComboBox. Within it I connect to an HTTPService (the url is passed as a paramter) and bind the combobox. Parameters to be sent to the HTTPService are passed to the component. This is working fine. But I want to modify it to make it re-usable with other HTTP service URLs, which return the XML in a different format.

My challenge is how can I bind a custom component to a node dynamically at runtime?[code]...

View 2 Replies

Flex4 Component Kit For Flash Loading At Runtime

Jan 11, 2011

I created few flex components in flash using flex component kit for flash. It generates a swf and a swc file. my question is, how can i load these flash created flex component at runtime and use them.

View 1 Replies

ActionScript 2.0 :: Accessing Authoring Elements Of Component At Runtime

Mar 6, 2007

Is it possible in Flash 8 accessing from the linkage class, associated to a component, the graphics elements (for instance, a standard UI component, like a tree or a comboBox) that are on the movieclip this class refers to?

View 1 Replies

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 2.0 :: Make Non-inspectable Component Properties Persist From Design To Runtime?

Jun 9, 2010

I have two components (lets call them A and B) which have normal inspectable properties (e.g. NAME and AGE) which allow you to enter values via the component inspector. When I type the value for NAME in component B (via the component inspector) I communicate via a singleton class and store this value in a NON INSPECTABLE property located in component A.

When I run the movie, I want to access this non inspectable property within component A; however, it is always null - the value will not persist from design time to runtime. I check that the value is set at design time by tracing the A's non inspectable property once component B has set it - and it does indeed work, so I know component B has managed to set the correct value in A.Basically, what I need to know is, how do you persist properties of a component from design to runtime, without having to make properties inspectable and having to manually type property values via the component inspector?

View 1 Replies







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