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




Edit / Input Urls On Buttons



HelloI have a fla file, with menu ( 5 buttons) and I need to set the urls /destinationsbut I have no idea how..I use flash CS3.Can someone please explain to me, how this can be done.Regards,Casper a.k.a total flash-noobhere is, what actions I can find on one of the buttons (not working): ( found in actions menu under "sprite 39" )on (rollOver){ if (_root.link != num) { gotoAndPlay("s1"); }}on (releaseOutside, rollOut){ if (_root.link != num) { gotoAndPlay("s2"); }}on (release){ if (_root.link != num) { _parent["but" + _root.link].gotoAndPlay("s2"); _parent["but" + _root.link].b1.useHandCursor = 1; b1.useHandCursor = 0; _root.link = num; if (_root.bg.bgPlay != true) { _root.bg.gotoAndPlay(1); getURL("index.html", ""); } }}Edited: 11/20/2007 at 12:05:41 AM by xwishmasterx



Adobe > Flash General Discussion
Posted on: 11/19/2007 11:49:27 PM


View Complete Forum Thread with Replies

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

Copies Of Flash Buttons - Edit Each One? How To Edit Multiple Copied Buttons
I am creating a website using a flash template, my first venture into flash. The side links are all flash, where I had to add about 5 additional buttons. So I copied one of the buttons and pasted multiple copies of it. I was able to reposition each one correctly so they are move correctly. But I can't figure out how to edit each one individually? Any change I make to one, is made to all of them as well.

I am using Flash MX 2004 and any help is greatly appreciated!!

Thanks!!

Pete

Dynamic Urls From Input Box?
hey peeps,

is it possible to generate a dynamic url from an input box in Flash MX?

basically i want an input box where the user puts their i.d. in and when you click a button it sticks their i.d. onto the end of and url


for example if the users i.d. is "dt"

the url loaded will be www.thiswebsite.com/dt


any ideas?


many thanks in advance

david

Buttons& URLs
I'm building a list of buttons for a friend's site, the buttons are all in a single flash document but is they're triggered, they lead to different parts of the site. Do I need actionscript, URL, or something else

URLs On Buttons?
I'm building a start menu for my friend's site, using several buttons
on a single .fla. Each button leads to a different part of the site. Personally, I don't know anything about this site, but how do I make links between these buttons and these different parts of the site?
Any ideas?

Buttons For URLs
I am trying to put 3 buttons in a frame. I want each of them to act as a link to Web pages. If I use just the code for link_btn_one it works great. If I include the code for the other 2 it doesn't work. What am I doing wrong?

Thanks,

Al


Here's my code:


var link:URLRequest = new URLRequest("

Input Field - Edit Txt-file?
Is it possible to make a input-field which saves the wordswritten in a txt-file on the host?
fx:
input-textfield with varname variable1
and a button with command:
on(release){
save variable1 in text.txt
}

Linking URLs With Buttons
I am trying to learn Flash 5.0, and here's a problem that I CAN NOT fix:
I made a flash movie that is suppose to play when you go to my website, and in this movie I have made buttons linking to my different pages within my site. I know how to have my button link to another page by using the Get URL action. But when I go to test my button out, it will load the website and play the movie (with the button with links) and then automatically goes to the page that is linked to the button. I want to be able to click the button and then go to the linking page.
Now I dont know what the on (release)does, but I tried to type it in and it won't work it says that there are errors, does this even have anything to do with my problem? Can someone please try and help if u understand this.

Thanks
Michelle

Animated Buttons And Urls
So I'm making this site, and I've got a navigation bar with some animated Flash buttons I want to use as links to other areas of my site. I've got the animation part down of the whole process. Here's how I did it.
__________________________________________________ ________

I created a movie clip, and then within the movie clip I've got 2 layers. One with animation and the other with actions. The Actions layer has one more keyframe than my animation layer, so that I could add the stop() action to the beginning and end of the animation. That's all for the inside of the movie clip.

The movie clip as a whole had this actionscript applied to it on my main timeline:

on(rollOver){

gotoAndPlay(2);

}

on(rollOut, dragOut){

gotoAndStop(1);

}
__________________________________________________ ________

So now the animation only plays when a user rolls over it and stops when he doesn't. The problem is I'm not sure where to add the:

getURL("http://blahblahblah.com")

I always get error reports upon exporting it. I've added it to the movie clips actions. I've created a new layer within the clip and applied actions to one of the keyframes there. I'm not sure where it goes, but I'd like my buttons to do more than move. They need to be useful now. Think you guys can help?

Linking Buttons To Different URLs
Hi,

I am using this set of code for a complex button: http://www.kirupa.com/developer/mx20...ton_effect.htm

The last line of the code launches a new window with an URL. Using this code I have created a button. But I want to use the same button object in different instances linking to different URLs. For example as buttons linking to different pages in a Web site. How do I do that?

Edit Bar Chart Based On User Input?
Hi there
if i draw a bar chart using flash drwing tools, is it possible for this the bars to increase or decreases based on user input? If so, can anyone tell me how or point me in the direction of a tutorial?

Thanks so much

How To Create Input Text And Edit The Font?
help please!

i need to create an input text box that can edit the font.
something like this https://www.spreadshirt.com/shop.php...&affiliate=600 in the part of text.
help me please!!

Linking Buttons/graphics To Urls
Im fairly new to Flash, and have a novice question for you all.

I can't figure out how to link buttons to urls....

Any Ideas???

Thanks alot...

Adrian
beatz.com

Linking Buttons To Scenes And Urls
I want to play a transition movie (Scene 2) after a button is clicked in Scene 1, then go to the link. I got the transition to work, but if I add in the url, it skips the scene.

Dynamically Adding URLs To Buttons
I have an XML file that has a large group of buttons. (ex below)
code: <unitedstates>
<state name="WA">
<enabled>1</enabled>
<bordercolor>3F3F3F</bordercolor>
<color>336699</color>
<url>http://www.hotmail.com</url>
</state>
<state name="OR">
<enabled>1</enabled>
<bordercolor>3F3F3F</bordercolor>
<color>336699</color>
<url>http://www.gmail.com</url>
</state>
</unitedstates>
I want to be able to dynamically have each of those buttons go to the URL I specified in the <url></url> tag.

This is the code that I am trying to do as I loop through the XML file, but it's assigning it onrelease. I want to assign it at the beginning.

code:
for(var i = 0; i < xmlDoc_xml.firstChild.childNodes.length; i++){
var strURL = xmlDoc_xml.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue;
eval(stateName).onRelease = function(){
trace(strURL);
getURL(strURL, "_self");
}
}

the problem with this is that it assigns the last URL in the XML file to the every button I click on. So in this instance, the WA button AND the OR button will both go to gmail.com because that's the last one it was assigned to.

How do I add the right URL to the right button in that loop and have it stick?

Thanks.

Linking Buttons To External URLS
I have several buttons in my project that I want to link to Outside Webpages, what is the the action script to do so?

Example:
When Buttonx is clicked on http://www.x.com opens in a new window.

Thanks in Advance for an replies

[F8] Problem: Cannot Edit Input Textfield After Applying Stylesheet
Okay, I'm creating a textfield at runtime and applying a variety of properties (align, html, etc.) to it. I'm also defining the type as 'input'.

This all works fine, and I can edit the textfield freely, UNTIL I apply my stylesheet to it, after which it becomes non-editable.

Is this a known phenomenon and is there a way round it?

PS: You can download the 6kb sample file at:
www.counterculture.co.za/test.zip

Thanks,
Aragorn




Code:

var vHiTotal:Number = 0;

var cssMasterStyle = new TextField.StyleSheet();
var css_url = "styles.css";
cssMasterStyle.onLoad = function(ok) {
if (ok){
//trace("loaded stylesheet");
}
}
cssMasterStyle.load(css_url);

function fToolTip(txt){
_root.vHiTotal++;
_root.createEmptyMovieClip("mcToolTip"+_root.vHiTotal,_root.vHiTotal);
_root["mcToolTip"+_root.vHiTotal].createTextField("txtLabel",_root.vHiTotal,200,100,100,200);
_root["mcToolTip"+_root.vHiTotal].txtLabel.type = "input";
_root["mcToolTip"+_root.vHiTotal].txtLabel.maxChars = 100;
_root["mcToolTip"+_root.vHiTotal].txtLabel.border = true;
_root["mcToolTip"+_root.vHiTotal].txtLabel.multiline = true;
_root["mcToolTip"+_root.vHiTotal].txtLabel.wordWrap = true;
_root["mcToolTip"+_root.vHiTotal].txtLabel.align = "justify";
_root["mcToolTip"+_root.vHiTotal].txtLabel.background = true;
_root["mcToolTip"+_root.vHiTotal].txtLabel.backgroundColor = 0xFFFFCC;
_root["mcToolTip"+_root.vHiTotal].txtLabel.borderColor = 0x000000;
_root["mcToolTip"+_root.vHiTotal].txtLabel.html = true;
_root["mcToolTip"+_root.vHiTotal].txtLabel.styleSheet = _root.cssMasterStyle;
_root["mcToolTip"+_root.vHiTotal].txtLabel.htmlText = "<p>"+txt+"</p>";
}
fToolTip("test editable text field");

Input Text Field - Activate And Edit By Keyboard Only
Please help!!!

The user is unable to use a mouse and can only use a keyboard.

I am having real problems with automatically activating and making the input textfield editable (with blinking insertion point etc) at run-time by just using the keyboard.

The only way I can get the above functionality is if I click the mouse in the input text field, which is no good to a person who can't use a mouse!

I would really appreciate some guidance, example code etc.

Thanks

jb1new

Duplicatemovieclip(s) As Clickable Buttons With Unique URLs (help)
Can anyone point me to a tutorial or an example of how this is done?

The best thing I've been able to find was done in Flash 4, and between the translation of the actionscript and the fact that I'm new to using duplicateMovieClip, I'm lost.

I already have a loop in which an array is filled with results, and would like to create buttons(mc's) which are just the text of these results, and have the onrelease action be a getURL() also assigned within the loop.

20 karma points to anyone with information leading to the arrest or capture of a solution to this one!

Buttons Linking To Urls (error Msgs)
hello,
I have 5 buttons to absolute links w/in site:

on(release) {
geturl("http://www.mysite.com/contact.htm");
}

When I try to publish, I get this error msg:

**error** Scene=Scene 1, layer=contact,
frame=1:line 1: Mouse events are permitted only for button instances
on(release) {


This is true for all buttons.
Please help!
Thanks.

Help Linking Multiple Buttons To Different URLs In Flash CS3
I have a small flash movie with three buttons I would like to link to three different URLs. My code for these is below, however, when I test the movie there is a namespace error (copied below). I assume this is because both buttons are trying to use the same variable but I have no idea how to make this work in AS3.

Can someone please tell me where i need to make changes so the code understand that "thisButton" should take the user to URL#1 and "thatButton" should take the user to URL#2?

This is for my own site and I have to use AS3 as there is an FLV on it as well which requires AS3 to be viewed.


I appreciate any help you can offer in making this code work for both buttons.

THANKS



FIRST BUTTON

//when they click the "light" button go to the www.site/About page

this.lightButton.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
var url:String = "http://site.com/about";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
}
}
);

