ActionScript 2.0 :: FLASH8 Create Columns For My Thumbnail_mc?
Jan 14, 2007i wan't modify my AS for have 2 columns in my thumbnail_mc.
stop();
var thumb_spacing = 60;
// load variables object to handle loading of text[code]....
i wan't modify my AS for have 2 columns in my thumbnail_mc.
stop();
var thumb_spacing = 60;
// load variables object to handle loading of text[code]....
I was wondering if anyone knows how to clear the thumbnails created by the thumbnail_fn() function in the thumbanail photo gallery.
This is the function:
Code:
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
[Code]....
But this has no results. I think this is becuase the seperate thumbnail movieclips that are created by the thumbnail_fn() function are placed at different depths (well that's what I think is happening ...)
how to clear the the movieclip but not destroy/delete it?
I have this code that I've used before to dynamically attach a movieclip to create one long list of movieclips, however for a design I'm working on I need to be able to create multiple columns of 4 (configurable) items so the 5th items get's a new _x position, and starts over calculating the _y position.
Code:
var x:XML = new XML();
x.ignoreWhite = true;
var thumb:Array = new Array();
var thumbTitle:Array = new Array();
var thumbDesc:Array = new Array();
[code]...
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 RepliesI 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.
I am tryng to create a dynamic datagrid that receives dynamic columns:
PHP Code:
for (i=0; i<DadosModelos.total_produto_modelo_recebe; i++) {
var coluna:DataGridColumn = new DataGridColumn();
coluna.width = 75;
[Code].....
Now i want to add a row that receives a value for each column that i add dynamic above, i tried all but nothing..
I created a multidimensional array and I am having a hard time using .push to start another line. I have tried many thing however this is where I am at right now:
Actionscript Code:
arrayName = new Array(new Array());arrayName[0].push("cats");arrayName[0].push("dogs");arrayName[1].push("panthers");trace("arrayName[0][0] = "+arrayName[0][0]);trace("arrayName[0][1] = "+arrayName[0][1]);trace("arrayName[1][0] = "+arrayName[1][0]);
As you can see the last trace (arrayName[1][0]) comes back undefined. How do I add the [1][0] level of the array?
I need to create two combo boxes that are populated by an XML file. In the first combo box there are 13 choices and depending on what the user selects I need to populate the second combo box with the correct information. Now I can create the first combo box just fine but when I try to dynamically create the XML file name for the second combo box it doesn�t seem to work. What I am doing so far is taking the data from the first combo box and adding the quotes and .xml with this piece of code:
PHP Code:
pModCombo = '"'+event_obj.target.selectedItem.data+"Combo"+".xml"+'"';
pModComboXML = new XML();
pModComboXML.ignoreWhite = true;
pModComboXML.load(pModCombo);
If you trace that code it creates the file name just fine however the xml file will not load. If I replace that code with the normal xml code like this:
PHP Code:
pModComboXML = new XML();
pModComboXML.ignoreWhite = true;
pModComboXML.load("new.xml");
The second xml file seems to load just fine. However, if I create an if statement with all the different xml file names I will have to update the swf every time I add a new choice in the first combo box. So my question is does anyone know how to dynamically create the xml file name?
PHP Code:
pmComboXML = new XML();
pmComboXML.ignoreWhite = true;
pmComboXML.load("brands combo.xml");
[code]...
what im trying to figure out is how exactly do you create a minimap that can register each object location
View 2 RepliesI am trying to create a movieclip in which different colored birds are flying..I am tring to duplicate two or more MovieClips at the same time..but only either of them Works How should I modify the code so that I can achieve that ?
PHP Code:
function birds() {
for (m=1; m<=10; m++) {
firstEnem y= "bird"+1;
[code].....
Is there any simple way how to pack existing Flash8 project using AS2 and multiple files to to Adobe Air application?
View 2 Replies<local:CheckBoxDataGrid id="dg"
allowMultipleSelection="true" x="118" y="151" width="557">
<local:columns>
<mx:DataGridColumn dataField="firstName" headerText="Select" width="50" sortable="false" itemRenderer="CheckBoxRenderer" >
</mx:DataGridColumn>
[code]....
I am getting the values as ArrayCollection, but when i bind it to my Datagrid, i am not getting any values.... though the objects returned from PHP are fine.
PHP Code:
var i:Number = 0;
function goMe(){
if (i >= myArray.length){
[Code]....
i'm using this code to cycle through an array and move the movie clips to x:0, and y:height of clip, times whatever number it is.... if there are 4 objects in the array, object 1 would be 1 times it's own height.... etc... so they're spaced out.
however, when i resize my stage, i'd like to have them arrange differently... into columns... but i'm not sure how to specify breaking them off into columns. i tried something like this:
[Code].....
I am having a lot of trouble figuring out how to dynamically display 3 columns of text in my swf. They are somewhat long lists of song/album/label titles and all 3 columns need to scroll as one unit. My client gave me Excel files with the lists in spreadsheet form. I've tried exporting as XML and HTML. I've gotten the lists to disply in my SWF using dynamic text boxes but now I can't figure out how to get all 3 text boxes to scroll as one.
Is there a way to create a simple table in Flash and have each list load into Column1, Column2, and Column3 and then attach a srollbar to the table?
I have a single text field that attaches numerous lines of text. Because each line has an individual hyperlink, I'm using += and a for loop to append the next line. Here's the problem... When the text reaches the bottom it keeps going past the viewable area instead of becoming a new column - obviously by default. I know I can use scroll bars and all that mumbo jumbo, but having several columns is the way the client wants it.
View 3 RepliesI have a datagrid that uses a custom cellrenderer class to allow me to use a combobox. I have an invisible column that holds the value returned by the cellrenderer when the combobox value is changed. BUT sorting is wonky. Since what really lives in the combobox column individual cells is an object, it never really sorts properly. Is there a way to fire a sorting event to the column that holds the real value?
View 4 Repliesin my AS3 Datagrid, I'd like the columns would not be reorderable by clicking at their top.Now it appears the datagrid that represent a players' classification.Now if I click at the top of every column, the reorder as like they want.
View 1 RepliesHow do you make a List control wrap around to a second column (or multiple columns)? let me know if there is a solution for this with the List control or some other Flex control.
For example, if you have one list with 42 items in it, but I want to cap the height of a list to 20 items; then instead of having one list with 42 items all the way down, I would have that list of items look like the equivalent of 3 adjacent lists: the first with 20 items, the second with 20 items, and the third with 2 items (which represent the original list of 42 items). [url]...
On a DataGrid, setting alternatingItemColors will apply the color scheme to all of the columns of that grid. I'm looking for a way to define different alternating colors for each column.
View 2 RepliesI'm using the following code to load XML directly into a datagrid:
import flash.events.Event;
import fl.data.DataProvider;
import flash.net.URLRequest;[code]....
How can I reorder my columns based on the title?
EDIT:My XML looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<contacts>
<contact first="Moshe" last="Doe" address="555 5th St" city="Somwhere" state="AA" zip="555555" phone="555-555-5555" />[code].....
I'm making an application where I display an AdvanvedDataGrid with one column with dates(in format DD/MM/YYYY) and another with datetimes (in format HH:MM). I'd like to sort dates according with the datetimes as well(just clicking in the header of the column), there is an examplen of the expected behaviour:
02/02/2011 | 10:42
03/02/2011 | 09:45
02/02/2011 | 11:45
03/02/2011 | 11:30
[Code]....
_currentDatosBusqueda is an arraycollection I receive from the Server (with the correct format of dates and datetime).
What I am trying to do is hide an entire column if the content is all null.
<mx:DataGrid width="100%" dataProvider="{service}" id="dg1">
<mx:columns>
<mx:DataGridColumn headerText="Location Origin" dataField="originLocation" visible="{data.originLocationExists}" />
<mx:DataGridColumn headerText="Location Destination" dataField="destinationLocation" visible="{data.destinationLocationExists}" />
[code]....
In the sample above, sometimes all the data in the "Location Origin" will be null, so under the visible property I put a value which is either true or false depending on the data. But even when all the data is null and the visible property equals false, it still stays visible.
I have one Datagrid in Flex. In datagrid there are 4 columns like mark1,mark2,mark3,Total.When i enter mark1,mark2,mark3 that time i want to update total.
View 2 RepliesI just added columnWidthRatio: 1; to my mx|ColumnChart to fatten up my columns a little. But now, there's no space between the X axis and columns, and between the columns themselves, so how do I increase this space?
View 1 RepliesI have a problem with the data grid in flex 2.0 , i want to add columns and header of the columns dynamically as it reads the text from a file .
View 1 Repliesi 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?
I have a Web site here: [URL] If you click on 'Portfolio', there are two columns which read from text files, CSS files, and an XML file to populate the page. Yesterday, when I looked at this page, the 'Links' column was populated, but the 'Tutorials' column was not; today, neither column is populated. Last week, the 'Tutorials' colum was populated, but not the 'Links' column.
View 0 Repliesduplicate 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 Repliesdoes anyone know if you can load text from an external textfile into two columns, going to the second when the first is filled??
I only found this (okay, three columns, but I mean the text here is not externally loaded)
article = "The Norwegian hacker famous for blablabla.";
words = article.split(" ");
targetColumn = 1;
for (i=0; i<words.length; i++) {
[Code].....
Maybe I could load my external text into such a string, does anyone jnow how to do that?
what i need is to imitate newspaper columns, so text will flow to fill the height of the textfield and then continue in a 2nd column. the only thing i can come up with is to fake it with 2 textfields side by side with a scroller that controls both. surely there's a better way?(and i know about the Flashloaded component, but i'd prefer to do it myself.)
View 6 Replies