Making A List Component Collapsible With Animation
Hello all,I have a List Component on the stage with a height of 240px. I want to create a button so that when clicked, the height changes to 480px, and if clicked then, it goes back to 240px.I can do this by just doing:myList.height = 480;Easy, right? Now, is it possible to Tween or Animate this change? If I do a motion tween and do a Copy Motion to ActionScript, it scales the component. I couldn't do a shape tween on just the bottom left and right anchor points. I'd like this effect, and as a bonus, easing would be super cool.Any pointers?!
Adobe > ActionScript 3
Posted on: 02/11/2008 01:27:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Making List Component Collapsible
Hello all,
I have a List Component on the stage with a height of 240px. I want to create a button so that when clicked, the height changes to 480px, and if clicked then, it goes back to 240px.
I can do this by just doing:
myList.height = 480;
Easy, right? Now, is it possible to Tween or Animate this change? If I do a motion tween and do a Copy Motion to ActionScript, it scales the component. I couldn't do a shape tween on just the bottom left and right anchor points. I'd like this effect, and as a bonus, easing would be super cool.
Any pointers?!
Making A List Component ._visible = False;
I am trying to make a list component invisible for now by using the following code
tileList._visible = false; //(And later there will be a button that activates it)
And this is the error that it's giving me
1119: Access of possibly undefined property _visible through a reference with static type fl.controls:TileList.
If anyone could help me out that would be awesome Thanks
Collapsible Menu Component HELP
Has anybody used the collapsible Menu Component from flashcomponents.net? It's very good but I'm having problems using it within a movie clip. It uses an XML file to load the text and works fine on the root level but the text doesn't appear when it's inside an MC. The thing is, the menu is there with the correct number of children so I assume the XML has been loaded, but it doesn't appear to be passed to the text field. I've looked at the AS but i can't see where the path error could be.
If anyone's used this component I'd be really greatful for any advice.
Cheers
(Flash MX Or 8) List/List Component Issues
Hello all.
I recently completed Kirupa's "Creating a Listbox" tutorial, (http://www.kirupa.com/developer/mx/listbox.htm) but have been having a difficult time modifying the event attributes of each list item. Basically, I want to click on an item and have an object on the stage move to a unique xy coordinate. I can get the object to move already (object._x = object._x +10, but unfortunately ALL items on the list execute this script command. I've tried fooling around with the code to get each item to do a unique movement but...well, clearly I haven't succeeded yet.
I'm a Flash nooby and help in the form of specifics would be greatly appreciated. If you can provided modified code from the tutorial to move an object to a unique positions that's even better.
Thanks.
David
List Component. Help. Looked Everywhere. Button And List.
Trying to use a list component and a button. When user selects something from list component and clicks button it takes them to new page, if user doesnt select something from list and hits button, (this is where my question lies) I want it to do nothing and setFocus to list component.
Here is how I am going about it now: New if statement (however it still transfers user if nothing is selected from list component) How can I get it to not transfer? I have tried rewritting this many ways, searched all over the nets, and Nada.
Code:
var arUrl:Array=["/browsecategory.aspx?cat=1","/browsecategory.aspx?cat=2","/browsecategory.aspx?cat=3","/browsecategory.aspx?cat=4"];
var provider:Array=[{label:"Option 1",data:0},{label:"Option 2",data:1},{label:"Option 3",data:2},{label:"Option 4",data:3} ];
mcList.dataProvider=provider;
var obj:Object={};
obj.click=function(eo:Object)
{
var count:Number=mcList.selectedItem.data;
getURL(arUrl[count],"_blank");
trace("count="+arUrl[count]);
}
but.mcSubmit.addEventListener("click",obj);/////here is where I am sending off
if(mcList.selectedIndex == undefined) {
setFocus.mcList;
}
So this thing works perfectly, however if user hasnt selected anything how can I get it to not transfer and setFocus?
I have tried setting if to check it for - 1 (since starts at 0) set to 0? Any ideas please help. Thanks in advance MT
'list' Event Of List Component
oops i mean 'change' event of list component
Hi guys/gals. Ive made an xml/list component driven mp3 player as can be viewed at http://www.flashmatics.co.uk/blog/sa...mp3player.html
When someone selects a new song from the list that songs starts to play. Everything is working fine.
I now want to add an extra bit of functionality i.e When one song finishes i want the next song to start playing. But this means I have to tell the list component that a change has occured as well (even though there has been no user interaction to cause this 'change'). How would I go about this. Here is a snippet of relevant code.
Code:
mySound.onSoundComplete = function():Void{
//from here i need to tell the component a change has occured and to move it
//to the next song in the menu
}
//create a listener for the list component
var compListener:Object = new Object();
list_comp.addEventListener("change", compListener);
compListener.change = function(info:Object):Void{
//how do i get this to move to the next track?
}
Thanks for any help in advance. I dont actually need the whole code or anything but rather a point in the right direction..cheers
Loading XML List Into RMP List Component
I have several XML lists to load into a RMP List Component List Box.
I was told the code should be like:
myButton.onRelease=function(){
myList.load(String(search.text));
}
So I made a button and named the instance "myButton"
Add the list component called "myList"
The XML files are named test1.xml, test2.xml etc.
I tried variations of:
myButton.onRelease=function(){
myList.load(String(test1.xml));
}
Result....
Nota
I think I may need a Listener or I am not sure...
Can anybody please advise me what I am doing incorrectly?
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
Making An Animation Fade Into Another Animation When A Button Is Released?
okay, so I have for exmaple a red animated background for 'home' but when someone clicks 'media' for example, I want that red animated background to fade into a green animated background.
I tryed using external swfs, but I don't know how to make the outro animation of the first red swf fade into the intro animation of the second green swf, so it creates the effect of red into green, rather than red to black, than black to green.
any tutorials that could help me?
Loader Component And List Component
Hello everyone,
using AS2.0 does any one know if i can push or add a list component inside a loader component?
This would allow me to add as many List components as i want "dynamiclly" while letting the loader component grow as needed with the usuability of the scroll bar on a small stage.
thx
Making A List With MCs
As per an earlier post, I wasn't able to find any way to control the list component as well as I need to. So, I am looking at an alternative, in a way creating my own list using MC.
So, I have a main movie clip on the stage called "mainMC" and inside that I have another movieclip called "textMC" and inside that I have a dynamic textbox named "data".
Now I am pulling data from an XML document and based on that I want to create a list using the above MCs.
Code:
...
count = myXML.firstChild.childNodes[i].childNodes.length;
for(p=0;p<count;p++){
_root[mainMC].duplicateMovieClip("textMC", "text"+p, _root.mainMC.getNextHighestDepth());
//Now I need to adjust the ._y value to move the duplicated MC down each time.
...
So, my duplication isn't even working, and I am not sure how to call the duplicated MC after to move the Y value.
Any assistance would be great!
Making List Of Variables
I am cuurently working on a simply list for a client where you enter you e mail and name and then you can choose from a list of films that you are interested in. The variables/films choosen then becomes the message for to my client. The problem is that I want the variables to be listed after each other on separate lines.
Like so
film1
film2
film3
and so on..
What I am now doing is setting the message variable like this:
message="message"+"film"
This makes a list like so
film1film2film3
So the thing is to make each new variable added on a new row?
How do you do this?
Making An Inventory List
How could I make an inventory list. Such as clicking a button and have it add itself to the inventory, then click a "clear" button to remove it.
I am pretty good with actionscript, but have never tried this before.
Thanks,
Blaine
What Is Your Favorite? ... Making A List
I am trying to create a favorites list. When one clicks on a mc have the value go to a dynamic text field (multiline) – this works. What I need to know is how to add the second selection to the next row. Right now it only shows the last selection, overwriting the previous selection. I tried +newline and /n but it didn’t work.
I also searched the forum for similar, but didn’t come up with much…
_root.favlist = 0; //init dynamic text field var called favlist
orange.onPress = function () { //mc orange
_root.favlist = "orange";
grape.onPress = function () { //mc grape and so on…
_root.favlist = "grape";
I am also open to other ideas... have the first click go to 1. second to 2. and so on for all 5 fruits (or movies, bands,... the list could go on -hee hee)
Thank you,
A
Making A List And Checking It.
I'm making a simple Memory game, and I've gotten so far as too make a script that dumps 20 cards on the scene. Every two cards must be associated with a picture, so I made ten frames within the card.
The problem is that I must make sure only two cards per picture are choosen, and to do that I need some kind of list that says which cards or numbers already have been picked. Any ideas?
Making A List In Flash
Hi, I have a Flash question I hope someone can help me with.
I am a novice programmer and actionscript user (to say the least) and I was hoping someone could point me in the right direction.
I am making a just for fun kind of site that I will send to just my friends getting them to sign up to play football on Thanksgiving. The idea I want to use is when one of these 12 guys gets to site they can enter their name in a text field acknowledging they want to play and then their name would show up in a list with other guys names. Is this possible in Flash?
I understand that you probably need an external file to store the info and to pull from in Flash, but I am not exactly sure how to do it or the exact code I need. If anyone has time and would be willing to help please let me know.
Thanks in advance...
FF
Making Xml List With Links
I was able to create a list component in Flash 8 and load the items from an
xml file, but I can't figure out how to make each line clickable in order to
work as a link. The code used to populate the list is:
form = new Object();
form.load=xmlConn.trigger();
The xml file is something like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<articles>
<articles_items>
<title>Link text 2
</title>
<urlstring>article2.htm
</urlstring>
</articles_items>
<articles_items>
<title>Link text 1
</title>
<urlstring>article1.htm
</urlstring>
</articles_items>
</articles>
I intended to use the second field of each "articles_items", the "urlstring"
field, to associate with each "title" listing on the list component, so that
when "Link text 1" gets clicked it takes to "article1.htm". The instances
created are named articlesList, xmlConn, articles_ds.
Making A List Of An Array
Hai,
For my work i'm trying to get an Array properly into a text field. The array is being taken out of XML and then turned into the array and fed into a textfield. But it shows up like this:
Name1, Name2, Na
me4, Name4, Name5
But i want it to show up like
Name1
Name2
Name3
Name4
How could I achieve this?
This is my code:
var xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
var score, name, time, position;
score = this.firstChild;
if(score.hasChildNodes()) {
var name = new Array();
var time = new Array();
for(var i = 0; i < score.childNodes.length; i++) {
name[i] = score.childNodes[i].childNodes[0].childNodes[0].nodeValue;
time[i] = score.childNodes[i].childNodes[1].childNodes[0].nodeValue;
position = i+1;
//naam_txt.text = position + ": " + name + " -- " + time + " sec."
naam_txt.text = name;
tijd_txt.text = time;
//trace(score.childNodes[i].childNodes[0].childNodes[0]);
//trace(position + ": " + name + " -- " + time + " sec.");
}
}
}
xml.load("tijden.xml");
//xml.load("http://gigakids.nl/files/save.php");
/*var uitslag_array;
var scoren_xml = new XML();
scoren_xml.ignoreWhite = true;
scoren_xml.onLoad = function(succes){
if(succes){
var score = this.firstChild;
var name, time, position;
uitslag_array = scoren.childNodes;
PopulateLists(uistlag_array);
}else{
trace("Dat gaat zo niet goed he!")
}
}
scoren_xml.load("http://gigakids.nl/files/save.php");
PopulateLists = function(xml_array){
naam_txt.text = tijd_txt.text = "";
for (var i=0; i<xml_array.length; i++){
name = score.childNodes[i].childNodes[0].childNodes[0];
time = score.childNodes[i].childNodes[1].childNodes[0];
var ding = xml_array[i].attributes;
naam_txt.text = ding.name + "
"
tijd_txt.text = ding.time + "
"
trace(name + " -- " + time + " sec.");
}
}*/
var uitslag_array
var xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
var score, name, time, position;
score = this.firstChild;
uitslag_array = score.childNodes;
if(score.hasChildNodes()) {
for(var i = 0; i < score.childNodes.length; i++) {
var scoren = uitslag_array[i].attributes;
naam_txt.text = scoren.name + "
";
name = score.childNodes[i].childNodes[0].childNodes[0];
time = score.childNodes[i].childNodes[1].childNodes[0];
position = i+1;
naam_txt.text = name
tijd_txt.text = time + " sec."
//naam_txt.text = position + ": " + name + " -- " + time + " sec."
trace(position + ": " + name + " -- " + time + " sec.");
}
}
}
xml.load("http://gigakids.nl/files/save.php");
Thanks in advance for your help!
And yes, i have searched the forum.
Bye!
Making A List From Files In A Folder
Hello all!... it's been a while since i bothered any of you so here's more botherness! :twisted:
I have the first partof this application that records the streaming webcam/audio from the user and it goes to a folder. For the second i need to make one that plays the streams that have been recorded. I know i need a listComponent, but i'm really not sure how to call the items in the folder into the list, and then make them play... any suggestions or ideas?... thanks!
~pako
Making Events Bubble -down- The Display List?
I've read that by default events only bubble to parent DisplayObjects, not children? I'd like to dispatch an event near the base of my application and have it flow down the tree to children of the DisplayObject that dispatched it. Is such a thing possible?
Making A Dinamic List Of Team Members
Hi.
I have to load from a mysql database a full list of members of a team wich must be placed in a drop down menu. How can i make that dinamically? I mean i take the number of members from a php and all their names and display it in a text field. How can i do that? try to create text fields and place one under each other based on the number of members the php sents to me? Or should i try to place all the names in a sigle text field (but then how do i format the names so that they appers under each other)?
List Box Component
i have a list box component (item_lb)
it have 5 lines of content in it..
what i want is that when the movie loads, item_lb highlights the first line of my content.
pls help me on the script thanks!
List Component
I´m having some trouble with the list component, how do I get the selected entries from one list into a nother empty list?
Cheers Lars
List Box Component Help
Hello All,
I am making a Flash demonstration for a project. Essentially there is a mian page with links and when you click on a link it loads an external .swf and I have a control box with a play, stop, rewind button and scrub to control the loaded movie's timeline. This control box also has a list box component so the user can load other demos from within that spot. I would like to make that control box a movie clip so the user can drag and collapse the control box, but I cannot figure out how to add the list box within the control box movie. If anyone can help I would greatly appreciate it!
Thanks!
List Component
Hello everyone.
I'm new on this board, so don't be angry at me if I ask 'bout something simply.
Could you be so nice, and explain for me a simply case...
I used List component from standard Flash MX 2004 component list. I tried to add actions to items on that list... In many ways... That didn't work out. Thing I want to do is made those items to cooperate with gotoAndPlay action. When I click on "Item1" movie should go to 2nd frame... Please! Help or kill! I've wasted 6 trying to do this.
Greetings
Wilku
List Component
Hi All,
Can any one help me out how I can change the font color of the List Component
I tried this one but its not working
Code:
myList.setStyle("fontColor", "0xBF0000");
Regards
LIST COMPONENT Help
is it possible to use the 'MyList.selectedItem.label' or the 'MyList.selectedIndex' to return that item's label into a variable? whenever I do, it doesnt do anything at all
'trace(MyList.selectedItem.label)' returns the selected item in the output, but that doesnt help me!!
if not... (this may be a newbish question) how can i get something to change (ex. a textbox's text) whenever they choose a certain item on the list? the variable idea was my best...
ex..
choosing item1 --> In the textbox "This is item1!"
choosing item2 --> In the textbox "This is item2!"
choosing item3 --> In the textbox "This is item3!"
etc
List Component
Hi everyone,
I'm having a bit of a problem with changing color of the List Component. I was able to change color and color of text by using:
component.setStyle("color", 0x000000);
component.setStyle("backgroundColor", 0xFFFFFF);
The problem is that when I select the text it turnes green. Does anyone know the property of the component that effects the selected text color?
Thanks,
Peter
PS Also what would be a good learning source for mastering 2004 Components?
List Component
Hi everyone,
I'm having a bit of a problem with changing color of the List Component. I was able to change color and color of text by using:
component.setStyle("color", 0x000000);
component.setStyle("backgroundColor", 0xFFFFFF);
The problem is that when I select the text it turnes green. Does anyone know the property of the component that effects the selected text color?
Thanks,
Peter
PS Also what would be a good learning source for mastering 2004 Components?
List Component Help
Hi guys.
Ive got my list set up, but i need to know how to make it so that when I click a name in the list, it opens up a url. Right now Im using
code: onMouseDown = function () {
if (_root.scrapsList.selectedItem.label == "Name") {
getURL("http://www.website.com", "_blank");
}
}
now...it works, but if you click a name, and then click anywhere else on the screen it keeps opening up a new window with that url. I know why it does it, but I dont know any other way to do this. This is the first time ive ever used the list component, so any help would be appreciated, thanks.
List Component?
I'm having trouble with the list component. All I want is when the user clicks onto one of the words in the list, I want something to happen.
For example:
ListenerObject = new Object();
ListenerObject.onPress = function(eventObject){
trace("you clicked it");
}
myList.addEventListener("onPress", ListenerObject);
I know onPress isn't right, but is there something like this that would work? I put itemRollOver in place of onPress and it works great.
any help is much appreciated.
List Box Component
Hey,
I would like to know how can you load local variables in the flash 2004 pro list box component.
Thanks
Daniel.
List Component
is there a way to list the contents of a folder in a list component in flash 8?
List Component
can these be populated from a database? and can they contain more than one column of information? or is there another way i should be looking at populating my site with database information dynamically?
Xml To Component List
Is it possible to load an xml sheet so that it displays it's content in a component list? If so could someone show me how or point me to a tute that shows me as I can't seem to find any.
All I want to be able to do is have a list of selectable data that's kept up to date outside of flash. Any help would be mightily appreciated thankyou!
Jak x
List Component HELP
I have a list component that is being populate by an array(users) and I want the list to sort alphabetically the names of the users. I've tried the suggestions in the Help
(surnameMenu.sortItemsBy("label", "ASC") and various other combinations to no avail. Can someone please inform me of the proper way to get this to work? I am using FLASH MXProfessional 2004 Ver 7.2. I am populating the list on load with the following code.
for(var i = 0; i < len; i++)
{
this.addItemAt(i, {label: users[i].name, data: users[i]});
}
help please and thank you in advance.
List Component
How do you change the background color of the list component? I have a bunch of them on the stage and I want them to all be the same color.
Thanks!!
List Component
I'm using Flash MX 2004 Professional
does anybody know if it is possible to customize the scrollbar within the List component?
Thank you,
[F8] $@%#& List Component
I can't get the List component to work when it is inside a movieClip that is attached dynamically to an empty movieClip on the stage. See the attachment to see what I mean.
Is this a bug? Is there a way to make it work?
[F8] Help With The List Component Please
Hi,
Im using the List component as a menu. The user uses the arrow keys to go up and down the items in the component and uses another key to select them. This is all working but now i would like to include infinite menus. I have made a quick animation to show you what i mean:
http://ahref.theicy.net/i/infm.swf
im currently using this code:
Code:
focusManager.setFocus(_root.menu);
lastItem = menu.length - 1;
menu.selectedIndex = 0;
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if((menu.selectedIndex == lastItem)&&(Key.getCode() == 40)){
menu.selectedIndex = 0;
}
if((menu.selectedIndex == 0)&&(Key.getCode() == 38)){
menu.selectedIndex = lastItem;
}
however this results in an "off by one error" and the top item and botom item cant be selected. eg.
http://ahref.theicy.net/i/offbyone.swf
does anyone know how i can fix this?
if you dont understand please ask ill try and explain more
thanks
Xml And List Component
Hi all
I have an XML file that sets up the change of content through a list component. However the only info that is changing is the URLs attribute while the head and info remain the same. Here is my script and I hope someone can pick out my problem. I am a bit of a novice so please excuse the messy scripting.
Cheers
stop();
var drillXML:XML = new XML();
drillXML.ignoreWhite = true;
var currentIndex:Number = 0;
var head:Array = new Array();
var urls:Array = new Array();
var info:Array = new Array();
drillXML.onLoad = function(success) {
if (success) {
var drill:Array = drillXML.firstChild.childNodes;
for (i=0; i<drill.length; i++) {
drilllist.addItem(drill[i].attributes.name, drill[i].attributes.url, drill[i].attributes.words);
head.push(drill[i].attributes.name);
urls.push(drill[i].attributes.url);
info.push(drill[i].attributes.words);
}
drilllist.selectedIndex = 0;
hold_mc.loadMovie(urls[currentIndex]);
title_txt.text = head[currentIndex];
info_txt.text = info[currentIndex];
} else {
drilllist.addItem("No drills available");
}
};
drillXML.load("drills1.xml");
var myListener:Object = new Object();
drilllist.addEventListener("change", myListener);
myListener.change = function() {
hold_mc.loadMovie(drilllist.getItemAt(drilllist.se lectedIndex).data);
};
List Component
I need to know some things about a List Component:
1-How do make it so that when a user clicks on many list items they all stay selected. What I mean is that you click on the first item and then on the second then on the third, then the three first items will be selected. Then when you click on the second, the first and third will be selected.
2-Is there a "isSelected" method to use so that on the press of a button I can show data concerning only the items selected?
Thank You!
List Component
hi,
im using the list component as a sort of menu for a project im working on. The user uses up and down to change between items on the list and selects it with enter. I then thought of an idea that i have seen other menus do and wondered if it would be possible to achive.
i call the idea infinite menus although it may have another name. Basically i would like to edit the list component so that when the user reaches the bottom of the list component and presses down it will jump back to the top. eg.
item 1
item 2
item 3
item 4
if item 4 is selected and down is pressed 1 will then be selected.
Is this possible and if it is how do i go about doing it?
thanks in advance and if you need me to elaborate or to clarify please ask
Help With List Component
I would appreciate if someone can help me with getting rid of the list components selection bar. I created my own component that I call with the cellRenderer and it has it's own highlighted or selected state that I would like to use however the regular selection bar is still in the background. I can change it's color with selectionColor but that is not what I need. If I set selection color to "none" it just makes it black. Any help would be appreciated.
-thanks
List Component
Ridiculously simple, but doing my head in - how do I add links into a list compnent - I'm really new to this actionscripting stuff and I ain't got a clue.
I just want each item in a lst of 7 items to link to a particular keyframe in the movie. So simple in old versions of Flash, but can I fgure it out in Flas CS3?
Help!
Component List
How can I work from an external file with a list that is sitting on the main timeline of a movie clip?
I have given the component List an instance name of "userList". I defined the listener for the list in an external .as file. I'm now trying to load data into the list by using userList.addItem() method, but it doesn't seem to do anything. When the list is displayed on the screen, the list is empty, the length of it is undefined. Adding items to the list only works when the code sits on the movie clip timeline where the list is sitting. By searching for answers, I found this advice from http://livedocs.adobe.com/flash site:
Components MUST load after classes otherwise you cannot control them (Using Action Script in Flash page 117). If you set an export frame other than 1 for your classes (most likely if you use a progress bar) you must deselect 'export on first frame' setting on your component library symbol from the Linkage menu. Component that loads on frame 1 will not retroactively find its associated class that loads afterwards on say frame 4.
Taking their advice, I deselected the 'export on first frame' setting of my list component library symbol, saved and republished my .fla file. I tested again, and it still doesn't work. Any ideas?
List Component Help
hi there, i am desperate for some help! im pretty amature at flash!
ok, im trying to make a mail form and at the moment all the fields work except the list one which comes through in the email as "undefined"! i know this is probably simple but have a look at below and ANY help would be appreciated!!!!!!!
stop();
System.useCodepage = true;
send_btn.onRelease = function() {
my_vars = new LoadVars();
my_vars.name = name_box.text;
my_vars.mail = mail_box.text;
my_vars.suburb = suburb_box.text;
my_vars.city = city_box.text;
my_vars.postcode = postcode_box.text;
my_vars.phone = phone_box.text;
my_vars.email = email_box.text;
my_vars.about = about_box.text;
my_vars.purchase = purchase_box.text;
my_vars.product = product_box.text; //??? this is a list, i need it to select but i have no idea how to do this! it just comes through in the email as undefined!
my_vars.day = day_box.text;
my_vars.month = month_box.text;
my_vars.year = year_box.text;
my_vars.serial = serial_box.text;
my_vars.product02 = product_box02.text;
my_vars.day02 = day02_box.text;
my_vars.month02 = month02_box.text;
my_vars.year02 = year02_box.text;
my_vars.serial02 = serial02_box.text;
if (my_vars.name != "" and my_vars.mail != "" and my_vars.suburb != "") {
my_vars.sendAndLoad("mailer.php", my_vars, "POST");
gotoAndStop(2);
} else {
error_clip.gotoAndPlay(2);
}
my_vars.onLoad = function() {
gotoAndStop(3);
};
};
email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=func tion () {
if (error_clip._currentframe != 1) {
error_clip.gotoAndPlay(6);
}
};
this is the file: http://www.circularsquare.co.nz/reg.swf
any help would be fantastic!!!
:~)
-Brisol
|