Flex :: An Item Rendered With Auto-size

Sep 18, 2011

For example, I've created 2 horizontal lists with different heights: 50px and 100px. I'd like to use 1 item renderer to display both. The item renderer has to create square items, so it has to produce 50x50 items for the first list and 100x100 items for the second one. How should I set up the item renderer to get the result?

View 1 Replies


Similar Posts:


Flex :: Datagrid And Inline Item Rendered

May 24, 2011

I have a datgrid with two inline item renderers. The dataprovider for my DG is a nested object (objects within objects within objects i.e 3-layered). Main Object - 1st Level

[Code].....

I use 2 item renderers (one for each datagrid column) which loops thro the 2nd level object1 and 2 respectively (the 2nd level object is a dynamic array of objects, in that the number of objects within keep changing). Within the item renderer I loop thro the 2nd level object using a foreach and then display the data. The data is a linkbutton, which when clicked , calls a remote object function to delete the data from the database

now on the result event of the remote object function call, i call the function to repopulate the DG, so that the updated data is displayed. When i click on the linkbutton in the first row, the backend works perfectly fine (the data gets deleted from the database and the refreshed data is sent back), but for some reason, the deleted data suddenly appears in the 2nd row. When i delete it from the second row, it appears on the 3rd row (nothing happens in the backend since the data is already deleted).. and so on, till it appears on the last row and then the DG looks exactly the way it shld have looked after the first delete.

This is just the beginning. The second item renderer also displays a linkbutton, which when clicked, displays that data in the previous column (the one where this data can be deleted). When i click on 1st row, the data gets added in the previous column of the second row. and so on.. Basically, my DG is acting really weird. I overrided the set data function in the item renderer to refrsh the data and called its invalidateDisplayList. I also call the Datagrid's invalidateDisplayList function after each refresh. The behavior remains the same.

[Code].....

View 1 Replies

Flex :: Adobe - Access A Property Of An Item Rendered

Jun 29, 2010

I have a datagrid with a combobox in it like;

[Code]..

Now when I want to access a function from the itemrendered/combobox i use parentApplication.funcName but what about accessing the other way, how can I access a property of the combobox from outside the itemrenderer? I tried myEditor2.pickState but it is now working

View 1 Replies

Flex :: Displaying An Item Rendered Balloon Above The Data Point

Aug 11, 2011

I'm using a custom item renderer for an AreaChart:

[Code]....

I'm displaying my text. However, I want the balloon to be exactly above the data point. I tried to change the (x,y) coordinates but it doesn't seem to change. How can I move this balloon around to a desired location?

View 2 Replies

Actionscript 3 :: SelectedLabel Spark ComboBox = Returns The String For Display In An Item Rendered

Dec 20, 2011

this function bellow returns the String for display in an item renderer.

[Code]...

But i am blocked about the public function set selectedLabel(label:String):void is there anyone who know a function labelToItem or another solution to set my combobox selectedLabel

View 1 Replies

Actionscript 3 :: Calculate The Rendered Size Of A 3D Object In A View?

Dec 15, 2010

I'm working on a project that the user navigates around by clicking on icons in 3d space.When a user engages one of these icons, the camera should pan and zoom so that the selected icon appears in the center of the screen at its original height and size (this is so when the 2d overlay is created over the icon, that it is the same size as its 3d counterpart.My question is how to calculate the size a rendered object in a 3d view, I should mention that this is using the Alternativa 3D platform.So there's a camera at (x1, y1, z1) with a FOV of f, pointing at an icon at (x2, y2, z2), all being rendered in a view of dimensions w and h.

View 1 Replies

Flex :: How To Set Variable Size For List Control Item

Jun 17, 2010

The following code display a list of comments using List control. The item height set to a fixed value (150), so it seems working: if the content is too long, the scrollbar shows. However, what I really want is not to set the height but let it to change according to the content size. Is there any way to accomplish this?

<mx:List id="commentList" width="100%" dataProvider="{commentSet.commentArrayColl}" rowCount="{commentSet.commentArrayColl.length}" >
<mx:itemRenderer> <mx:Component>
<mx:VBox width="100%" height="150" >
<mx:Text text="{data.commentContent}" />
<mx:Text text="{data.username} ({data.modified})"/>
</mx:VBox> </mx:Component>
</mx:itemRenderer> </mx:List>

To be more clear, I don't want to set the itemRenderer's VBox height to "150" or any other fixed value - but it'll only show one line of the text if I don't do it. So I'm looking for a way out of this. (If the VBox is not inside the itemRenderer, it'll auto adjust height as Text field string length grows - that's what I want.)

View 2 Replies

ActionScript 3.0 :: Auto-size Background / Swf - Flash Occupies Whole Screen No Matter What Size It Is

Apr 28, 2010

