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




OK, Forget The Radio Button....



Aloha,

The title is in reference to my previous post.

Ok, what I'm needing help with is this:

I'm attempting to skin the Tree UI Component, all I want to do is change it so that when someone clicks on the file icon, (the one that is displayed beside a childnode with no additional childnodes) it simply turns red. I can't seem to get it right, could someone give me a hand? (stop clapping! )

Thanks



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2004-02-09


View Complete Forum Thread with Replies

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

Dynamic Creation Of Radio Buttons In A Radio Button Group
Is there a way to dynamically add new radio buttons to a radioButtonGroup say from an xml file? I am looking for a similar functionality to what I would receive if I were to use a dataprovider for a comboBox (except I need to use radio buttons). Code samples are appreciated. Thanks

Deselect All Radio Buttons In A Radio Button Group
how do you do it? --like if you want to reset all the fields in a form.

thanks.

Forget Crisp Pixel Fonts, What About A Simple, Crisp Button?
Hi,

I am trying to do something very simple here. All I have is four rectangular buttons next to each other with about a pixel of space between them.

My problem: No matter what I do (getting them onto
whole co-ordinates etc.) I cannot seem to get them looking crisp.

They seem to be slighty crisper in flash 5 for some reason.

Please help

Chris, Cape Town

Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill

Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill

Forget >.<
how do i make a play button and the thing i put on in the Frame
Cause i Forgot >.< >.< >.<

Forget About The Frames
The html documents are on my webserver. I just included the name of the document in the actions for my buttons.
Very Simple. The files are on my webserver. I just provided a name of the file in my MX program when I wrote the link.

It is just leftframe.html Sorry it is just a page not frames.

Forget Friends Of Ed...
http://www.phong.com
http://www.levitated.net

LEVITATED IS PURE GENIUS!
YOU CAN EVEN GET THE CODE FOR EDUCATIONAL PURPOSES
ALSO:

WWW.FONTSFORFLASH.COM

*********************

NOW IN FLASH PRO, IF YOU KNOW HOW TO LINK A TEXT FILE OR HTML
FILE TO A SCROLLING TEXT BOX...SEND ME A SAMPLER...POST IT
HERE AS A LINK PLEASE!

Is This Possible With AS? Or I Should Forget Flash
my vw client came up with this idea of making a mosaic picture of new beetle with all small new beetle photos. the picture is done with a software, however, the client wants a animation to load in the picture in order by each small photos from a specific direction.

i think this is probably beyond flash's capability, even with actionscript, what do you guys think?

this is the link to the mosaic picture:
http://www.honestweb.cn/tempfile/nb_s.jpg

Reading Movie Name - Possible Or Forget It?
I have many files test1.swf, test2.swf, test3.swf etc...
Is it possible with Actionscript to get the movie name so it would return "test1.swf" (or whatever the movie is named)?

Thanks....

Declaring Variables.... I Forget How.
Hey ppl,

I think I used to know how to do this but since the work I am getting lately is so inconsistent, I think I forget how.

I need to pass a swf to a guy for use in Authorware.

He wants me to make a blue square, and a green square.
And when the variable = "blue" he wants the blue square to come up, when the variable = "green" then the green square needs to come up.

I have no idea if I should make this a 3 frame swf, with nothing in the first frame, and a blue square on frame 2, a green square on frame 3... etc. Or make it all a movie clip? I have no idea where or how to even begin.

Please help me, maybe once this is answered I can remember how to do other stuff too.

Thank you very much.

Forget It Found My Error...
Hi again,

Found my mistake - Thanks JennyJ




Luke

I Forget Code For Rooting
Hi, I havent done this for a while and i forget the exact code.
I have a button in a movie clip and i need to get it to go to a frame on the main timeline.

How is this done?

Thanks
Aidan

When Using XML As A Text Source Don't Forget This
If using XML as a text source and you have a need to use any of the following special characters, then read this.

For example the text I want to display:
Rod's new site "I Rule" is awesome.

In you XML it needs to be as follows:
Rod&apos;s new site "I Rule" is awesome.


There are 5 predefined entity references in XML:

< < less than
> > greater than
& & ampersand
&apos; ' apostrophe
" " quotation mark

