Flex :: Limit The Size Of The AdvancedDataGrid To Its Rows With Variable Row Heights
Aug 24, 2011
I tried to limit the size of the AdvancedDataGrid to its rows. Currently I am using variableRowHeight to true and at the run time setting the itemRenderer's height. Hence every row has different height. But I found that the logic behind the calculation of Grid's height is plain and simple - measure the height of the first row, then multiply it with the number of rows. Please correct me if I am wrong here I did some POC on the issue and found that during the calculateRowHeight event -> it calculates the individual row height but somewhere down the line it is only multiplying the rowCount with the first row's height. Instead it should calculate every row and should sum up the height. PS: I tried below options:
right now i'm just trying to trace each image name and it's height through the for loop, but what i would like to do is stack each image, 1 following the other.
when i run the trace, the output repeats just the last images name and image height. There is something wrong in my loop, right? Also i should mention that each image has a different height dimension.
how to query an ADG (or its rows) to figure out how many rows are currently visible (i.e. not collapsed) when displaying different levels of a hierarchical collection?In other words I'd like a function that tells me that 7 lines are visible in this view and 1 line is available in this one.
I have an Advanceddatagrid that has its variableRowHeight property set to true. I need this AdvancedDataGrid to have its verticalScrollBarPolicy "off" also.
How can I show all rows in that AdvancedADataGrid? (Need to set its height in a so manner that it will be visible all its rows).
I have an AdvancedDataGrid being built dynamically from an html table. The html is provided by a server so my code has to work dynamically for different columns/rows.
I have the columns being built and they display properly, however when I get to adding the rows is where i have issues. the follow code snippet shows iterating over all of the columns and adding a value under each of those columns to an object (to make a complete row) and then adding that to the ArrayCollection that later gets set to the dataProvider for the AdvancedDataGrid
//create an item to work with var chartItem:Object = new Object(); for( var j:int = 0; j < columnResult.length ; j++ ) {
[Code]....
my issue is that when "head" has a value of 0, as in the column title is '0', the item is added at position [0] instead of at 0 as a string.
I looked up some examples and tried with:
chartItem.head but that just assumes the column title is 'head' instead of grabbing the value of the head var
I have a data grid consisting of 3 columns & many rows, i want to show only the first 20 rows to user. Is there any way i can show only the first 20 rows in my datagrid.After by clicking button 'next', next 20 rows should display and so on...
I am building an Adobe AIR app and integrated an FTP client for file transfers. But I found out that maximum file upload size is 100 MB. I need to transfer bigger files
i am creating a popup of a textarea though which i am storing my notes in a data grid. The Code for the data grid is given below.
Now when i add the note IT fits in one of the rows. Now all the rows have same size. I want to make the size variable so that the text fits in each row. For big text notes the height of rows should be greater so that no scroll needed. similarly when the data is small then the height should be small
I'm loading and displaying a large image say 6000 x 6000 px using an image tag. I wanted to take a snapshot of the image. But the maximum limit I get is 2880 px dimensions using Flex 4, flash player 10. Didn't the limit of FP 10 increased to 4096 px? Then why am I getting 2880? Is there a way to increase that size.
Is there a maximum size limit for files being uploaded in Adobe Flex?I am testing it on localhost and can't upload a file of roughly 300MB.Even though I receive the complete event, after I upload the file....I was able to upload a file of roughly 10MB.
I do not want to have it scroll. For example if the field has four lines and the user is writing the fourth line, and give such ENTER or continue typing until no longer fit on this line, I do not want to be created in the fifth line text field. It has to do it?
I have found this great tutorial, about uploading files with a Flex app, using Php to do the server scripting for us.
http:[url]....Its great, but i wanted to know what changes should i do at the ActionScript so that only accepts image files, and if possible to limit the file size upload and show a message when one of these conditions are violated.
How can I limit the size of a child container with percentage width/height of 100%?
Example:
<mx:HBox id="container" width="100%" height="100%"> <mx:HBox id="scrollContainer" width="100%" height="100%"> <!-- keep this content limited to the size of "container" -->
[Code]....
Apparently I can get the desired behavior if I change HBox to Canvas but I would still like to know how to accomplish this with a HBox and why it differs from Canvas.
I am trying to figure out how to manage a Datagrid based on an XML object like this:
[Code]...
I will need to populate the Datagrid column names based on a different XML object and use the above XML to populate each of the column's rows. I currently am able to create the Datagrid and populate its column headers but I am unsure as to how to how to add the rows for each column. The above XML will be update with new row and column elements added and deleted. This, of course, will be bound to the Datagrid to show updates.
I want to have a text with digit size of about 300, but at a certain digit size, when i increase the digit size more, it will not increase in the swf file (even though it will increase as i intended in the .fla file).Is there a max digit size, and if so, can i increase it, and if not, why is this happening?the textfield is a dynamic textfield made in the .fla file (so not in as3).
Is there a limit to the size of video file an instance of FLVPlayback can handle? I have a set of H.264 encoded .mov files, and all but one of them run fine. There is one file that starts buffering, but even when the browser has downloaded the whole video, it still doesn't play. The file is ~300MB.
When I import a block of text with a link in it (and render as htmlText in flash)... does flash limit the size of the URL?It seems to be doing that on a file of mine. I load in the txt file, with for example this in it:URL...It cuts it off way before the end of it (there are no special characters involved).
When I import a block of text with a link in it (and render as htmlText in flash)... does flash limit the size of the URL? It seems to be doing that on a file of mine. I load in the txt file, with for example this in it: <a href="testingareallylongurlllllllllllllllllll + 100 other characters"> It cuts it off way before the end of it (there are no special characters involved).
I want to be able to retrieve several variables from my MySQL database. Currently my flash sends a request to .php file which then echos all of the variables as a single string. Flash picks up the string using
Is there a size limit on strings passed to a new XML variable during construction?I have noticed what I think is a hard limit on the size of strings passed as an argument to the constructor of a new XML variable in actionScript3. I noticed it while trying to pass a large string from javascript to a method in AS3.
Everything works fine as long as the string is less than about 330,000 characters, but as soon as the string I pass gets a little bigger than that (say 360,0000 or more) I always get a js error somewhere in the ExternalInterface and a ActionScript error when the data is recieved. I am running on IE.Here is what I am doing:In javascript I have:
flashPlayer.generateFromXml(text);
Where text is some large string of serialized valid xml.Then in AS3, I have
ExternalInterface.addCallback("generateFromXml", generateFromXml); (called in initialize handler)
then
public function generateFromXml(serializedXml:String):void { var x:XML = new XML(serializedXml); }
Everything works fine until the string exceeds about 340,000 characters, then I get this js error at this line in adobe code:
function __flash__addCallback(instance, name) { instance[name] = function () { return eval(instance.CallFunction("<invoke name=""+name+"" returntype="javascript">" + __flash__argumentsToXML(arguments,0) + "</invoke>")); //<<<<<--- line with breakpoint in js debugger
I have a client that would like a Flash animation that's 5440 pixels wide, to span 3 widescreen monitors for a tradeshow presentation. Flash won't let me make the stage any bigger than 2880 - does anyone know any ways around that limit?I Googled it and found out that you used to be able to scale the SWF beyond 2880 in an HTML file, and it would show well using Flash Player 7, but apparently that trick no longer works in Players 8+.Any other ways to make a single SWF that can span 3 large monitors?
I have been asked to compress a commercial for a client for web. The spot is 300x250 at 10 seconds and I am exporting an flv out of After Effects. I have taken the bit rate down as low as possible and can only get it down to about 872kb. Is there any solution to lowering it down to the required 40k file size.
Also, for delivery would i just need to send the swf and html or does the flv need to go
Just wondering if theres anyway to override/cheat the scrollpane size limit of roughly 2000+px?
I'm making a site for my friend and she getting pedantic about each set of photos fitting into one horizontal scroll window, only problem, each set of photos has 20 + images in them.
I read somewhere that its poss to use actionscript to arrange a bogus the starting x point on the main canvas, but surely this would only wok if you're scrolling from right to left?
Another thought I had is to embed a button at the end of the canvas size limit which the user clicks on to load the next part othe series, but this would feel clunky and like a compromise + when I've tried linking the swf of this menu into the main movie the button doesn't work.
My friend has been insistent on a scroller rather than dynamically loading images (which can be slow too).
I am not a Flash user and would like some information as a client. I have some problems with my service provider and wanted to verify his claims regarding the software.
1. Is there a stage size limit to flash SC3 and what is it?
2. Is it possible that the software crashes because of the data added to it (pictures and vectors)? Or dose the crash is happening from insufficient computer resources?
3. Dose a 1027X768 stage require a substantial amount of computer resources? And is a 4 year old 17" mac book pro might crash repeatedly if such data is applied to it? I understand that these are not the general questions asked in this forum
Is there a way to have a video object whatever the camera size is but have it displayed on the screen as a certain size? I cannot get the video object to stay a certain size...even if I put it in a movieclip.
I have an external swf I am loading. It is a text scroller, and part of the way it works is that it moves the text up or down off the top or bottom of the stage when it scrolls.Unfortunately when I load it in a master swf, the guts of the thing are showing through, spilling outside of the intended boundaries of the included swf. (i.e. outside the included swf's stage height).
I want to create a custom textinput component in flex. The component is made of one background rectangle (spark.primitive.Rect) and one inside rectangle that will contain the text.My problem is that I want my component to be sizable like I want. For example if I want to create one textinput with a size of 200/100 I write :
And I have only the width and height to change if I want to create another textinput with different size.My skin mxml contains two rect but I want to do this:<s:Rect width="{this.width}" height="{this.height}" .....and for the other one (the one that will contain the text)<s:Rect width="{this.width * 0.80}" height="{this.height * 0.80}" .....The problem is that flashbuilder displays an error message of incompatibilty on my two "Rect" lines. And when I launch my app, nothing is displayed.