Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Moving Data Between Lists



Hi there. I don't know if this is something that can be explained to me but here goes:

I have two lists next to each other on my page. In between the lists, I have two buttons. One says "add" and one says "remove". When you select data in the left box and click "add", it moves it to the box on the right. When you select data in the box on the right and click "remove" it moves it back to the box on the left.

I have all the components on the stage, but don't know how to make this work. Can anyone give me any ideas on how to start?

I am not very good with scripting at all - I am more of a designer.

Any help would be greatly appreciated!!

Thanks!

-Lyn



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-31-2006, 04:22 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Moving Data Between Lists
Hi there. I don't know if this is something that can be explained to me but here goes:

I have two lists next to each other on my page. In between the lists, I have two buttons. One says "add" and one says "remove". When you select data in the left box and click "add", it moves it to the box on the right. When you select data in the box on the right and click "remove" it moves it back to the box on the left.

I have all the components on the stage, but don't know how to make this work. Can anyone give me any ideas on how to start?

I am not very good with scripting at all - I am more of a designer.

Any help would be greatly appreciated!!

Thanks!

-Lyn

How Do I Display Data From 2 Lists In A Single Barchart Component
Hello Everybody,

I'm new to flash. I'm using the flash barchart component, which gets the values from a cfc via remoting. See the below code. It magically works.

var theData = new DataProviderClass();
var items = new Array();
for (var i = 0; i < list_temp.length; i++) {
items = {bytes: "", value: list_temp};
}

for (var i = 0; i < items.length; i++) {
theData.addItem(items);
}

myChart.setDataProvider(theData);

In the code above I'm looping through the list (list_temp - ex: 100,200,300,400,500) and pushing its contents in a array (items). Looping through the array and pushing the values to the top of the chart's data provider and finally setting the instance of the chart component with the data.

So all this works fine. I want to now pass another list of data to the same chart. So I want the chart to display the data from two lists. I don't know how to do this and need your help.

Basically I want my graph to represent the sales figures in the current month and sales figures in the last month. If possible display the sales figures in two different colors. I hope this is making sense. Please help

Allan


Moving Data From Mc's
Same fla but different mc's...

button_mc i got this code:


ActionScript Code:
on (release) {
    meny = "meny1";
    nummer = "3";
    loadText = new LoadVars();
    loadText.load("text"+nummer+".txt");
    loadText.onLoad = function(success) {
        if (success) {
            // trace(success);
            newsBox.html = true;
            newsBox.htmlText = this.myNews;
        }
    };
    play();
}



In text_mc i try to access it and I dont understand whats wrong.


Fla can be found here!

Moving Data And Search Engine
Hi all,
if anyone can give me feedback or suggestions on how to do any of this, I'll be really happy.

Scenario: I'm developing an interactive catalog CD Rom in flash 5. Each product hasa page dedicated to it(containg oder specifications - fields) and contains an "order" button. When the user clicks on the order button I need to move the information from the fields to the client.

Can I make the computer take a screenshot of the completed order form and paste that into an e-mail, if I can how?

My second question is, for this CD I need to create a search function where the client can either use the product code or product name, I would probably have to include broad search terms and have flash move to those categories. Can this be done with flash?

Thanx
Maw

Losing XML Data When Moving Between Frames
Now missing patches of hair on this!

Here is the original thread Loading data from xml file...strange conflict?

Can anyone offer any additional suggestions?

Losing XML Data When Moving Between Frames
Now missing patches of hair on this!

Here is the original thread Loading data from xml file...strange conflict?

Can anyone offer any additional suggestions?

Moving A Movieclip Based On Xml Data
I am trying to move a movieclip based on the number of nodes in the xml. In other words I want it to only move based on the number of "name" attributes that are within the xml. I am trying to create a dynamic portfolio and I can't seem to get it to move correctly. I have included below a sample of the xml and actionscript.

Code:

<?xml version="1.0"?>
    <select>
      <option name="TJ Photography" value="./gallery/pdf/tj.pdf" desc="./gallery/txt/tj.txt" pic="./gallery/preview/tj.jpg"></option>
      <option name="TJ Photography" value="./gallery/pdf/tj.pdf" desc="./gallery/txt/tj.txt" pic="./gallery/preview/tj.jpg"></option>
      <option name="TJ Photography" value="./gallery/pdf/tj.pdf" desc="./gallery/txt/tj.txt" pic="./gallery/preview/tj.jpg"></option>
      <option name="TJ Photography" value="./gallery/pdf/tj.pdf" desc="./gallery/txt/tj.txt" pic="./gallery/preview/tj.jpg"></option>
    </select>


