Resize During Transition - Flex Bug?

I'm using move and resize parrallel transitions. Everything
works fine if the user doesn't change the size of the window while
the transition is occuring. If the screen gets resized, it does not
go all the way to the correct position and then jumps to the
correct position at the end of the transation. If, however, I set a
specific height and width in the application tag, this does not
occur. I really don't want to specify a height and width for the
application. My assumption is that once the transition starts, it
determines a fixed end point that doesn't change when re-sized.
I've tried in Flex 2.0.1 and the current Flex 3 M2 Beta 1
release with identical results.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="initApp();"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#010101, #000000]">
<mx:states>
<mx:State name="Intro">
<mx:SetStyle target="{globe}" name="left"/>
<mx:SetStyle target="{globe}" name="horizontalCenter"
value="0"/>
<mx:SetStyle target="{globe}" name="top"/>
<mx:SetStyle target="{globe}" name="verticalCenter"
value="0"/>
<mx:SetProperty target="{globe}" name="width"
value="350"/>
<mx:SetProperty target="{globe}" name="height"
value="350"/>
</mx:State>
</mx:states>
<mx:transitions>
<mx:Transition id="myTransition" fromState="*"
toState="*">
<mx:Parallel id="t1" targets="{[globe]}">
<mx:Move duration="6000"/>
<mx:Resize duration="6000"/>
</mx:Parallel>
</mx:Transition>
</mx:transitions>
<mx:Script>
<![CDATA[
import flash.events.TimerEvent;
import flash.utils.Timer;
var timer1:Timer = new Timer(1, 1);
private function initApp():void{
timer1.addEventListener(TimerEvent.TIMER, onTimer1);
timer1.start();
private function onTimer1(evt:TimerEvent):void {
currentState='Intro';
\ ]]>
</mx:Script>
<mx:Image source="images/background2.JPG" id="background"
width="1280" x="0" height="800" y="0"/>
<mx:Image width="100" height="100"
source="images/globe.gif" id="globe" top="31" left="32"/>
</mx:Application>

Similar Messages

  • [svn:fx-trunk] 13317: Fix to allow Animate to automatically handle changes in styles during transitions .

    Revision: 13317
    Revision: 13317
    Author:   [email protected]
    Date:     2010-01-06 16:19:04 -0800 (Wed, 06 Jan 2010)
    Log Message:
    Fix to allow Animate to automatically handle changes in styles during transitions. This same logic already works for properties (e.g., if you specify different values for x in states and run Animate with a SimpleMotionPath with property="x" then it will automatically determine the from/to values to animate for x). But we needed to add an override for getRelevantStyles() for Animate to advertise the possible styles to pick up changes for so that the transitions array would be populated accordingly.
    QE notes: None
    Doc notes: This is a fix that should allow the second animated skin example in the docs (spark_skinning, p46) to work as detailed in my edits
    Bugs: sdk-24932
    Reviewer: Jason
    Tests run: checkintests, Mustella spark/effects
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-24932
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • Sound problems during transitions?

    Ok, i'm attempting to add a transition between a clip of some Talent Show MCs talking(I'm trying to cut out while they are saying something) right to a person singing, in then middle of a song. The sound is giving me issues, as the MCs keep talking while the singer starts singing, how do i make the sound during the transitions stop?
    Thanks.
    Once the video stops, the audio keeps going, how do i fix it? That's what i need to know...i think.
    Message was edited by: Chanciffer

    I had the same problem - I couldn't figure out how to turn off the sound during transitions, and it was annoying because I had cut my clips exactly where I wanted the sound to end, but the transition does a fade-out with the clip before the transition, and a fade-in with the next clip, so it was adding additional audio that I did not want!
    Here's my work-around:
    (1) Take the clip before the transition, and cut it exactly where you want the sound to end.
    (2) Right click and select "Detach Audio."
    (3) Extend the length of the video clip (at the end) a little for better video during the transition.
    (4) Take the clip after the transition, and cut it exactly where you want the sound to start.
    (5) Right click and select "Detach Audio."
    (6) Extend the length of the video clip (at the beginning) a little bit for better video during the transition.
    Now there will be no sound during the transition, the audio will be perfect, and the transition will look smooth.
    If someone knows an easier way to turn off the sound during a transition, please post it here. If not, I hope these instructions help!

  • [svn:osmf:] 12276: Integrating Flex bug - 226

    Revision: 12276
    Revision: 12276
    Author:   [email protected]
    Date:     2009-11-30 09:28:54 -0800 (Mon, 30 Nov 2009)
    Log Message:
    Integrating Flex bug - 226
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/media/LoadableMediaElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayer.as

  • [svn:osmf:] 12213: Integrating Flex bug - 207

    Revision: 12213
    Revision: 12213
    Author:   [email protected]
    Date:     2009-11-25 14:26:06 -0800 (Wed, 25 Nov 2009)
    Log Message:
    Integrating Flex bug - 207
    Modified Paths:
        osmf/branches/flex4/framework/MediaFramework/org/osmf/media/MediaPlayer.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayer.as

  • [svn:osmf:] 12212: Flex bug - 207

    Revision: 12212
    Revision: 12212
    Author:   [email protected]
    Date:     2009-11-25 14:16:26 -0800 (Wed, 25 Nov 2009)
    Log Message:
    Flex bug - 207
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/media/MediaPlayer.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayer.as

  • [svn:osmf:] 12210: Flex bug - 232

    Revision: 12210
    Revision: 12210
    Author:   [email protected]
    Date:     2009-11-25 13:31:08 -0800 (Wed, 25 Nov 2009)
    Log Message:
    Flex bug - 232
    Modified Paths:
        osmf/branches/flex4/framework/MediaFramework/org/osmf/media/MediaPlayer.as
        osmf/branches/flex4/framework/MediaFramework/org/osmf/utils/MediaFrameworkStrings.as

  • DataGridColumn.visible property:  Why always true?  Flex bug?

    Can anyone tell me why when I have a DataGrid with many
    columns that requires scrolling, for even the DataGridColumns that
    are offscreen, visible always returns true? I would have expected
    it to return false if the column is offscreen. Is this a Flex bug?
    Best regards,
    Jason

    Install Flex 2.0.1 SDK and then ! a hotfix
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb401224
    Should help.

  • [svn:osmf:] 12278: Integrating Flex bug - 226

    Revision: 12278
    Revision: 12278
    Author:   [email protected]
    Date:     2009-11-30 09:32:46 -0800 (Mon, 30 Nov 2009)
    Log Message:
    Integrating Flex bug - 226
    Modified Paths:
        osmf/branches/flex4/framework/MediaFramework/org/osmf/media/LoadableMediaElement.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayer.as

  • Static during transitions

    I am experiencing static during transitions and have read a lot of posts that complain about similar issues. I have also read that cross-dissolves are particularly prone to this problem, and that is my typical transition of choice. (I would assume that the cross-dissolve is one of the most common transition effects for most people.)
    As others have reported, sometimes extracting the audio (as Apple suggests) seems to work, and sometimes it does not. In addition, having a lot of extracted audio really slows down the performance of iMovie on my older Mac and leads to some strange behavior that makes me think my project will get irreversibly corrupted.
    I found it strange, though, that the static happened during some transitions, and not others. Then, I noticed that I was getting sustained static for the entire length of certain clips to which I had applied an effect. Again, only some of the clips to which I had applied the effect had the static, and not all of them.
    Then, I think I figured out why only some transitions and clips had the problem. It seems that when I initiated a SINGLE transition (or an effect on a SINGLE clip), and I allowed that SINGLE transition (or effect) to finish rendering before initiating another, there was no static. However, if I initiated cross-dissolve transitions on MULTIPLE clips (or effects on MULTIPLE clips) such that they rendered SIMULTANEOUSLY, then I was far more likely to get static.
    I found it very convenient to simultaneously apply cross-dissolves across many clips in my projects, and it takes a lot more user interaction to apply them separately, but it is worth it in the long run to avoid having to extract and/or mute audio at multiple transitions, and then suffer the resulting performance hit to iMovie.
    Perhaps this is more of an issue when you have an older (slower) Mac like mine, or perhaps I am crazy, and it was just a coincidence that when I applied SINGLE transitions (or effects) that I did not get static. Perhaps some of you who have had this problem can try this workaround to see if it works and reply to this message. (Note that there may be different issues to which this does not apply. For example, I have seen reports of a single pop at transitions from still frames. I'm not sure whether that is the same problem.)
    I seem to recall posting a similar message on the iMovie forum quite awhile ago, but it has long since been deleted. Stupidly, I forgot my own workaround and just had a similar problem with a new project, and I had to rediscover the workaround with an eerie feeling of deja vu.
    It is amazing to me that something this important and basic to the functionality of iMovie has not been fixed over the multiple years since iMovie 3. If others can confirm this workaround, perhaps Apple can get a better idea of why it is happening.

    Hello: I am having the same problem with a movie, rendered transition to a still image. Nothing fancy, and yet the entire transition is filled with static. I have tried two different transitions to no avail. The static is also in the exported Quicktime movie. so it is not something that shows up in the iMovie preview.

  • Flex Bug Quash - Round 2 Indy Style

    Want to help improve the quality of Flex for yourself and others? Have a bug that you’re dying to have fixed? Come join the Flex Bug Quash on Sunday May 17th. You can participate either in person at the 360|Flex event in Indianapolis or remotely via Adobe Connect. We recently hosted the first Flex Bug Quash in Seattle and had quite the turn out with 180 participants, 2/3rds of which were remote. Prior to this event, in the 13 months that Flex has been open source, we had received 111 patches, in the Seattle Bug Quash alone we got another 57 patches from the community, bring us up 168 patches submitted. This event was a definite success and we hope to have an even better event in Indianapolis! This is a great opportunity to share your knowledge of Flex, learn from other leet Flex developers, and contribute to making Flex a better product. For more information check out bugquash.com.

    alexj wrote:I love it too
    Thanks.
    Labello wrote:any chance of a fitting openbox-theme to evolve?
    Sure. It's easy to make em. Keep your eyes open.
    Foucault wrote:
    Very sweet theme, I really like it. I would like to point out something though. I don't know if it's only for me but the hover effect on comboboxes makes the text illegible.
    Example
    http://i.imgur.com/0FPMR.png Mouse off
    http://i.imgur.com/qmiFa.png Mouse on
    I've corrected that now and I'll upload version 2.0.1 in a moment.
    Edit: Seemse like I have a few reuests about more colors. I'll fix that to and upload a new version in the morning instead. I'm really tired and need some sleep.
    Last edited by Hund (2010-09-14 06:32:34)

  • Parallel effect reversing on its own. FLEX BUG.

    Hi,
    The problem is that the parallel effect (that includes resize
    and move) plays well with my custom component, however when it
    reaches the EFFECT_END, it plays in reverse to its original
    position, on its own. I cannot figure it out why. This reverse
    effect is done in half of the duration set.
    This is the code:
    private function setLayoutAndPosition( pod:*, rect:Rectangle
    ):void
    // Transition the location
    var move:Move = new Move( pod );
    move.xFrom = pod.x;
    move.xTo = rect.x;
    move.yFrom = pod.y;
    move.yTo = rect.y;
    move.duration = 2000;
    // Transition the size
    var resize:Resize = new Resize( pod );
    resize.widthFrom = pod.width;
    resize.widthTo = rect.width;
    resize.heightFrom = pod.height;
    resize.heightTo = rect.height;
    resize.duration = 2000;
    var parallel:Parallel = new Parallel();
    parallel.addChild(move);
    parallel.addChild(resize);
    parallel.play();
    I am utilizing an effect taken from the source code of the
    Flex Developer Center called Community Widgets (
    bottom of the page)
    which is working correctly. Its pretty cool eh!.
    BTW: Took me some time to find out why I couldn't run the
    source code. You have to rename ListEvent to any other name.
    If anybody has any idea please le me know,
    Many thanks!
    Jose.

    "jose3" <[email protected]> wrote in message
    news:[email protected]...
    > Hi myIP,
    > After days of trying different things I figured out what
    was the problem,
    > I am
    > not sure if it is a bug or if it is a natural behabiour
    of Flex.
    >
    >
    > The thing is that if you position a component (Canvas
    FE) with
    > constraintColumns and constraintRows and then you apply
    an effect that
    > affects
    > its position or size, after the effect reaches the
    EFFECT_END the
    > components
    > goes back to the original position-size on its own.
    >
    > Here is an example:
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    > layout="absolute"
    > applicationComplete="init()">
    >
    > <mx:Script>
    > <![CDATA[
    >
    > import flash.geom.Rectangle;
    > import flash.utils.Dictionary;
    >
    > import mx.effects.Move;
    > import mx.effects.Parallel;
    > import mx.effects.Resize;
    > import mx.events.EffectEvent;
    >
    > private var minimizedLayout:Dictionary = new
    Dictionary();;
    >
    > private function init():void {
    > minimizedLayout[ can ] = new Rectangle( 5, 200, 300, 50
    > }
    >
    > private function onClick(e:Event):void {
    > setLayoutAndPosition( can, minimizedLayout[can] );
    > }
    >
    > private function setLayoutAndPosition( pod:*,
    rect:Rectangle ):void
    > {
    >
    > // Transition the location
    > var move:Move = new Move( pod );
    > move.xFrom = pod.x;
    > move.xTo = rect.x;
    > move.yFrom = pod.y;
    > move.yTo = rect.y;
    > move.duration = 1000;
    >
    > // Transition the size
    > var resize:Resize = new Resize( pod );
    > resize.widthFrom = pod.width;
    > resize.widthTo = rect.width;
    > resize.heightFrom = pod.height;
    > resize.heightTo = rect.height;
    > resize.duration = 1000;
    >
    > var parallel:Parallel = new Parallel();
    > parallel.addChild(move);
    > parallel.addChild(resize);
    > parallel.play();
    >
    > }
    >
    > ]]>
    > </mx:Script>
    >
    > <mx:constraintColumns>
    > <mx:ConstraintColumn id="col1" width="5%"/>
    > <mx:ConstraintColumn id="col2" width="20%"/>
    > </mx:constraintColumns>
    >
    > <mx:constraintRows>
    > <mx:ConstraintRow id="row1" height="5%"/>
    > <mx:ConstraintRow id="row2" height="20%"/>
    > </mx:constraintRows>
    >
    >
    > <mx:Button label="Move Canvas" x="333"
    click="onClick(event)" y="29"
    > height="107"/>
    >
    > <mx:Canvas id="can" backgroundColor="#D91414"
    > left="col1:10" right="col2:0"
    > top="row1:10" bottom="row2:0" />
    >
    > </mx:Application>
    >
    >
    > If this is a normal behabiour (if anybody knows about
    it) I can just try
    > to
    > end the effect after EFFECT_END, else I listen to any
    suggestion.
    >
    > How should I proceed it it is a bug?
    Listen for the effect end, and then explicitly set the width
    and height of
    the affected component to the new size.

  • RemovedEffect error - Yet another Flex bug?

    Is it just me or are there a lot of inexcusible bugs in the Flex framework?  Maybe I'm just not used to working with a "fledgling" technology, I don't know.  But today I ran into an error with the removedEffect of HBox.  I've added a removed effect to the box and sometimes when I try to remove a bunch of items at roughly the same time, I get this error:
    RangeError: Error #2006: The supplied index is out of bounds.
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
    at mx.core::Container/addChildAt()
    at mx.effects::EffectManager$/removedEffectHandler()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()
    at mx.core::UIComponent/callLaterDispatcher()
    I've Googled it and some folks seem to have had a similar problem but I haven't seen a workaround.  Any ideas?
    Thanks in advance,
    Moshe

    Seems like I was able to work around it by bypassing the removedEvent trigger and just creating triggering my own effect.  I have quite a bit of code so the explanation won't really be done justice by cutting and pasting so I'll try and improvise:
    A little more background... I've been having quite a few issues with the TileList so I've decided to try and create a simple TileList of my own that has only the functionality I need.  The "item renderers" are just mini-HBoxes within a larger "TileList" HBox.  The renderers designate an effect:
    <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" >
          <mx:Parallel id="removedBlurEffect" target="{this}" duration="200"> 
                <mx:Resize heightFrom="{this.height}" heightTo="0"/>
                <mx:Blur blurYFrom="0" blurYTo="30" />
                <mx:Fade alphaFrom="1" alphaTo=".75" />
          </mx:Parallel>
        ... OTHER STUFF ...
    </mx:HBox>
    Later the containing HBox responds to removals from the data provider ArrayCollection and rather than removing the corresponding child HBox, it fires the effect and only once the effect has ended does it remove the child...
    private function onCollectionChange(event:CollectionEvent):void
        if(event.kind != CollectionEventKind.REMOVE) return;
        // Trigger the effect for each of the items that have been removed
        for(var j:int = 0; j < event.items.length; j++)
              // Cast the current data item to be removed (perhaps this is not necessary)
              var eventUploadableImage:UploadableImage = UploadableImage(event.items[j]);
              // Look through the children to find the item that has been removed
              var children:Array = this.getChildren();
              for(var i:int = 0; i < children.length; i++)
                  var currRenderer:ImageTileDisplayItemRenderer = ImageTileDisplayItemRenderer(children[i]);
                  var currImage:UploadableImage = currRenderer.uploadableImage;
                  if(currImage == eventUploadableImage)
                        currRenderer.removedBlurEffect.addEventListener(EffectEvent.EFFECT_END, onRemoveEffectComplete);         
                        currRenderer.removedBlurEffect.play();
                        break;
    private function onRemoveEffectComplete(event:EffectEvent):void
         var renderer:ImageTileDisplayItemRenderer = ImageTileDisplayItemRenderer(Parallel(event.currentTarget).target);
         renderer.removeEventListener(EffectEvent.EFFECT_END, onRemoveEffectComplete);
        this.removeChild(renderer);
    Anyway, seems to work so far.  I'm definitely open to a better way of doing this.
    Thanks!
    Moshe

  • Flex bug in global error handling

    My application's global error handler (uncaught error handler) works mostly, but I found a case where it doesn't work, but should.  Before I filed an official bug report I wanted to post the issue here.
    Here is the issue: in a module, ErrorEvents that are not listened for  and are dispatched by a Flex component are never caught in the application's uncaught error handler. 
    I have a sample project that demonstrates this.  Here is the module in my test case:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
        <![CDATA[
            private function onClickSparkDispatch():void {
                dispatchEvent( new ErrorEvent( ErrorEvent.ERROR, false, false, "test" ) );   // this isn't caught in the uncaught error handler
            private function onClickNonSparkDispatch():void {
                var nonSparkDispatcher:EventDispatcher = new EventDispatcher();
                nonSparkDispatcher.dispatchEvent( new ErrorEvent( ErrorEvent.ERROR, false, false, "test" ) );  // this is caught in the uncaught error handler
        ]]>
    </fx:Script>   
        <s:HGroup>
            <s:Button label="Module Spark Dispatch (broken)" click="onClickSparkDispatch()" />
            <s:Button label="Module Non-Spark Dispatch" click="onClickNonSparkDispatch()" />
        </s:HGroup>
    </s:Module>
    Using Flex 4.6
    My application statically links in the Flex SDK ("merged into code" in Flash Builder).
    My applications works around these two exsiting bugs:
         https://bugs.adobe.com/jira/browse/SDK-28018
         http://blogs.adobe.com/aharui/2011/04/catching-uncaughterror-in-flex-modules.html
    Is this a bug?
    Thanks,
    Rick

    It’s been reported.  Here is more information and a workaround. http://blogs.adobe.com/aharui/2011/04/catching-uncaughterror-in-flex-modules.html

  • 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;

Maybe you are looking for