Entity references always start with the "&" character and end with the ";" character.

Note: Only the characters "<" and "&" are strictly illegal in XML. Apostrophes, quotation marks and greater than signs are legal, but it is a good habit to replace them.

Enjoy!

Rod

XML - How Tell XmlObject Forget The Nodes?
Hi, guys!

I have to use a very long function 3 or 4 times. This function builds a list using attachMovie method.

The code to load the XML list is:


Quote:




var brXML:XML = new XML();
// I use the tipoDisco var to change the xml I want to load...
var tipoDisco:String = "trabalhos/xml/todos.xml";
brXML.ignoreWhite = true;
brXML.load(tipoDisco);
// on load...
brXML.onLoad = function(success){
if (success) {
geraLista(this);
} else {
trace("XML was not loaded");
}
};




Then I have 3 buttons with the actions...


Quote:




// asking a new XML document...
this.producer_btn.onRelease = function() {
tipoDisco = "trabalhos/xml/produtor.xml";
brXML.load(tipoDisco);
};




When I click the button, it loads the correct XML and rebuild the list, but the old list CONTINUES above the new one. How can I say "Hey, flash! Forget the old XML and, now, use THIS, AND JUST THIS XML to build the new list" ?

Is it possible? I´ve tried the XML.removeNode method but it does not work.

Any Idea?

Thanks a lot to everyone!

When Using XML As A Text Source Don't Forget This
If using XML as a text source and you have a need to use any of the following special characters, then read this.

For example the text I want to display:
Rod's new site "I Rule" is awesome.

In you XML it needs to be as follows:
Rod&apos;s new site "I Rule" is awesome.


There are 5 predefined entity references in XML:

< < less than
> > greater than
& & ampersand
&apos; ' apostrophe
" " quotation mark

Entity references always start with the "&" character and end with the ";" character.

Note: Only the characters "<" and "&" are strictly illegal in XML. Apostrophes, quotation marks and greater than signs are legal, but it is a good habit to replace them.

Enjoy!

Rod

What Happened With: Forget My Las Post?
Last edited by Eliffio : 2002-11-01 at 11:27.
























Hey! what happened with my las post: ¨Forget my last post¨ Was there any problem with it or with my answer?? I´ve entered to look if there are any replys and it has dissapeared!!

Forget That Last Post. Here's A Clear Explanation
ok,

I'm working on a presentation for a cd.

In essence, I have a list of 8 categories, each of which relates to a list of items in that category. The categories appear in a box on the left. The related items appear in a box on the right.

The list of related items will often be longer than the box it appears in, so the list will need to scroll. In addition, the items need to be buttons, so this isn't really scrolling text. I was going to use a mask or something like that, with a "goto frame x" action, but there must be a better way...

Thank you for sharing...
Jen

The Easy Things I Always Forget...linking.
Hi!

Ok, have forgot it again..

Have a button inside a mc.
When I click that button I want to go to another frame("main_1"), on the main timeline. And in that frame I have a mc("main_1"(aswell))and I want to go to a frame in that mc that´s called "start".

this is the code right now, but it only goes to the mc:s first label and stops their(because I have a stop of course, but why doesn´t it jump to the label: "start" in that mc?


on (release) {
_root.gotoAndPlay("main_1", "start");
}

cheers!

chris.

Flash Wishes - Don't Forget To Tell Macromedia
I know a lot of us are hoping for more in Flash 7, which, as we know is currently in beta testing.

It's not incredibly likely that MM will add many requested features to the current MM Devs Flash 7 paperwork/bible, but I'm sure we can try to squeeze a few things in there, or at least build some hopes for Flash 8.

I've been submitting my own feature requests and bug reports, but I'm certain plenty of the Flash Junkie Community hasn't....I just wanted to make sure everyone gets their word in!

The Macromedia Software Feature Request & Bug Report page can be found at: http://www.macromedia.com/support/email/wishform/, so those of you who are hoping for more, please let Macromedia know about it!

Make A Input Box Forget What We Wrote
How can we make an inputb box forget what we wrote without refreshing?

Radio Button
Can anyone help me with the use of radio buttons.

I would like to have radio buttons on a map and be able to choose two buttons then get a price for distance travelled.

A prime example of this would be a subway, where you choose the start station and then the end station and get the price for the journey after clicking a button called Get Fare.
I would be most grateful if anyone can help.

Just to let you know I'm a complete novice when it comes to radio buttons, so be gentle.

I posted this message in the newbies form but no-one has answered, I know it's simple but for the life of me I cannot seem to figure it out.

http://uk.geocities.com/larf2day/

Radio Button Help
Case is...

1. Got Multiple Answers (at least 4 per screen)
2. Only one is correct
3. After getting the correct answer, score adds 1


I really really need your help guys! Please, I need to know how to do this asap...

Radio Button HELP
I posted this on actionscript.org earlier, and still need some assistance.

I am using Flash MX, and have designed a page that, once the end-user selects their information via Radio Button, I want to send them to a certain part of the time-line to show them a video of how to setup their machine to their configuration.

I have added the screen as an attachment so that a visual reference can be used.

There are two groups of Radio Buttons, one set of three on the top, and one set of two on the bottom.

I understand that I need to use a function to get the information from the buttons, but that's where the difficulty comes in. I'm not sure how or where to start. =(

Any help on this would be greatly appreciated. Thanks a lot, in advance!

Radio Button Help
hi, i just about have my buttons all ready but something in the script is a little screwy.

i have a bunch of radio buttons in a parent clip and i have this script in the parent:

onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
for (item in this) {
rButton = this[item];
if (rButton.getState()) {
loadMovie (rButton.getLabel()+".swf", "_root.anchor");
break;
}
}
}
}

Radio Button Help, Please
i am having a very tough time trying to use radio buttons on my flash form.

The form is processed by a java servlet. there are about 10 groups of radio buttons, each group having 2 radio buttons (Add and Remove).

the problem i have is when a user does not select either ADD or REMOVE from a particular set of radio buttons. what value is passed to my servlet when both radio buttons are blank?

I have a loop in my servlet that checks for null and "", but that doesn't seem to work. Here's the loop (just a portion of it):

int i=0;
String[] soft= new String[23];


if (req.getParameter("GCard")!="")
{
soft[i]=req.getParameter("GCard") + " Guard Card";
i++;
}
if (req.getParameter("PeopSft")!=null)
{
soft[i]=req.getParameter("PeopSft") + " PeopleSoft";
i++;
}

I have tried both the null and "" to see which one would work, they both do not work.

Here is how i pass the info from flash mx:

PeopSft = PeopSft.getValue();
GCard = GCard.getValue();
getURL("http://wegweb/servlet/FLnewuser.class", "_self", "GET");
}

Can anyone help me??? is there a way to set what gets sent to the servlet if both radio buttons are not checked?
THANKS!!

Radio Button If-else Help
Have a radio button test with 4 possible answers. Only # 1 (or in this array place 0)is corrct, and I want the "check1" movieclip to play, anything else checked, and "wrong" movie clip plays....

no matter what I press, the "wrong" movieclip plays when I validate...

What am I doing wrong..!!!!!!

Thanks...

Here's the code..:


stop();

btn1.onRelease = function() {
checkAns();

};

function checkAns() {


AnswerQ1=new Array(_root.A1.getValue(),_root.A2.getValue(),_roo t.A3.getValue(),_root.A4.getValue());
if (AnswerQ1[0] && !AnswerQ1[1] && !AnswerQ1[2] && !AnswerQ1[3]) {
init1 = {_x:45,_y:160};
_root.attachMovie("check1", "check1",20,init1);

} else {
init1 = {_x:45,_y:160};
_root.attachMovie("wrong", "wrong",21,init1);
}
}

Radio Button
hi,


I use Flash MX and need to increase the size of radio button

component.This may sound silly but i am not able to figure it out,

Thx,

Ricky.

Radio Button Help
I have radio buttons with tabs set... and if disable keyboard shortcuts is selected in testing mode.. it tabs from one item to the next... but the main issue is...

I want to beable to hit spacebar and enable the current radio button I am on... is this possible? if i select one of the Radios with my mouse... my tabs are gone and nothing tabs anymore... I have place 2 links at the bottom of this one is my .fla and the other is my .swf.. if anyone can help it would be much appreciated...

Thanks,
Carlos


www.techyhelp.com/flashattempt/Radios.swf

www.techyhelp.com/flashattempt/Radios.fla

once again i appreciate any help...

Radio Button To PHP?
Hi guys, me again

I just searched trought the hole forum about this one and didnt have any good awnser for it, i just found lots of ppl with the same problem...that i think could be easy ...(not to me of course )

Well, im trying to make a SIMPLE radio button question like

Gender?: ( ) male ( ) female

and send the data to a PHP script. The problem is, i dont know how to get this data into the php (ill send that to an e-mail).

Anyone know whats the code to flash and the script to php so it may work??? Going crazy out here....

Thanks in advance..

Radio Button
hi there, im really sorry but this question is not for flash but its for html. i didnt find n e html board here. dont u guys think there shud be html related message board also put up here. ok n e wayz my question is that if someone clicks on a radio button it shud go up the page where therz an achor tag define. for e.g

i have some text at top of the page. and my form is way bottom at the end of the page. now if some1 click on dat radio button he shud go at top of the page. so pls help me out in the script. thnx in advance.

Radio Button Help
I am trying to enable a function based on a radio button selection in flash MX. I would like to do so without a submit button...is that possible? I have 2 radio buttons in the same group.

If the user selects the 1st radio button, this will start the drawPole_fn(1)

if the second radio button is selected, this will start drawPole_fn(2)

What happens with my current code is drawPole_fn(1) is enabled, without any radio button selected. I would like the functions to start after a button is selected.

Here is my code:

function setPoleType_fn()

{
poleDesign=ControPanel_mc.poleDesign_rdo.getValue( );
if(poleDesign=="Standard")
{
drawPole_fn(1);
}
else
{
drawPole_fn(2);
}
}


Thank you for any help you can give!

Radio Button Value
Greetings

I'm trying get the value of a radio button group, ie, return the value of the selected radio button.

have tried the following:


PHP Code:



radioGroup.data
radioGroup.selection
radioGroup.selected




but nothing is returning the value of the selected radio button.

Have also tried



thanks
PHP Code:



if (_root.radioQuestion == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}





PHP Code:



if (radioQuestion.selectedData == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}





PHP Code:



if (radioQuestion.selection.data == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}




but nothing is working.

Can anyone tell me how to trace the value of the selected radio button?

thanks

Radio Button & PHP
I'm trying to make a form containing radio buttons work together with some text fields using php, i already have all the text fields working just need the radio buttons to work so i will only post the radio part.

for the 1st frame I have :

fscommand ("allowscale", "false");
mailform = "appraisal.php";
action = "";
stop ();

for the 1st radio button's Parameters I have:
Component:maleRadio
Groupname: gender
label placement: right
selected: false
and second radio button
Component:femaleRadio
Groupname: gender
label placement: right
selected: false

This is the part where I dont know what to do. I believe I need an action script around here to make it work, for the submit button i have:





on (release) {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != -1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum("appraisal.php", 0, "POST");
nextFrame();
} else {
vemail = "Please enter email";
action = "";
stop();
}
}



Can you please help me or give me an example? i'll appreciate it, thanks.

Radio Button
Hi.

Does anyone know how to add a radio button to a web form in flash?
It needs to post to an asp file.

Thanks and Happy New Year.

How Do I Get A Value For A Radio Button?
How Do I Get A Value For A Radio Button component? Do I reference the instance name the groupName? I'm new to components for Flash 8 so can anyone help me?

Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.

I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.

I am also having them fill out a text field for their email , and the message they are sending.

But how do I do this? I am lost and would appreciate some help.

This is the PHP code....I'm using...


$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";

// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.


// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];

// now we can add the content of the message to a body variable
$message = $_POST["message"];



// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);

?>

Radio Button
how can i set a radio button so that it isnt selectable, if i do

radio1.setEnabled(false);

it changes its apperance so it looks like you cant select it, but you still can???

Radio Button HELP Please
I am creating a quiz for a school project and I need help customizing radio buttons.

How can i change the color and size of the text? It seems impossible. Is there actionscript I can use?

Any help would be much appreciated. Thank you.

Radio Button Help
Hello,

I'm a teacher that's been trying to create a quiz for my students. I'm pretty new to flash so I don't know the syntax to this fairly simple task. Anyone who can assist I'd appreciate it as I only have a few more days to put this together before the rush of school begind again.

Basically I want to create 4 radio buttons. When a submit button is clicked, I'd like it to know the selected value of the radio button state so that it can be posted to an asp page.

So far I have fill in the blank fields that are sent to my asp page just fine. The radio button value however isn't coming through. Instead I get the following in the url: answer=%5Bobject+Object%5D

Now 'answer' is the name of the radio group. Each radio button within the group are labeled a,b,c,d. How do I get answer to equal what the label value is. For instance, if the student selects answer 'C' I'd like the posted data for the answer field to simply show: answer=c in the posted data url.

This is the syntax I'm using to post the data for test page:
on(press){
getURL("http://www.lbsc.edu/test5/result1.asp","","post");
}

Any help would be greatly appreciated!

How To Get The Value Of A Radio Button
Hi

I'm using the Radio Button component of flash and I drag and drop it on my scene.

I named the RadioButtonGroup as "test" but my problem is that I can't get the value of the selected button.

If I do:

Code:
trace(test.selectedData);

I get the following error message: 1120: Access of undefined property test.

But I set the RadioButtonGroup as test in the property panel of each button.
What's wrong?

Many thanks for your help

[F8] Need A Radio Button On
Hi,

I have started a quiz game where you have 4 options (A,B,C,D). To select the answer desired, the player must select one of the radio buttons. But I'm also trying to make it so you can press A,B,C, or D on the keyboard to select the radio buttons also -- the problem is my script won't work. I've tried a couple of codes from other posts, but they won't work either.
Help please.

(btw, I made a bunch of random attempts to make it work)

[F8] Radio Button Help
I set up an emailer form with radio buttons. Problem is that the input text fields and the radio button label do not appear unless the email form mc is placed directly on the _root timeline. If I place the email form inside another mc then place that mc on the _root timeline, it will not show the text for the radio button or input text. Thanks

[F8] Radio Button Help Please
Hello,

So I'm making an application that requires the user to make a selection on the first frame via a radio button. There will be multiple buttons (example)...
selection 1
selection 2
selection 3

Each Selection needs to load images from an external folder into the provided empty movieclips ON OTHER FRAMES. The problem is I don't know how to target a different frame and load the images. I obviously have to store the info in a variable. Does anyone have a good suggestion on how to apply it?

Here is what I have on the radio buttons to monitor the selection...

var rbListener:Object = new Object();
rbListener.click = function(evt_obj:Object){
if(radioGroup.selection == rb1){
trace("rb1");
} else if(radioGroup.selection == rb2){
trace("rb2");
} else {
trace("no selection");
}

}
// Add listener.ll
radioGroup.addEventListener("click", rbListener);


And this is how I currently load the images without a selection
loadMovie("sponsor/logoTest.jpg", _root.logo_mc);

Radio Button
Hi,
I want to make two radio buttons in my flash site,
how can I solve that?

thanks for any response...

Radio Button
Is it possible to make an radio button or 2 in flash mx? maybe with an actionscript.

I'm making a mailinglist with input text for email adress so far i get it but is it possible 2 make 2 radio buttons with subscribe and unsubscribe??

Can someone help me if it's possible how to do it?

Thanx Jos

Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.
I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.
I am also having them fill out a text field for their email , and the message they are sending.
But how do I do this? I am lost and would appreciate some help.
This is the PHP code....I'm using...

$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.

// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body variable
$message = $_POST["message"];

// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>

Radio Button Help Please...
My mind can't seem to digest how to make the radio buttons work, even after reading the action script guide in Flash MX...

please help me here, I'm VERY lost...

Situation:
Four choices, when the correct one is chosen, score adds 1 point.

Thanks. I really need this...

Radio Button Help
I was wondering if you are able to refer to the radiobutton groupname? I have about 10 radio buttons all with the same groupname and when I click on my next button, if none are selected an alert message come's up. But am I able to say: "if (groupname(radiogroup.selected == false));" Does the groupname have those sorts of properties??

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