Code:

importXML = new XML();
importXML.ignoreWhite = true;
importXML.onLoad = function(success) {
   if (success) {
      var xmlContent = this.firstChild;
      //trace(this.firstChild.childNodes.length);
      menuContent = new Array();
      for (var i = 0; i<this.firstChild.childNodes.length; i++) {
         nextEntry = xmlContent.childNodes[i];
         menuContent[i] = [nextEntry.attributes.name, nextEntry.attributes.value, nextEntry.attributes.desc, nextEntry.attributes.pic];
      }
      //trace(menuContent);
      menuLength = menuContent.length;
      elementspacer = 1;
      var menuItem, yPosition = 200;
      var menuItem, xPosition = 140;
      createEmptyMovieClip("clipContainer", 1);
      for (var i = 0; i<menuLength; i++) {
         clipContainer.attachMovie("element", "menuItem"+i, i);
         thisClip = clipContainer["menuItem"+i];
         thisClip.menuName = menuContent[i][0];
         thisClip.destination = menuContent[i][1];
         thisClip.description = menuContent[i][2];
         thisClip.image = menuContent[i][3];
         thisClip._y = yPosition;
         thisClip._x = xPosition;
         yPosition += Math.floor(thisClip._height+elementspacer);
         createEmptyMovieClip("maskContainer", 2);
         maskContainer.attachMovie("mask", "newMask"+i, i);
         maskContainer._x = 75;
         maskContainer._y = 200;
         clipContainer.setMask(maskContainer);
         //////////////////////////////////////////////////
         clipContainer.onEnterFrame = function() {
            if (scrollUp == true) {
               clipContainer._y += xmlContent.firstChild.attributes.name;
            } else if (scrollDown == true) {
               clipContainer._y -= xmlContent.firstChild.attributes.name;
            }
         };
         //////////////////////////////////////////////////
         scrollerUp.onPress = function() {
            scrollDown = true;
         };
         scrollerUp.onReleaseOutside = function() {
            scrollDown = false;
         };
         scrollerUp.onRelease = function() {
            scrollDown = false;
         };
         scrollerDown.onPress = function() {
            scrollUp = true;
         };
         scrollerDown.onReleaseOutside = function() {
            scrollUp = false;
         };
         scrollerDown.onRelease = function() {
            scrollUp = false;
         };
         //////////////////////////////////////////////////
      }
   } else {
      trace("Error loading xml");
   }
};

Moving Data From HTTP Service To A Component
Hey

Is it possible to move data from a HTTP service into another Component?

In the Application I start the HTTP service (for getting a Rss xml). But how can I get the data from the HTTP service over in another or a extren component?

Lists
I have this function:

Problem is, it will delete a whole list instead of just the same item in every list.

the dataproviders are arrays name dp0 - dp20, and the lists are newItems0-newItems12, and the list to click stuff in is availableItems.

Any ideas? Thanks.


Code:
function updateLists(e:Event):void {
for (var i:Number = 0; i<dp.length; i++) {
if (availableItems.itemToLabel(availableItems.selectedItem) == dp[i]) {
var numNum:Number = i;
for(var a:Number = 0; a<21; a++) {
home["dp"+a].splice(numNum, 1);
trace(home["dp"+a]);
}
trace("working");
}
trace(dp);
trace("============");
}
availableItems.dataProvider.removeItem(availableItems.selectedItem);

for(var c:Number = 0; c<13; c++) {
this["newItems"+c].dataProvider = new DataProvider(home["dp"+c]);
}
}

XML Lists?
Posible?

like:
product here..
product here..
produkt with extra
info and so on
like 1 row more
or 2 lines
hehe
or just 1 productitem info here?
Or.. as in columns?

thnx in advanced.

XML Lists?
Posible?

like:
product here..
product here..
produkt with extra
info and so on
like 1 row more
or 2 lines
hehe
or just 1 productitem info here?
Or.. as in columns?

thnx in advanced.

Mailing Lists
Hey does anyone know how to use a mailing list? I have been to many turtorials on how to use contact fields, and php, but i don't want there to be three lines of text. For intense a message field, email field, how did i hear about this field, exe. I just want there to be one simple line that says email then a spot where the person can time there email then a send button that has actionscript. or something simular to that.

