Bug in Flex transition?

Hi,
I have problem while adding TabNavigator to the UI. Basically
if I specify the TabNavigator and the children inside the main
MXML, the Transition will be able to display it properly during
state transition. However if I create another MXML component as a
child of TabNavigator, and I add this new component into the UI,
even though I set up specific order of transition, the transition
doesn't work.
here's my application.mxml
quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" xmlns="*">
<mx:transitions>
<mx:Transition fromState="*" toState="*" >
<mx:Sequence>
<mx:Resize duration="2000" target="{canvas1}" />
<mx:AddChildAction target="{tbb2}" />
<mx:AddChildAction target="{tbb}" />
</mx:Sequence>
</mx:Transition>
</mx:transitions>
<mx:states>
<mx:State name="wstate">
<mx:SetProperty target="{canvas1}" name="width"
value="500"/>
<mx:SetStyle target="{canvas1}" name="right"/>
</mx:State>
<mx:State name="rstate">
<mx:SetStyle target="{canvas1}" name="right"
value="200"/>
<mx:AddChild position="lastChild">
<mx:TabNavigator id="tbb" width="182" right="10"
bottom="10" top="10">
<mx:Canvas label="Tab 1" width="100%" height="100%">
</mx:Canvas>
<mx:Canvas label="anothertab" width="100%"
height="100%">
</mx:Canvas>
</mx:TabNavigator>
</mx:AddChild>
</mx:State>
<mx:State name="crstate">
<mx:SetStyle target="{canvas1}" name="right"
value="200"/>
<mx:AddChild position="lastChild">
<TabComp id="tbb2" width="182" right="10" bottom="10"
top="10" />
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Script>
<![CDATA[
function setwstate() { setCurrentState("wstate"); }
function setrstate() { setCurrentState("rstate"); }
function backtobase() { setCurrentState(""); }
function tabnavcomp() { setCurrentState("crstate"); }
]]>
</mx:Script>
<mx:ApplicationControlBar x="144" y="0" dock="true"
id="applicationcontrolbar1">
<mx:Button label="Base state" click="backtobase()"/>
<mx:Button label="State with setting width constraint"
click="setwstate()"/>
<mx:Button label="State with setting right constraint"
click="setrstate()"/>
<mx:Button label="state with tab nav comp"
click="tabnavcomp()"/>
</mx:ApplicationControlBar>
<mx:Canvas top="10" left="10" right="10" bottom="10"
backgroundColor="#FF0000" id="canvas1">
</mx:Canvas>
</mx:Application>
here's my other component which the transition doesn't
respect
quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:TabNavigator xmlns:mx="
http://www.adobe.com/2006/mxml"
width="400" height="300">
<mx:Canvas label="Tab Comp" width="100%"
height="100%">
</mx:Canvas>
<mx:Canvas label="anothertab" width="100%"
height="100%">
</mx:Canvas>
</mx:TabNavigator>
Anyone know the work around for that?

We know about this already (our apologies) and it will be
fixed in the next release; I'm not sure if that will be a hotfix or
Flex 3.