So ive been asked to build a page for a real state company and the guy told me it should be similar to these [URL] Ive been trying a couple of weeks so far, but i dont seem to find a way to do somthing similar, i mean, i want to have the welcome screen as those two:

- the gradient background
- flash occupies whole screen no matter what size it is
- gradient expands sideways infinately
- no matter what height my explorer window is, gradient is always in the same position relative to top, and if i keep expanding downwards the background keeps last colour of the gradient.
- the brand logo looks as if it had top, left and right anchors, and it also limitates the minimum width of the explorer window

i though of addind a 3000 x 3000px square with the gradient and centering it, but i know there has to be a professional way of achieving that.

View 1 Replies

Professional :: Build A Flash That Auto-adjust Its Size To The Browser Window Size?

Jun 8, 2010

I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.I have found this solution [URL].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
 
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip.

[Code]...

View 9 Replies

ActionScript 3.0 :: Build A Flash That Auto-adjust Its Size To Browser Window Size?

Jun 8, 2010

I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.

I have found this solution [url].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.

Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip...

I need it to stay exactly at the same position whatever the size of the movie-clip. [code]...

View 0 Replies

ActionScript 2.0 :: Auto-size Vs. Fixed Movie Size

Jun 15, 2004

I wasn't sure where to put this post. I hope this is the right place.

This is what I want to do:

On screen resolutions up to 800x600, I want my Flash movie to resize to 100% width and height of the browser window. On screen resolutions higher than 800x600, I want the Flash movie to be a fixed size (say 800px x 600px exactly).

View 2 Replies

ActionScript 2.0 :: Auto-size Vs Fixed Movie Size?

Jun 15, 2004

I wasn't sure where to put this post. I hope this is the right place.

This is what I want to do: On screen resolutions up to 800x600, I want my Flash movie to resize to 100% width and height of the browser window. On screen resolutions higher than 800x600, I want the Flash movie to be a fixed size (say 800px x 600px exactly).

Is this possible, and if so, how?

View 2 Replies

Flex :: Datagrid - ItemRenderer Flex Values Getting Not Rendered According To ArrayCollection Provider?

Feb 4, 2011

i have a problem using the itemRenderer functionality. When using an ArrayCollection the visible Data in the DataGrid using the itemRenderer will be rendered just fine. But if i start scrolling the entries are repeating in the cells using the renderer. The cells are not filled with date according to the id. What mistake i'm doing here.

I read a lot of the explainations like:

[URL]

here is the code for the set data function (itemRenderer is extending HBox):