//---end "Light" button

SECOND BUTTON

//when they click the "phones" button go to the www.site/LISTEN page

this.phonesbutton.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
var url:String = "http://site.com/LISTEN";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
}
}
);

//---end "Phones" button



ERROR MESSAGES

**Error** Scene 1, Layer 'phones', Frame 41, Line 6: 1151: A conflict exists with definition url in namespace internal.
var url:String = "http://site.com/LISTEN";

**Error** Scene 1, Layer 'phones', Frame 41, Line 7: 1151: A conflict exists with definition request in namespace internal.
var request:URLRequest = new URLRequest(url);

Total ActionScript Errors: 3, Reported Errors: 3

Giving URLs To The Dynamically Created Buttons.
In the there is a dynamically created movie clip a navigation menu but i just can't find out how to give URL to the buttons dynamically created can someone show me how?thanks

Giving URLs To The Dynamically Created Buttons.
In the there is a dynamically created movie clip a navigation menu but i just can't find out how to give URL to the buttons dynamically created can someone show me how?thanks

Dynamically Set Target URLs On Movie Buttons
Hi all!
I'm trying to set dynamically target URLs on some movie buttons already created in design mode.
The URLs are defined in a XML file that is successfully loaded and parsed into variables. The problem resides on affecting the movie clip in order to link to a desired URL.

