ActionScript 3.0 :: Creating A List With Different Row Sizes?
Dec 3, 2008
I'm new to AS 3.0 and CS4 and I've been getting up to speedon all of it. I've used the List component before with my owCellRenderer. I now need to create a list with different rowheights. The List component is great and does everything that Iwant but it requires all rows to be the same height.I'm unsure of where to go. Creating my own class seems like alot of work. The TileList and Grid components don't allow differentsized (and dynamically changing) row heights either. Is there somebase class (SelectableList? BaseScrollPane?) that I should extendor do I need to just bite the bullet and write it all from scratch?
I need each row to have it's own height and interaction witha row could change the height of the row. The main use is a list ofdata. If the user clicks in an item, it turns the display intosomething they can edit (which will need more height)I really like that AS 3.0 is much more consistent of aprogramming language than previous MX versions that I've used.We're doing a lot of AS/Flash/AIR work with it and it's turninginto a wonderful environment...
View 1 Replies
Similar Posts:
Dec 20, 2010
is it possible to create different document sizes for different scenes in Flash?
View 1 Replies
May 28, 2009
I have to make a list every document linked in a multiple .fla files. I can pull them up doing a find for .pdf but I can't figure out how to copy the links from the results field. Each file links to 1000+ pdfs, so i'd like to avoid doing this one at a time. Is there a way to export the results of the find function to a .xml or .txt file?
View 1 Replies
May 10, 2011
My project is a page flipping magazine. On each page are several products. When you click on a specific product, a popup window comes up and shows all of the product details. The popup window also includes two buttons - Add to Cart & Add to Shopping List. This is where I am having trouble. When the user clicks on the 'Add to Shopping List' button I would like the product details (i.e picture of item, item description, price, select quantity, delete product option) to "load" into a shopping list (which would be on a different frame further down the timeline and look like a whole new page to the user). I don't want to redirect them to the shopping list at this time, I just want the information to "load" into the shopping list. Later, when they are done adding all their items into the shopping list, they can click on the shopping list tab at the top of the page and it will direct them to the correct frame in the timeline and show all of the products they added.
View 4 Replies
Sep 7, 2010
i'm trying to create a list by duplicating buttons, and then when these buttons are clicked, they load a movieso far here's my script in a frame
[AS]
text1 = "link1";
text2 = "link2";
[code].....
View 9 Replies
Mar 2, 2010
I want to allow my viewer to sing up for a mailing list. I want to do this with Flash CS3 and Actions Script 2.0.
First, how do I make the text field again to put the text in? And how do I create a mailing list that will send the person who signed up a confirmation email.
View 2 Replies
Sep 12, 2010
I have been working on making a menu for list items. The file below has an animated menu. If you click on Artificial Intelligence on frame 60, it jumps to frame 61 (a specific section for that list item). How do I make the Artificial Intelligence button on frame 61 jump back to frame 60? I dont know where to add the action script for the function. I need to add a similar script to all 9 list items, do they go on one actionscript file? if so what location? [URL]
View 2 Replies
Jan 10, 2011
I'm trying to extend the mx:Box container so that two buttons sit on the outside of the container to cycle through it's contents (similar to a scrollbar).
I've made a custom component that looks basically
like "mx:HBox->mx:Button mx:Box mx:Button" where the buttons and box are children of the hbox.
How do I offer the user access to the box (say its dataProvider and itemRenderer) through my custom component?
So they just need to write 'local:MyCustomComponent dataProvider="rar" itemRenderer="rar"/>' and my box inside that component can use it?
View 1 Replies
Jul 15, 2003
I'm creating a list of images dynamically that I want to mask.
This is the script I'm using:
for (i=0; i<10, i++) {
img_MC = createEmptyMovieClip("image" + i, 3*1);
img_MC.loadMovie("image" + i + ".jpg);
}
The images are loading fine but I can't get it to mask
how can I a mask Dynamically every image on the list?
View 2 Replies
Aug 14, 2009
How can I create a picture list with List or DataGrid component.
View 1 Replies
Nov 4, 2009
what i would like to do is create a search field that as the user types in the search bar if there are any matching entries in the list, the focus/selection jumps to that particular item in list. i don't want to clear the list just go to the item that matches.i would like it to be predictive so if i have these entries:and the user types "s" in the search box to the first "s" entry in the list (samson) is selected, if they type "se" the selection jumps to the first entry with "se" in it (seek) if they type "seet" the selection jumps to "seether" and so on.i have absolutely no idea how to do it, but more importantly...is this possible? Attachments: glossary.zip (1.0 MB)
View 6 Replies
Dec 13, 2009
Basically what I am trying to do is show a medical cartoon, that at various times, the user can click on a button to say "I want to read more about this point later". This will allow them to continue watching the cartoon, and at the end be taken to an HTML page that shows them the list of points they selected for further research. It's like creating a shopping list for further reading.
SWF output version 8
AS 2
View 7 Replies
Sep 21, 2010
i have made a chat app and i want to let the user add another users that he can find by searching the database of users to his own list, and grouping them ,,, this is can be done but ,,, now in my app when the user connect to the lobby he get all the online connected users in his list i mean when connecting to the online user list sharedobject the user list contains all the connected clients to the lobby and if the number of the connected users is by hundreds or thousands i think
if i create a loop for updating the own user users list statues it would not be good idea,,,
so what is the best way to let the user build his own users list and get the statues of each user in his list from the application online users sharedObject witch connected to the lobby app
View 24 Replies
Jul 21, 2010
I'm trying to develop a card game with Flex, and I was wondering if there's a way to create an horizontal list (the cards that I have in my hand) having the elements overlapped, like you can see in this example made with openflux: [URL]. The thing that's missing here is the possibility to swap the cards with drag and drop. What I could do to get a similar effect with an horizontal list based component?
View 2 Replies
Aug 16, 2010
I need a List that resizes to exactly fit its content, unless that height exceeds its (dynamically sized) parent container. My requirements are as follows:
The component extends List, or at least acts similarly. variableRowHeight and wordWrap both equal to true. The height of the list cannot be less than minHeight (roughly 32px for scrollbar arrows). The height of the list cannot be greater than the height of the parent container .
Note that the parent container can be resized dynamically.
The height of the list should be updated as the size of both the contents and parent container changes.
Live updating would be preferable but not necessary.
There should be no scrollbars if the content height is less than the parent container height (sounds obvious, but I've had trouble with this too).
The trouble is that with variableRowHeight and wordWrap, it's very hard to know the size of the content at any given time. If the parent container's width is reduced, a line wrap may occur in the list which will change the height of the content. I know I can measure the height of the list content using measureHeightOfItems() + viewMetrics.top + viewMetrics.bottom, but when should I calculate that? What events should I listen for? And the thing I've had the most trouble with - when should I calculate it to set the size initially (i.e. just as the content has finished populating)?
View 1 Replies
Oct 8, 2009
How to construct the following in Flash 8 as 2. I have several items that need to be shown in a text field list, the list needs to update as a new item is to be displayed also the new item has to move up or down depending on how many items are on the list. For example the list has 6 items available,the fist three are a higher priority than the last three.
oranges
apples
mangoes
trucks
cars
boats
When items are called for example oranges we will have oranges in the text field
If the second item is called say trucks this will go below oranges,
If no oranges are called this will go in the top text field.
if we remove an item the remaining field will move up so there are no gaps in the text field.
For example start out with oranges only
oranges (top of list)
Next case add trucks
Oranges(top of list)
trucks
Next trucks only (remove oranges)
trucks( at top of list)
Next add and apples and oranges
Oranges ( top of List)
apples
trucks
Next add boats
Oranges ( top of List)
apples
trucks
boats
Next remove trucks
[Oranges ( top of List)
apples
boats
The actual movie clip is an aircraft caution and warning display that updates when faults occur. I know I can use an array to to populate the text field but I am not sure what to use to create the correct animation effect.
View 6 Replies
Jan 12, 2011
I am trying to create a buttons menu with Array, and for some reason it only show the lastone on the list.
Here is my code (AS3):
var nav1Items:Array = new Array("about", "work", "contact");
//Create text field
var myFont:Font = new Calibri();
var myFormat:TextFormat = new TextFormat();
var label_txt:TextField = new TextField();
//Set text style
[Code] .....
View 3 Replies
Jul 25, 2010
I am trying to create a list of names which is generated by a swf file that contains buttons representing letters of the alphabet. The user generates a name by clicking on the letter buttons until the letters of the name have been spelled out and then clicking on abutton to add each name to the list. The names are generated inside the swf file but I want the list of names to be deposited in a file within a folder of the computer and remain there as a permanent record after the swf file has been closed. I can do the Actionscript 3 programming associated with the letter buttons but I would like to know how to send the names to the computer file.
View 15 Replies
May 12, 2009
I'm building a flash website. I want the background to be a .jpg photograph which fills the entire area outside the browser. I understand that it is possible to scale background to fit different sized computers, but I don't understand how that doesn't distort the image when viewed on a widescreen computer. Is there some way tocreate a site that shows a portion of the image on a 800 x 600 monitor, a little more of the image on a 1024 x 768 monitor and even more a 1650 x 1050 monitor.
View 1 Replies
Mar 1, 2007
if i am using sound/music in a flash movie and i would like to create an instance for it then play it in actionscript, how would i go about getting the size of that sound file?Here is the code i used, btw the sound file has a linkage name of 'tune'
Code:
musik = new Sound(this);
musik.attachSound("tune");
musik.start();
varsize = musik.getBytesTotal();
A dynamic text field is placed in the doc to show the value of varsize but when the movie loads, it shows as undefined!
View 4 Replies
Jun 19, 2009
I would like to know how to resize flash to fit in browser/monitor sizes. This site http:[url]....is a perfect example. Notice how it opens with no scroll and fits to a window that matches your screen size.
View 1 Replies
Apr 20, 2010
Im currently working on a project where I have a 92x92 pixel image that needs to tween into a 711x300 pixel image. The images are the same but cropped to these sizes via photoshop, imported into flash, then converted to graphic symbols. I want to have the 92x92 image tween into the 711x300 image.
I say tween, but the two tweens aren't working correctly, I can't seem to find a "crop" like function in flash that will let me adjust the large image for when its supposed to be small, then have it tween between the two sizes as i need them to.
View 2 Replies
Oct 14, 2010
Situation:I've got 2 swf files,1 is a preloader which loads the 2nd swf file, my site.Both of them, if started separately,work correctly.Problem:when I put the files together,linking the site's swf to the preloader,I get a null element error and the site loads no correctly.What I've understood :The preloader is ok, because I can remove the error message working on the site's swf AS code.In the preloader's code I have some lines to center its animation on the stage, I do that like this:
import flash.display.Stage;
var myStage:Stage = this.stage;
then using myStage.stageWidth and myStage.stageHeight I calculate the clip position
Also on the site's code I do the same to center a movieclip using exactly the same code, but it doesn't work and I've found that the problem is the myStage variable, not because it has the same name as the variable on the other file (I've tried to name it myFrame).It looks that on the site's swf the myStage variable can't be assigned and then results to be null.
Question: How can I obtain the stage's height and width since var myStage:Stage = this. stage; doesn't work?
View 11 Replies
Jun 9, 2011
i have this script and i want to know how to duplicate the movieclips, one each other. This scrip works fine with images with same width, but when the sizes its diferent, dont work.
var dados:XML = new XML();
dados.ignoreWhite = true;
dados.load("xml/15anos.xml");
[Code].....
View 1 Replies
Dec 9, 2009
I have an object that changes sizes dynamically but I want to keep it centred, I recall seeing a piece of code somewhere but I can't seem to locate it now, basically what the code did was use some getBound or math function to figure out how wide the object was, how tall it was and the figure out where the centre would be and then center it... i have a function an onstage resize function but i need to know how to keep this object in the middle of the stage.
View 0 Replies
Mar 12, 2009
What is a reasonable file size for a Flash wide skyscraper ad? I know the IAB is a max initial load of 40k for standard ad's, but what about Flash? Either I'm losing my mind or my client is for them wanting something under 30KB. I've used AS3 for almost all animation, I even killed all animation and I still can't get it under 30KB. Is there some kind of compression secret that I'm missing?I've compressed the images before import.I've reduced quality of the images inside Flash as much as possible without killing quality
View 4 Replies
Feb 15, 2006
im making a gallery that load an image in a movie clip when i click in a button. All seems to work perffectly in "local". My problem is when i put my gallery on-line. To me it appears not to get the "width" and the "height" untill the image is fully loaded. In the "AS" have some kind of "checker", but obviously its not working, can someone help this "semi-noob"? here is the link: [URL] Here is what i have in my first and only frame:
[Code]...
View 3 Replies
Sep 9, 2009
How can i fix the ImageHolder (Movie Clip size) that holds the images loaded into it. At the moment I have sized the photos to the size I want, but if a photo is not that "Specific" size it will overlap my text next to it... How can I fix the size of this movie clip to show the images without it blowing out my design? I have sized all the images to: 230px x145px If they are not this size the design will not work, I need to fix the window to 230px x145px
View 1 Replies
Jan 3, 2011
I'm running Flash CS4/AS 2.0 on Mac OS X. I keep my work files on a flash drive. One of these FLA files is a parent (container) movie that, when compiled, results in a SWF that is 6,983 bytes.
I saved a copy of the FLA source file to the Desktop, recompiled, and the SWF size was only 1,773 bytes (much better, since the movie only has a static preloader and some ActionScript).
I'm guessing this is because Flash has to copy some default class information(?) to compile the movie because the source file and Flash CS4 are on different drives.
Do I need to copy the class files to the external drive and map to that path in Preferences?
View 1 Replies
Aug 22, 2009
I am currently working on an AS3 where I need to fit many differently sized display objects within a rectangular boundary without them overlapping. If you take a look at this link, [URL]and take note of how the speech bubbles are able to align themselves in the swf without overlapping, this is pretty much exactly what I hope to achieve.
View 2 Replies