Does anyone know where i can find turtorials, or something similar to this? Or do you think mabey u can just explain it to me really quick.

Thanks, i appreciate all the help.

Variable Lists
In Flash 5 can you have variable lists? i.e. give a variable a value like - 'set variable Alpha = [a, b, c, d, e, f, g]' and then right other code to retrieve specific or random data from that list e.g. 'set variable Letter = Alpha, random (6)'

I know this is possible in other object orientated languages such as Director's Lingo... is it possible in Flash 5?

Mailing Lists
I can't seem to find the scripting to this; i'm trying to create a field for visitors to enter in their email adress to join my mailing list, and somehow forward that info to my adress.

this is possible in flash isn't it?


Thanks

Mailing Lists? HOW ?
Ok! this is going to be a shot in the dark.
You know when you go to some peoples sites they have you put your email address before you visit the main site so that they can add you to their email list. How can you do that in Flash MX. I have no clue. I should but i have never even thought about it. If any one out there knows, please share the wealth.
Thanks
Peter Hubner.

www.southwestern.edu/~hubnerp

Scrolling Lists
I have a list, like a DESCRIPTION and PRICE in a .txt file and I need it to load so that it's scrollable and the prices line up with the text.

Right now, it loads fine, but nothing is lining up (like the price will be in the middle of the line, then the next descritption will start at the end of a line, etc.).

What is the best (and I know nothing of XML or any more complicated solutions) to do this?

Linked Lists
hi, im new to the list concept. is there a way to make linked lists in actionscript? lists that organize themselves... please help, thanks!!!!

XML Lists Within Flash MX
Hey all,
I was wondering if there was any way to format the bullet color of lists (li - /li) within Flash MX. For some reason even though the text color is set to both white within the movie and within the font tag in the XML i still am getting black bullets. I need white. So as you can see we have a slight problem. I was wondering if anyone had a workaround/soultion to this problem.

Thanks!
-JB

Mailing Lists
hi,

i have a mailing list set up already on a html site, and i was wondering how to intergrate it on to my flash site.
i am using flash mx 2004 pro

thanks

ric

Lists In Flash
I've got to make a scrolled text box containing a menu with 3 columns - item - eat in price - take away price. What's the best way to make it look neat? So it looks like it's tabbed in Quark or Word.

Lists And The Ctrl Kay
Is there a way to make the rows of this list to be selected without the necessity of holding the Ctrl key down? Or I should use check boxes insted of the list componente?

var myCounties: LoadVars = new LoadVars();
myCounties.onLoad = function() {
//this populates my list with the names of the counties
for (i=1; i<=myCounties.total; i++) {
counties = eval("myCounties.c" + i);
countiesList_lb.addItem(counties);
}
};
myCounties.load("counties.txt");
var countiesList_lbListener:Object = new Object();
countiesList_lbListener.change = function(){
index_txt.text = countiesList_lb.getSelectedIndex(); //this aids me to see the out put
label_txt.text = countiesList_lb.getSelectedItem().label;
selectedCounties = new Array(); //the multiple selections arre stored in this array
selectedCounties = countiesList_lb.getSelectedIndices();
selected_ta.text = selectedCounties;
}
countiesList_lb.addEventListener("change", countiesList_lbListener);

[B]Drop Down Lists[/B]
Hello

I am interested in making a drop down list in Flash. I mean a list that the user can roll the mouse over and it should drop down, then each one of the options on the list contains an URL link for example.

Is this possible in Flash? or do I have to use something else like Javascript?

Thank you

R

[F8] Lists In Flash
I was thinking about trying to create a application in flash where a user could input text and when you click an add button it would add it to a list. But I have no idea how to do this. Ive messed around with a few ideas and mainly had problems with only being able to add one item. So I dont know if there is any way that this would be possible but any help would be appreciated.

Thanks!

Linked Lists
I'm working on a program that is a bunch of nodes webbed together. each node has six possible directions, so it works like a hive. similar to a linked list, which only has two possible directions - forward and backward in the list.
does anyone know a good way to implement something like this? is it called something? what would be a good strategy for adding nodes? and checking to see if there's already a node where you're trying to add one?

Horizontal Lists
Hi everyone,

Is there a way using actionscript to show a list of dynamically created flv thumbnails horizontally. I'm using the list component and I've set the scroll bar to hScrollPolicy = "on"; but my list of thumbs are still vertical so I can only see one thumb and can't scroll to the others. I'm using and external XML file to list items, but I don't how I can edit this to change the list to horizontal or use actionscript. If anyone can help me I would be forever grateful.

