State transitions within components

Hi
Im having troubling getting a button within a custom component to change the state of another custom component. For example, I have custom component A and custom component B within a page of my application. I want a button in custom component A to change the state of custom component B. When i try to select the state to transition to its not in the drop down list. Is there a way I can edit the source code to make this work?
thanks,
Luke.

Hi Luke,
There isn't a way to do this from the Flash Catalyst UI currently. If you import the project into Flash Builder, there are a number of ways you can do it in code. Here's the simplest way:
1. In your Main.mxml file, assign an id to the instance of the component you want to control (in your example, Component B), like this:
<components:ComponentB x="100" y="100" id="compB"/>
(If it already has an id, just note it down and go to the next step.)
2. In the ComponentA.mxml file (which should be in the "components" folder in your project), add a click handler to the button, like this
<s:Button label="Click me!" x="100" y="100" click="FlexGlobals.topLevelApplication.compB.currentState='StateName'"/>
where StateName is the name of the ComponentB state you want to switch to when the button is clicked. (If the instance of the component in Main.mxml already had some other id, just use that here instead of "compB".)
Note that while this is the easiest way to do it, it's not the cleanest. A better way to do it is to have ComponentA dispatch an event when the button is clicked, and then have the application handle the event by changing ComponentB's state. That's a little more code though.
Let me know if this doesn't work for you.
Thanks,
nj