I've already tried to make this:

boxIdx = 0;
while (boxCurrentNode!=null) {
    boxSubNodes = boxCurrentNode.firstChild;
    eval("btnOrg_" + boxIdx).txtButton.text = boxSubNodes.firstChild.nodeValue;
    boxSubNodes = boxSubNodes.nextSibling;
    eval("btnOrg_" + boxIdx).onPress = function () { this.getURL(boxSubNodes.firstChild.nodeValue, '_self' } ;
    boxIdx++;
    boxCurrentNode = boxCurrentNode.nextSibling;
}

The text boxes are filled correctly but all the "onPress" events points to the URL of the last string on the XML file. It seems that the function created for each movie button is overwrited on all previous movie buttons...

Ideas?

Carlos - a LINUX addict!

Scrolling Movie With Invisible Buttons That Link To External URLs
I need to build a Flash movie similar to the one at www.avantafcu.org, which I'm assuming uses invisible buttons to link to the external URLs. How do I make the buttons travel with the movie as it travels to the left of the viewing area?

TIA for your help.

10 Flash Buttons Each Needin Linking To Seperate Urls In Html Page
I have a group of 10 flash buttons build in flash as a single flash element. I am using this in a html page however need each button on the flash to link to a different htm url. For some reason I cant make it work.

Could someone pease help me in how to do it. The webpage is www.kids-active.co.uk and it is the buttons down the left hand side.

Edit Test Buttons
Is it possible to edit the text that i have converted to a button?

Help Needed To Edit Buttons
Friends,
I have downloaded an attachment, it has a button menu created with flash. Its having 4 buttons, but I need six, so I have duplicated the buttons and edited the text. But the problem is, it has a rollover animation. Which when clicked stops, from the buttons I copied the two also stops the animation when clicked on the duplicated buttons. Please help me, I am writing down the scripts, may that help you..


Quote:




switch (_root.button) {
case "1":
item1.gotoAndPlay("s1");
_root.link<>1;
break;
case "2":
item2.gotoAndPlay("s1");
_root.link<>2;
break;
case "3":
item3.gotoAndPlay("s1");
_root.link<>3;
break;
case "0":
_root.link<>0;
break;
}




The scripts are same on both buttons, will editing them help to differentiate the button animation control?

Getting Edit Path Of Text In Buttons Using Actionscript?
Dear All,

I wanted to change the colour of text within buttons, but could not get the name to use with the text object scripts - using the instance name of the button would not work.

Someone suggested using the debug:list objects to get the instance name. This worked, however should one naviagte around from screen to screen the instance names change. Not good! Also hand doing this for each button would not be efficient.

So is there a way of actionscript getting the target path of the text object within a button?

Cheers

Steve

Save And Edit Buttons Cannot Work In Calendar
I need help from experts.

You allow to key in the reminder in the calendar just need to double click on the day of date you want.

But save and edit button got some errors now.

Problems:
1) Cannot save after edit
2) The date is wrong when you edit the reminder




Thanks

Ching

How To Undock/ Move The Edit Panel/ Edit Toolbar
How do i move (drag) the Edit Panel. The Edit Panel is at menu:
Window > Toolbar > Edit Bar.

Why i ask this, is i find this panel useless. But hiding this panel makes me unable to see the exact location where i am from the _root after doubleclicking some time on instances. (suppose i'm at _root.button_btn.movieclip_mc.dynamicTextField.txt and i want to know whether i'm at this address:
_root.button_btn.movieclip_mc.dynamicTextField.txt )

