• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

inline scripting?

Community Beginner ,
Jun 06, 2011 Jun 06, 2011

Copy link to clipboard

Copied

How would this be done? if it needed to be done. For example you have a button - you need to swap it out for a diffrent button if some condition is met in some state.

Or - you populate a list (data list) based on a vector

How is this type of in line scripting handeled and done and are there examples?

Views

333

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 07, 2011 Jun 07, 2011

Copy link to clipboard

Copied

bump              

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 08, 2011 Jun 08, 2011

Copy link to clipboard

Copied

So no one knows how to do this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 08, 2011 Jun 08, 2011

Copy link to clipboard

Copied

LATEST

There are many ways to accomplish this.

Button swapping can be done with Flex states (define <s:states><s:State name="state1" /><s:State name="state2" /></s:states> and then in your button, you can specify includeIn="state2")

Or you could write ActionScript code in an fx:Script block that does a removeElement()/addElement() or toggles visibility.

Assigning data can be done in MXML using binding syntax (but you still have to assign the data in ActionScript).

P.S: The right place for questions unrelated to Flash Builder is the Flex General discussions forum.

-Anirudh

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines