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




Variable Order Of Selction



Okay, here is another head scratcher – at least for me.I'm making a multiplication table and posing a question like "5 x 7 = ?"Then the user clicks on the factors along the side and the row or column gets highlighted.The problem is that they could select either factor in either a row or a column first. If they select in a row I need to make sure the next one is in a column and vice versa.The only solution I'm coming up with is a crazy string of if, else, and if else conditional statements. There has got to be a cleaner way.



Adobe > ActionScript 1 and 2
Posted on: 03/13/2007 07:48:16 PM


View Complete Forum Thread with Replies

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

Help With Sence Selction
Help help... I'm trying to build a flash website but have a question... I have no problem getting from scence to scene with button control but I would like one scene to fade out before the next is loaded rather then just jump from to another... can anyone explain to me how to do this?

Variable Order?
Alright, in this site, theres a back login to change 4 variables. Each variable is a number 1-whatever. I need it so that when you change the variable number on the backend it will change the variable permanetly. I assume i need to have it read from a txt or something? Correct?

Function Fails When Variable Isn't In Order
Hi, have a working function as follows::
Code:
function removeThumbs(){
for (y=0 ; y<_root.vars2.countImages ; y++){
_root["mainCont" + y].removeMovieClip();
_root["thumbCont" + y].removeMovieClip();
}
}
Yet as the viewer advances through images, the "thumbcont" changes from "thumbcont1 - thumbcont10" to "thumbcont11-thumbcont20." Therefore, calling "removeThumbs()" doesn't work, when in the second or third set of thumcont images is being displayed, simply because there is no "thumbont1" etc.

How can recode to this to work for this discrepancy?

thanks

Pass Variable In Order To Link To Certain Frame In Flash Movie
i'm trying to pass a variable to my flash movie in order to make it go to and play a particular frame (referenced by its label in the actionscript).

i found the following on a message board and have attempted to implement it:
Here's a php example:

Let's say your external party wants to link to a frame label
"externalParty1"

Their html button would have this link

<a href="yourSwfPage.php?label=externalParty1&">Click here</a>

Now yourSwfPage.php has been sent a label variable in the query string which
is all you need. You will pass this on to your swf file like this in the
object tags.


<!--Your regular object tags here -->

<!--The variable which came in via the query string above -->
<!--is sent to flash from here via PHP -->
<param name="movie" value="yourSwf.swf?label=<?print urlencode($label);?>&">

And finally in your swf file you would have a method to manage the label
instruction

In yourSwf.fla have this on the first or second frame of the _root

//Did an external link come in?
if (typeof label != "undefined") {
this.gotoAndPlay(label);
} else {
//otherwise no external label so normal play
play();
}//end ifbut it doesn't seem to be working. is there a mistake in this information? can anyone advise on how else to accomplish this if this is not the correct way?
many thanks!!

Order Form - Order Fields?
hi,

i just don´t get how to make the input fields become in a secuencial order when you press the tab button,
i mean give them the order i want,

and also, if you use the sendmail.asp in the server,
there also are very disorganisated,
with no specific order,

do any of you solve this deal ????

ok thanks

Drawing Order / Z-order
I've noticed that AS provides some functionality for setting the render ordering of sprites/objects onscreen, but it doesn't seem a very easy system. It kind of looks like you haveto know the index of every item to be able to do anything?

2 Examples I need to control this:

1)I load a pre-created SWF representing a game level. There is a background image and then a few things in front of the background. Now I dynamically ad sprites to the level. The sprites should always be shown in front of the background, but behind the other pieces of scenery.

2)I have many sprites on screen moving around. I want the drawing order to be that sprites lower down the screen are "nearer" than those higher up, so the drawing order should be to draw sprites in order of decreasing y-coordinates. Obviously sprites are moving around so the ordering needs to change often.

Can anyone tell me the kind of thing I need to do to make these situations work? There doesn't seem to be an easy way to just say "put this item behind that one", unless I plain misunderstood the docs?

Thankyou

Load Order, Force Load Order
I was wondering if there is a way to force the load order of graphics, movie clips, buttons. I am most interested in force a paticular graphic in my swf file to load before everything else.

Thanks

Set One Variable Equal To Another Variable And Using Another Variable To Call It.
set one variable equal to another variable and using another variable to call it.

multiple vars on main stage.
var x in MC with
var y in same MC.

i want to set x = one of the the var on the main stage using var y to define which one.

Thanks
Keith

Tab Order
How do you change the tab order in a form? Or how does it work? Is it the first field you put down the first one?

Tab Key Order
Is there a way to make a tab key order. So you can only have it go to certain text boxes only on a movie clip and in a certain order that you decide?
Thanks in advance
deadsam

