ActionScript 3.0 :: Odd Behavior With Modulus - Make 4 Rows And 5 Columns Of Thumbnails
Sep 22, 2010
Another thread I will hopefully resolve before someone replies. I'm making a picture gallery and putting a bunch of thumbnails in a container.
[Code]....
View 1 Replies
Similar Posts:
Mar 20, 2006
I created an array of objects aligned in 1 row. But how do I have to make that the objects appear in several rows and columns.
View 3 Replies
Apr 7, 2009
I'm still pretty novice when it comes to as3 and am trying to use modulus to loop 14 thumbnails in an array. i have a property called firstThumb that keeps track of the first thumbnail being displayed and a forward and back function that looks like this
[Code]..
View 5 Replies
Feb 12, 2010
i was wondering if it's possible to invert columns and rows - I need the rows to become columns a columns to become rows.
[Code]...
Problem is becouse number of rows (1,2,3) is changed dynamically. I was trying to create new arrayCollection and use different variations of addItem but non of them works and I'm stuck. Maybe some of you know how to do this?
View 0 Replies
Feb 21, 2003
duplicate a movie clip, let's say 15 times, and after the 5th clip a new column is created, on up to the 15 clips making 3 total columns of 5?
View 4 Replies
Jul 22, 2009
I have a 1 row, many column flex datagrid. I would like to turn the dataGrid on its side, so that the column headers become a single column running down and v.v. Is there a way to do that in the DataGrid? Or am I stuck manipulating the data presented to the grid?
I have an object like:
x=y
b=u
o=p
u=e
w=p
And I'd like a control that is visually similar to that. Currently the datagrid displays the object as:
x b o u w
y u p e p
Which is too horizontal for my case.
View 2 Replies
Sep 13, 2011
The following script loads 48 .swfs into rows and columns using as1
count = 0;
for(var x=0;x<8;x++) {
for(var y=0;y<6;y++)
{
[Code].....
View 4 Replies
May 31, 2005
how would you make these clips organize in columns and rows?
Code:
for (var b=0; b<gallery.childNodes.length; b++) {
item = _root.nav.attachMovie("itemClip", "itemClip" + b, b);
[code]....
View 1 Replies
Aug 2, 2007
Any way using actionscript to tell the thumbnails loaded dynamically to load specifically by row or specifically by column or if there a way to have more control over how an xml gallery places each thumbnail in a grid?
View 5 Replies
Aug 24, 2009
I hired flash developer to make me fisheye menu with a lot of rows and columns, be he just can't make it, he says that it stuck and that it is slow when he tries to make a lots of rows and columns, is there any component in flash that could work with to make that.
View 2 Replies
Jul 7, 2011
I'm implementing an image gallery which presents assets as equally sized boxes that are forming a grid. I thought that I could easily achieve that by using the spark.layouts.TileLayout but unfortunately I have some additional requirements that I'm unable to implement with it.The general principal should to be to present as many boxes as possible within given space. The entire layout of the application is liquid and depends on the user's screen resolution.[code]I don't know the RequestedColumnCount or RequestedRowCount in advance as they depend on the available space, so the above code layouts all elements from left-to-right and then from top-to-bottom - which is as close as you can get from what I really want to achieve.This list of boxes should be cable of rendering fake paging. In reality it means that if the last visible row does not entirely fit the available space it should be moved to the next page.
To give you an example let's imagine that we have a list of 10 images. Each one is 10x10 px but my screen resolution only allows me to fit a grid 35x35 px. This means that one page is only capable of presenting 9 images in form of a 3x3 grid (as 5 px is not enough to present a full image). The 10th image should be then transferred to the second page.This is obviously not happening automatically with the code that I've pasted above as the TileLayout allows for displaying partially visible rows (in a form of a vertically scrolled list). I was wondering how I could achieve the behavior described above.If the above description does not sound logical please let me know so that I can adapt it (or include more details).
View 1 Replies
May 14, 2008
I have a thumbnail gallery that gets its images from an xml file, at the moment if there are more than 8 thumbs they go off the page to the right, I'd like to have it so they continue to load in rows and columns but I'm not sure how I'd do this? I limited the images in the xml to 8 and duplicated the mc and xml to get the look, but it needs to really be updatable from the one xml file. Heres the Actionscript-
Code:
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
[Code].....
View 3 Replies
Mar 31, 2010
I'm trying to position dynamically generated movie clips into rows and columns. Currently i've managed to position them side-by-side using the same ._y position. I would like to position them into a grid consisting of 25 columns and 16 rows, so mc 26 would sit beneath mc 1 etc...
View 9 Replies
Jun 15, 2006
I need to dynamically stack rows and colums of squares. That is easy enough. But i want to dynamically change the number of columns depending on the total number of squares. This way, i will always have a rectangular grid of squares. I can do this by using a series of if...then statments to check the total number of squares, but this is not a good solution as it will not scale infinately nor is it very adaptable to different layouts.
I susupect that there is a way to find a relationship between the number of squares and the number of columns needed to keep things in a rectangular shape... but it hurts my head to keep trying to figure it out with my limited math skills.
View 4 Replies
May 17, 2010
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.
View 2 Replies
Jan 19, 2007
I've been trying to tweak the "image gallery + Bokel loader class" found on the laco web site. The image preloader is pretty nifty:
http:[url]....
I've added Previous/Next buttons which clients always seem to demand, and I've given the thumbnail buttons a static position (something I need to do). I'm having problems getting the buttons to stack in rows/columns though. I can't work with one long column or row of buttons - they need to be stacked in rows, say 6 buttons per row and 6 columns across so that there is a nice box arrangement to the buttons. But the way the functions are written its hard to make adjustments to the placement of clips.
View 9 Replies
Mar 1, 2009
I need to create a multidimensional array with a certain number of rows/columns from variables that store the number of rows/columns. For example say I have:
var r:int = 5;
var c:int = 10;
I want a multidimensional array that has 5 rows and 10 columns, every space within the array filled with the value 0.
View 2 Replies
May 3, 2006
[URL] I'd like to be able to have multiple rows or columns for the thumbnails as apposed to just one continues line, say 7collums by 4 rows of thumbnails or any given amount for that matter. I've been trying for past thew hours with no luck (not that crash out with action script) and I can't find any examples on the web.
View 2 Replies
Feb 26, 2005
I want the thumbs not in just one row of 5 thumbs but in two or three rows of 5. But how the change the following code?
var thumb_spacing = 40;
// load variables object to handle loading of text
var description_lv = new LoadVars();
description_lv.onData = function(raw_text){
[code]....
View 1 Replies
Sep 18, 2009
I have a file uploader that uses a file reference list (FRL) to upload files. However what I want to do is use the FRL to display all the images/files that were selected and then display them in either a list, or photo gallery. I would lean more towards the photo gallery approach but I don't know how to dynamically lay out the thumbnails properly.
What's the best way to display the thumbnails in rows 3 pictures wide and then skip down a line etc.Now ofcourse I don't know how many files will be selected so my next question would be can I draw the thumbnail gallery in a seperate container (or frame sort of like in VB) and then have that container have it's own scroll bars?
View 7 Replies
May 10, 2008
When you resize the browser window the thumbnails rows and columns adjust accordingly to fit.I've managed to attach the thumbnails correct when my enableButtons() function is called but i'm unsure how to approach resizing.
Stage.align = "TL";
var numberOfGalleries:Number = 20;
var thumbMarginX:Number = 163;
var thumbMarginY:Number = 109;
[Code].....
View 1 Replies
Nov 6, 2009
Is there any way to disable a few columns for a particular row in flex datagrid?
I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.
Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.
View 2 Replies
Jan 11, 2010
I want to save remotely (on a database) the state (visible columns, columns width and order) of a Flex3 DataGrid.For width and visibility I can simply save them by accessing each column attribute.. But for the order? Do I have to create the dataGrid dynamically?
View 2 Replies
Oct 2, 2005
[Code]...
the movies go the next row but they stay all in the same x location
View 3 Replies
Nov 9, 2009
I have 2 advanced data grids, one above the other. They both have the exact number of columns, and pertain to each other in the same way. But each is showing different data, which is why I split into 2 grids. However, on each one you can resize the columns, what I would like is to make it so that if you resize a column on either datagrid the same column on the opposite datagrid resizes as well, so they are both always lined up.
View 1 Replies
Dec 5, 2006
I am trying to attach a movieclip and make rows with 3 movieclips each. I can attach the moveclips and make space between them but i cant figure how i can make rows...
here's the code
Code:
var gamesData:XML = new XML();
gamesData.ignoreWhite = true;
gamesData.load("xml/games.xml");
[Code].....
View 4 Replies
Jul 7, 2006
It seems there are lots of topics close to this, but none with answers. I have attempted to complete the Dinner Menu sample example in Flash 8. I finally got ti to work but the columns do not match the order of the items in the XML document. I cannot find an answer to this problem anywhere on the internet so far.
View 3 Replies
Jan 5, 2011
I'm trying to make a Flex (Advanced)DataGrid component with some mechanism where the user can toggle the visibility of the columns. I've crudely implemented this by reading in the columns into the right-click menu, and when a column name is selected here, the visibility is toggled. It works, but it's not the most elegant solution.Specifically, I'm trying to emulate the "datagrid" that Mozilla Thunderbird uses to display emails. Here is an image:
In the upper right, there is an icon over the scroll bar. If there is no scrollbar, the icon remains in the same place. When clicking the icon, it opens up a menu that shows all the possible columns, with the visible ones having a check mark next to them, like this:
Also, the scroll bar always appears under this button, never "pushing" it over into it's own column.I'd like to re-create this in Flex. I believe the menu part and creating a column with a button headerRenderer is easy enough. But I can't figure out how (if at all possible) to do this with the scrollbar, because the scrollbar always seems to be "its own column".
View 1 Replies
Oct 28, 2011
I've set a DataGrid to display all the rows in the data provider by binding it to the height of the control.Now that all rows are rendered, I want the DataGrid to grow horizontally so that every column renders the whole text (of Labels).Is there a way of doing this without resorting to a typical object?
View 1 Replies
Sep 22, 2011
I have an event firing that shows progress in a video:
[Code]....
What I'm trying to do is to send a notification to the server every five seconds, to indicate progress. I can round the seconds down to nearest integer using Math.floor. Then I can use modulus to get every fifth second. What I'm not seeing is how not to send a repeat for (e.g.) 5, since 5.02, 5.15, 5.36 etc. will all qualify.
[Code]....
View 2 Replies