Flex :: Preprocessor - Is It Possible To Do A #define In Adobe Flex?

Mar 26, 2010

I'm looking for a way to do something similar to a c/c++ #define in adobe flex.

I'd like to have lots of different paths a project build can take depending on wither or not something was defined. Does such a thing exist in flex?

I know there is ways to set global variables but that wont really suit my purpose. being able to have structures with numerous #ifndefined and such is really what i'm in need of.

thanks!

View 2 Replies


Similar Posts:


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

Flex :: Define A Function In One Component From Another?

Feb 1, 2010

I'm a complete Flex/Flash noob, running Adobe Flash Builder 4 Beta 2. I have a main component that needs to be able to call several popups, each mostly the same except for one function and a few labels. Obviously, I'd prefer to be able to define this function and change those labels when calling the popup instead of having tons of .mxml files with nearly the same code, I just don't know how to do it. I figured out how I can change the labels, but not sure how to redefine the function.For simplicity's sake, let's say my code looks like this:

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

[code].....

View 2 Replies

Flex :: Create And Define Vector?

May 11, 2010

I'm looking for method to create Vector and push some values without defining variable Vector. For example:I have function:

public function bla(data:Vector.<Object>):void { ... }
this function expects Vector as parameter. I can pass parameters this way
var newVector:Vector.<Object> = new Vector.<Object>();

[code].....

View 4 Replies

Flex :: Define Custom 'contentGroups' In A Custom Flex 4 Component?

May 12, 2010

The spark panel component for example can be written like this

<Panel title="Skinny">
<child components ... />
<controlBarGroup>
<child control bar components ... />
</controlBarGroup>

[Code]...

The motivation here is that I can now create a couple different skin files to change the look and layout of those subgroups. Reading source of the spark panel, there are some calls within the mx_internal namespace such as getMXMLContent() which is a method of the spark group component, but which I have no access to.

Does the description above make sense? How can I create custom 'contentGroups' in my custom Flex4 component that can use nested mxml child components? Should I approach this a different way?

View 2 Replies

Flex 4 - Define A Style For Html Links In CSS?

Aug 30, 2010

how can I define a CSS style for html hyperlinks inside a mx|Label component such as a, a:link, a:hover and a:active ?