Tab Order In Mx ?
Does anyone know how to control the tabbing order in MX. I’m designing something that partially sighted people can use with screen readers and screen magnifiers, but the way that MX tabs around the screen is sometimes random.

cheers
notty

Tab Order
Hello - I have a quick question... Anyone know how to set the tab order for text fields. They seem to be jumping all over the place. I tried "tabIndex" but I don't really have any docs on how it should be implemented and could not get it to work so that I could say "this field is #1, this field is #2...". Any ideas?

Tab Order..Plz Help
I made a form in my flash movie but when I press tab it goes everywhere but where I before it goes where I want it. I tried the tutorial but I can't get it to work could someone please help me with this.

Thanks alot
Elite311

Tab Order
Hello,

I am using Flash MX, and I have a movie that has multiple text fields. I am trying to set the tab order for them, but I am having some problems...

I am doing the following:

compName.tabIndex=1;
tagline.tabIndex=2;
officephone.tabIndex=3;

and so on.

The problem is:
I publish and then run the movie. I then try to tab. It tabs in the correct order, however it takes 2 tabs to move to the next field. It is doing this on all the fields. If I only press tab once the cursor dissapears, then I click it again and it goes to the next one in line.

Am I doing something wrong?
Is there a way to fix this?

Thank you in advance for your help.

Tab Order
Does anyone know how to set the tab order of a form in FLASH MX? Is it possible at all? Thanks.

Tab Order
Does anyone know how to set the tab order in a FLASH form? Could you give me the actionscript that does this?

Thanks!

Tab Order....
How do i go about setting the tab order for a contact form from within Flash. I currently have one set up on the Chana Goodman link in my sig. The tab order for the form goes like this:

First Name:
Last Name:
Email:
Comments:
Company:
Telephone:
Send Button.

However i want it so the tab order goes in the following order:

First Name:
Last Name:
Email:
Company:
Telephone:
Comments:
Send Button.

I no this is a simple thing to set but im new to the MX version off Flash so if someone can point me in the right direction on sorting the order off this then ill be most greatful.

Thanks, Mental

Tab Order Help?
Hi, I have a problem with flash MX - I was happily using the following script in flash 5 for a tab order in a form to work...

on (keyPress "Tab") {
if (Selection.getFocus() == "_level0.FORM.TITLE") {
Selection.setFocus("_level0.FORM.INITIALS");
} else if (Selection.getFocus() == "_level0.FORM.INITIALS") {
Selection.setFocus("_level0.FORM.SURNAME");
} else if (Selection.getFocus() == "_level0.FORM.SURNAME") {
Selection.setFocus("_level0.FORM.COMPANY");
} else if (Selection.getFocus() == "_level0.FORM.COMPANY") {
Selection.setFocus("_level0.FORM.JOB");
} else if (Selection.getFocus() == "_level0.FORM.JOB") {
}
}

which works great for flash 5!!! But now I have made the same file in MX - added some flash 6 code else were and now when I save the movie down as a flash 6 version - the code isn't working!!!!!!


Dose anybody out there have a some tabulation code that works with in flash MX/6??????

thanks

Pete

Tab Order
I have searched and searched and I know that it has to be there somewhere. Where do you designate the order in which the selector moves when you hit tab. For Example: In the form as you hit tab it moves progrressively down the form. In my form in Flash it jumps all of the movie.

Thanks for the help.

Tab Order?
This makes me crazy!
I have several, hidden "forms" that I, at a certain time, show (as popups) and want the user to fill out...
My problem is flash´s non-existing tab-order... I tried the extension "frog_TabOrder" but this one does not suit me since I have these "forms" in the background all the time.
Why in h--l hasn´t macromedia implemented a simple tab-order thing into MX... Now I´ll have to make a huge script since all my forms has different field-names that need to be checked.
Anyone that has a good tutorial about this?! Or know any simplier (more dynamic) solution?

Tab Order For Ada
how or where can i apply tab order to a file containing text, btns and checkboxes. i need to make the site accessable for deaf users.

Tab Order Again
As well as being able to tab between input text boxes in a particular order, I’d also like to be able to tab back to certain text boxes.

code: answer1.tabIndex = 1;
answer2.tabIndex = 2;
answer3.tabIndex = 3;
answer2.tabIndex = 4;
answer4.tabIndex = 5;
Unfortunately however, what actually happens is that the tab order goes answer1 answer3 answer2 answer4 i.e. answer2 is missed out first time.

Is there any solution to this problem, please?

Tab Order
Is there a way of changing the Tab order in Flash so that I can choose which the next textbox the tab should go to?

Any help would be great!

Jemes

Order By (like In SQL)
Ok, Ive got 8 variables. How would I go about displaying them in order of max score ie if I have 3,6,1,8,3,9,4 I would want to display them as 1, 3, 3, 4, 6, 8, 9

