Multiple Text Columns
Is there a way to format text (in a single text box) to display in multiple (at least two) columns? OR, is there a way to have two seperate text boxes controlled by the same scroll bar?
Thanks in advance for your input!
FlashKit > Flash Help > Flash MX
Posted on: 03-07-2003, 12:46 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Multiple Columns Of Text?
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.
Any suggestions?
Text In Multiple Columns?
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.
Any suggestions?
Multiple Text Columns. How?
How do I go about making a flash site with, let's say, three text columns? The text has to flow from one column to the next automatically.
Is there some way to detect when a textfield is full, and exactly how much of the text to pass on to the next text field?
Multiple Columns In A Text Scroller?
Hi all --
Can anyone help a n00b out?
I'm trying to add a scroll bar to a list of performance dates for my girlfriend's music site, because we've recently booked so many gigs, there's not enough room. (Growing pains, I guess... see the dates page if you're interested). Flash MX seems to make dropping a scroll bar onto a dynamic text field pretty easy; my problem is I can't figure out how to keep my columns in the dates list once I make the switch from static to dynamic text.
Previously, I just made separate (static) text fields for the different columns, and left-justified each field. That worked better than trying to use the space bar to line up columns in a single text field. What I'd love is some tab stops, but that doesn't look like it's going to happen.
Thanks in advance.
m
Multiple Columns In A Text Scroller?
Hi all --
Can anyone help a n00b out?
I'm trying to add a scroll bar to a list of performance dates for my girlfriend's music site, because we've recently booked so many gigs, there's not enough room. (Growing pains, I guess... see the dates page if you're interested). Flash MX seems to make dropping a scroll bar onto a dynamic text field pretty easy; my problem is I can't figure out how to keep my columns in the dates list once I make the switch from static to dynamic text.
Previously, I just made separate (static) text fields for the different columns, and left-justified each field. That worked better than trying to use the space bar to line up columns in a single text field. What I'd love is some tab stops, but that doesn't look like it's going to happen.
Thanks in advance.
m
Displaying XML Data In Multiple Columns
Hello,
What I would like to do is make a thumbnail menu of swfs that are loaded into 2 columns. What snippet of code would I need to put into the loop that parses the XML nodes to split the list into 2 columns?
I would like to avoid using the datagrid component becasue I want to control the look of the movie and the scrollbar that controls it.
Any help is greatly appreciated.
Tsunami Tutorial (again) - Multiple Columns
I'm trying to modify the 'tsunami' praystation movie so that it has multiple columns - I've been to the tutorial on http://www.actionscripts.org, tried to do it, but still can't...
the bit I'm stuck on is this bit;
"To create multiple columns, you will need to add additional bounding boxes inside “01 – boundingbox”. The second box must be called “boundbox2”, the third “boundbox3” etc. When this is done, the columns must be placed inside the appropriate box and the first four variables in frame 2 inside the columns changed according to the number of the box, starting number, ending number and number of objects. For example the second column (inside box no. 2) should have the column number 2 (if it was 1, then the objects would be scaled and given an alpha value, if the mouse was located inside box 1). The scale amount and alpha value could be specific to each column; you would only have to change the maximum, minimum and dividend in “scaleAmount” and “alphaAmount”. "
I've done what it says, but only the second column works!
Does anybody have a working example? or can tell me what I'm doing wrong?
Any help would be appreciated!
Thanks!
Datagrid Sorting On Multiple Columns
I have a datagrid with multiple columns.
I can click a column header to sort the rows, but I don't know how to sort on two or more rows. For example, last name, age, then racing time.
Any clue?
THanks
AttachMovie To Create Multiple Columns
Hi, 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.
I hope that makes sense. I've attached the code that i'm starting out from, but if you find it easier to scrap this feel free.
Thanks!!
Code:
var x:XML = new XML();
x.ignoreWhite = true;
var thumb:Array = new Array();
var thumbTitle:Array = new Array();
var thumbDesc:Array = new Array();
var xPos:Number = 0;
var yPos:Number = 0;
x.onLoad = function(success) {
var thumbs:Array = this.firstChild.childNodes;
var totalThumbs = thumbs.length;
for (i=0; i<thumbs.length; i++) {
thumbImage.push(thumbs[i].attributes.thumb);
thumbTitle.push(thumbs[i].attributes.thumbTitle);
thumbDesc.push(thumbs[i].attributes.thumbDesc);
myThumbs.empty_mc.attachMovie("thumbData", "thumbData"+i, i, {_x:xPos, _y:yPos});
yPos += _root.myThumbs.empty_mc["thumbData"+i]._height+3;
_root.myThumbs.empty_mc["thumbData"+i].thumb_mc.loadMovie(thumbImage[i]);
_root.myThumbs.empty_mc["thumbData"+i].thumbTitle.text = thumbTitle[i];
_root.myThumbs.empty_mc["thumbData"+i].thumbDesc.text = thumbDesc[i];
}
};
x.load("data/thumbs.xml");
Loading Multiple Records And Columns From ASP Page
I am doing my senior project at Mount Union College. I am trying to load baseball stats from my asp pages into a flash page. Any help or examples(tutorials etc.) that could help me out would be greatly appreciated. Thanks
How To Format External Text File To Show In Three Separate Columns Through Text Area?
Hullo everyone!
Could anyone suggest a piece of advice to visualize the following idea?
I should like to import an external .txt file into flash and display it by means of a text area component, which would take the better part of the screen and be skinned to fit the rest of the page design. The text ought to be formatted by way of an external .css file. Images are optional.
I can do all this allright, but what I should like to have is the text formatted to be displayed in three separate columns. The idea for this naturally comes from the Flash version of the Macromedia Edge newsletter.
I should be most thankful if anyone cared to come up with a solution.
Dynamic Text Columns?
I'm working on a project in which I plan to load pages of HTML-formatted text into a two-column display format.
Because the user's screen size and resolution affects the column length with dynamic fonts, I'm trying to figure out how to have overflow (or "underflow") text pass between the columns.
Any ideas on this one? I doubt it.
Much appreciated,
cartographe
Imported Text In Columns
Hi,
I'm using 1 dynamic text field in which I import text from an external textfile. It contains adresses so 1 adress could stand next to another but then I need the text to be in 2 columns. Can that be done?
Because I couldn't figure this out yet I also tried to import 2 textfiles in two seperate dynamic textfield on the same time in the timeline. I couldn't get this to work either. Is this even possible and if yes, can someone tell me how?
Thanks in advance.
Columns In Dyanmic Text
Hi. Again. I'm making the tour page for the site I'm doing. I need to put the dates in a nice neat column, the venues in a nice neat column...etc. I'm getting the text loaded from a txt file...dynamically...so it is easier to update. Anyone have a clue as to how to set that up in the txt file? Relientk.com has a great example of what I might want. Just click on touring. Thanks guys
Loading Text Into Columns
hi,
does 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)
Quote:
article = "The Norwegian hacker famous for blablabla.";
words = article.split(" ");
targetColumn = 1;
for (i=0; i<words.length; i++) {
this["col"+targetColumn].text += words[i]+" ";
if (this["col"+targetColumn].maxscroll>1) {
i--;
targetColumn++;
}
}
Maybe I could load my external text into such a string, does anyone jnow how to do that?
Thank you,
Jerryj.
Scrolling Text/columns Help
Hi. I'm trying to make a dynamic, scrollable text field that has 3 columns. I'm somewhat new to Flash and can make scrollable text fields using the UIScrollBar. I created a work-around where I created 3 dynamic text fields and then created two buttons to assign the "on (release) { <instanceName>.scroll+=3;}" actionscript to. I'd rather not do that and try to have all the text in one text field so i can assign the UIScrollBar to it as well as have it easier to edit for future updates. I did find software where you can do that (http://www.flashloaded.com/flashcomponents/multicolumntextfield/) but i'd rather see if it can be done without having to purchase a piece of software. Any and all advice would be greatly appreciated.
Thanks!
dan
Newspaper-like Text Columns
Hi,
I have seen many flash pages that format their articles into newspaper-like
columns.
How it is done?
Thanks in advance,
B.
Loading Text Into Columns
hi,
does 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)
Quote:
article = "The Norwegian hacker famous for blablabla.";
words = article.split(" ");
targetColumn = 1;
for (i=0; i<words.length; i++) {
this["col"+targetColumn].text += words[i]+" ";
if (this["col"+targetColumn].maxscroll>1) {
i--;
targetColumn++;
}
}
Maybe I could load my external text into such a string, does anyone jnow how to do that?
Thank you,
Jerryj.
Dynamic Text In Columns : Is There A Way?
Hi there,
I was just wondering, is there a way to split up dynamicly loaded text (pulled from a database via php) into columns? A friend of mine made a design for a flash site with the text in columns. I'm going to load the text from a database via php, but I was wondering if there's a function I could use to split up the text into columns?
Loading Text Into Columns
hi,
does 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)
Quote:
article = "The Norwegian hacker famous for blablabla.";
words = article.split(" ");
targetColumn = 1;
for (i=0; i<words.length; i++) {
this["col"+targetColumn].text += words[i]+" ";
if (this["col"+targetColumn].maxscroll>1) {
i--;
targetColumn++;
}
}
Maybe I could load my external text into such a string, does anyone jnow how to do that?
Thank you,
Jerryj.
Split Text Into Columns
On the interviews section of http://www.thefwa.com/.
You will notice that it splits the articles over 2 columns.
How is this achieved?
How can you determine how much text will fit in a textfield of a specific height and width?
Dynamic Text Into Columns
ok, so i've been trying to put dynamic text into columns and letting the text flow into next column. have achieved reasonable results by counting characters checking for linebreaks etc. but my problem now lies in wanting to include links in the text. how can i get my counting function to ignore links in the textstring?
Text Field Over-flow Into New Text Columns.
Full screen flash - Text will fill as many new columns as necessary to fit all the content.
EXAMPLE - www.thefwa.com ( click the submit link at the top)
If you can help, it would make my day.
Textfields As Columns-flow On Text
Greetings
Is it possible, do you know, to have a series of input text fields, like colunms in a newspaper, that when the first one has been filled with text, the second one starts to be fill, and so on.
Similar to how text fields in Freehand behave, or columns in MS word.
Columns In External Text File?
I'm doing a site that is all being loading via external text files. I have this one part where I'd like to have two columns of text in the text field. They appear perfectly at first, but as soon as I apply <a></a> tags to them (they all call as:functions to move the scrollbar...like a q&a page would do) the space between the words dissapears. And won't work, because it contains "&". It seems like such a simple issue, yet I'm perplexed!
<font size="14">
<a href="asfunction:scroll_2">Program</a> <a href="asfunction:scroll_10">General</a><br>
<a href="asfunction:scroll_7">Historic Preservation</a> <a href="asfunction:scroll_10">Site</a><br>
<a href="asfunction:scroll_8">Universal Design</a> <a href="asfunction:scroll_10">Submission</a><br>
</font>
that's the script in the external file, with the spaces in between. HELP!
How Do I Create Rows And Columns In Text?
any one know where I can find out what HTML tags Flash supports in its text areas?
I've got a list my customer wants on their site that needs to have rows and columns. I have this info in an external file but cannot seem to format it as rows and columns.
Any idea how to handle this?
Formatting Flash Dyn Text Into Columns
If I place the 3 other columns of text into separate movie clips and then into the main mc with the wrap text, how would all 3 mc load and scroll with one URLLoad?
Anyone?
I've a single scrolling dynamic txt mc where certain text attributes, such as rollover and hyperlinks are controlled by CSS in ACS3. The scrolling mc with wrapped text is straight forward. However, I cannot find a workable solution to formatting the additional text within that same mc into 3 separate columns. Novice that I am, I'm stumped and open to all suggestions for an optimized scripted approach. Please provide script if applicable.
Thank you in advance.
How Do I Create Rows And Columns In Text?
any one know where I can find out what HTML tags Flash supports in its text areas?
I've got a list my customer wants on their site that needs to have rows and columns. I have this info in an external file but cannot seem to format it as rows and columns.
Any idea how to handle this?
Display Dynamic Text In Columns
Does anyone know if this can be done and how to do it? I'm trying to take in a large string of text and split it into 2 columns (whether it's 1 text field instance or 2 text fields, it doesn't matter!) so that the text at the top of the second column continues where the text at the bottom of the first column left off.
I tried experimenting with character counting but it just wasn't accurate enough.
Any ideas?
Dynamic Text In Columns As In Macromedia's Edge
Hi,
I was wondering if there is any easy way to do these two things:
1. put text in columns as in Macromedia's Edge magazine. How do I go about doing something similar to that?
2. Can a text box follow a path, as it can do in publishing software (I'm thinking text to wrap around something)
Cheers
Penar
Dynamic Text In Columns As In Macromedia's Edge
Hi,
I was wondering if there is any easy way to do these two things:
1. put text in columns as in Macromedia's Edge magazine. How do I go about doing something similar to that?
2. Can a text box follow a path, as it can do in publishing software (I'm thinking text to wrap around something)
Cheers
Penar
Formatting Dynamic Text Into Columns And Paragraphs
Ive' been searching the forum for posts addressing my issue, but have yet to uncover anything. Currently I've a single scrolling dynamic text mc, where the rollover and hyperlinks are handled via CSS in ASC3 and half of the text is displayed as wrappable txt. That portion of the project was straight forward. The other portion of dyn txt needs to be formatted into 3 separate columns and displayed within the same scrollable mc. I'm looking for the most optimized scripting approach (please attach script if possible) to achieve the below desired format. (See rough visual ref below)
thanks in advance for any assistance.
SCROLLING (wrapped) Dynamic Txt
ahsjdjdjahdkhaahdjkaskjlkaskjfgfgfgfgfgfgfgf
hkhjkshjjhakjshkhasddsadsdadfgfgfgfgfgfgfgf
COLUMN_ONE....COLUMN_TWO......COLUMN_THREE
hjs......................jkjf.........................jkjk
hjs......................jkjf.........................jkjk
Need Your Help Loading Multiple External Text Into Multiple Dynamic Text Fields
Hi all,
I can't seem to get the external tex file loaded into a dynamic text field.
I am trying to display an external text file into a dynamic text field using a next page button. The layout is this I have 80 frames. Frames 1-10 with a static text field with text & a next page button and Frames 11-20 with a dynamic text field with a previous button. I want to onRelease of the next page button in the first set of 10 frames to load the external text file into the dynamic text field of the next set of 10 frames. Also, being able to jump back and forth from next page to next.
Below I layed out all the contents in my test.fla file.
Hope this will give you an understanding of what I am trying to do.
I need to be able to click a next page button and loading an external text file into a dynamic text field, vice versa.
I have set the variable in the text file.
I used this code to try and load the text file into a dynamic text field, using actinscript. Which frame or frames do I need to include this script in? I know it has got to be multiple ones.
var styles = new TextField.StyleSheet();
styles.load("cssdocName.css");
textfieldName.html = true;
textfieldName.styleSheet = styles;
var lv:LoadVars = new LoadVars();
lv.onData = function(content) {
textfieldName.text = content;
}
lv.load("htmldocName.html");
Thanks for your time!
I have 6 different layers with 80 frames:
Layer titles:
- labels
- actions
- next_prev buttons
- contents
- tabs
- outline
Now in each layer:
- outline layer: just an outline border [displayed in Frames 1-80]
- tabs layer: movie clips tab1, tab2, tab3 within each tab is a movie clip
called bottomline [displayed in Frames 1-80]
- contents layer: Static Text Field [displaying text in Frames 1-10]
Frame 1 ActionScript
stop();
Dynamic Text Field instance name dpmoreinfo_txt
[displayed in Frames 11-20]
Frame 11 ActionScript
stop();
Dynamic Text Field instance name dpmoreinfo2_txt
[displayed in Frames 21-30]
Frame 21 ActionScript
stop();
Static Text Field [displaying text in Frames 31-40]
Frame 31 ActionScript
stop();
Dynamic Text Field instance name spmoreinfo_txt
[displayed in Frames 41-50]
Frame 41 ActionScript
stop();
Static Text Field [displayed text in Frames 51-60]
Frame 51 ActionScript
stop();
Dynamic Text Field instance name cmoreinfo_txt
[displayed in Frames 61-70]
Frame 61 ActionScript
stop();
Dynamic Text Field instance name cmoreinfo2_txt
[displayed in Frames 71-80]
Frame 71 ActionScript
stop();
next_prev buttons
layers: dpmoreinfonext_btn [Frames 1-10]
Frame 1 ActionScript
dpmoreinfonext_btn.onRelease = function() {
gotoAndStop("dpmoreinfo");
};
dpprev_btn & dpmoreinfo2next_btn [Frames 11-20]
Frame 11 ActionScript
dpprev_btn.onRelease = function () {
gotoAndStop("DataPulse");
};
dpmoreinfo2next_btn.onRelease = function () {
gotoAndStop("dpmoreinfo2");
};
dpmoreinfoprev_btn [Frames 21-30]
Frame 21 ActionScript
dpmoreinfoprev_btn.onRelease = function () {
gotoAndStop("dpmoreinfo");
};
spmoreinfonext_btn [Frames 31-40]
Frame 31 ActionScript
spmoreinfonext_btn.onRelease = function () {
gotoAndStop("spmoreinfo");
};
spprev_btn [Frames 41-50]
Frame 41 ActionScript
spprev_btn.onRelease = function () {
gotoAndStop("StructurePulse");
};
cmoreinfonext_btn [Frames 51-60]
Frame 51 ActionScript
cmoreinfonext_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};
cprev_btn & cmoreinfo2next_btn [Frames 61-70]
Frame 61 ActionScript
cprev_btn.onRelease = function () {
gotoAndStop("Courses");
};
cmoreinfo2next_btn.onRelease = function () {
gotoAndStop("cmoreinfo2");
};
cmoreinfoprev_btn [Frames 71-80]
Frame 71 ActionScript
cmoreinfoprev_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};
labels layer: Frame name is DataPulse [Frame 1-10]
Frame name is dpmoreinfo [Frame 11-20]
Frame name is dpmoreinfo2 [Frame 21-30]
Frame name is StructurePulse [Frame 31-40]
Frame name is spmoreinfo [Frame 41-50]
Frame name is Courses [Frame 51-60]
Frame name is cmoreinfo [Frame 61-70]
Frame name is cmoreinfo2 [Frame 71-80]
Actions layer: Frame 1 ActionScript
contents.stop();
numberOfTabs = 3;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line.onRelease = function() {
for (i=1; i<=numberofTabs; i++) {
otherTabs =
eval("this._parent.tab"+i);
otherTabs.bottomLine._visible =
true;
}
this.bottomLine._visible = false;
contentFrame = Number (this._name.substr(3,
1));
this._parent.contents.gotoAndStop(contentFrame);
}
}
tab1.bottomLine._visible = false;
tab1.onPress = function() {
gotoAndStop("DataPulse");
};
tab2.onPress = function() {
gotoAndStop("StructurePulse");
};
tab3.onPress = function() {
gotoAndStop("Courses");
};
LoadVars: Multiple Text Boxes, Multiple Text Files.
Is it possible to use one LoadVars object to load different text files into different text boxes?
I know I can do this:
ActionScript Code:
var textLoader:LoadVars = new LoadVars(); textLoader.onData = function(content) { trace("Data loaded successfully."); someBox.text = content; };button1.onRelease = function() { textLoader.load("file.txt");}button2.onRelease = function() { textLoader.load("file2.txt");}
I know this will load two different text files into the same text field, but I want to be able to define different boxes, like maybe
ActionScript Code:
textLoader.load("file.txt", someBox.text);
though that is obviously not correct.
Any ideas?
AS3: Load Multiple Variables Into Multiple Dynamic Text Fields
I have a php file that makes this list
Code:
Cid1=3
&Lid1=22
&Title1=amazing
&Date1=1212128413
&Ext1=jpg
&Hits1=129
&Rate1=9.5000
&Cid2=1
&Lid2=22
&Title2=cool
&Date2=1212128413
&Ext2=jpg
&Hits2=129
&Rate2=8.5000
Now, I want to load the 7 bits of data into 7 dynamic text boxes.
I have to code to load a movieclip as a button onto the stage.
When I click that button I want the data to load.
I can kind of load all the data as a string into one dynamic field but don't know how to get each variable into a different text box. Any help would be great.
Regards,
Glen Charles Rowell
This is some working code for loading one variable but I need help with the rest please.
Code:
var url:String = "http://www.secretcanttellsorry.php?cid=3&orderby=ratingD&guid=on";
var Cid1:URLLoader = new URLLoader();
Cid1.addEventListener(Event.COMPLETE, completeHandler);
Cid1.load(new URLRequest(url));
function completeHandler(event:Event):void {
poptext.text = event.target.data as String;
}
Using Text Format For Multiple Fields In Multiple Frames
I'm trying to use Text Format to format all of my dynamic text fields in my movie. My code looks like this:
Code:
var content_fmt:TextFormat = new TextFormat();
content_fmt.color = 0x666666;
content_fmt.font = "Arial";
content_fmt.size = 12;
course_txt.setTextFormat(content_fmt);
I put it on the first frame of my movie. Unfortunately with setTextFormat, it needs to be set for every instance of text field. I don't want to have to copy and paste this code into keyframes across my whole movie. Is there a way to have it check for the field in each frame and apply the colors? Maybe with a for loop?
Columns
Greetings all,
I'm building a game very similar to the old sega game Columns. Which is similar to Tetris. I've done lots of tutorials in actionScript and I'm able to do some simple tasks without reference, I'd say I'm at an early intermediate stage(if you care about my background).
Anyhoo, heres what I'm after and where I'm at. I want to have a column drop down, each column consists of 3 "gems" of a random color. the user will be able to switch the order of these colored gems by pressing the up button, the columns will not rotate. When the column hits the bottom or the colums already sitting below it, it will check to see if there are 3 or mor adjoining gems of the same color, if there are those gems will dissapear and the gems will drop to the lowest point. the check will then be done again to see if that caused 3 adjoining similar gems again, when there are no more sets of 3 another column will drop and everything repeats until a set point limit is established where they will drop slightly quicker.
My question, as I am just getting started(there will be more I assure you) is how should I construct these columns, 3 graphic symbols? if so, how do I make them apper and randomize them, one movie clip? if sohow do I check for concurrent colored blocks. Am I getting in over my head? Any help is greatly appreciated.
Cheers,
Justin Miles
Columns Again
I'm still working on my columns game for those that helped earlier and I've run into a bit of a problem. Here's what I'm doing, I wand a game where a column of 3 blocks of various colors drops down and when the user gets 3+ shapes of the same color together, they dissapear.
How I decided to go about this was to create a movie clip containing 4 frames, with all different colors, 1 being blank. I then populated the board with 1 movie for each position in a multi-dimentional array to keep track of the places. here is the function I used to populate that map:
function buildMap (map) {
var mapWidth = 11;
var mapHeight = 15;
for (var i = 0; i < 15; ++i) {
for (var j = 0; j < 11; ++j) {
this.attachMovie("tile", "t_"+i+"_"+j, ++d);
this["t_"+i+"_"+j]._x = ((j*tileW) + 13.9 );
this["t_"+i+"_"+j]._y = ((i*tileH) + 14.3);
this["t_"+i+"_"+j].gotoAndStop(0);
}
}
}
As you can see this produces the board but all positions are blank. This one works. Here's the array in case it helps:
curFrameArray = [ [0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0] ];
So far so good.
I then placed this code onto an empty movie with 2 frames called timer:
onClipEvent (enterFrame) {
if (_root.fall._y <= 378.3) {
_root.fall._y = _root.fall._y + 24;
_root.yCord++;
}
else {
this.stop();
Xmap = _root.xCord;
Ymap = _root.yCord;
_root.movement = "Stopped";
_root.mapChange (Xmap,Ymap);
_root.mapBuild2();
_root.fall._visible = false;
}
}
Here's where the problems come in mapChange() was supposed to store the current frames of the 3 tile movies.
But I don't think it is.
function mapChange (xC,yC) {
_root.curFrameArray[xC][yC] = _root.fall.c._currentframe;
_root.curFrameArray[xC][yC-1] = _root.fall.b._currentframe;
_root.curFrameArray[xC][yC-2] = _root.fall.a._currentframe;
}
If mapChange is working then mapBuild2() is not. Here's that one:
function mapBuild2 () {
for (var i = 0; i < 15; ++i) {
for (var j = 0; j < 11; ++j) {
"t_"+i+"_"+j.gotoAndStop(curFrameArray[i][j]);
}
}
}
Either way, I've been pouring over this code for hours and cannot find my fault. I've never undertaken a project like this before, I'm glad I did, but I need some help, any and all comments appreciated, as I'm still getting the hang of all this programming.
Thanks,
Justin
.xml Columns
How do I add columns in .xml files attached to my .swf file. example: Song Title Album Artist
Thank you
Listbox Columns
is there a simple example of how to setup a listbox component with, say, 4 different columns of data? (an explanation/example that doesn't look like an encyclopedia?)
I like the clean look of the columns and also the way it expands to the width of the widest element but i don't have any idea how to set this up. thank you, dave
Sort Columns
Is there a component that users can download that allows a visitor to by sort columns, just as on the page http://www.macromedia.com/cfusion/ex...fm?view=sn110?
If I have a table with 5 colums, I want the user to be able to sort by name, date, title, etc. when they click on the column title, it will sort. Much like windows, when you click on a column in folders you can sort by date or name and it shows that little down arrow on the colum you are selecting.
Stumped..php/columns
First off, for all those people who had helped me with my php/as i truly apprecciate it - i finally had some time today to look at what i was doing and got it working but....
in the dB I have a column called optionCodes which contains data like this:
17G 1SC 74U AJ1 B57
and another column (Options) with data (array) like this:
Medium gray Preferred equipment group Wildfire red Deep tint glass Monotone appearance package
what i would like to do, if it is possible, is to combine these two columns into a datagrid (uneditable as well - read only).
Currently, the options column is stored as a memo field in MySQL and i will need to split it accordingly (no idea).
the output should be like the following:
17G Medium Gray
1SC Preferred Equipment Group
74U Wildfire Red
AJ1 Deep Tint Glass
B57 Monotone appearance package
Can anyone help me with this?
thanx
rigpig
Rows And Columns
Ok I have problem ... I need to dup some MCs into 3 columns of "X" amount of rows
I can get it so it makes 2 rows ... but I can seem to get past that ...
I've attached the fla file ...
Can anyone please help me ...
I know its something simple, I'm just over looking
thanks
-S
Help Sorting Columns
guys,
i've got a problem when sorting columns using sortOnHeaderRelease, coz it's case sensitive. so if i have a list of "bob","john","charlie", and "Brom", it will be sorted as "bob","charlie","john", dan "Brom". i want it to sort as "bob","Brom","charlie","john". any idea how to do that ?
thanks in advance
Rows And Columns...
Basically, when I load my external file, I would like it to be displayed in a row and column view. In other words, like a spread sheet.
I created space in the text file by tapping between each piece of info in the original text file but Flash display's it in a wacky way. None of the "columns" are lined up properly.
I'm using basic code to call up the text file:
Code:
var loader:URLLoader = new URLLoader();
var myRequest:URLRequest = new URLRequest("chris_disco.txt");
loader.load(myRequest);
loader.addEventListener(Event.COMPLETE, tb)
function tb(e:Event){
myText.text = (loader.data);
}
Is there some magic bullet that I seem to be missing.
PS - I apologize if I'm making no sense what so ever, I didn't get much sleep .
[MX] Columns Like Game HELP
Greetings for all I'm developing the game whick is similar to the Columns.
I'm familiar a bit with AS, but my knowledge is still pure... Is there any tutorial or sample, or maybe someone has the source? I've started with the sample posted in this forum, but I have problems with collision depending on _x.
Maybe someone can suggest me, what's the best way to do this kind of game?
I preffer not using HitTest.
Thanks
Columns For XML Gallery
Hi! I'm nearly there but I can't get this scipt to work!! Its a basic gallery I'm building that imports images via xml with thumnails. Problem is I started trying to make columns and it wont work! I'm nearly there though I can smell it! The Column bit is declaired at the top and in a for statement at the bottom! Can you take a look?
Thanks Gavin
Attach Code
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
//////////////////////////USE TO CHANGE STUFF
count = 4;
columns = 2;
colspacing = 150;
rowspacing = 130;
//////////////////////////
colcount = 0;
rowcount = 0;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes[i];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
//this.thumbHolder._y = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
for(var i=0; i<count; i++){
this.thumbHolder['thumbnail_image'+i]._x = (colspacing * colcount++);
this.thumbHolder['thumbnail_image'+i]._y = (rowspacing * rowcount);
if(colcount==columns){
colcount=0;
rowcount++;
}
}
myPhoto.load("xmlphoto.xml");
Columns For Gallery
Hi! I'm nearly there but I can't get this scipt to work!! Its a basic gallery I'm building that imports images via xml with thumnails. Problem is I started trying to make columns and it wont work! I'm nearly there though I can smell it! The Column bit is declaired at the top and in a for statement at the bottom! Can you take a look?
Thanks Gavin
Attach Code
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
//////////////////////////USE TO CHANGE STUFF
count = 4;
columns = 2;
colspacing = 150;
rowspacing = 130;
//////////////////////////
colcount = 0;
rowcount = 0;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes[i];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
//this.thumbHolder._y = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
for(var i=0; i<count; i++){
this.thumbHolder['thumbnail_image'+i]._x = (colspacing * colcount++);
this.thumbHolder['thumbnail_image'+i]._y = (rowspacing * rowcount);
if(colcount==columns){
colcount=0;
rowcount++;
}
}
myPhoto.load("xmlphoto.xml");
|