Flash 8 UI Component: Radio Button
Hi:
May someone kindly guide me how to bind a radio button to a
text area? Perhaps without using action script.
What's the trick of binding the Radio Button in Flash 8 as
the attempt to bing ComboBox or some other UI components has no
problem at all; but only the Radion Button.
Thanks!
Thanks for the response.
After i posted I kept digging and found where the code is
that sets the font for the Radio buttons in the quizzes when you do
an export to flash. What I found out is listed below in case anyone
else ever needs the information- hopefully it will save someone
else some time.
The ".as" file is --
C:\Documents and Settings\YOUR NAME HERE\Local
Settings\Application Data\Macromedia\Flash
8\en\Configuration\Classes\AdobeCaptivate\quiz\CpMultipleChoice.as
Strating at line 106 there is the following code
p._font.name = "Arial";
p._font.size = 12;
p._name = "" + numAnswers;
I was then able to make the font size larger to match the
other text on the screen (i do have to say it's rather annoying
that those attributes don't get exported from the captivate file,
because i set the font properties before exporting - but i guess
there is probably a reason for that)
Similar Messages
-
Exported To FLash 8 - MC question Radio Button Size?
I have a quiz that uses MC and T or F questions - I am
exporting it to flash to integrate it with some other content.
I have everything working at this point, except I need to
increase the font size of the question Radio buttons and everything
i have tried so far hasn't worked. I am guessing it is somewhere in
the captivate quiz class files but i havent been able to track it
down.Thanks for the response.
After i posted I kept digging and found where the code is
that sets the font for the Radio buttons in the quizzes when you do
an export to flash. What I found out is listed below in case anyone
else ever needs the information- hopefully it will save someone
else some time.
The ".as" file is --
C:\Documents and Settings\YOUR NAME HERE\Local
Settings\Application Data\Macromedia\Flash
8\en\Configuration\Classes\AdobeCaptivate\quiz\CpMultipleChoice.as
Strating at line 106 there is the following code
p._font.name = "Arial";
p._font.size = 12;
p._name = "" + numAnswers;
I was then able to make the font size larger to match the
other text on the screen (i do have to say it's rather annoying
that those attributes don't get exported from the captivate file,
because i set the font properties before exporting - but i guess
there is probably a reason for that) -
Flash combobox, check box, radio buttons to wok with php for email
Hi i'm a newbee in flash web designing can you help me
out???? I'm making a reply form consist of text field, check
buttons, combo box. think my acton script and php code has a
problem. Can somebody help me out??? Thank you very muchHave a try with HTML:
"<html>First line<br>Second line.</html>" -
Okay, I give up, I've searched online and in several forums,
pored through
the Director documentation, and can't find a single tutorial
explaining how
exactly to use the Flash component Radio Buttons in Director.
And
apparently I'm not alone, about all I could find was another
post in this
group from over a month ago asking the same question without
getting a
single response. (Also found a few other questions regarding
them in other
forums, but one thing I didn't find anywhere was anyone
actually *answering*
these questions.) Do I have to actually use Flash to get
these to work?
Assume for a moment that I know exactly nothing about Flash
(not far from
the truth). What exactly do you have to do to make the other
buttons
automatically deselect when you click one? According to what
little
documentation there is in the Director help files, this
should happen
automatically, but apparently I'm missing something, because
it doesn't.
This was relatively simple with the old classic Radio
Buttons, and I'm
seriously considering just going back to using those (never
mind the
primitive graphics), or maybe just scripting my own from
scratch. (It's not
really that complicated a behavior, and at this point it
seems like it would
be easier than trying to use what seems to be an almost
completely
undocumented feature...)The Flash Components are not documented in Director, though
they are
documented in Flash. If you can parse the dense and difficult
to
understand Flash Help file (and yes, you would need to have
Flash to get
it), then you can see all the docs for those components.
Before I go much further, I should say that in my experience,
using
#flashComponents is a painful and tedious business. I do not
recommend
it. It will probably be MUCH easier on you in the long run if
you write
your own script from scratch.
But, for the sake or archival completeness, this is a script
that will
do what you want with the checkbox/radio button
#flashComponents:
1) Go into the Property Inspector and on the FlashComponent
tab for each
member, make sure that the eventPassMode is set to
#passAlways
2) Put this code onto the buttons:
on mouseUp me
if sprite(me.spriteNum).selected then
sendAllSprites(#deselect,me.spriteNum)
end if
end
on deselect me, vExcept
if me.spriteNum<>vExcept then
sprite(me.spriteNum).selected=0
end if
end -
Default value of radio button on first row in table
Hi,
I have created a custom page which includes a table ("SuppliersTable"), the table has a singleSelection table component (radio button) linked to a transient attribute ("SelectFlag") in a VO ("ApSuppliersVO"). The table is populated from a Query region.
I would like to 'select' the radio button on the first row of the table by default when a query is executed (when a user clicks "Go"), I have tried the following but its not setting the value:
In CO:
if (pageContext.getParameter(go) != null) {
System.out.println("The GO button was pressed");
am.invokeMethod("handleFirstRows");
}In AMImpl:
public void handleFirstRows() {
System.out.println("1");
OAViewObject suppliersVO =
(OAViewObject)findViewObject("ApSuppliersVO");
if (suppliersVO != null) {
System.out.println("2");
int rowcnt = suppliersVO.getRowCount();
System.out.println("RowCount:" + rowcnt);
if (suppliersVO.getFetchedRowCount() != 0) {
System.out.println("3");
//OARow supplierRow = (OARow)suppliersVO.first();
Row supplierRow1 = suppliersVO.first();
supplierRow1.setAttribute("SelectFlag", "Y");
}Based on the debug messages I can see that it is calling the procedure, but either not setting the value, or not setting it in a way that renders it on the page and forces the event that goes with it.
Am I missing something/doing it completely wrong? How can I best achieve this?
JDEV 10.1.3.3.0
EBS 12.1.3
Kind Regards
CarlHey hi Carl,
Its pretty much correct , well , can you try the below code .
OAViewObject localOAViewObject1 = (OAViewObject)am.findViewObject("ProjectDatesVO");
if(localOAViewObject1!=null) {
Row DateVoROw = localOAViewObject1.first();
RowSetIterator iterator = localOAViewObject1.createRowSetIterator("iterator");
iterator.setRangeStart(0);
iterator.setRangeSize(localOAViewObject1.getRowCount());
for(int i=0; i<iterator.getRowCount(); i++)
DateVoROw=iterator.getRowAtRangeIndex(1); // represents first row
if(DateVoROw!=null)
// set the value here .
Kindly Let me know the update .
--Keerthi -
Using the radio button component to go to a frame on a MovieClip
hello,
I am using the radio button component in Flash with a continue button.
When the user clicks their option in the radio button and then clicks continue, I want it to go to a movieClips Specific frame.
Here is the breakdown and the script I have so far is below.
The radio group os named RadioButtonGroup
The instance names for each of the three options are noviceButton,intermediateButton,expertButton
My continue button has an instance name of continueButton
and my movie clip I am trying to target has an instance name of level_mc
here is my code so far:
continueButton.enabled=false
noviceButton.addEventListener(MouseEvent.CLICK, revealContinue);
intermediateButton.addEventListener(MouseEvent.CLICK, revealContinue);
expertButton.addEventListener(MouseEvent.CLICK, revealContinue);
function revealContinue(evt){
continueButton.enabled=true;
continueButton.addEventListener(MouseEvent.CLICK, clickContinue);
function clickContinue(evt){
var frameNumber=mc_levels.Number(noviceButton.group.selectedData)
gotoAndStop (frameNumber);
the problem starts with my varFrame line-I don't know how to get it to go to the movieClip and gotoAndStop at a specific frame, based on which radio button was clicked and after the continue button is clicked.
Does anyone out there have any ideas?
thanks
babsuse:
continueButton.enabled=false
noviceButton.addEventListener(MouseEvent.CLICK, revealContinue);
intermediateButton.addEventListener(MouseEvent.CLICK, revealContinue);
expertButton.addEventListener(MouseEvent.CLICK, revealContinue);
function revealContinue(evt){
continueButton.enabled=true;
continueButton.addEventListener(MouseEvent.CLICK, clickContinue);
function clickContinue(evt){
var frameNumber=mc_levels.Number(noviceButton.group.selectedData)
level_mc.gotoAndStop (frameNumber); -
Changing The Text Color In a Radio Button Component
Hi,
I'm using a background in my frame , so I need to know how
to change the color of the Radio Button Component. I tried using
the Property Inspector , but in that the color option is disabled.
The Flash version I'm using is Flash 8. Kindly provide me a
solution for this.
Thanks In Advance,
Lokesh RThere's a topic about this in the Flash help, about changing
components. You need to edit the file inside your Flash
installation folder, and make a copy of it to your liking.
But about radio buttons: is there any way to include them in
your project while maintaining the possibility of on(Keypress)
events? -
Help with Radio Buttons & Combo Box for Flash Form that sends email
I'm having a bit of a hard time with a Flash form that I'm working on.
I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
The PHP script pulls the values from the text fields with:
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
but using
$radioGroup = $_POST['radioGroup'];
doesn't retrieve the selected radio button value.
The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
http://dl.getdropbox.com/u/21984/flashform.zip
My solution needs to be ActionScript 2.
Thanks!again, you assign a variable. the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
for example, if you have sendLV and receiveLV loadvars instances, you can use:
sendLV.rbData=yourradiogroup.selection.data;
sendLV.yourothervariables=yourothervariables;
sendLV.sendAndLoad("yourphp.php",receiveLV,"POST"); -
Multiline labels in the radio button component
How can I have multiline labels on my radio button
components? I can't seem to find good documentation anywhere on how
to do this. This is the best that I have found:
http://board.flashkit.com/board/archive/index.php/t-299514.html
but the process doesn't work for me with Flash CS3.
Thanks,
nixxxxxUnfortunately seems like you cant do that with radio component. You may just create a textField and place it next to the radio component as a workaround, or, use AS3 which is much easier.
-
Multiline checkbox / radio button component
We're now up to Flash version 8 and we still don't have a
multiline checkbox / radio button component. Has anyone either:
a. Figured out how to add a multiline text label to the
existing Flash components; or
b. Found a third party component that has multiline labels.
I'm a developer for an eLearning company, so we use these
components all the time; so having this would be a huge plus.
Frankly, it's simply beyond me why Macromedia...er...Adobe hasn't
upgraded their components to have this feature. It seems like it
wouldn't be a big thing.
Anyway, any help you can provide would be most welcome.
Cheers,
AdamHopefully this might help.
http://livedocs.adobe.com/flash/mx2004/main_7_2/00002108.html -
Issue: Flash radio buttons & Php form
I have a flash form which all of the fields are sending
correctly
through the php code. The flash radio buttons I added with
the
groupname == topic, doesnt send with the rest of the
information that is being sent to the email. My question is
how do I get
the flash radio button info to submit with the rest of the
form.
The code for the send button on my flash file:
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("form.php", "POST");
===============================================
===============================================
Form.php:
<?php
$to = "[email protected]";
$subject = "Contact Page Information for Today";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "\n\n";
$message .= "Subject: " . $_POST["topic"] . "\r\n";
$message .= "Email: " . $_POST["email"] . "\r\n";
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "Address: " . $_POST["address"] . "\r\n";
$message .= "City: " . $_POST["city"] . "\r\n";
$message .= "State: " . $_POST["state"] . "\r\n";
$message .= "Zip Code: " . $_POST["zip"] . "\r\n";
$message .= "Phone: " . $_POST["phone"] . "\r\n\n";
$message .= "Message: " . $_POST["message"] . "\r\n";
mail($to, $subject, $message, $headers);
?>
TextDo you mean like this:
<?php
var topic;
var listenerObject:Object = new Object();
listenerObject.click = function(eventObj:Object) {
topic = eventObj.target.data;
trace(topic)
groupTopic1_rb.addEventListener("click", listenerObject);
groupTopic2_rb.addEventListener("click", listenerObject);
groupTopic3_rb.addEventListener("click", listenerObject);
groupTopic4_rb.addEventListener("click", listenerObject);
groupTopic5_rb.addEventListener("click", listenerObject);
groupTopic6_rb.addEventListener("click", listenerObject);
groupTopic7_rb.addEventListener("click", listenerObject);
groupTopic8_rb.addEventListener("click", listenerObject);
groupTopic9_rb.addEventListener("click", listenerObject);
groupTopic10_rb.addEventListener("click", listenerObject);
groupTopic11_rb.addEventListener("click", listenerObject);
groupTopic12_rb.addEventListener("click", listenerObject);
groupTopic13_rb.addEventListener("click", listenerObject);
groupTopic14_rb.addEventListener("click", listenerObject);
$to = "[email protected]";
$subject = "Contact Page Information for Hope Today";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "\n\n";
$message .= "Subject: " . $_POST["topic"] . "\r\n";
$message .= "Email: " . $_POST["email"] . "\r\n";
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "Address: " . $_POST["address"] . "\r\n";
$message .= "City: " . $_POST["city"] . "\r\n";
$message .= "State: " . $_POST["state"] . "\r\n";
$message .= "Zip Code: " . $_POST["zip"] . "\r\n";
$message .= "Phone: " . $_POST["phone"] . "\r\n\n";
$message .= "Message: " . $_POST["message"] . "\r\n";
mail($to, $subject, $message, $headers);
?> -
Form from hell (Flash Radio Buttons)
Does anyone have a bead out there on a behavior that you can
use with the native Flash radio button groups in Director MX 2004.
I am going freakin' bonkers trying to write a behavior for
these things.The Flash Components are not documented in Director, though
they are
documented in Flash. If you can parse the dense and difficult
to
understand Flash Help file (and yes, you would need to have
Flash to get
it), then you can see all the docs for those components.
Before I go much further, I should say that in my experience,
using
#flashComponents is a painful and tedious business. I do not
recommend
it. It will probably be MUCH easier on you in the long run if
you write
your own script from scratch.
But, for the sake or archival completeness, this is a script
that will
do what you want with the checkbox/radio button
#flashComponents:
1) Go into the Property Inspector and on the FlashComponent
tab for each
member, make sure that the eventPassMode is set to
#passAlways
2) Put this code onto the buttons:
on mouseUp me
if sprite(me.spriteNum).selected then
sendAllSprites(#deselect,me.spriteNum)
end if
end
on deselect me, vExcept
if me.spriteNum<>vExcept then
sprite(me.spriteNum).selected=0
end if
end -
Radio Buttons for Flash PHP email.
Hi.
I need to add a sign-up form for services to a flash AS2 web site.
I found a very simple example of a Flash/ PHP email form at Kirupa.
It works fine, but I need to add some radio buttons.
My web site will offer various services.
Ideally I would like to be able for viewers to sign up for a service by clicking the appropriate right radio buttons
F.ex;
• Service 1
• Service 2
• Service 3
• Service 4
The email should reflect the choices made by listing the text on the selected services (radio buttons).
Please download the FLA and the PHP file (at the bottom of the tutorial) here:
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
I have uploaded a working version here:
http://gggraphic.com/flash_mail/simple_flash_mail.php
How do I add and script the radio buttons with both AS and the PHP to make it happen?
Thank you on beforehand for your help
ggaardeHi Again
Maybe check buttons would be a more natural option for this. You should be able to select more than one service.
Thanks
ggaarde -
How to not display radio buttons in the select many shuttle component
Hi all,
af:selectManyShuttle is a true nice component.
For business / UI ergo reasons I've decided to not display the radio buttons before each item. There's no option to do that.
Is it possible ? How ?
Regards
Luc-Let say there are three ways:
1. You can use skinning mechanism,
2. You can include css file in .jspx page and then use it.
3. You can write css directly in .jspx page.
For skinning read documentation. For two other ways here is example code that should be inside metaContainer facet of document tag.
<f:verbatim>
<!-- CSS directly in jspx page -->
<style type="text/css">
.myClass{
background-color: #8888FF;
</style>
<!-- Include css file in jspx page -->
<link href="css/incStyle.css" rel="stylesheet" type="text/css" />
</f:verbatim>
{code} -
Error in Radio Button Component
Hi,
I wrote my problem in a past thread, but I haven't a final answer. I test my model to verify that "Centigon Input Manager" was not the problem and it is not.
I has another problem with a List Box Selector that I solved deleting their Dynamic Visibility from the List Box Component and put in a Canvas and putting the List Box without DV inside this Canvas. I did the same with the radio buttons and didn't work.I has one Panel with DV with three Canvas inside it and each one of Canvas with their own DV. Inside each Canvas I has one radio button component without Dynamic Visibility to be showed when I click a only push button. With a formula I define which of my 3 Canvas and their Radio buttons appear. Two of them was showed but one don't show anything, but the empty panel.
I put the Radio buttons directly over the Panel and put the DV to each Radio button and delete the Canvas, now show me the same 2 radio buttons and the only one radio button that didn't show now just show the left border and half of top border of component. This must be a component error.
Note 1: It's the same formula, the same features of each Canvas with their own DV. The Canvas panel is show when I click the push button but don't show one of my 3 options.
Note 2: I have Xcelsius 5.3.1.0 and Build 12.3.1.776
Any support from SAP or anybody that has the same problem? My client is waiting and I am delayed for product problems.
JRAre you using the reference of the base
component to access the variable that you have defined in the base component.....
If the component where you have decalred the variables is your application class of the application then you can use
Application.application.advanceSelectionCPanel
Maybe you are looking for
-
Trying to homeshare using two accounts on the same Mac
My partner and I both have our own accounts on the same MacBook with separate iTunes accounts. We are trying to homeshare so that we can share our music. We have both logged into the same homeshare account and authorised both itunes accounts on both
-
Can I use an 8GB and a 4GB chip in a Macbook Pro?
I inadvertently purchased an 8GB single chip rather than a 4GBx2 kit when ordering memory online. I could return it for a kit, but it got me thinking that I might as well just have 12GB. I know using this would break dual-channel, but will I actually
-
Validation of existing certificate does not work since release 9.3.3
Hi everyone, Since I updated to Adobe Reader 9.3.3 the validation of digital signatures does not work properly anymore. Though I try to validate the certificate that used to be OK before the upgrade to 9.3.3 I now get an error on the same document an
-
ACE probe failure - service down – Can we inform to the end client?
Hi Guys, Anybody knows if is it possible to inform with some specific error page to the end client when a service is down. Can we configure something in our ACEs? Thanks in advance, Oscar
-
Shorten my spatial query statement
HI , Can anybody help me shorten this query statement? Thanks! select tile.filename, SDO_GEOM.SDO_AREA( SDO_GEOM.SDO_INTERSECTION(tile.geometry, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1), MDSYS.SDO_ORDINATE_ARRAY(50,1