Flash :: Flex 4.5 MenuBar Vertical Separator (using UpdateDisplayList)

Jan 5, 2012

I've created a custom MenuBar to make this happen. But it just doesn't seem to happen. It never renders any of the changes I made to the Graphics.What am I doing wrong?[code]

View 1 Replies


Similar Posts:


Flex :: Force 'updatedisplaylist' Immediately Rather Than At Later Some Point?

Jul 14, 2010

In flex component life cycle, after we make some change in a components property, invalidation methods schedules a call to methods like commitProperties, updateDisplayList, etc for some later time. I need to call the updateDisplayList instantaneously. Is there some direct way to do this.

Currently, both the labels are changed simultaneously after completion of the loop. Instead I need it to work like this, to first render the updated 'myButton1' label then enter the loop and then update myButton2's label. I know, it is elastic race track issue, but isn't there some way to achieve this ?[code]...

View 4 Replies

Flex :: Update - Why Does UpdateDisplayList Stop Happening

Jul 30, 2010

Overview: The code giving me the problem is deployed here: [URL] The problem I am running into is that a certain sequence of actions (I don't fully understand how or why) is causing my calls to invalidateDisplayList to fail to produce a subsequent call to updateDisplayList. What I know is that during this period, some other visual effects will fail to occur (such as changing the width of a component or the addition of a new child).

Example: The program below draws two columns of horizontal lines. The column on the left is drawn during commitProperties, the column on the right is drawn during updateDisplayList. A certain sequence of actions can cause the right column to stop updating.

To trigger this bug: First add a new item. Now hit the start button and a bar starts filling up. If you press the add row button, the right column and the filling bar both stop growing. The left column continues unfettered. The extra component won't appear until the last line of the if statement in TEComputeRow.tick() doesn't execute for a frame. Click on the stop button to halt the execution of the block inside the if statement in TEComputeRow.tick() and everything goes back to normal.

[Code]...

View 2 Replies

Flex :: Resize Image Inside UpdateDisplayList

Jun 24, 2011

I have a custom component which is an HBox & I'm trying to resize a child which happens to be an image. This is image is inside a VBox which is also a child of the HBox. I have a number of these images so In UpdateDisplayList I call:myimageArray[0-5].setActualSize(50,50);but the image is never resized it just stays a large default size. The images source is a url path and I'm wondering if that is what is causing the problem?

View 1 Replies

Flex :: Grid Renderers Updating Without UpdateDisplayList Being Called

Oct 14, 2010

I have an item renderer for a grid that has a fairly basic updateDisplayList function:

override protected function updateDisplayList( w : Number, h : Number ) : void
{
super.updateDisplayList( w, h );
var labelWidth : Number = Math.min( _labelDisplay.measuredWidth, w );

[Code]....

The next time I scroll the renders update to look like they should - but updateDisplayList is NOT called here (on the renderes). All that happens is that the renderers are re-positioned in the grid. Both the background and the label are displayed incorrectly initially so it's not just the label mis-behaving.

View 1 Replies

Flex :: Add Separator Between Items In A Spark List Control?

May 21, 2010

I have a s:List where I've defined my own itemRenderer, and would like to insert a horizontal line separating items, similar to the way the mx:LinkBar works. I don't want to have a line at the top or bottom of the list, so I can't just include an upper or lower border in the itemRenderer. I was hoping the itemRenderer could be made aware of its index in the list, but I don't see how.

View 2 Replies

Flex :: Remove Header Horizontal Separator From Datagrid?

Feb 17, 2011

Is it possible to remove the horizontal separator which divides the headers with the data? I managed to remove the vertical ones with mx.skins.Programmatic skin, but could not find a way to remove the horizontal separator.

View 1 Replies

Flex :: No More Than 9 Digits After Separator With Spark.formatters.NumberFormatter?

Jul 13, 2011

I must display very small values (capacitor) in a Flex-AdvancedDataGrid I use spark.formatters.NumberFormatter. If I use 3, 6 or 9 for fractionalDigits, everything is fine.

But if I use 12, because I need 12 digits after decimal separator, then the value is cut after 9 digits!

Is there a way to get more then 9 digits after separator.

Or is there a way to use a formatting like "4.7 E-12" (Must be E-9, E-12, E-15 and so on)

View 2 Replies

Flex :: Should UpdateDisplayList Layout And Position Every Time Render Is Called?

Jan 6, 2012

So updateDisplayList is for laying out, positioning and sizing a component's children. It seems a waste to me, however, to have all that code running every time a render is called, even if no changes have been made to the relevant properties or child properties.The way I get around this for performance's sake (working on mobile) is to set a flag inside of my overridden updateDisplayList that lets a big part of my own sizing/positioning code run only the first time.Is this a bad idea/ big mistake? I just can't see the benefit to letting it run every time otherwise if I don't expect anything that affects sizing/positioning to change.

View 1 Replies

Flex :: Customizing Flex MenuBar / Removing Hover Effect

Jan 8, 2010

Is there a way to disable the hover effects?I don't want flex to highlight the entire component for both link buttons and menu bar.On the menubar, I applied a backgroundSkin, so having flex highlight the whole menubar when the user hovers their mouse on top quitely destroys the design.

View 1 Replies

Flex :: Internationalizing An Mx:MenuBar?

Nov 11, 2011

Well, I was able to simply enough (after about an hour of googling) implement i18n (internationalization) into my Flex application by having to reverse engineer the Flex SDK and do a lot of digging (a specific question on here helped me a lot! (with some updates for flex 4.5)).The problem is, I can't use my {getLand('key')} bind inside an <fx:XMLList> (how you define the contents of a <mx:MenuBar>. I've included some example i18n below, as well as an example of the menu bar.

<!-- Example of proper (working) i18n -->
<s:TextArea text="{getLang('Rules')}"/>[code]..

View 1 Replies

Flex :: Menubar With Susbsitems Events

Apr 30, 2010

regarding the events related to menubar sub items, here is some code iam working with

[Code]...

i want to handle events wen particular subitem is clicked for example ,if submnu item hod of cse is clicked it should go to the particular mxml page ,and if hod of ece is clicked it shold goto other page how do i differentiate each page of particular deparment how do select that particulasr item of that particular submenu itm

View 1 Replies

Flex Menubar Clicking Event?

Aug 9, 2010

I have a menuBar that looks like this:

<mx:MenuBar id="myMenuBar" labelField="@label" cornerRadius="8" color="black" fillColors="[green, green]" itemClick="menuItemClickHandler(event);"
dataProvider="{menuBarCollection}" change="onTopSelection(event)" />

The XML for my menuBar looks like this:

<menuitem label="Vision">
</menuitem>
<menuitem label="About">

[code]....

As you can see there is Vision and Contact Us but the eventHandler doesn't know when those two are clicked. What is the correct way to implement the eventHandler?

View 3 Replies

Flex :: How To Add Keyboard Shortcuts To MX MenuBar

Oct 17, 2010

I have an mx:Menubar, which I need to be able to open/expand based on the key pressed. For e.g., if Shift + R is pressed, it needs to open the 'Request' topmenu. Then if Shift + N is pressed, it should load the 'New request' module in the module loader. I've already implemented the MenuBar/module-loading functionality with the mouse, but I haven't been able to implement the keyboard shortcuts. I found a nice sample at [URL].

However, the solution directly performs the action (e.g. Shift + N to load the 'New request' module). The menu does not open/expand when you press the shortcut as though you had hovered your mouse over it (e.g. Shift + R to open/expand the 'Request' topmenu and then Shift + N to load the 'New request' module).

View 1 Replies

Actionscript :: Implement A ItemRenderer On MenuBar In Flex 4?

Mar 11, 2011

I'm trying to make a menubar with an itemrenderer of linkbuttons. How could I go by doing this? Here is what my code looks like so far, but I can't seem to get it working.

<mx:MenuBar id="menuBar" labelField="@label" dataProvider="{menus}" itemRenderer="mx.controls.LinkButton">
</mx:MenuBar>

View 1 Replies

Flex :: Use An Fxg File As A MenuBar Icon Attribute?

May 3, 2011

I have a little concern. I started trying to make a MenuBar control with custom icons already made in FXG format. I have 3 FXG files in "assets.graphics.icons" inside my project folder:

src/assets/graphics/icons/MenuIcon.fxg
src/assets/graphics/icons/ItemAIcon.fxg
src/assets/graphics/icons/ItemBIcon.fxg

After reading the following two links and a bunch of web pages.

[Code]...

View 1 Replies

Flex :: Force MenuBar To Always Open Downward?

May 23, 2011

I have a MenuBar which opens downwards except when there isn't enough room to open it. For example, it may have 10 items but there's only enough room to display 4-5. Flex then tries to display the menu above the bar, which is completely off the screen. Is there some property or style I'm overlooking to always force it to open downward?

EDIT: Thought I'd give some clarification as to how I plan to circumvent the issue. If I can always force the menubar to be orientated downwards, I can make it into a scrollable menubar displaying only a few items at worst.

View 1 Replies

Flex :: Skin MenuBar, And Change It's ItemSkin To Something Else

Jun 26, 2011

I wish to skin MenuBar, and change it's itemSkin to something else, like different background color for each menu item.

View 1 Replies

Flex :: Layout - Stretched Menubar Items?

Jul 28, 2011

I am using a MenuBar in Flex:

<mx:MenuBar labelField="@label"
width="100%"
cornerRadius="0">

[code].....

View 2 Replies

Url :: Convention For A Client-side (Flash) Deep Link Path Separator?

Sep 21, 2010

I see examples in the SWFAddress documentation, but it's not clear what the convention should be for a multi-level path. Do their examples intend to suggest that the path separator should be a hyphen?

View 1 Replies

Flex :: Align Vertical Axis Zero For Multiple Vertical Axis Chart?

Mar 22, 2011

Based on this Adobe multiple axis chart example: [URL]

Then I changed some data values to negative and my axis became not aligned anymore.

how to align vertical axis? Is this another Adobe bug or there is some property that aligns axis?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"

[Code]...

View 1 Replies

Flex :: Disable Shadow On Submenu In Mx:menuBar Component?

Sep 8, 2010

How to disable the shadow on submenu in mx:menuBar component?

View 1 Replies

Make Menu Items With Children In A Menubar Selectable In Flex 3?

Feb 7, 2011

If I have a menubar that has an XML datasource like:

<mx:XMLList id="menuList">
<menuitem label="Parent1">
<menuitem label="Child1">
<menuitem label="SubChild1" />

[Code]...

How can I make it so that clicking on Child1 will cause a click event despite it having children?

View 1 Replies

Flex :: Programmatically Changing MenuBar Item Toggled Property

Mar 22, 2011

I have this MenuBar control in Flex 3. How can I programmatically change the toggled property to false?
<mx:MenuBar labelField="@label" itemClick="itemClickHandler(event);" left="0" right="0" top="0" id="menuBar">
<mx:XMLList><menuitem label="File" data="top">
<menuitem label="New" data="file-new"/></menuitem>
<menuitem label="View" >
<menuitem label="Grid" type="check" toggled="true" data="view-grid"/>
</menuitem></mx:XMLList></mx:MenuBar>

View 1 Replies

ActionScript 2.0 :: Best Separator For Use With LoadVars

Sep 21, 2007

I have a project that needs to store user input on the server, then be able to reload it later.I am interested in opinions as to which separator would be best to use, ie comma, semicolon, tilde, etc. Of course whichever character it is, it will be restricted from usage by the user, so it must be uncommon.I'm leaning towards using the tilde, since I already use input textfield restrictions to prevent backticks for server security (same key on the keyboard). Seems to me as if the tilde is a very rarely used character, and so should be fine to exclude it from user inputs as well.

View 1 Replies

Using Comma Separator In Numeric Variables

Nov 13, 2009

In my movie i have a shopping cart which adds up a total of all items. When the total reaches more the 1000.00 i need to add in a comma separator as in 1,000.00 if i do this manually flash no longer see's the variable as a number, how do i get around this one?

View 2 Replies

ActionScript 3.0 :: Override The UpdateDisplayList To Draw A BackgroundImage For A Tab Navigator?

Mar 27, 2010

When i try to override the updateDisplayList to draw a backgroundImage for a tab navigator, the background does not fill till the end of the tab navigator. A space equal to the tab bar height does not get filled by the background. same is the case when I use an Image as backgroundImage. Any idea how to get this resolved?

View 2 Replies

ActionScript 2.0 :: Put A Line Separator Between Two Lines Of Text?

Feb 8, 2011

How do I put a line separator between two lines of dynamic text in Actionscript 2.0?

View 4 Replies

Flash :: Changing Menubar Link Go Straight To Youtube Channel Rather Than To The Player

Jul 20, 2009

I am new to Flash. I bought a template online a couple weeks ago, and for the most part have made all the changes to personalize the page. The page is for wedding videography, and came with a Videos section. However, I do not like the template video player, and would like to have the Videos link on the menu bar go straight to my youtube channel rather than to the flash player. Primarily all changes to the template have been made in a text.txt file, rather than the flash file itself. My question is, how could I change the link on the main page to route to my youtube channel? Here's what it looks like in the text file:

[Code]...

View 5 Replies

Actionscript 3 :: Call To Possible Undefined Function UpdateDisplayList In New Class Of HGroup?

Feb 22, 2012

[Code]...

why throwing "Call to possible undefined function updateDisplayList"?

View 1 Replies







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