Similar Messages

  • [svn:fx-trunk] 9287: Fixes bug with shader-transition effects ( AnimateTransitionShader, Wipe, and CrossFade) when acting on targets that either have filters or are inside a hierarchy with filters .

    Revision: 9287
    Author:   [email protected]
    Date:     2009-08-13 15:53:43 -0700 (Thu, 13 Aug 2009)
    Log Message:
    Fixes bug with shader-transition effects (AnimateTransitionShader, Wipe, and CrossFade) when acting on targets that either have filters or are inside a hierarchy with filters. Fix was to capture the bitmap snapshot of the target without any of its own filters applied and to then use the ShaderFilter in conjunction with the target's filters during the animation.
    QE notes: Probably need more tests in this area, now that we handle it
    Doc notes: none
    Bugs: sdk-20250
    Reviewer: Jason
    Tests run: Checkintests, Mustella (spark/effects/[AnimateTransitionShader|Wipe|CrossFade])
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-20250
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransiti onShaderInstance.as

    Lots to be excited about. BUT...Just updated to 8.1 on one of my computers to test it out...
    Sadly, the following issue is NOT fixed for me. Is it with new projects only?  I haven't started a new project on 8.1 I've only opened an old project but the issue that I'm referring to which involves also a delay/freeze of anywhere from a few seconds to a MINUTE while the render bar goes from yellow to red and then back to yellow is still there. Boo.
    On the list above...
    Switching between sequences can turn the render bar red.
    This issue is incredibly easy to replicate. I really do hope it gets fixed. Here are the steps:
    1) Create two sequences with multiple short clips (the more clips the better)
    2) Make sure GPU acceleration is enabled.
    3) Add warp stabilizer to the clips in both sequences. Again, the more clips the longer the delay/freeze will be as the render bar goes from YELLOW to RED and then eventually back to YELLOW again.
    4) Hit SAVE.
    5) Now, toggle between sequences. You'll hit a short delay with a few clips stabilized and a LONG delay with lots stabilized. In my case this delay is around a full minute. The render bar will go from YELLOW to RED and then back to yellow...eventually.
    6) Toggle back to the original sequence and the delay occurs again.
    7) Once you've toggled between sequences and have gone through this delay, that's it, there is no longer a delay...UNTIL...(and here's the big kicker)...until the project is SAVED again. After that the issue returns when you toggle between sequences. Both saving manually and AUTOSAVING cause this issue. No way around it except not editing with GPU acceleration.
    Not sure what the issue is...caching issue when saving maybe? Either way, it stinks and it's still there in 8.1. Big bummer.
    Again, lots to be excited about with this release but I really was hopefully this specific issue was resolved.
    Sigh.

  • Another bug in Flex? (Application.parameters and query strings)

    I'm passing in two query string parameters in the source of SWFLoader and both of them are clumped together in the first parameter by application.parameters.
    But I switch the order of the parameters in the query string and both parameters are returned correctly:
    Case #1:
    Query String:  ?cfg=zzzzzzz54B&embed_div=x
    parameters.cfg: zzzzzzz54B&embed_div=x
    parameters.embed_div:  [nothing]
    Case #2:
    Query String:  ?embed_div=x&cfg=zzzzzzz54B
    parameters.cfg: zzzzzzz54B
    parameters.embed_div: x
    Here is the actual debug commands:
    Dumper.info(this.url);
    Dumper.info(this.parameters.cfg)
    Dumper.info(this.parameters.embed_div);
    And output:
    (Case #1)
    [INFO]: file:///C:/Program%20Files/WordRad234/chm/wordrad_kt/web%20pages/zzzzzzz5/rad_3xf.swf?cfg =zzzzzzz54B%26embed_div%3Dx (String)
    [INFO]: zzzzzzz54B&embed_div=x (String)
    [INFO]: (Object)
    (Case #2)
    [INFO]: file:///C:/Program%20Files/WordRad234/chm/wordrad_kt/web%20pages/zzzzzzz5/rad_3xf.swf?emb ed_div=x&cfg=zzzzzzz54B (String)
    [INFO]: zzzzzzz54B (String)
    [INFO]: x (String)
    Something I just noticed: the equal sign after embed_div is replaced by %3D but only if embed_div comes last.

    NEVERMIND:
    It was something I was doing  to the source of SWFLoader beforehand (involving encodeURIComponent).
    I have to say, I have many, many times thought something was a bug in Flex and it was in fact my code.  In general, I think Flex/AS3 is an elegant and useful product.  The sort of ad hoc  tweaks that have to be done to avoid memory leaks though is ridiculous (though I do have that figured out pretty much as well.)

  • Is this a sizing bug in Flex 4?

    I have a form like this:
        <mx:Form width="400">
            <mx:FormItem id="myFormItem" label="My label:" width="100%">
                <s:Label width="100%" text="Sample text here. This label should wrap but it doesn't (it is being clipped). Change to absolute width fixes it." />
            </mx:FormItem>
            <mx:FormItem label="Test input:">
                <s:TextInput />
            </mx:FormItem>
        </mx:Form>
    The result is that the label is clipped instead of word-wrapped. Changing the label width to an absolute size fixes it but that's not the behavior I'd like to achieve. As the percentage should be internally converted to absolute size anyway, isn't this actually a Flex 4 bug? Or am I doing something wrong?

    Hi,
    Flex has basic html rendering capabilities but not for webpages, there are tricks you can do with i-frames but then you end up with compatibility issues over various browsers, AIR on the other hand has a web rendering engine built in, but thats not really the solution for what you are working on.
    David.

  • Is it a bug of flex when loading wsdl?

    Hi guys,
    I used this endpointuri http://localhost:8080/test/soap/myService?wsdl to call soap service.
    If I use browse to check this endpointurl, it will redirect to http://localhost:8080/test/my.wsdl.
    I have two .xsd files in  the webapp base(ie., http://localhost:8080/test) .
    When flex called this wsdl file, I found that flex used http://localhost:8080/test/soap/schemaName.xsd to get xsd file
    I hope flex can use http://localhost:8080/test/schemaName.xsd for xsd file.
    Is it a bug? any one know how to resolve it?
    Many thanks,
    ray

    BTW, I use flex 3 currently.

  • Bug in Flex

    TypeError: Error #1007: Instantiation attempted on a
    non-constructor.
    at mx.managers::CursorManagerImpl/::showCurrentCursor()
    at mx.managers::CursorManagerImpl/removeCursor()
    at mx.managers::CursorManager$/removeCursor()
    at mx.containers::DividedBox/
    http://www.adobe.com/2006/flex/mx/internal::restoreCursor()
    at
    mx.containers.dividedBoxClasses::BoxDivider/::mouseOutHandler()
    Oddly, this is occurring when I mouseOver the divider on a
    DividedBox after using the PopUpManager to display a TitleWindow.
    However, if I mouseOver before I display the TitleWindow then I can
    go ahead and popup the TitleWindow and then I can mouse over the
    divider without problems. It would seem there's a strange bug in
    the CursorManager causing it to error in relation to not-preloading
    the the cursor before popping up a window?

    Ugh...I was able to make it work with a hack. I added an
    event listener to creationComplete on Application that displays the
    busy cursor, then I added an event to effectEnd for my page fade-in
    to remove the busy cursor....that seems to make it be happy. It
    stinks that I'm having to use this work-around, but at least the
    hack actually makes it look a little prettier. ;)

  • Funky bug - when previewing transitions...

    One peristent bug my iMovie has is that when I set up a transition between two photos or two video clips, and try to preview it, it basically doesn't preview well it all. First, it goes either previews in reverse, or previews it just plain wrong. For example, if I am transitioning between clip B and C, it will preview it as a transition from clip B to clip A, or at least from clip C to B. And it will go really fast. It is just not right at all. If I actually apply it/ drag it in, whatever, it will work just fine, as expected, but the preview feature is basically just plain bunk. Any thoughts?
    (While I'm at it, often when I clip on a blank space clip, to bring up the numeric display of its length, the text in the little text box that displays the length of the clip (which I can type in, to change the length) will get all wacky, as if it were typing over top of itself, getting all garbled, like numbers on top of numbers...)

    A big preview - in the main iMovie playback window - will often be slow and jerky, as the computer tries to play back in "real time" an effect which really needs the video to be rewritten ('rendered') before it'll play correctly.
    Any preview in the little 'Preview' window at top right will not necessarily be accurate, as iMovie tries to use a bit of video which is in its memory, instead of the slower and more cumbersome method of reading video from the hard disc.
    So the little black preview window gives only a rough 'taste' of what the transition or effect might look like, but isn't a proper representation. And a proper preview in the big playback window won't be accurate either, as most computers can't run fast enough to show an 'unrendered' effect in iMovie in real time (..though some effects and transitions used in Final Cut can be previewed in real time ..but that's a more expensive program!)
    (..I don't think I've ever seen the garbled "numbers on numbers" effect you mention ..not in iMovie, but occasionally in other dialogue boxes in other programs. Sounds like it may be a Display or Font problem..)

  • Event handler doesn't work for a Canvas inside a canvas (Possible bug in Flex 4)

    Hi Guys,
    I have a canvas sitting inside another canvas. When i try to catch the mouseClick event in the child canvas, im not able to do it. When i change the child canvas component to a 'Panel', the event handler works perfectly fine. Any suggestions/solutions?

    ok a few things you should know... it is recomended to use the spark components when working with flash builder 4 thought the mx components are available spark is much litghter in weight. also if you want to use the equivalent of a canvas in spark then you want to use a "group" but ill warn you they dont support inline styles, a border container looked more appropiate for what you were trying to do below.  However. i did fix your code for flex 4.0
    look below.
    component:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
        creationComplete ="canvas2_creationCompleteHandler(event)">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    public function canvas1_clickHandler(event:MouseEvent):void
    Alert.show("Clicked");
    public function canvas2_creationCompleteHandler(event:Event):void
    {// TODO Auto-generated method stub//
    kenaCan.addEventListener(MouseEvent.CLICK, canvas1_clickHandler);
      ]]>
    </fx:Script> 
    <mx:Canvas id="kenaCan"
          width="400"
          height="300"
          borderStyle="solid"
          borderColor="black"
          backgroundColor="white"
          />
    </mx:Canvas>
    application:
    <?xml version="1.0" encoding="utf-8"?>
    <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" minWidth="955" minHeight="600"
          xmlns:local1="local.*">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <local1:canvas/>
    </s:Application>
    if this post answers your question please mark it as such thanks

  • Serious bug in Flex Builder 3

    I just lost a whole morning's work. Here's what I did:
    I needed to base a new component on an existing one. So, in
    the FB3 file list I right-click, copy file, paste file, rename to
    new name. Open up the new file and do my work on it. I saved the
    file several times as I normally do as I work, and ran and debugged
    the program many times.
    Then, at one point I did command-Z to undo something.
    However, I guess the editor did not have focus. Instead of undoing
    my typing, the tab I was working on closed. The undo/redo menu read
    "Redo duplicate file". Worst of all, the newer file -- the one i
    had been working on all day -- had reverted back to the way it was
    when I first duplicated it, i.e. a clone of file 1. All the work I
    had done to transform the file 1 clone into file 2 was lost. Even
    the Finder modification date was the same as file 1. No trace of
    the file versions saved today.
    I have never seen a program overwriting a never file with an
    old one with no dialog or warning. I realize nothing can be done, I
    need to re-do my work, but to other be aware. I will never
    duplicate a file or perform any file operation from within FB from
    now on, I will use the OS.

    It is also possible that there are 'backup' plugins for
    eclipse that you can use with Flex Builder, say that archive your
    work every 5 minutes or whatever. Not sure, but wouldn't be
    surprised.
    Something along these lines:
    http://sourceforge.net/projects/savedirtyeditor/
    I realize this may not be exactly it.

  • Is this a bug with flex?

    Since setStyle takes a string and an object for inputs, one would expect that passing and Image for the Object would  work.  But it doesn't.
    One doesn't ALWAYS have a filename to work with.  Is setStyle supposed to work with parameters: (string,object) ("backgroundImage", Image)?
    If so, what else needs to be done?
    ===========
    private function GetConfigurationResult( event:WsVCIGetConfigurationDataResultEvent):void
    var simage:String = event.result.Image;
    var decoded:ByteArray;
    var
    decoder.decode( simage );
    decoded = decoder.toByteArray( );
    bgImage.data = decoded;
     decoder:Base64Decoder = new Base64Decoder(); "backgroundImage", bgImage );
    setStyle(
    ============
    But this generates the following error:
    ==========
    Error: Unable to load 'Image52'.
    at mx.skins::RectangularBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\p rojects\framework\src\mx\skins\RectangularBorder.as:237]
    at mx.skins.halo::HaloBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\skins\halo\HaloBorder.as:222]
    at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\ projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
    at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\ projects\framework\src\mx\managers\LayoutManager.as:622]
    at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\framework s\projects\framework\src\mx\managers\LayoutManager.as:677]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\proje cts\framework\src\mx\core\UIComponent.as:8628]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\core\UIComponent.as:8568]
    ==============
    But passing a filename to setStyle works!!!!
    But I need the image to come from a database by way of web server!!!!!!
    Help!
    {// retrieve the 64base encoded image from the web service by ResultEvent
    var
     bgImage:Image =new Image();

    The code now reads:
    private function GetConfigurationResult( event:WsVCIGetConfigurationDataResultEvent):void
    var myUrl:URLRequest;
    var servername:String = this.parentApplication.VCIFormsPage.text;
    var lFileName:String = event.result.FileName+event.result.FileExtension;
    myUrl = new URLRequest();
    myUrl.url = servername + "VCIWebFileRetrieve.aspx?filename=" + lFileName ;
      setStyle("backgroundImage", myUrl );
    and I still get:
    Error: Unable to load '[object URLRequest]'.
    at mx.skins::RectangularBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\fr amework\src\mx\skins\RectangularBorder.as:237]
    at mx.skins.halo::HaloBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\fram ework\src\mx\skins\halo\HaloBorder.as:222]
    The URL is a web form to compose and return a "file"
    This still isn't working!
    Did I do something wrong, like maybe I should use something other than "URLRequest?"

  • Bug in flex 4, with truncating the link button and labels

    hey guys.. so my application has a popupanchor, and in that popup anchor i have multiple linkbuttons... and for some reason no matter what i try, it truncates all the link buttons, as well as the labels on accordions.
    i know that the button is not in a group with small width... ive also tried wrapping the link button in a group with a width of 500, and still the link button gets truncated...
    any ideas on how to fix this problem??
    if you would like the following is the code i have... essentially all the labels and linkbuttons gets truncated after the second time i popup the popupanchor.
    <s:PopUpAnchor id="detailsPopup" popUpPosition="topLeft" styleName="popUpBox" depth="20">
         <s:VGroup id="detailsGroup" contentBackgroundColor="#ffffff" height="518" width="791">
              <s:Group width="100%" height="100%">
                   <s:Rect width="100%" height="100%">
                        <s:fill>
                             <s:SolidColor color="#ffffff"/>
                        </s:fill>
                   </s:Rect>
                   <s:VGroup>
                        <s:BorderContainer backgroundColor="#0184C7" width="100%" height="88" borderVisible="false">
                             <mx:LinkButton label="[ X ]" skin="{null}" x="750" y="5" fontSize="8" color="#ffffff" rollOverColor="#333333" click="hideDetails.play(); resetVars();" />
                             <storyTextbox:advancedTextInput id="title" defaultText="Insert Title Here" fontSize="18" color="#ffffff" focusColor="#ffffff" width="575"
                                                                     height="30" verticalCenter="0" left="12" contentBackgroundColor="#0184C7" borderVisible="false"/>
                             <storyTextbox:advancedTextInput id="subHeading" defaultText="Insert Subtitle Here" fontSize="10" height="20" y="63" left="12" focusColor="#ffffff" width="315"
                                                                     color="#ffffff" contentBackgroundColor="#0184C7" borderVisible="false"/>
                             <s:VGroup paddingLeft="600" paddingTop="25">
                                  <s:HGroup>
                                       <s:Label text="File Name: " color="#ffffff" fontFamily="DINOT-Bold" />
                                       <s:Label text="{currentSelection.FileName}" color="#ffffff" fontFamily="DINOT-Regular" maxWidth="111" lineBreak="explicit" />
                                  </s:HGroup>
                                  <s:HGroup>
                                       <s:Label text="Video Id: " fontFamily="DINOT-Bold" color="#ffffff" />
                                       <s:Label text="{currentSelection.VideoId}" fontFamily="DINOT-Regular" color="#ffffff" />
                                  </s:HGroup>
                             </s:VGroup>
                             <s:HGroup paddingLeft="400" paddingTop="60">
                                  <s:Label id="dateFieldLbl" color="#ffffff" text="Date Available" paddingTop="5" paddingRight="15" />
                                  <s:Group>
                                       <mx:DateField id="dateField" initialize="txtFieldInitialized();" x="-75"
                                                        change="getSelDate();" styleName="dateFieldStyle" depth="100" fontSize="10" />
                                  </s:Group>
                             </s:HGroup>
                             <s:HGroup paddingTop="65" paddingLeft="515">
                                  <s:CheckBox id="corp" label="Corporate" styleName="checkboxStyle" selected="false" />
                                  <s:CheckBox id="insider" label="Insider" styleName="checkboxStyle" click="checkBoxClicked(insider);" selected="false" />
                                  <s:CheckBox id="podcast" label="Podcast" styleName="checkboxStyle" click="checkBoxClicked(podcast);" selected="false" />
                                  <s:CheckBox id="iphone" label="iPhone" styleName="checkboxStyle" click="checkBoxClicked(iphone);" selected="false" />
                             </s:HGroup>
                        </s:BorderContainer>
                        <s:HGroup>
                             <s:BorderContainer borderVisible="false">
                                  <s:VideoPlayer id="videoPlayer" width="545" height="307" mediaPlayerStateChange="vidPlyr_mediaPlayerStateChangeHandler(event);"
                                                    visible="true" skinClass="modules.videoHandler.components.videoPlayerSkin" dropShadowVisible="false" />
                                  <mx:LinkButton label="CAPTURE" skin="{null}" color="#0184C7" rollOverColor="#333333" click="captureVideo();" top="330" left="475" />
                             </s:BorderContainer>
                             <s:VGroup>
                                  <s:HGroup>
                                       <mx:Image id="initialThumbnail" styleName="imgSkin" source="{popupThumbnail}" width="100" height="55" />
                                       <s:Group>
                                            <mx:LinkButton label="SAVE" skin="{null}" color="#0184C7" rollOverColor="#333333" paddingLeft="78" paddingTop="16" click="saveData();" />
                                            <mx:LinkButton label="CLOSE" skin="{null}" color="#0184C7" rollOverColor="#333333" paddingLeft="68" paddingTop="30" click="hideDetails.play(); resetVars();" />
                                       </s:Group>
                                  </s:HGroup>
                                  <mx:Accordion id="tagsNCategoriesAccordion" width="225" height="285" borderVisible="false" headerStyleName="headerStyle" borderStyle="none">
                                       <s:NavigatorContent id="channel" label="Channel" visible="false">
                                                            </s:NavigatorContent>
                                  </mx:Accordion>
                             </s:VGroup>
                        </s:HGroup>
                   </s:VGroup>
              </s:Group>
         </s:VGroup>
    </s:PopUpAnchor>

    ive tried it on simpler cases... it seems to happen when ever the buttons are on a popupanchor...
    so when i popup the anchor for theffirst time it works, but when i pop it up again thats when i start noticing the truncation.... if that makes any sence

  • Flex 2 with AS 3.0: Transitions code compilation error

    I just bought "The Essential Guide to Flex 2 with
    ActionScript 3.0. (Friends of Ed 2007) In order to work through the
    examples, I downloaded Flex 3.0 beta. Its been going well ... until
    starting the exercises on transitions.
    I've narrowed the problem down to the "relativeTo" attribute
    of the AddChild class. This snipped builds and runs fine:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:states>
    <mx:State name="bookDetails" basedOn="">
    <mx:AddChild creationPolicy="all" position="lastChild">
    <mx:FormItem id="isbn" label="ISBN: 1590595432" />
    </mx:AddChild>
    </mx:State>
    </mx:states>
    <mx:Panel title="Book" id="book"
    horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <mx:Form id="bookForm">
    <mx:FormItem label="Foundation XML Flash"
    fontWeight="bold" />
    <mx:FormItem label="Sas Jacobs" fontStyle="italic" />
    </mx:Form>
    <mx:ControlBar>
    <mx:LinkButton label="Book Details" id="bookLink" />
    <mx:Spacer width="100%" id="spacer1" />
    <mx:Label text="Book Title" id="title" />
    </mx:ControlBar>
    </mx:Panel>
    </mx:Application>
    However, as soon as I add relativeTo, e.g:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:states>
    <mx:State name="bookDetails" basedOn="">
    <mx:AddChild relativeTo="{bookForm}" creationPolicy="all"
    position="lastChild">
    <mx:FormItem id="isbn" label="ISBN: 1590595432" />
    </mx:AddChild>
    </mx:State>
    </mx:states>
    <mx:Panel title="Book" id="book"
    horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <mx:Form id="bookForm">
    <mx:FormItem label="Foundation XML Flash"
    fontWeight="bold" />
    <mx:FormItem label="Sas Jacobs" fontStyle="italic" />
    </mx:Form>
    <mx:ControlBar>
    <mx:LinkButton label="Book Details" id="bookLink" />
    <mx:Spacer width="100%" id="spacer1" />
    <mx:Label text="Book Title" id="title" />
    </mx:ControlBar>
    </mx:Panel>
    </mx:Application>
    Flex Builder 2 gives me the following error:
    Type was not found or was not a compile-time constant.
    Thinking this might have been a bug with Flex 3.0, I
    uninstalled then installed the most recent release of version 2. I
    still get the same problem. Any ideas?

    Another possibility is that you used some kind of transition for the object but didn't name it in all of the keyframes.  When you transition an object in a timeline tween and don't name it in the first keyframe, the latter keyframes adopt that lack of a name event though you might assign a name in them.
    What you should do is go into your Publish Settings and in the Flash section select the option to Permit Debugging.  This will add a line number following the frame number in the error message.  Once you know which line is causing the problem, try tracing the object that is in that line.  You will most likely find out it is null, and it will be because of one of the reasons I've mentioned (I don't think I forgot any others, but it's possible).

  • Flex Bug - Programmatic Skinning!

    I believe I found a Programmatic Skinning bug in Flex.
    Whenever I set the "borderSkin" property to a custom skin
    class, the flash player hangs in all browsers, the CPU peaks around
    95% and memory is consumed rapidly.
    After waiting for about 10 minutes I get the following...
    [SWF] C:\Documents and Settings\Chris.Simeone\My
    Documents\Flex Builder 2\Skinning-Lessons\bin\gridBorders-debug.swf
    - 408,071 bytes after decompression
    undefined
    at
    mx.core::UIComponent/getClassStyleDeclarations()[C:\dev\GMC\sdk\frameworks\mx\core\UIComp onent.as:6810]
    at
    mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties()[C:\dev\GMC\sdk\fra meworks\mx\styles\StyleProtoChain.as:142]
    at
    mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties()[C:\dev\GMC\sdk\fra meworks\mx\styles\StyleProtoChain.as:173]
    (FYI: The previous error line is repeated 191 times)
    I tried tracing my custom skin class (by setting breakpoints)
    but none of the code ever fires - the debugger never goes into the
    code.
    When I remove this line from my CSS file -
    borderSkin:ClassReference('GridBorders'); - the application
    runs fine.
    To test this further I grabbed the example on the bottom of
    this
    page
    and the same exact error occurs. Note it the "borderSkin" property
    is set on the VBox tag.
    I tested other programmatic skinning examples that use
    upSkin, downSkin, etc and they all work fine. I only have this
    problem when assigning a skin class to the "borderSkin" property.
    Would someone please confirm this is bug? I followed the
    Programmatic skins recipe to the letter.
    Thanks
    Chris Simeone

    I found the problem. It's in my CSS file. If there's a
    "borderStyle"
    property as defined below the application hangs. Take out the
    "borderStyle" property and the app runs.
    See my test code below (FYI: it does not do much. My first
    attempt at
    border skinning using code)...
    GRIDBORDERS.CSS » HERE'S THE PROBLEM
    Application
    background-color: #FFFAC7;
    GridItem
    borderStyle: solid;
    borderSkin: ClassReference('GridBorders');
    GRIDBORDERS.MXML
    <?xml version="1.0"?>
    <mx:Application pageTitle="Grid Borders"
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Style source="GridBorders.css"/>
    <mx:Grid height="640" width="940">
    <mx:GridRow width="100%" height="66%">
    <mx:GridItem width="66%" height="100%" >
    </mx:GridItem>
    <mx:GridItem width="33%" height="100%" >
    </mx:GridItem>
    </mx:GridRow>
    <mx:GridRow width="100%" height="33%" >
    <mx:GridItem colSpan="2" width="100%" height="100%" >
    </mx:GridItem>
    </mx:GridRow>
    </mx:Grid>
    </mx:Application>
    GRIDBORDERS.AS
    package
    import mx.skins.*;
    import mx.containers.Grid;
    import flash.display.*;
    import flash.utils.*;
    public class GridBorders extends Border
    public function GridBorders()
    super();
    override protected function updateDisplayList( w:Number,
    h:Number
    ):void
    graphics.lineStyle( 15, 0xFFFF00, 0 );
    graphics.beginFill( 0xFFFF00, 1.0 );
    graphics.drawRect( 0, 0, 10, height );
    graphics.endFill();
    private var _borderMetrics:EdgeMetrics = new EdgeMetrics(1,
    1, 1, 1);
    override public function get borderMetrics():EdgeMetrics
    return _borderMetrics;

  • Flex 2.5.31 bug: As Regards Wine CVS Users: No Clear Downgra

    Flex 2.5.31 bug: As Regards Wine CVS Users: No Clear Downgrade Path: Please Advise
    Wine CVS (at least dx9-wine tree) fails with flex error (lex.yy.c error, etc):
    Please see: http://www.kerneltraffic.org/wine/wn20030509_169.html#4
    Key bit: 'Flex 2.5.31 bug. Downgrade to 2.5.3a, "make clean" in the tools directory and you are back.'
    Search for flex with pacman yields 2.5.33-1 (current), search in AUR for flex finds nothing relevant.
    Other less savory (and less repeatable) fixes aside, what is the proper "ArchLinux" way to resolve this issue?  To trace upstream a bit further, what is the proper "ArchLinux" way to install a particular Wine fork?

    JGC wrote:Last time I got this bug with wine, I just did a 2nd run of make and it compiled fine
    I had tried that, no dice.
    make[2]: Entering directory `/root/.WineCVS/sources/dx9wine/wine/tools/wrc'
    gcc -c -I. -I. -I../../include -I../../include -DINCLUDEDIR=""/usr/local/include/wine"" -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith -g -O2 -o lex.yy.o lex.yy.c
    lex.yy.c:9174: error: syntax error before numeric constant
    lex.yy.c: In function 'yy_scan_string':
    lex.yy.c:9175: error: number of arguments doesn't match prototype
    lex.yy.c:367: error: prototype declaration
    lex.yy.c:9177: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
    lex.yy.c:9177: warning: passing argument 1 of 'yy_scan_bytes' makes pointer from integer without a cast
    make[2]: *** [lex.yy.o] Error 1
    Found a reference here -- http://www.winehq.com/hypermail/wine-de … /0612.html -- to similar/same problem, will check a bit more.  I can't sort out if this a bug in flex, problem with the Makefiles, or...something else.

  • RawChildren ruins layout in Flex 3

    Hey all!
    I've been playing around with Flex lately, and having come
    from a pure AS3 background, I couldn't help but create some simple
    effects in there for fun. That's when I hit a snag. Now, with Flex,
    I'd have to use the UIComponents' rawChildren object in order to
    add widgets of DisplayObject types... fair enough. Problem is when
    I do that, the components stop obeying layout rules, transitions
    stop working, etc.
    The best way to really demonstrate this problem is to see the
    project itself. Here's a link to the project source:
    http://www.thurinusworks.com/public/problem_src.zip
    In there I created a Panel component that has view states and
    transitions, and an Application that holds that Panel and houses a
    bit of actionscript to create a sparkly mouse toy effect. If you
    commented out all the script for the mouse toy, you'll see that the
    Panel centers on the Application as you resize the window, and
    clicking the 'Register' link would display a nice elastic
    transition effect between view states. When the mouse toy is
    active, the Panel position stops working correctly, and clicking on
    the 'Register' link would simply display the view state with no
    transition. It happens intermittently, but seems to guarantee
    happening after the first SWF launch, so if you don't see it
    happening, relaunch the SWF and it should screw up.
    I don't know what's causing it to break like this. It's
    either my error or a serious bug in Flex, and I dearly hope it's
    the former... If it is, what must I do to fix it? If it isn't, is
    there a work-around?
    Thanks for *any* help you can provide!
    Best regards,
    Jay

    I've tried some things to repair this within your code, but I
    can't fix it without deleting the transitions object. So what I did
    is listening for the enterState en exitState events and using
    actionscript to do the animations.
    Attached the changes in the code. Don't know if this is a bug
    or if this needs to be done differently, but it is a workaround.

Maybe you are looking for

  • Using Keynote with Podcast Capture and Dual Screens

    Hi everyone, We are trying to use a dual screen setup to record some Keynote presentations using Podcast Capture (i.e Dual mode, with the Keynote presentation in one screen and the presenter in the other). The problem we are having is that when in fu

  • Transfer attachment from SRM SHC to ECC PO

    Hi, Im working on SRM 7.0.Classic scenario.I need to enable the transfer of attachments from SRM SC to R/3 PO.Can anyone explain the steps to achieve the above? Also in case of extended classic scenario,is the attachment transferred automatically fro

  • How to increase the length of the subject line in email using FM

    Hi we have maintained 50 characters for the subject line initially, but some subjects are having more than 50 characters. how can we increase the length of the subject line in email. urgent. points will be rewarded generousely.

  • Accidentally uninstalled Photoshop Cs6 from 'Adobe Creative Suite 6 Master Collection'

    Okay, so I was just using Photoshop and then my friend wanted me to try and airdrop it to her since she didn't have photoshop. I tried to airdrop it to her and it failed. Later on, my photopshop icon had an question mark on it and i realized that it

  • Blackberry Media Sync fails to connect to my Blackberry

    Everytime I try to use the Media Sync it fails to connect. Ive tried plenty of times and I still cant get it to work. Ive checked my usb connection and its all fine. i can do anything else but that. I have the blackberry 8320 How do i get it to conne