Kind Regards,

Darren.

PS: here's the actionscript I've been using

list.setSize(300, 100);
list.hScrollPolicy = "on";
list.vScrollPolicy = "off";
list.maxHPosition = 200;

CSS For Bulleted Lists
I was just wondering if anyone has succesfully managed ot style bulleted list -

HTML Code:
<UL><LI>eeny</LI><LI>meeny</LI><LI>myney</LI><LI>mo</LI></UL>
- in flash using external CSS?
I have to do it but am wondering what types of style it will support. I can't find any documentation on it.

thanks,
Andy

Filtered Lists
I've a list of items.
In list one, in the pull down menu, you choose one. Based on that choice, a second list populates, you choose one of those, it causes another list to populate and from that it gives you the final list.

Any help would be appreciated.
__________________________________________________ _
Example:

LIST ONE:
Fruit
Veggies

If you choose fruit:
LIST TWO:

Apples
Oranges
Bannannas
Kiwi
Strawberries

I only want red fruit:
LIST THREE:

Apples
Strawberries

Tile Lists
The jpeg's in my tile list are different colors. Some are just fine, but others are distorted.

Tile Lists
Does anyone have any Idea why the .jpeg in my tile list change color even though the actionscript is the same

Sorting Lists
ok so i have 2 arrays, a and b... in array a i have a bunch of random numbers.... now i want to loop through array a find which of the elements is the largest. for example if a[4] is the largest number in the a[] then i want b[1] = 4 and so on.... its kind of hard to explain -_-

here's an example of what i want...

//array a full of random numbers:
a[1] = 4
a[2] = 3
a[3] = 1
a[4] = 8
//array b with assigned values
b[1] = 4
b[2] = 1
b[3] = 2
b[4] = 3

so if a[4] is the bigest, b[1] will have 4 and if a[1] is second biggest, b[2] will have 1 and so on... is there an algorithm that can do this for me with an array length of X???

-zylum

Mailing Lists
Hey guys, I want to set up a mailing list for my website and was wondering if there were any tutorials or suggestions? My hosting provides mysql and php so whatever is out there.

Thanks in advance.

Multicolumned Lists.
I've been trying out site design recently and decided that i wanted to have a multicolumned list but wasn't able to attain my desired effect using css, so i wrote this little javascript that can incorporate css.

it's very simple to use. here is the html document:


HTML Code:
<html><head><title>Multi-Columned List by Paul Scott (paul.scotto@gmail.com)</title>
<style type="text/css">ul { float: left; clear: right; width: 60px;} body { font-family: "verdana"; font-size: 12px; }</style>
<script language="JavaScript">

//THESE ARE THE VARIABLES YOU EDIT:
var items = [["1", "?1"], ["2", "?2"], ["3", "?3"], ["4", "?4"], ["5", "?5"], ["6", "?6"], ["7", "?7"], ["8", "?8"], ["9", "?9"], ["10", "?10"]];
var columns = 3;
var fillStyle = 1;

function writeList() {
var contentArray = [];
for (i=0; i<columns; i++) { contentArray[i] = []; }

if (fillStyle == 1) {
var offset = 0;for (i=0; i<columns; i++) { var itemsinCol = Math.ceil((items.length-offset)/(columns-i)); for (j=offset; j<itemsinCol+offset; j++) { contentArray[i].push(items[j]); } offset += itemsinCol; }
} else if (fillStyle == 2) {
for (j=0; j<items.length; j++) { contentArray[j%columns].push(items[j]);}
} else { fillStyle = 1; writeList(); return; }

for (i=0; i<contentArray.length; i++) {
document.write("<ul>");
for (j=0; j<contentArray[i].length; j++) { document.write("<li><a href=""+contentArray[i][j][1]+"">"+contentArray[i][j][0]+"</a></li>"); }
document.write("</ul>"); } }

</script></head><body>

<script language="JavaScript">writeList();</script>

</body></html>
`items` is an array containing the information you want in the list. each item is an array with two items inside it. item[i][0] is the displayed text and item[i][1] is the link.

`columns` is the number of columns to display in the text

`fillStyle` is how the list is display, for example you may want your list to look something like this:

Code:
(fillStyle = 1):
a d g
b e h
c f
of