Im sure Im missing something dumb :/

D

MC Order
Hey,

I have another problem :P

As you can see in the attachment, I have 3 draggable objects, each shape is a movie clip and inside the movie clip is a button which drags the whole thing. Anyway, the problem is that I cannot figure out how to order them through actionscript. Say, on the button (the one inside the MC) press it orders the whole movie clip to the front on the stage. Anyone know how to this?

Many Thanks
-Need2sk8

Tab Order
Does anyone know why my tab order would not come out like i coded it?????!?!?!?! When you press tab it hops all around

name_txt
submit_btn
reset_btn
group_cmb
department_cmb
empID_txt


But in my code I have the order defined as shown below

name_txt.tabIndex(1);
empID_txt.tabIndex(2);
group_cmb.tabIndex(3);
department_cmb.tabIndex(4);
reset_btn.tabIndex(5);
submit_btn.tabIndex(6);

Tab Order
I have a registration form for my website that contains 4 text input UIs and one submit button UI. The tab order does not move through the field correctly. I attempted to set the tabIndex of each field but it had no effect. Any suggestions?

For..in In Order?
so i need to itterate through an object, but i need to do it in order. for..in reads the object in reverse (for whatever reason...).

object.reverse() and object.length don't exist, so i don't know if it's even possible to itterate in order. anyone know how?

Tab Order
I'm playing around w/ making a guestbook in Flash.

http://www.jlcreationsonline.com/php...guestbook.html

If you put your cursor in Name, and then tab through, it doesn't exactly go in logical order. I'm wondering if there is an easy way to fix this, or if i have to rearrange all my text boxes into an order so that it does.

Tab Order
I'm having some issues setting the tab order in my form's textfields to what I need them to be, any advice or samples?

TAB Order
hey..
how do you change the TAB order of text input boxes
i want to tell it what box to go to next depending on which one it is on now
making a login form .. sux if it tabs in wrong order =P (it annoys me anways)

//VoS

Is This In The Right Order?
hey ya'll check out the code.....for my photogallery..when u clik a thumb its supposd to load the pic white to normal..but its just staying white

is it in the right order? (in pink)






Code:

var cColor;
MovieClip.prototype.fadeColor = function(cto, ease) {
var myColor = new Color(this);
//set the picture to white
myColor.setTransform({ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:0});
this.onEnterFrame = function() {
for (var c in cColor) {
cColor[c] += (cto[c]-cColor[c])/ease;
}
myColor.setTransform(cColor);
};
};
button1.onPress = function() {
my_mc.loadClip("liberty.jpg", "container");
container.fadeColor({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}, 20);
var myColor = new Color(container);
cColor = myColor.getTransform();
}
I TRIED THIS
it flashes the pic onPress..and then it turns white to normal..but
i don't like the flashing part lol. help me thx!!!!!!!!!


Code:

button1.onPress = function() {
my_mc.loadClip("liberty.jpg", "container");
};
button1.onPress=function(){
container.fadeColor({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}, 20);
var myColor = new Color(container);
cColor = myColor.getTransform();
}
::: OR SHOULD i put the colorburn code in this??::



Code:
MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 10;
} else {
delete this.onEnterFrame;
}
};
};
bar._visible = false;
border2._visible = false;
var empty = this.createEmptyMovieClip("container", 300);
empty._x = 380;
empty._y = 140;
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._alpha = 0;
bar._visible = true;
border2._visible = true;
pText._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
container.fadeIn();
border2._visible = false;
bar._visible = false;
dText._visible = false;
trace(targetMC+" finished");
};
//default image
my_mc.loadClip("liberty.jpg", "container");
//buttons

button2.onPress = function() {
my_mc.loadClip("dancer.jpg", "container");
};
button3.onPress = function() {
my_mc.loadClip("miner.jpg", "container");
};
button4.onPress = function() {
my_mc.loadClip("wine.jpg", "container");
};
button5.onPress = function() {
my_mc.loadClip("tractor.jpg", "container");
};
button6.onPress = function() {
my_mc.loadClip("galleria.jpg", "container");
};
button7.onPress = function() {
my_mc.loadClip("cantina.jpg", "container");
};
button8.onPress = function() {
my_mc.loadClip("sunflower.jpg", "container");
};
button9.onPress = function() {
my_mc.loadClip("one.jpg", "container");
};
button10.onPress = function() {
my_mc.loadClip("horses.jpg", "container");
};
button11.onPress = function() {
my_mc.loadClip("vatican.jpg", "container");
};
button12.onPress = function() {
my_mc.loadClip("red.jpg", "container");
};

Tab Order
if i have an input box on the stage is there a way i can tell flash to put the cursor there when the page is loaded?