(I can't use s|Label since it doesn't dispatch link events I tried everything (even really stupid ones), but am unable to find anything that actually works:

[Code]...

View 1 Replies

Flex :: Send Html Page With Application Installation Package In Adobe Flex?

Aug 26, 2010

I want to send a html webpage with my application in installation package,is it possible?

View 1 Replies

Flex :: Air - Rich Text Data Can Be Used Offline In An Adobe Flex Application

Nov 12, 2010

I am building an offline [URL] application in Adobe Flex. Can we use [URL] Rich Text Area fields in the offline application? I do not see the field returned in a query.

View 2 Replies

Flex :: Adobe - How Do I Ensure A Flex DataProvider Processes The Data Synchronously?

Nov 12, 2011

I am using an component, and currently have a dataProvider working that is anArrayCollection (have a separate question about how to make this an XML file... but I digress).Variable declaration looks like this:

[Bindable]
private var _dpImageList : ArrayCollection = new ArrayCollection([
{"location" : "path/to/image1.jpg"},

[code]....

View 4 Replies

Flex :: Adobe - Create Smooth Transitions For Drop Down List In Flex For Desktop Applications?

Jan 22, 2012

I have a drop down list for selecting the titles for a person, I want to employ smooth drop down when i select the drop down menu.

View 1 Replies

Flex - Get A Collection Of UIComponents Based On A Stylename In Adobe Flex?

Nov 4, 2009

Does anyone know an Actionscript equivalent of the javascript getElementsByClassName.

What I would like to do is add a custom 'stylename' to various components which I can then use to get a collection of these objects and therefore process their visibility property.

The idea is I want to hide various components based on what roles a logged in user has - I just want to make this flexible by adding an array of rolenames to a custom property or use the stylename property on a Canvas or Panel etc.

View 1 Replies

Flex :: Get HTML Text From Adobe Flex Builder RichTextEditor?

Jan 29, 2010

How to get HTML text from inputed and edited text into Adobe Flex Builder RichTextEditor control? I mean with valid HTML coming from the Flex RichTextEditor component Not Badly formated HTML, with no spaces, with tags not closed! So we have some text edited with RTE a-la

View 2 Replies

Flex :: Adobe Flex - Doing Group By At Client End (DataGrid To Pie Chart)?

Dec 23, 2010

I am in a situation where user gets the cars data from the database based on the selection and displays it in datagrid like below ( for example)

Company Model Year No
GM Chevy 2010 10
GM Chevy 2009 5
GM Pontiac 2010 12
Honda Civic 2009 12

and there will be a link next to datagrid to get Pie chart based on the data displays in the data grid . The pie graph should display grouping by company and the count . I mean for the above example that should give with two pie items , one for GM showing the number of vehicles ( in this case 3 ) and Honda showing the number of vehicles ( in this case 1 ).

I thought of getting it from the database by querying and grouping it .But here the problem is after getting the data above in the datagrid user can able to filter at client end ( By year or model ) and can say get graph . This time that should only display the graph for the data visible in Datagrid .Grouping on database for every operation is becoming expensive. Since we have already data available at client end , is there any way to group it at client ..?

View 2 Replies

Flex :: Passing Data Between Views In Adobe Flex (Actionscript)?

Mar 30, 2011

Ive read a ton of online tutorials about this and cant seem to get a definite answer...

View1.mxml
navigator.pushView(views.view2, {response:"BLAH"});
View2.mxml

[code].....

View 2 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

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 :: Flex - Use A Variable To Define The Name Of An Instantiated Object?

Apr 20, 2010

Essentially this is what I want to accomplish, however it doesn't work like this. Is there any solution: - The problem is I can't dynamically name a new object..

import views.printingView;
public function initComponent(o:Array):void{
SomeObject::Array = o;

[Code].....

View 1 Replies

Flex :: Define A Boolean Based On Stage Width?

Feb 14, 2011

I'm trying to create a dynamic layout for a flex app.

I need a boolean which is dependent upon the overall width of the browser window with which to set states, something along the lines of

if(this.parentApplication.width<950)
{
currentState = "wide"
}else{
currentState = "narrow"
}

However, I can't just state this in the fx:Script tags, so what is the best way to implement this? enterFrame="application1_enterFrameHandler(event)" works

View 2 Replies

Actionscript :: Define Multiple ItemRenderers In A Flex List?

Jun 9, 2009

Basically I want to override some function in the flex/actionscript list class which creates a new ItemRenderer and passes it the required data ready to be displayed. I need to do this because I wish to show a different renderer based on the type of data being displayed. Is there such a function?

I don't really want to pass the list a single itemRenderer which calls its addChild function depending on the type of data it has - It just doesn't seem right.

View 1 Replies

Flex :: Upload - Adobe Flex Mobile Selecting Image From Camera Roll Or Taking Picture Restarts The Application

Jan 19, 2012

I have a flex mobile application that I am working on that I am having issues with selecting an image from roll/taking a picture. My application is not tabbed, however one part of it contains a Tabbed View Navigator with tabs across the bottom. Within one of those tabs, I have the ability to upload an image to a webservice that I have created. However, when I select an image or take the picture, it pops back out to the initial splash screen and the application restarts. If I use the component standalone (outside of the tabbed view navigator) it selects the image and uploads without any problem.

[Code]...

View 1 Replies

Flex - Encrypted Video Playback Adobe AIR (Flex)?

Jul 14, 2009

Suppose you have an encrypted video file and the associated AES key. Is it possible to play that video in a flex AIR application without saving the decrypted version of the file? How?

View 3 Replies

Flex :: Use Adobe Flash Or Flex For Action Scripting?

Jun 1, 2010

I am using flex. But i find it hard.Should i use Adobe flash so that i can insert the components by drag and drop

View 1 Replies

Flex - Design Patterns For Adobe Air/Flex Applications?

Jun 2, 2010

I'm going to write an application with the Air/Flex-Framework. I'm looking for Best Practise and general Design Patterns for designing software especially in Air/Flex. I have experience with this framework but never had the pleasure to write a piece of software from scratch.

For instance: I stumbled across lots of software written in Air/Flex with nearly infinity global vars Most of the software I saw was not object-oriented How can I pack the asynchronous method calls nicely?

I'm familiar with general design patterns by gamma. I'm looking more for advise in designing good quality software with Adobe Air/Flex.

View 4 Replies

Flex :: Adobe - Flex Browser Application Initialization?

Sep 3, 2011

to point out some good tutorials on creating applications in flex that are don't have UI's?Actually, it looks like all I really need to know is how to call afunction upon initialization of the flash object. I tried the creationComplete attribute, but it doesn't work in browser.

View 2 Replies

Flex :: Split View In Adobe Flex Mobile?

Nov 24, 2011

I have four views:1.SplitView (main view)2.SplitViewHomeView(root Panel)3.SimpleView(Right panel)4.Details(child of Right Panel View).I am trying to accomplish the split view as in Ipad in adobe flex mobile.But unable to connect the root panel to right panel...Can any one suggest the path to me.My Code is below

Split View
**
<?xml version="1.0" encoding="utf-8"?>

[code]...

View 1 Replies

Flex :: Contentprovider - Content Provider For Adobe Flex?

Mar 19, 2012

Does Adobe Flex have provide a Content Provider for sharing data between two applications?

If not, is there an alternative way for Flex apps to share information without being connected to the internet?

View 1 Replies

ActionScript 3.0 :: Programmatically Detecting Between Adobe Air And Adobe Flex?

Feb 12, 2010

I have some shared code between an Adobe AIR App and an Adobe Flex App.

On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.

How can I programmatically detect the difference?

View 1 Replies

Flex :: Define Components Path In Each Module / Just Main Application Mxml?

Apr 16, 2010

I'm implementing a Flex application with several modules.I'm reusing the same component in all these modules.I was wondering if I'm correctly importing it in each mxml module definition: xmlns:hillelcoren="com.hillelcoren.components.*"Should I import it only once, in the main application mxml instead?

View 1 Replies

Actionscript 3 :: Flex 4: Can't Define S:layout For Subclasses Of Classes Extending Group?

Sep 9, 2011

I'm trying to create a base class for components by extending Group in Flex 4, but I can't seem to define the layout through MXML. Any time I try to move the definition to a subclass of my base component, I get the following error:

Error: Could not resolve <s:layout> to a component implementation.

Judging by that error, it seems that some magic from the framework's side goes into assigning it for a Group and thus the compiler fails when trying to assign it for any other classes. Does anyone know how this is supposed to work? how to allow me to define it in subclasses?

View 1 Replies

Flex :: Adobe Flex Layout Redraw

Aug 4, 2010

My flex application gets some parameters from URL when the application opens for the first time(ex: layout=<1,2,3,4> ). Based on layout(1,2,3,4) value I have to change the layout. However the problem is the application is already drawn(Layout is initialized) by the time the control reaches the point where it reads the values from the URL. I was wondering how can I redraw once I read the values from URL. Some thing like refresh.

View 1 Replies







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