override public function set data(value:Object):void {
_data = value;
if(data!=null)

[code]....

View 1 Replies

Auto-Resize To The Page Size

Dec 1, 2009

please take a look at [URL] The flash graphic is supposed to auto-resize to the page size but it does not. If I take the same code and put it in an "ordinary" webpage it works fine - look at [URL] What I had hoped to acheive is the effect in this page where the flash movie resizes to match the size of the browser window. I am using the script AC_RunActiveContent.js and calling it from the webpage with the height and width attributes set to 100% - it seems to be sizing the flash at 100x100 instead.....

View 3 Replies

ActionScript 3.0 :: Auto-size An InputBox?

Nov 17, 2009

I know how to autosize the textbox inside it, but the borders around the textInput aren't autosizing so the text is just overwriting it I've attached a screenshot to you you what's happening.

View 1 Replies

Flex :: Scrollbar On Dynamically Rendered Component?

Jun 4, 2011

I'm trying to display a custom component i made inside a panel but when it renders the content is displayed outside of the panel box and there's no scrollbar.a panelan instance of myComponent inside the panela button that calls a method on myComponent that adds some controls into itWhen i run the application and press the button the following is displayed:See that the controls added dynamically in myComponent get over the panel's bottom line instead of showing only the visible part of the component and a scrollbar.

View 1 Replies

Flex :: Does Fire An Event After A Chart Is Rendered In UI

Sep 7, 2011

I am looking for an event which is fired (if any) after a chart is rendered (visible in UI) in Flash, we are using Flex SDK 3.0. We have to capture the screenshot after the chart is rendered, current implementation adds a huge delay in update_complete event callback, this is slowing down the whole job of generating images. I tried to use EXIT_FRAME event, but this doesn't seem to serve the purpose.

View 2 Replies

Flash Object Auto Size To Fit Content?

Oct 6, 2009

I have a list of items dynamically loaded from an XML file into my flash movie.Each item is positioned vertically with some buffer space between it and the preceding item.However, if the amount of items exceeds the flash objects height,then the excess items are invisible (because you cant scroll through them!).So then is it possible to make some form of call (undoubtedly an externalinterface call to a javascript function) that will resize the height of the flash object to fit all of this dynamically loaded content so that the browser's scrollbar is triggered allowing the user to scroll through?Or is it more practical to simply carve up my own scrollbar to fit the entire flash movie?

View 2 Replies

ActionScript 2.0 :: Getting _height Of An Auto-Size Text Box

Nov 14, 2010

I have the following code to populate a dynamic text box:

[Code]....

My problem is that I need to get the autosized height instead of the regular height of the text box before autosize. In a parent movie clip I have the following code to do some custom scrolling:

[Code]....

View 3 Replies

IDE :: Define A Width And Then Auto-size The Height?

Sep 10, 2005

is it possible to define a width and then autosize the height?

View 3 Replies

ActionScript 2.0 :: Dynamic Textbox Auto-size?

Feb 16, 2007

I'm having a problem with adjusting the size of a dynamic textbox to display text imported from an external XML file. I've tried using .autoSize = true, but it doesn't work.

View 3 Replies

ActionScript 3.0 :: Text Field Auto Size DOWN?

Mar 21, 2011

I know you can go left,right and center. but what about down?

View 1 Replies

ActionScript 2.0 :: Auto Re-size Gallery Useing XML?

Apr 13, 2005

i am having big problems with XML. i have made a auto re-size gallery useing XML, but i want my XML to load text as well for my contact and profile info, how do i do this. heres what i mean http://iso50.com/iso50.html

View 1 Replies

Flex :: Area Rendered Bellow Records In A AdvancedDataGrid?

Feb 2, 2011

In the AdvancedDataGrid shown bellow I have one groupingField as one can see. I would like to have the ability to click in a record (letīs say the 26/01/2011 - Pag.) and right bellow it to have some action buttons.

How can I do it? Would it be by using a AdvancedDataGridRendererProvider? Iīve tried to do it but didnīt get the expected result.

View 1 Replies

Flex :: Select Item In Details Form Dropdown When Datagrid Item Is Selected

Feb 15, 2011

I have this datagrid:

<mx:DataGrid id="dgCompetenteN" includeIn="Test" left="10" right="472" top="69" bottom="149"
dataProvider="{colCompetente}" editable="false">
<mx:columns>

[Code]....

What I want to do is, when I select an item in the datagrid, the selected item of the dropdown should be the correct one (the one which has the field idCompSuperioara equal to the third element in the selected datagrid row).

View 1 Replies

Flex :: Get List Item Selection Working When Using A Png Mask In An Item Renderer In A 4.5 Mobile App?

Jun 10, 2011

I'm creating a mobile app in which I need to show a calendar with months at the top. The months are part of a component that extends from SkinnableDataContainer (and has some custom scrolling/behaviour - which is why I did'nt use a spark list). I need the months to be shown as a 'trapezium' shaped tab and so I'm using a png image as a mask in the item renderer for the component.

When the mask is not applied, it all works well - the months render, the list/data container selection works when I click on a month and so on.When the mask is applied, it renders well, scrolling and everything else seems to work well - but when I click on a month, nothing happens visually. And from the trace statements in my code, it appears list item selection is not changing. Looks like mouse clicks are not working.

Code:

public class TopCalendarMonthRenderer extends LabelItemRenderer {
[Embed(source="/assets/trapezium_alpha.png")]
private static var TrapeziumMask:Class;
private static var trapeziumMaskInstance:BitmapAsset;

[code]...

View 1 Replies

Flex :: Access TileList Item Index In A Custom Item Renderer?

Mar 4, 2011

<mx:itemRenderer>
<mx:Component>
<mx:Canvas>

[code]......

View 2 Replies

Flex :: Toggling States - When Other Item Is Selected The First Item Does Not Change Its State?

Apr 26, 2011

I have used states in my application.The thing is I have made the first item in my list to be selected. so I gave like this,

if(itemIndex == 0)
this.currentState="selected";

this works fine.The problem is when other item is selected the first item does not change its state,it remains in the selected state until its clicked.My code looks like this,

<s:BorderContainer id="outerCont" width="275" height="100" borderVisible="false"
backgroundColor.normal="#3D3C3C" backgroundAlpha.selected="0.1"
backgroundColor.selected="{data.color}">

My states are like this,

<s:states>
<s:State name="normal" />
<s:State name="hovered" />[code]........

View 1 Replies

Actionscript 3 :: Trigger Flex Piechart Item Click Event When A Datagrid Item Is Clicked?

Nov 4, 2011

Is it possible to trigger Flex Piechart Item click event when a Datagrid Item is clicked.If so can anyone give some example.

View 3 Replies

Actionscript 3 :: Auto-size Text To Fit The Width Of A Button?

Apr 9, 2012

I've had a good look around but couldn't find anything that directly solves my problem.There are several posts which are along the right lines, but I can't get my head around it in order to fix the issue.I need to automatically resize the text so that it doesn't exceed the width of the button. The maximum length for my sized text appears to be 13 characters before it will become too large.The program starts by dynamically creating several buttons, filling them with the title and description as set in an XML document.

To add the text I have this code:
var tform:TextFormat = new TextFormat();
tform.size = 20;

[code].....

View 1 Replies







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