it doesn't seem to go there automatically even though it's the only text box on the stage

Tab Order HELP
I have like 5 text fields, they are all input types. But when i run the flash and want to press TAB in order to reach the next field, it doesnt work.
I tried with:

mytextfield_1.tabIndex =1;
mytextfield_2.tabIndex =2;
mytextfield_3.tabIndex =3;
mytextfield_4.tabIndex =4;
mytextfield_5.tabIndex =5;

But still not working. I cant reach the next field by pressing TAB.
Can anyone help me?
Cheers.
Leo.

Tab Order HELP
I have like 5 text fields, they are all input types. But when i run the flash and want to press TAB in order to reach the next field, it doesnt work.
I tried with:

mytextfield_1.tabIndex =1;
mytextfield_2.tabIndex =2;
mytextfield_3.tabIndex =3;
mytextfield_4.tabIndex =4;
mytextfield_5.tabIndex =5;

But still not working. I cant reach the next field by pressing TAB.
Can anyone help me?
Cheers.
Leo.

Tab Order
I'm playing around w/ making a guestbook in Flash.

http://www.jlcreationsonline.com/php...guestbook.html

If you put your cursor in Name, and then tab through, it doesn't exactly go in logical order. I'm wondering if there is an easy way to fix this, or if i have to rearrange all my text boxes into an order so that it does.

Tab Order
I'm having some issues setting the tab order in my form's textfields to what I need them to be, any advice or samples?

TAB Order
hey..
how do you change the TAB order of text input boxes
i want to tell it what box to go to next depending on which one it is on now
making a login form .. sux if it tabs in wrong order =P (it annoys me anways)

//VoS

Tab Order
hello
i am using Flash MX 2004 Professional and am having problems in setting the tab order using accessibility settings in the properities window.
you can see the form at: http://www.yahel.com/combobox3.html
and download the fla from: http://www.yahel.com/combobox3.fla
i've defined the tab order but for some reason when using tab it only goes from country to next radio button and that's it :)
any ideas?
thanks



Tab Order
I have a form in flash with some input textfields.

Once published, when i hit TAB, a nasty yellow square go to each different textfield, and then to even hidden movieclips, making my movie look horrible.

Is there a way to prevent the tab skipping function for everything except the textfields I indicate?

Is there a way to change the colro and widht?

Is there a way to set the tab order?

I already searched the forum but what I found was related to buttons and how to skip, not order them.

Help please...

Onclick Z-order?
ok, I am missing something here. I know this is simple, but I can't make it work! I need to set z-order of objects (tabs of manilla folders that are stacked visually) by "onclick".
By this I mean;
A stack of folders. You can see the labels all lined up across the top, and when you click on the label for "folder 12" (or whatever) folder 12 moves to the top of the pile so you can see its contents! I can fake it by setting different keys in the timeline for each folder to be on top, then just onclick to keyframe...but that is BLOATED!!!! Grrrr....can anybody help this poor script-challenged idiot with simple, monkey-level instructions?

Thanx!

TAB Order In The Movieclip...........
Can i use any code to order the sequence of TAB in the textfields ?

Tab Order In Form
How do I control the order the cursor will move from field to field when hitting the tab kay in a form??

Thanx

TOP OF STACKING ORDER POP UP
I'm building a Flash Site which makes use of Pop Up html pages to hold the content, however I want the pop up box to remain on top of the stacking order.
See the following:

http://javascript.internet.com/page-...op-window.html

I've tried to implement the script but just can't get it to work!

How do I do this in Flash?


Please help!

Regards
PADDYWALL esq

Form Tab Order
Ok, Im sure someone has asked this before and im not all that sure there is a real solution, but does anyone know how to controll the tab order for forms bulit in flash (v4 or v5). I know macromedia has some sort of extension u can use to help but it wont work on windows IE, so its a wee bit limiting hehe. any suggestions welcome! thanks in advance!

Tab Order In Flash?
Hi,

I have a some flash text fields (as part of a form) but am having troubles getting the user to get 'forwarded' to the correct field after they press <TAB>. For some reason when you press tab a movie clip gets highlighted instead of the next input text box.

Is there a way to fix this problem?

Thanks,
Glenn

Text Tab Order
Can anyone help me with setting the tab order of text feilds any hlp please (Stuck)

Order Form
I have made a order form with loads of variables. Can anyone tell me how to get the variables in to the e-mail?

I want this to work like when you push "send" button mail program opens an variables are loaded in to the mail.

jeg fruster snart

Tab Order In Forms
Does anyone know how I can control the tab order in a contact form?
Also, does anyone know how I send the clicked state of a radio button I made as a variable to the server. I'm designing a web-site, but Im not much of a programmer.

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