Code:
(fillStyle = 2):
a b c
d e f
g h
this is a very flexibile script so i kept it pretty simple for your customisation benefits. enjoy

Linked Lists
I'm using the DLinkedList class from AS3 Data Structures For Game Developers at http://lab.polygonal.de/ds/ and i'm having trouble accessing the data in a workable way.

I've set it up as follows to create a multidimensional linked list.


Code:
//create linked list
layerContents[1] = new DLinkedList();

for (var l:uint = 1; l <=15;l++){
//create a node within linked list with another linked list
layerContents[1].append(new DListNode(new DLinkedList()));
}
//create an iterator to access the first linked list
var itr:DListIterator = layerContents[1].getListIterator();
When i can veiw the current node data like this


Code:
trace(itr.data + "CURRENT NODE DATA")
The problem is, unlike an array I can't go "myArray[1][5].aMethod", I need to use the append method on the object that the data returns, which would be another Linked List. I can't work out how to do it.

Help would be appreciated.

Matching XML Lists?
Hi All,

I have a Events List, and a Players list.

An Event can have players:
<profilename>Scottie Naoise</profilename>
<profilename>Kenny Hubert</profilename>


Whilst the Player list contains all the players:
<profilename>Scottie Naoise</profilename>
<profilename>Nicholas Amédée</profilename>
<profilename>Ulrich Cai</profilename>
<profilename>Lennie Kentigern</profilename>
<profilename>Xander Déodat</profilename>
<profilename>Kenny Hubert</profilename>
<profilename>Lieven Marcellin</profilename>
<profilename>Yanick Isidore</profilename>


ActionScript Code:
trace("profilename player" + xml..profilename)    trace("profilename event" + xml..player)


How can I compare both lists to load up the matching Players?

Thanks,
Ian

Sorting Lists
ok so i have 2 arrays, a and b... in array a i have a bunch of random numbers.... now i want to loop through array a find which of the elements is the largest. for example if a[4] is the largest number in the a[] then i want b[1] = 4 and so on.... its kind of hard to explain -_-

here's an example of what i want...

//array a full of random numbers:
a[1] = 4
a[2] = 3
a[3] = 1
a[4] = 8
//array b with assigned values
b[1] = 4
b[2] = 1
b[3] = 2
b[4] = 3

so if a[4] is the bigest, b[1] will have 4 and if a[1] is second biggest, b[2] will have 1 and so on... is there an algorithm that can do this for me with an array length of X???

-zylum

Mailing Lists
Do you have a mailing list?

If so what software/techniques do you use? Any experiences?

I started to use qmail because it came with my host, but I had complaints about people not getting it. I think it was because it was getting lost in junk mail filters, dunno.


F8 Upload Lists
Hello all,

I am trying to optimize an upload tool build in html by using the flash 8 upload goodness. I have used the download features, but haven't had time yet to play with the upload feature. The tool I looking to rebuild will allow the user to select up to 10 files and press submit. As it currently works, the form will attempt to upload all 10 images, after which it will begin converting each image into the 5 different sizes used on the site. This batch upload is resulting in frequent timeouts and instabilities.

What I would like to do is upload only 1 at a time, but I would like to preserve the one-step for the user and manage the one at a time by managing the events. Would also like to send messages back to the client to let the user know what is happinging, ie: "creating thumnail 1 of 5".