Enabling Your Clients To Edit These Xml Files Or Txt Files In An Easy To Edit Format
Okay so this is an issue i've faced since day one and am growing tired of not having an ideal solution for. I've learned to create files that can be updated via xml or simple .txt to make the updating process easier, but how do you gurus out there bridge the gap by enabling your clients to edit these xml files or txt files in an easy to edit format like your basic cms... but except it would be cms that would update the xml or txt file and then in turn update your swf file.

I'm sure you guys out there rely on many different solutions but i'm just looking for some enlightenment on the different ways to accomplish this and what i could possibly do to be pointed in the right direction.

Thanks ahead of time for any insight.

Text Input Using Buttons
Im trying to input text into a field using an onscreen keyboard ( series of buttons ) Whats the best way? Set up an array? it also needs to be revisable i.e. backspace and cursor edit capable. Im pretty new to this, so basic intructions are greatly appreciated

INPUT HTML THAT HAS BUTTONS
hi guys,
I am loading text into a input text box on my stage. the text is HTML and there are ten headings within this text. I want to be able to click the headings, so I want them to be buttons that I can attach actions to...is this possible??
thanks,
tom

Buttons And Input Texts In A MC
I have a movieclip with input textfields and buttons in it,and when i Play the scene in the movie clip, they all work fine, but when i play the movie, the buttons and textfields cant be selected. In the movie,too, the movieclip is moved around with arrow buttons, not sure if this is the problem, but im thinkin it might be.

Thanx in advance

How Do You Input Text From Buttons?
This might be a tricky one. I have a virtual keypad "if you will" and each number is a button. I have an Input text box with "inputN" variable and id like the buttons to create a string in the box when they are clicked. I have an mc tracked as a button with this script on button 1

on (release) { inputN = "1" ;}

when i do this with number 2 obviously it just wipes the other one out.
Im creating an cash machine basically and am trying to get the PIN input to work correctly.

Hope someone can help

Problem With Input And Buttons
Hmmm, how do I start!! Ok, I have 8 buttuns and 16 textfields. When I set focus on textfield number 1, and then press button number 6 (which has the value "Hello"), this value will be seen in the textfield I have set focuse on. In this case, textfield number 1.

Is it too complicated? Sorry about that, but if anyone understand and can help me (or know a site to find a .fla), I would be so thankful.

Miche

Problem With Text Input And Buttons
I have this prob with flash mx and dreamweaver mx.

I have to make this thing for school.(my own test)an d my classmates have to make it.

but anyway I added a text input in flash so they can write their answers there.I also added a button in dreamweaver so they can go to the next question.but here's my prob when they click on that button.The text on the previous question(written in the text input area)is gone can anyone help me i cant add the file.but i really need help today.

thx

Input Boxes And Disabled Buttons
Well, I have tried my best to find the answer to this simple question, but I have had no luck =
Basically lets say I have an input field with 3 fields (name, password, email) and the instance names for those fields are also (name, password, email). Then at the bottom I have a "submit" button with an instance name of "submit". I am trying to disable the button until the forms are filled with text. Here is my code which is placed in my "action" frame.


Code:
submit.enabled = false;

if(name.text!=""
&& password.text!=""
&& email.text!="")
{
submit.enabled = true;
}


What am I doing wrong? Thank you for your help!

-davy

PIN Code Input With Onscreen Buttons?
Thanks for looking

I would like to input a 4 numbered PIN code, by pressing on-screen representations of the numeric key-pad (btn1, btn2 and so on).

How would it be possible to "process" and validate the input immediately when the amount of numbers inside the "pinCode" input field reaches 4?

I am thankful for any feedback.


cheers

Problem W/ SetFocus, Input Text, And Buttons
I've created a movie clip that contains several input text boxes and two buttons. After adding setFocus so the user could tab to the input boxes, I realized that it is also tabbing to the buttons. How do I get the tab to pass the buttons by?

[F8] Help With Scrolling Buttons (any Help Or Input Greatly Appreciated)
[center]I'm trying to complete a tutorial on the scrolling thumbail. It's suppose to be real simple just some buttons inside a movie clip named PANEL. On mouseover left or right of center the buttons are suppose to scroll left and right. unfortunately i've spent most of the afternoon checking and re checking my code. If any one could shed some light on my problem i would be very grateful! Here is what i have:


Also this tutorial i'm refering to is for Flash MX and i'm using Flash pro 8. Is this possibly causing the problem?


panel.onRollOver = panelOver;

function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}

var b = stroke.getBounds(_root);

function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}

var xdist = _xmouse - 275;

panel._x += -xdist / 7;
}

[CS3] Programming Buttons To Recognise Keyboard Input
Hi there, i'm modifying this piece of script to do something specific:

I have a button which is defined in the actionscript as:

movieclip.button.onRelease = function() {
this.gotoAndStop(1);
};

What i'm actually wanting is for the button to do the same thing but when the enter button is pressed on the keyboard.

I know under the usual way of programming buttons it would look like:

on (keyPress "<Enter>"){
gotoAndStop (1);
}

but i do really need it as the top function.

Thankyou in advance!

Text Input Field Interferes With Buttons
I'm creating an educational game that involves a gallery of images named thumbbarEZ3 that you can flip through using a pair of buttons, and a text input field named pick1[2, 3, etc] for entering a number. A strange glitch has come up: from the moment the focus is set on the text field (i.e., you click in it to enter a number) the forward-back buttons get balky. If you keep clicking in the same spot the images won't flip even though the mouseover/hit state of the button is lit--you have to move the cursor slightly to make it work again. I've tried a number of fixes. The text box is on its own layer, each instance of it in the game has a unique name, and the idiot-simple script for the forward-back buttons makes no reference to it whatsoever.

The script is assigned to the buttons themselves rather than using an event listener--could that be the problem? Can anyone point me to a reason why setting the focus on a text box should interfere with a completely unassociated script on the page?

Here's the simple script, FWIW:

on (press) {
this.thumbbarEZ3.prevFrame()
}

That's on the back button; the foward one uses nextFrame() obviously.TextthumbbarEZ3thumbbarEZ3

Buttons And Input Text In Movieclip Do Not Respond
this should be really easy but i can't figure it out and it's annoying the crap out of me.

i have a movieclip that acts as a sliding menu, with only the right edge showing on the left side of the swf. whenever the user rolls over the edge, the whole thing slides out.

the movieclip acts as a button using:

MC.onRollOver = function(){ }

to slide the menu out when needed. however, this causes the mc to think it's a button, and the mouse changes to the the hover state (the hand with the finger pointing up), and also will not let the buttons and text inputs be used.

how can i set it up where:

1. it slides out when rolled over
2. it does not change the state of the mouse pointer
3. the user can use buttons, etc contained in the movieclip

thanks for the help, omnislant

Generating Buttons, And Other Interface Piecies Dynamic Based On User Input?
What I am looking to do is create a flash interface generator much like www.flashbuttons.com sort of....


my ultimate goal is to send out flash emails where the content is input dynamicaly

one other question.. is it possible to populate flash through the html of the page its on through embed or param tags?

is this where Generator comes in or can MX do this?

Input Numbers From Cellphone Into Dynamic Text Field By Clicking On Buttons
hey there,

I am constructing a form mailer that has a cellphone skin. To add some functionality I want to let the user click on the numbers of the phone and have the numbers appear into a seperate dynamic text field. (not to be sent via the form) How do I code it where they can click on the numeric button and the number will be added to the field while letting the numbers that were already clicked will remain in the field and not be erased.

thanks
-J

Dynamically Created Radio Buttons And Text Inside Input Boxes
I have been working on some code that will create input boxes dynamically set up to look like table. The code looks like this:


Code:
//attach header movieclip for NA
naHolder_mc.attachMovie("naHeader", "naHeads",getNextHighestDepth(), {_x:95, _y:8.4});
//code to create multi array through for loop
var row:Number = 15;
var col:Number = 15;
var depth:Number = 0;
var rowArr:Array = new Array(row);
var i:Number;
var j:Number;
for (i=0; i<row; i++) {
rowArr[i] = new Array(col);
for (j=0; j<col; j++) {
rowArr[i][j] = "["+i+"]["+j+"]";
}
//trace(rowArr[i]);
}
//code to iterate through multi array elements
var outerArrayLength:Number = rowArr.length;
for (i=0; i<outerArrayLength; i++) {
var innerArrayLength:Number = rowArr[i].length;
for (j=0; j<innerArrayLength; j++) {
var tableFormat:TextFormat = new TextFormat();
tableFormat.font = "Arial";
tableFormat.bold = true;
tableFormat.size = 11;
tableFormat.align = "center";
_root.createTextField("NAr"+i+"_c"+j, depth,95+(33.5*j), 30+(i*20.7), 28.1, 16.2);
var _box:TextField = _root["NAr"+i+"_c"+j];
_box.type = "input";
_box.selectable = true;
_box.restrict = "DdEeNnXx";
_box.border = true;
_box.multiline = false;
_box.maxChars = 1;
_box.textColor = 0xff0000;
_box.setNewTextFormat(tableFormat);
depth++;
trace(_box);
//trace(rowArr.length);
}
For a couple of days now I have been trying to create radio buttons along with the input boxes that will sit on the left side of the text boxes 3 on each row that have the labels D, E, and N. So far I have come up with nothing. I also need to have the row headers placed in the first column of the input boxes saying NA 1, NA2, NA 3, inside the input box. Does anyone have an idea on how to do this or where I should start?

I have been able to create radio buttons by using the import mx.control.radiobutton code and then createClassObjects class but don't know what type of loop to use to align the 3 radio button on the yaxis of each of the rows.

How Do I Dynamically Create Radio Buttons And Text Inside Input Boxes
I have been working on some code that will create input boxes dynamically set up to look like table. The code looks like this:


Code:
//attach header movieclip for NA
naHolder_mc.attachMovie("naHeader", "naHeads",getNextHighestDepth(), {_x:95, _y:8.4});
//code to create multi array through for loop
var row:Number = 15;
var col:Number = 15;
var depth:Number = 0;
var rowArr:Array = new Array(row);
var i:Number;
var j:Number;
for (i=0; i<row; i++) {
rowArr[i] = new Array(col);
for (j=0; j<col; j++) {
rowArr[i][j] = "["+i+"]["+j+"]";
}
//trace(rowArr[i]);
}
//code to iterate through multi array elements
var outerArrayLength:Number = rowArr.length;
for (i=0; i<outerArrayLength; i++) {
var innerArrayLength:Number = rowArr[i].length;
for (j=0; j<innerArrayLength; j++) {
var tableFormat:TextFormat = new TextFormat();
tableFormat.font = "Arial";
tableFormat.bold = true;
tableFormat.size = 11;
tableFormat.align = "center";
_root.createTextField("NAr"+i+"_c"+j, depth,95+(33.5*j), 30+(i*20.7), 28.1, 16.2);
var _box:TextField = _root["NAr"+i+"_c"+j];
_box.type = "input";
_box.selectable = true;
_box.restrict = "DdEeNnXx";
_box.border = true;
_box.multiline = false;
_box.maxChars = 1;
_box.textColor = 0xff0000;
_box.setNewTextFormat(tableFormat);
depth++;
trace(_box);
//trace(rowArr.length);
}
For a couple of days now I have been trying to create radio buttons along with the input boxes that will sit on the left side of the text boxes 3 on each row that have the labels D, E, and N. So far I have come up with nothing. I also need to have the row headers placed in the first column of the input boxes saying NA 1, NA2, NA 3, inside the input box. Does anyone have an idea on how to do this or where I should start?

I have been able to create radio buttons by using the import mx.control.radiobutton code and then createClassObjects class but don't know what type of loop to use to align the 3 radio button on the yaxis of each of the rows.

Two Different Urls - One .swf
I need to use the same .swf in two different urls. The thing is I need the .swf to recognize the url and adjust itself accordingly - hide some buttons, show some other. Does this make any sense what I am trying to do.
Any help would be great or point me in the direction of a tutorial.

Thanks
Carter

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