Similar Messages

  • State transitions across components?

    Hi,
    I've been using Catalyst for a few days now to put together a "clickable mockup" of an app. Instead of working based on a comp, I'm creating the UI in Catalyst directly, using it's built-in components and creating a "wireframe" look. Works fine. I anticipate to work with more hi-fi comps.
    One thing I'm having trouble with, is making deep transitions between states from subcomponents.
    Imagine this setup:
    The app has two states/pages, "1" and "2". Inside each page, I have one component to represent all the states of that page. So for the first page, the internal component states would be 1-1, 1-2 and 1-3. Ditto for 2.
    So, now, let's say that in state 1-3, I have a button inside the component, where I want to transition to 2-2. Currently, it appears that there is no way for me to do that. When I click on the options in "Play transition to state" of the button, it shows me states 1 and 2, as well as 1-1 through 1-3, but it does not show the "child" states of "2".
    Is there any way to accomplish the transition from 1-3 to 2-2?
    Another version on the same problem: let's say I can somehow get from 1-3 to 2-2. Now, inside 2-2, I have a button that jumps back to "1". Currently, when I jump to "1", it jumps to whatever state 1 was in, which is 1-3 in my case, which is undesirable. It would be nice if I could somehow reset the component state on some event (showing, hiding, ...) to its default state, so that when people later jump back to it, it would start in its default state.
    I am familiar with ActionScript and XML and did poke around a bit. I see that in components, there is this kind of code:
      protected function Button_click_1_1():void
        mx.core.FlexGlobals.topLevelApplication.currentState='AppHome';
    I speculate that this lets me do what I need by editing code, and instead of topLevelApplication.currentState using topLevelApplication.someComponent.currentState... but I wanted to see if there is/will be another friendlier way of accomplishing this?

    Hi,
    Just my, hopefully helpful thoughts about how to render complex state transition much easier to understand, design and debug ...............
    Perhaps, initially for coders with a solid background in conditional logic, the inclusion of one or two design windows/panels providing the ability to design and display at least state transition diagrams and preferably also state transition tables, could be very helpful when trying to either design or understand complex, inter-related state transitions - actually, even relatively simple state-transitions with only five to seven objects, each with only three or four states to track concurrently, can be difficult to design, debug and test using just a mental model and memory to retain knowledge of the desired vs. actual state transition paths.
    Although I say "initially for coders", many years ago I taught both of these techniques successfully during software "design principles" courses that addressed software developers who's function was to prepare "design specifications" rather than actually write the code which, in those days, was the job of programmers rather than designers.  In fact many of my students were not programmers at all - for example analysts who used state transition diagramming techniques to design functions regardless of whether those functions would become implemented as code, or as a set of human actions, or mechanical machine operations (think pinball!).
    It should be possible using today's technoloy to be able to
        (a) generate code from a state transition table or a state transition diagram and
        (b) generate both forms of diagram from existing code (including the code autogenerated during visual design and
        (c) consistency check existing code automatically.
    It should be possible, using state transition table and diagram functions, to highlight structural logic errors.  How such highlighting should be done, for example:
        (a) using a classic state transition table or diagram or
        (b) generating some form of structured text report or
        (c) inserting colour-highlighted error messages in-line in the code or
        (c) some other more visual-designer-oriented signalling technique or
        (d) a combination of several of the above
    would be a design issue for Adobe.  This would not be a trivial exercise for Adobe, but the functionality would be reusable, i.e. transferable into other products.
    After all, the only reason for such tables or diagrams is to render complex state transitions understandable by humans, and these two techniques have proved extremely useful for many decades in many areas of design - programming, electronic circuit design, machine design, business process design......
    Re. Catalys, it's just a classic program design application, with some whizzy UI graphics that need to display, disappear, change colour, glow, shimmer, move, .... in predictable and desirable ways.
    The original pinball machines used mechanical relays to implement their underlying state transition diagrams; pinball designers needed to understand at least two things (a) complex state transitions and (b) a well designed UI. From this point of view, Catalyst looks like a pinball design panel!

  • Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.

    Dear all,
    I have trouble to connect em console to database instance. My database is 11.2.0.3 and before this I did the patching from version 11.2.0.1, and now i cannot get fully functionality of em console.
    error is:
    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    It shows that agent is connected, database and listener is up.
    I did recreation, dropping and recreating with emca, but no success.
    Did anyone have similar problems with em console?
    Regards,

    You need to first of all, Connect to the Database as SYSDBA (because your were not connected), then start the database (because it is not started).
    If you already used the username and password in the command prompt and you are sure that the database is already stared, then you need to set the ORACLE_SID before you open SQLPlus. This is because if SQLPlus does not know the SID you are connecting to, it simply thinks it is not up or has no service hence the message "Connected to an idle instance".

  • Changing states from within a component

    Let's say that I have a TileList that is rendering data in a
    VBox. Eventually the TileList fills up and starts scrolling. I want
    to change states when clicking on item in the TileList.
    I don't want to place the click-attribute in the TileList,
    because it will change states when I am scrolling the list without
    actually selecting anything.
    I want to say click="currentState='state2'" inside the VBox,
    but that does not work because state2 is at the root level, and I
    don't know how to get to the root-level (in lack of a better word)
    from withing the component.
    This is not the proper syntax, so misunderstand me the right
    way here... Is there an equivallence to
    click="currentState='_root.state2'" in mxml?
    Thanks for any suggestions or best practices. I want the easy
    way out.
    This is the general structure...
    <mx:Application>
    <mx:states>
    <mx:State id="state1"/>
    <mx:State id="state2"/>
    <mx:State id="state3"/>
    </mx:states>
    <mx:TileList dataprovider="{...}">
    <mx:itemRenderer>
    <mx:component>
    <mx:VBox id="ClickThisBoxToChangeStates">
    <mx:Image/>
    <mx:Label/>
    </mx:Vbox>
    </mx:component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

    Your assumption is right.
    It doesn't work because there is no state2-state defined
    within the mx:component.
    In the documentation about changing states it says that I can
    go from application level and change states within a component;
    like this: click="currentState='mycomponent.anotherstate'" but not
    how I can change a state at application level from within a state.
    When I try, it says (at runtime) that the state is not defined.
    So I don't know why <mx:VBox
    click="currentState='state2'"/> doesn't work.
    I apprechiate your expertese a lot.

  • Is there a way to make state transitions/animations of a fl.control states - button for example ?

    Is there a way to make state transitions/animations of a fl.control states - button for example ?
    All I can do now is change the skin design and that's it, I can't animate between states like I can with Flash Builder skins. So is there a way to do that, any technique or I have to create a button component from scratch?
    Thanks!

    simplebuttons have upState etc properties you can use to assign movieclips to the 3 states.  you can use the currentFrame property of movieclps to (appear to) smoothly transition from one state to another.

  • PPP Dialup cnx fails - Mica modem never completes state transitions

    I have a NAS (LAC) serving PPP calls over PSTN for multiple customers and for this particular connection, the call always drops at the 'State Transition to Ranging". I have another CE router succesfully calling the NAS and usingeaxctly the same external modem, so it proves the NAS works correctly.
    What's the 'Ranging state'? What happens here? What causes the Mica modem to go into that state?   Any help to solve this problem will be very much appreciated.
    NAS Details:
    Cisco Internetwork Operating System Software
    IOS (tm) 5300 Software (C5300-J-M), Version 12.3(22), RELEASE SOFTWARE (fc2)
    cisco AS5300 (R4K) processor (revision A.32) with 65536K/16384K bytes of memory.
    NAS Debugging output:
    Mar  1 17:05:22 UTC: VDEV_ALLOCATE: 1/33 is allocated
    Mar  1 17:05:22 UTC: EVENT_FROM_ISDN: dchan_idb=0x623BA450, call_id=0x2E41, ces=0x1
       bchan=0xD, event=0x1, cause=0x0
    Mar  1 17:05:22 UTC:  dev in call to isdn : set dnis_collected & fap_notify
    Mar  1 17:05:22 UTC: EVENT_FROM_ISDN:(2E41): DEV_INCALL at slot 1, port 33
    Mar  1 17:05:22 UTC: EVENT_FROM_ISDN: decode:calling oct3 0x21, called oct3 0xA1, oct3a 0x83,mask 0x3F
    Mar  1 17:05:22 UTC: EVENT_FROM_ISDN: csm_call_info:calling oct3 0x21, called oct3 0xA1, oct3a 0x83,mask 0x3F
    Mar  1 17:05:22 UTC: CSM_PROC_IDLE: CSM_EVENT_ISDN_CALL at slot 1, port 33
    Mar  1 17:05:22 UTC: Mica Modem(1/33): Configure(0x1 = 0x0)
    Mar  1 17:05:22 UTC: Mica Modem(1/33): Configure(0x23 = 0x0)
    Mar  1 17:05:22 UTC: Mica Modem(1/33): Call Setup
    Mar  1 17:05:22 UTC: csm_connect_pri_vdev: TS allocated at bp_stream 1, bp_Ch 3, vdev_common 0x61D53E9C 1/33
    Mar  1 17:05:23 UTC: Mica Modem(1/33): State Transition to Call Setup
    Mar  1 17:05:23 UTC: Mica Modem(1/33): Went offhook
    Mar  1 17:05:23 UTC: CSM_PROC_IC2_RING: CSM_EVENT_MODEM_OFFHOOK at slot 1, port 33
    Mar  1 17:05:23 UTC: EVENT_FROM_ISDN: dchan_idb=0x623BA450, call_id=0x2E41, ces=0x1
       bchan=0xD, event=0x4, cause=0x0
    Mar  1 17:05:23 UTC: EVENT_FROM_ISDN:(2E41): DEV_CONNECTED at slot 1, port 33
    Mar  1 17:05:23 UTC: CSM_PROC_IC6_WAIT_FOR_CONNECT: CSM_EVENT_ISDN_CONNECTED at slot 1, port 33
    Mar  1 17:05:23 UTC: Mica Modem(1/33): Link Initiate
    Mar  1 17:05:23 UTC: %ISDN-6-CONNECT: Interface Serial0:13 is now connected to 02155915479 N/A
    Mar  1 17:05:24 UTC: Mica Modem(1/33): State Transition to Connect
    Mar  1 17:05:24 UTC: Mica Modem(1/33): State Transition to V8bis Exchange
    Mar  1 17:05:28 UTC: Mica Modem(1/33): State Transition to Link
    Mar  1 17:05:32 UTC: Mica Modem(1/33): State Transition to Ranging <- !!!!!! Call drops here *******
    Mar  1 17:05:59 UTC: %ISDN-6-DISCONNECT: Interface Serial0:13  disconnected from 02155915479 , call lasted 36 seconds
    Mar  1 17:05:59 UTC: EVENT_FROM_ISDN: dchan_idb=0x623BA450, call_id=0x2E41, ces=0x1
       bchan=0xD, event=0x0, cause=0x10
    Mar  1 17:05:59 UTC: EVENT_FROM_ISDN:(2E41): DEV_IDLE at slot 1, port 33
    Mar  1 17:05:59 UTC: CSM_PROC_IC7_OC6_CONNECTED: CSM_EVENT_ISDN_DISCONNECTED at slot 1, port 33
    Mar  1 17:05:59 UTC: Mica Modem(1/33): Link Terminate(0x6)
    Mar  1 17:05:59 UTC: CSM(1/33): Enter csm_enter_disconnecting_state
    Mar  1 17:06:00 UTC: EVENT_FROM_ISDN: dchan_idb=0x623BA450, call_id=0x2E41, ces=0x1
       bchan=0xD, event=0x0, cause=0x0
    Mar  1 17:06:00 UTC: VDEV_DEALLOCATE: slot 1, port 33 is deallocated
    Mar  1 17:06:00 UTC: Mica Modem(1/33): State Transition to Terminating
    Mar  1 17:06:00 UTC: Mica Modem(1/33): State Transition to Idle
    Mar  1 17:06:00 UTC: Mica Modem(1/33): Went onhook
    Mar  1 17:06:00 UTC: CSM_PROC_IC8_OC8_DISCONNECTING: CSM_EVENT_MODEM_ONHOOK at slot 1, port 33
    Mar  1 17:06:00 UTC: CSM(1/33): Enter csm_enter_idle_state
    CE Router Details:
    Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(25a), RELEASE SOFTWARE (fc2)
    CE External Modem: Paradyne3920
    chat-script:
    ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" AT&F\\D1\\Q3M0&D2&R0&S1S55=1S0=2&W OK "ATDT \T" TIMEOUT 60 CONNECT \c

  • Change Header Banner with transitions within Dreamweaver CS4

    Is it possible to have a looping banner with
    several graphics and transitions within Dreamweaver

    Spry Basic Slideshow
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2141542
    Spry Content Slideshow
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2141541
    jQuery Banner Rotator
    http://plugins.jquery.com/plugin-tags/banner
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • States, Transitions and Reparent in Flex 4

    Hi,
    I'm trying to control exactly when certain changes occur between states in a transition.
    One thing I can't seem to control is when the Reparent action takes place in a state transition. What I want to do is move the targeted component into position and resize it before reparenting it. Otherwise the component causes layout issues in its new parent. The raparenting seems to take place at the beginning of the transition no matter what I do.
    Surely this is possible? It certainly makes sense to be able to do it. If anybody has some info I'd be really grateful. There's very little coverage of advanced control of states in the way I wish to achieve.
    Thanks!

    Good advice Corey.
    I've filed a bug report. Here's the link: http://bugs.adobe.com/jira/browse/SDK-26414
    If anybody gets stuck with this, then please vote for it to be resolved.
    Thanks!

  • Triggering a state transition via time

    Something that comes up often for me is the need to jump from one state to another after a certain amount
    of time (as opposed to a user clicking on something).
    For example, lets say you are prototyping a search interface. The sequence is:
    1) The user fills in a form and clicks "Search"    (state 1)
    2) The UI displays a "searching" indicator for a few seconds (state 2)
    3) Search Results are displayed (state 3)
    Note that the user does not "click" anything to go from "state 2" to "state 3"; it happens
    automatically after some specified time.
    For the life of me I cannon figure out how to do this in Flash Catalyst gracefully. You can kind of fake it
    my fading things in the timeline, but this seems "hacky"; also, I cannot figure out how to fade something in AND
    fade something out in the same transition (to simulate state 2 above).
    Any suggestions?
    Thanks!
    Rob

    Hey! thanx for your quick reply. This really sucks.....
    Date: Sun, 7 Feb 2010 11:06:28 -0700
    From: [email protected]
    To: [email protected]
    Subject: Triggering a state transition via time
    You can't do this in Catalyst; you have to add timer code in Flash Builder. And what totally sucks is that once you modify code in Flash Builder, you can't bring it back into Catalyst; it's a one way street
    >

  • CSM : How to display state transitions ?

    Hi,
    Is there any way on the CSM to monitor the number of state transitions for real servers and virtual servers (like the show summary command on the CSS)? I don't find any information in the detail output of "show mod csm x real detail" or "show mod csm x vserver detail"
    Thank you,
    Yves Haemmerli

    Yves,
    there is no counter tracking this info.
    The CSM will log a message when a server goes down or up. You could save them on a syslog device and use a script to count transitions.
    A CSM command to use to detect if there was probe failures is 'sho mod csm X tech probe'. It counts total of probe [not per real] so.
    Gilles.

  • Running a State Transition on Startup

    Hi there
    Trying to get my ap to change state on startup to run a
    transition animation. The idea is that this is a nice way to bring
    the ap to life, with some movement to bring the interface in.
    Is there a simple trick to do this?
    I have tried state="
    startupState" in the WindowedApplication line which works
    for me in a Flex ap, but in Air produces a long list of complaints
    about transition effects under the category:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference
    I have tried creationComplete="state='
    startupState'" but get the same result
    Any suggestions? I am quite new to this so may have missed
    something obvious, or perhaps there is a better way than using a
    state transition to run a bit of animation on the interface at
    startup?
    Any help much appreciated
    Andy

    Hello
    The self-help bureau here...(!)
    Just in case anybody else is looking into this I have the
    solution...
    One of my Zoom transitions was set to a duration of zero.
    This plays happily in the Flex world
    In Air land on the other hand zero's are no-no's, so simply
    setting the duration to 0.001 resolved the issue

  • Open MQ 4.3 "Bad transaction state transition"

    We have Open MQ 4.3 in remote, enhanced cluster. We are seeing ERRORs and WARNINGs in broker log file. They occur sporadically, once every couple hours or so. I think they might be related. Anyone have an idea what the problems may be?
    1) "Bad transaction state transition"
    [30/Jun/2009:00:48:12 EDT] ERROR com.sun.messaging.jmq.jmsserver.util.BrokerException: Bad transaction state transition. Cannot perform operation PREPARE_TRANSACTION(56) (XAFlag=null) on a transaction in state STARTED(1).: TUID=8284690576893811200 Xid=62726970706C303130302E6263627372692E6F72672C7365727665722C5032363137332C00E11C0000CD99242E62726970706C303130302E6263627372692E6F72672C7365727665722C503236313733:
    com.sun.messaging.jmq.jmsserver.util.BrokerException: Bad transaction state transition. Cannot perform operation PREPARE_TRANSACTION(56) (XAFlag=null) on a transaction in state STARTED(1).
    at com.sun.messaging.jmq.jmsserver.data.TransactionState.nextState(TransactionState.java:440)
    at com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doPrepare(TransactionHandler.java:1625)
    at com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.handle(TransactionHandler.java:551)
    at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644)
    at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
    at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
    at java.lang.Thread.run(Thread.java:595)
    2) "ROLLBACK_TRANSACTION(48): Ignoring unknown XID"
    [29/Jun/2009:22:54:34 EDT] WARNING ROLLBACK_TRANSACTION(48): Ignoring unknown XID=62726970706C303130302E6263627372692E6F72672C7365727665722C5032363137332C0006140000CD99242E62726970706C303130302E6263627372692E6F72672C7365727665722C503236313733 broker will notify the client
    3) "Heartbeat timeout"
    [29/Jun/2009:22:54:14 EDT] WARNING [B2122]: Heartbeat timeout from /192.168.106.192:32000 [brokerID=jmsnode_brippl0301, brokerSession=8155493556708599552] (seq#=7856, ts=1246330447089, interval=2, len=231) sender=/192.168.106.192:57964
    Steve

    Your question has also been posted to mq-interest alias with broker/appserver log files. The following is based on the log files:
    1) "Bad transaction state transition"
    The server.log you provided shows that right before this exception, there was appserver exception as below. It appears that something was wrong with the application/appserver state:
    [#|2009-06-29T19:03:32.253-0400|WARNING|sun-appserver9.1|javax.enterprise.system.core.transaction|_ThreadID=22;_ThreadName=JMSJCA sync #0(queRouterRequest);Context=RouterJMS_ESB_R1_0032_PPMO_090626/queRouterRequest_svcBpRouterJMS_ejb;_RequestID=f92d8d20-1abb-4c0b-b6eb-cd205eabcd37;|JTS5041: The resource manager is doing work outside a global transaction
    javax.transaction.xa.XAException
    2) "ROLLBACK_TRANSACTION(48): Ignoring unknown XID"
    This can be ignored. By looking at a couple of such WARNING messages in the broker log you provided
    - The transaction was cleaned up on client connection closing and then the client reconnects, appserver attempts to rollback the old transaction.
    3) "Heartbeat timeout"
    This will be logged if the broker didn't receive heartbeat from the other broker for configured timeout period. This can happen occasionally due to network fluctuation. The heartbeat timeout values can be adjusted by broker "Failure Detection Properties"
    http://docs.sun.com/app/docs/doc/820-6740/gguju?a=view

  • State transitions from Modules

    My application.mxml defines my state transitions and loads a couple of modules at startup - GuestSearch and GeneralInformation. In the GuestSearch, there is a button that when clicked, should remove the GeneralInformation module on the right and replace it with a different third module, GuestSearchResults. I'm new to Flex, so I haven't quite got my mind around the proper way to handle application flow.
    [application.mxml]
        <mx:states>
            <mx:State name="GuestSearch"> // initial state
                <mx:AddChild relativeTo="{leftSide}" position="lastChild">
                    <states:GuestSearch/>
                </mx:AddChild>
                <mx:AddChild relativeTo="{rightSide}" position="lastChild">
                    <states:GeneralInformation/>
                </mx:AddChild>
            </mx:State>
            <mx:State name="GuestSearchResults"> // state to go to after button click in module1
                <mx:RemoveChild target="{rightSide}"/>
                <mx:AddChild relativeTo="{rightSide}" position="lastChild">
                    <states:GuestSearchResults/>
                </mx:AddChild>
            </mx:State>
        </mx:states>
        <mx:Canvas x="0" y="54" width="100%" height="100%" backgroundColor="#8591C2">
            <mx:constraintColumns>
                <mx:ConstraintColumn id="col1" width="300"/>
                <mx:ConstraintColumn id="col2" width="100%" />
            </mx:constraintColumns>
            <mx:Canvas id="leftSide" left="col1:7" top="9" bottom="9" right="col1:4"/>
            <mx:Canvas id="rightSide" left="col2:4" top="9" bottom="9" right="col2:7"/>
        </mx:Canvas>
    My question is since this information is defined in my application.mxml, how can clicking on the button in the GuestSearch module reference the states defined in the application.mxml so as to swap modules?
    Thanks for the help
    Brian

    Is this the preferred way to do this kind of navigation - by putting all state transitions in the application.mxml? Or should state be defined in the GuestSearch module?

  • Assigning present-state CSS colors within components

    Hi Folks,
    Got a ton of components on my site that I use for navigation. Nav Bars, Button bars, etc. Any given component might therefore link to 20 or 30 subpages.
    Simple question: How do I assign present-state colors to a given button within a component?
    For example: a Nav Bar component has buttons that will lead a visitor to any of a dozen pages. The Nav Bar therefore looks the exact same on every one of those twelve pages, but I'd like the button indicating the present (or current) page to be a different color. The button for page 9, for instance, should have a different color (or current state) when the visitor is actually on page 9.
    The challenge: how to pull this off when the button to be highlighted exists on a component, rather than on the individual page file itself?
    This might not be as hard as it sounds - I'm basically looking for the appropriate CSS tag.
    Many thanks -

    Okay, so after getting almost no views and getting zero replies here, I've found the answer. The answer is NO, this can't be done. Well, at least the part about being able to use variables within the css file. See details at:
    http://forums.adobe.com/message/2645929#2645929
    I found some discussion of people hoping that it will be possible in the future to have variables within css, but that would still not provide what I was looking for in Flash Builder. Perhaps a pre-processing program could be written that would inject colors into the mxml, skin, and css files, but I'm not sure how well that would play with the FB IDE. And even with such a thing, going back and forth with changes could be a problem.
    So I guess we're stuck doing it the hard way.

  • Modeling state transitions between screens

    Hi,
    I'm trying to build a flex application that is made of 20 or
    so screens. Some of these screens are serially connected, much in a
    wizard manner, but many others are not.
    I have not found a language construct yet that would allow me
    to model these screens as states and that would allow me to trigger
    event-based transitions.
    It sounds exactly like what States do, right? But the actions
    within a State are all about "addChild" and "removeChild" and it
    seems awkward to define all the UI components in this additive
    manner.
    Isn't it possible to define a container for each screen and
    then simply move from one to another container based on button
    presses?
    This sounds like what viewStacks do, right? But viewstacks
    seem to load all at the same time, don't seem ideal either.
    So I'm looking for a best practice pattern for this. I'm
    having a hard time believing that all the flex applications can fit
    in one screen with accordions, tabbars and similar.
    Thanks for a great article series! FIG is the best I've read
    so far, and it's spot on... designers need to learn a new visual
    language.

    Seems like the ViewStack component might be what you are
    looking for... simple to use, and you can attach transition
    effects. There is a good example in the Flex developer's guide (
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=navigators_066_03.html),
    showing transitions triggered by a LinkBar... but you can also
    change the view in code by setting the selectedIndex
    property.

Maybe you are looking for

  • HTTP 500 Internal Server Error with Large Attachment in SOAP Scenario

    Hi, we have implemented SOAP - XI - SOAP Scenario in our landscape (Sap Neatweaver Process Integration 7.1) . One of the functionality of this scenario is the Upload of Documents to External Web Service through standard SOAP Attachment. If we try to

  • Can I buy an older version of Captivate?

    Our customer uses Adobe Captivate 5.  We would like to be able to work on the same files with them, so that means we would also have to have Captivate 5.  Is it possible to buy this older version, or buy a subscription? Thank you.   Ryan

  • How to get buttons to play in numerical order

    On my menu page I have a total of seven buttons going left to right, slightly staggered up and down. They are labeled in correct order: Button 1, followed by Button 2...etc. When I simulate, however, and click the right arrow to go to the next video

  • Where have my events gone?

    Recently upgraded to Mountain Lion. Since then my events have dissapeared from iMovie. Projects are there fine. Any ideas? Should add that projects are on one HD, events on another.

  • Screen brightness changes?

    my touchsmart running windows 7.  if I don't use the mouse or touch the screen for a short period of time, the brightness lessens. I have to move the mouse or touch the screen to restore the original brightness of the screen.  this can be annoying wh