Question is, is there a way to que the uploading of these files in this fashion. If there were 10 images, I guess I might need 10 filereference instances, each with one image, sitting an a que array. Not sure about any security issues that may be involved, however. It is possible to wrap in zinc or another similar app (haven't done so personally), and run locally.

Thx!
Aaron

Bulleted Lists
Hi all

Does anyone know how to do bulleted list within bulleted lists? been trying for ages

Dan

Dynamic Lists
Hi all I am working on a new project and I think that using the List Component will work best for what I am needing to do.

I need a little help with implementing this however.
Basically, I have an XML document that is structured as so:


Code:


<categories>
<catg num="1001">
<objects>
<object ID="111" />
<object ID="222" />
</objects>
</catg>
<catg num="1002">
<objects>
<object ID="333" />
<object ID="444" />
<object ID="555" />
</objects>
</catg>
</categories>



Now I have movie clips positioned on the stage that have instance names that correspond to the different "catg num" (ie: 1001, 1002...) and I want to dynamically create a list componet inside these movieclips and fill it with the object ID numbers that fall under each catg.
I know this is probably more or less a simple nested loop function I just dont really know how to get started.

I have started to work around with parsing the XML and this is what I have been using:


Code:


function loadcatg(catg_xml){

var categories = catg_xml.firstChild.childNodes;
for (var p=0; p<categories.length; p++){
// CREATE LIST INSIDE MC
var catg = categories[p];
var objects = catg.firstChild.childNodes;
for (var s=0; s<objects.length; s++){
var object = objects[s];
// POPULATE LIST
}
}
}

var catg_xml = new XML();
catg_xml.ignoreWhite = true;
catg_xml.onLoad = function(success){
if (success) loadcatg(this);
else trace("Error loading XML file");
}
catg_xml.load("catg.xml");



Any help or direction would be greatly appreciated. Thanks in advance!

Question About Seperate Lists
I have been toying around with flash for a little while (im not very good at it), and have been asked to make a username and ID screen. I have seen a few in the user fla's, and wanted to know if there is a way to have the username and ID list seperate so someone could add/delete users without having to redo the swf?

Scrolling Lists Of Objects
hi folks, got a bitbve problem

its about scrolling windows in flash, all i can find is how to scroll a text field, i need to scroll a set of images, as they need to be buttons, because i need to activate movie clips and layered movies over the top, i dont think i can do that with basic html text in a scrolling window in flash.. unless this is something the text links can do with javascript/fscommands or something.

i cant seem to find relevent help/code to describe how to do this with flash objects.

whatdja think?

Cant Show Lists Respectively With Generator
i have a ticker which have attached nine different MC using a txt file. i put a {name} variable into each of the MC and the text in the txt file is like following:

clip, name, date
a01 mc, name: three in one, 1999
a02 mc, name: bug, 1999....etc

another MC "info" which has the {name} and {date} variables, replicate the data from the txt using generator. Within this, i assign {name} as the frame label and stop(); in the first frame.
initially, i want to click the MC in the ticker and call the "info" MC to show the different info respectively. However, the result is it only can show the first info regardless of whatever MC i click.
would anybody help me to solve this? thanz a lot!!!!

Emai/mailing Lists?
Hey does anyone know how to use a mailing list? I have been to many turtorials on how to use contact fields, and php, but i don't want there to be three lines of text. For intense a message field, email field, how did i hear about this field, exe. I just want there to be one simple line that says email then a spot where the person can time there email then a send button that has actionscript. or something simular to that.

Does anyone know where i can find turtorials, or something similar to this? Or do you think mabey u can just explain it to me really quick.

Thanks, i appreciate all the help.

Flash Mailing Lists
Hello,
This is my first time attempting this and I have no idea where to start. I need to make up a mailing list in Flash and do not know where to get the action script...If someone knows please get back to me asap!!
LKS

Combobox Bug With Long Lists?
I have a flash file that has two combobox components on it. Both boxes have labels that are numeric. When the list is short - say 5 numbers in the box, the .swf compiles no problem, and the flash is well-behaved.

However, when I made both lists 10 entries long (values 2-10 for both), compiling the .swf put it into an endless loop. I ended up with a runtime error - "R6025 - pure virtual function call".

I spent a whole day isolating this problem, and I'm quite confident that it's a problem in the combobox rather than in other areas of my code.

Lists In Dynamic Txt File?
Since the <ul>, <li> & other types aren't supported in dynamic html txt files, is there another way to have a long text that goes past the 1st line, like this:
[list=1][*]bla bla bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaaa bla bla bla bla blaaaa bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaa bla bla bla blaaa bla [*]bla bla bla bla bla bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla blaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaaaaa bla bla bla bla bla bla bla bla bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaa bla [/list=1]
Instead of like this:

1. bla bla bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaaa bla bla bla bla blaaaa bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaa bla bla bla blaaa bla
2. bla bla bla bla bla bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla blaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaaaaa bla bla bla bla bla bla bla bla bla bla blaaaaa bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaaa bla

This is a long way of explaining but I don't know the formatting term?
I've seen a lot of posts on the subject, but no real answers.
Can anyone help??
Thanx to those who can...

High Score Lists
How would i go about making one of these? You wouldnt have to register or anything just have a button submit or play again and if you clicked submit then it would send the high score to the list unless it was lower than your last score. I dont need any special functions on it or anything. What is a good free web host that will allow me to host one? Are there any tutorials that will show me how to make one or at least give me some help?

thanks

Linked Lists (other Suggestions Welcome)
I'm working on a website that displays a column of images scrolling down the right side of the screen. There's several things that I want to happen. First of all, the images displayed need to be different for each page. The page itself loads on the left with the images remaining uninterupted. In other words the home page loads and the image set for the home page begins scrolling. You click a new page and the new image set will start loading after the last loaded image from the first set. I hope that makes sense.

Alright, next problem. The images need to repeat while staying on the same page. If you switch pages the images from the previous page should be unloaded so as to not hog resources.

The images are small and I'd like to be able to make the images clickable to show the users a bigger image.

Alright with all those requirements I have the images loading from one source (forgot to mention the images aren't included in the swf) and scrolling smoothly. I was previously thinking once the images hit bottom I would have them scroll back up, but this looked bad. So I thought if created a linked list I could be able to track the tail image, move it to the head, and reassign the new tail image, and at the same time move the actual image to the top. This would also allow me to track the images as thumbnails for loading larger images. I feel like this has gotten a little out of control. I'm a competent programmer and I've programmed linked lists in C++ numerous times. However, I find no mention of pointers in Actionscript. If I'm not mistaken creating objects equal to previous and next images would triple my resources required for image loading.

I apologize for this being rather lengthy, but if anyone knows any efficient way to create a linked list in actionscript, or has an alternative solution to my problem I would GREATLY appreciate the help. I also understand that some of this may have gotten kind of muddled so if clarification is required please don't hesitate, I'll be watching the boreds as closely as possible.

Who Knows It? - Lists To Variables And Back Again
ok...im making some great progress on my flash form...one thing thats still gets me is...

How can I take the text or info that is in a list component and put it in a variable?

I have a list that is populated by a script on the main time line...it uses add lines...what I need is to be able to have the info in the list get passed into a php and to have the list re-populate when the used changes pages and then comes back...

I have gotten this to work for textareas and combobox...but i still am trying to figure out lists. Can anyone help me with lists? Do I need an array varible..i just don't know enough about coding yet

-------
for the combo box the code I have, and it works is:

on (focusOut) {
_root.response = this.getValue();
trace(_root.response);

}

in the main time line I use an if statement to test the value and set the combo box to the right state

if (_root.response == "Fax") {
this.responselist.setSelectedIndex(1);
}
if (_root.response=="email") {
this.responselist.setSelectedIndex(2);
}
if (_root.response == "phone") {
this.responselist.setSelectedIndex(0);
}

The Text area i used
on (focusOut) {
_root.details = this.text;
trace(_root.details);

}

and the main timeline resets what the user typed with this code:

this.detailsbox.text = details;

--------
(I have the combo box and text area working, but not the list)


****
HERE IS THE CODE THAT SETS THE LIST Component

Instance name: log

****



import flash.net.FileReference;

var allTypes:Array = new Array();

var imageTypes:Object = new Object();

allTypes.push(imageTypes);

var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
log.addItem("File selected for upload");
filename_txt.text = file.name;
size.text = file.size;
type.text = file.type;
name.text = file.name;
datem.text = file.modificationDate;
datec.text = file.creationDate;
}

listener.onCancel = function(file:FileReference):Void {
log.addItem("File upload/download cancelled by user");
}

listener.onOpen = function(file:FileReference):Void {
log.addItem("onOpen: " + file.name);
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
progress.mode = "manual";
progress.setProgress(bytesLoaded, bytesTotal);
log.addItem("bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal);
}

listener.onComplete = function(file:FileReference):Void {
progress._visible = false;
log.addItem("File is uploaded");
}

listener.onHTTPError = function(file:FileReference, httpError:Number):Void {
log.addItem("HTTP Error :" + httpError);
// Write code here to do corrective actions
}


listener.onIOError = function(file:FileReference):Void {
log.addItem("An IO Error occured");
}

listener.onSecurityError = function(file:FileReference, errorString:String):Void {
log.addItem("SecurityError: " + file.name + " ErrorString: " + errorString, "Error");
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);

browse.onRelease = function()
{
upload.enabled = true;
fileRef.browse();
}

upload.onRelease = function()
{
this.enabled = false;
/*** Change the URL here to point to the location where your upload.php resides **/
fileRef.upload("http://localhost/upload.php");
}

SO for lists I would like do something similar as with the combo box and text area but just cant seem to get the code right. o.k. thanks.
Mike

Copyright © 2005-08 www.BigResource.com, All rights reserved