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
babs
use:
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);
Similar Messages
-
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.
-
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? -
Get the row of a department in a popup using a radio button
I have a use case. A page will be displayed with a button. User will click on that button, and then a popup will be displayed showing the table of departments. User will select the desired radio button. After that, the popup will close and the list of employees should get displayed in the page.
I have written a method in the valuechangeevent property of the radio button (autosubmit is also set as true), but still I am not able to get the current row. I actually need the value of departmentid.
Can anyone guide me?
public void onClickRadio(ValueChangeEvent valueChangeEvent) {
// Add event code here...
System.out.println("onClickRadio Begins");
hidePopup("p1");
DCBindingContainer bc =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iter =
bc.findIteratorBinding("DepartmentsView1Iterator");
Row row = iter.getCurrentRow();
Number departmentId = (Number)row.getAttribute("DepartmentId");
System.out.println("departmentId: " + departmentId);
OperationBinding method =
(OperationBinding)bc.get("displayEmployeeTable");
method.getParamsMap().put("departmentId", departmentId);
method.execute();
AdfFacesContext.getCurrentInstance().addPartialTarget(empTable);
System.out.println("onClickRadio Ends");
}JDev 11.1.1.6This is the code of the popup.
<af:popup id="p1" contentDelivery="lazyUncached">
<af:dialog id="d2" type="none">
<af:table value="#{bindings.DepartmentsView1.collectionModel}"
var="row" rows="#{bindings.DepartmentsView1.rangeSize}"
emptyText="#{bindings.DepartmentsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.DepartmentsView1.rangeSize}"
rowBandingInterval="0"
selectedRowKeys="#{bindings.DepartmentsView1.collectionModel.selectedRow}"
selectionListener="#{bindings.DepartmentsView1.collectionModel.makeCurrent}"
rowSelection="single" id="t1">
<af:column sortProperty="Radio" sortable="false" id="c1"
width="20">
<af:selectBooleanRadio value="#{row.Radio}" id="ot3"
valueChangeListener="#{myBean.onClickRadio}"/>
</af:column>
<af:column sortProperty="DepartmentId" sortable="false"
headerText="#{bindings.DepartmentsView1.hints.DepartmentId.label}"
id="c2">
<af:outputText value="#{row.DepartmentId}" id="ot2">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.DepartmentsView1.hints.DepartmentId.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="DepartmentName" sortable="false"
headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
id="c3">
<af:outputText value="#{row.DepartmentName}" id="ot1"/>
</af:column>
</af:table>
</af:dialog>
</af:popup>I think that when I select the radio button, the value might be getting true of the column, but this isn't setting the current row.
Also in the log I am getting these messages:
<SimpleSelectBooleanRadioRenderer> <renderGroupAttribute> The selectBooleanRadio component's group attribute is null. It must be set to a non-null value for the selectBooleanRadio component to function properly. The selectBooleanRadio component is meant to be used with other selectBooleanRadio components with the same group value. -
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 -
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 -
How do I give the radio buttons a buttongroup and id dynamically as the datagrid is populated?
I am using the following component as an item renderer for a
<mx:DataGridColumn>
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
>
<mx:HBox horizontalAlign="left" left="10">
<mx:RadioButton />
<mx:RadioButton />
<mx:RadioButton />
<mx:RadioButton />
<mx:RadioButton />
</mx:HBox>
</mx:Canvas>
How do I give the radio buttons a buttongroup and id
dynamically as the datagrid is populated?"nikos101" <[email protected]> wrote in
message
news:g83gfl$m8o$[email protected]..
>I am using the following component as an item renderer
for a
><mx:DataGridColumn>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
>
> <mx:HBox horizontalAlign="left" left="10">
> <mx:RadioButton />
> <mx:RadioButton />
> <mx:RadioButton />
> <mx:RadioButton />
> <mx:RadioButton />
> </mx:HBox>
> </mx:Canvas>
>
> How do I give the radio buttons a buttongroup and id
dynamically as the
> datagrid is populated?
What is your actual goal? -
How to write a numeric value to a plc register using a radio button
I'm want display a HOA (HAND/OFF/AUTO) on my screen. Lookout is connected to a Allen Bradley PLC. I am trying to write to a "N" register. I want to write a zero to open all (eg) N7:10 bits, writing a one (1) will close a contact N7:10/0 and writing a two (2) will close N7:10/1 etc. How do I do it? Can I use a radio button and if so, how?
ICI,
Just wanted to let you know that you have posted your question in the
MATRIXx part of the forum. There is a specific board for
Lookout. If you repost your message there you will be more likely
to get a good answer.
Carl L
National Instruments -
Hidden, Visible and back to Hidden using a radio button
Ok this might be really simple for someone to answer.
I have a radio button I'm using to toggle between two list boxes with multiple lines of text (hidden and then visible). Here's the problem, when I toggle the radio button back and forth I have both list boxes displaying thier notes at the same time. I would like to have the radio button display one messages at a time when you toggle between them. Here is my script.
Radio Button named Violation:
form1.#pageSet[0].Page1.#subform[0].action[1].Violation::click - (JavaScript, client)
if (this.rawValue == null) {
Notes.presence = "hidden";
else {
Notes.presence = "visible";
Radio Button named Suspension:
form1.#pageSet[0].Page1.#subform[0].action[1].Suspension::click - (JavaScript, client)
if (this.rawValue == null) {
Notes2.presence = "hidden";
else {
Notes2.presence = "visible";Notes and Notes2 are list boxes. Violation and Suspension are radio buttons. Is that correct? If so, are Violation and Suspension in an exclusion group?
Is this the requirement, Violation should display Notes and hide Notes2 and Suspension should hide Notes and display Notes2?
Steve -
Using a radio button in cfmail / form.
Hello;
This is a silly question, but I can't remember how to program in radio buttons for a cfmailer. I have 3 radio buttons, basically, I just need to know what the users choice was when they checked it off. The following is my radio buttons and what I have for code right now. But I'm not grabbing the proper variable, I also tried dumping a few diffrerent variables to see if I could get it.
<input name="type" type="radio" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male' checked="checked"/>Magnets
<input type="radio" name="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');"/>Paper Steel
<input type="radio" name="type" value='child' onClick="setVisibility('sub3', 'none');setVisibility('sub4','none');setVisibility('sub5', 'inline');"/> both
on my response page, I tried this:
<cfif form.type EQ "male">
if this was their choice, then this set of rules would apply
</cfif>
and so on for the other two choices. This isn't catching my buttons, what am I doing wrong? do I need to make a paramiter for the radio buttons before I can allow it to function? like this?
<cfparam name="FORM.type" default="">
then I can use my if statement? (that isn't working right now either)
here is what I'm trying to dump:
<cfdump var="#form.type#">
<cfabort>
</cfdump>
How do I do this? Can anyone help me?I suspect that you have a problem in some portion of your code that you have not posted. To help debugging I suggest you create a simple test using two pages: input.cfm and action.cfm. Get the most simple case working then add the javascript, css, and CF code to make your application work.
<!--- contents of input.cfm --->
<html>
<head>
<title>Input</title>
</head>
<body>
<form action="action.cfm" method="POST">
Choose type: <br />
<input name="type" type="radio" value="male" /> Male<br />
<input name="type" type="radio" value="female" /> Female<br />
<input type="submit" />
</form>
</body>
</html>
<!--- content of action.cfm --->
<html>
<head>
<title>Action</title>
</head>
<body>
<cfif form.type eq "male">
Type is male.
<cfelseif form.type eq "female">
Type is female.
</cfif>
Here is a cfdump of the form variables:<br />
<cfdump var="#form#" />
</body>
</html>
Message was edited by: JR "Bob" Dobbs
Added sample for action.cfm -
Using the Submit button to Email
I was previously using Frontpage and I have just recently
started using DW so a lot of this is still new to me. I did get the
DW8 for dummies book which is helping a lot, although I know being
a member on a forum like this will help much more. So any help is
very much appreciated.
I am new to this site and did a quick search but I wasn't
able to find what I was looking for.
I am basically planning on creating an order form using basic
radio buttons and name, address, contact info, etc... fields.
I wanted to have a button on the batton (like the submit
button) that a customer could click on after filling out the
specific fields and then the whole page/order form (with its
contents) would be emailed to me.
Could the "Submit" be used to do this? I know in the DW 8 for
Dummies book it mentions that the Submit button is for credit card
processing companies to send the info and then come back with the
results, but I just want it to email the completed page/order form
so the credit card can be processed in the office.> Why isn't it as simple as entering in a
"mailto:[email protected]" type of
> thing? Or is it?
It is that simple. However, it is very unreliable. For it to
work, the
visitor filling out the form has to have a properly
configured email client,
that works with the webpage form. That leaves out people
using webmail
services and those using public computers. And- most
computers will put up
a warning screen that the form data is being sent by an
insecure method and
give the person a choice to send or cancel.
>
> Everything I seem to read talks about downloading a
specific cgi-bin type of
> thing depending on what my hosts' server has.
Setting up a form processing script can be very simple.
First step- check your hosting's support/FAQ section for info
about forms
and scripts.
if your hosting has a control panel or CPanel, look there for
a
pre-installed script and instructions on using it.
The free kaosmailer extension at
http://kaosweaver.com will create
the
scripting for you, within dreamweaver, for your choice of
asp/php/coldfusion. (pick the one your hosting supports)
A php script is phpformmail at
http://boaddrink.com
An asp script is at
http://www.brainjar.com/asp/formmail/
A cgi/Perl script would be at
http://nms-cgi.sourceforge.net
(but it would
be my last choice, a php script would be far easier to set
up)
Any further specifics totally depend on what scripting method
you can use on
this hosting, and on what script you want to use. -
What we want to do is ask our new clients their preferred method of billing: Credit Card, Invoiced, ACH.
If they choose Credit Card, credit card info fields will show up.
If invoiced, Billing Address field shows up.
If ACH, bank account and routing number fields show up.
Is this possible to do?Yes, this is one of the features of web-based forms in FormsCentral. You will use conditional elements (show/hide logic) to allow certain elements to hide or display.
See this page for more info: http://helpx.adobe.com/acrobat-com/formscentral/help/edit-field-properties.html#conditiona l_form_elements
You create all of your fields: Credit Card, Billing Address, and Bank routing and account number fields, and then only have them show up as a condition of which of the radio buttons the user selects.
I hope this helps,
Brian -
Calling a method in a bean when i clcked on the radio button of a table
Hi,
I need to call a method in the bean when i clicked on the radio button of a table
I tried it , by callling the method in selectionListener..
I can able to execute only System.out.prinln method,
rather than that i am unable to execute any other expression..
like setting rendering property to a component.
Thanks in advance,Hi,
what you say is not true. You can execute any code within a selection listener you want. If you can print then it shows the method s called and you can execute whatever you want within this method
Frank -
How do I globally change the Radio Button style to "checkmark" in Adobe Acrobat X
There is nothing in Preferences/Forms for this.
And I want this as a persistent change untill I otherwise change it back.
Thanks
Second Post HereMake the change to one of the radio buttons, then right-click it and select
Use Current Properties as New Defaults. -
Using Adobe Acrobat Pro X, we created a fillable PDF from an existing PDF.
One question can be answered by choosing one of four choices (radio buttons). The answers are laid out in a 2-by-2 arrangement.
When Acrobat Pro converted the PDF into fillable format, it thought that the radio-button answers on the second column are not part of the question.
How can I manually override Acrobat and make choices 3 and 4 part of the question.
Please click attached screenshot for better zoom.George,
i am the OP. I mistyped my email address and cannot log in to my original account.
Thanks for your reply.
How do I give each radio button the same name but unique button values?
I right-clicked the first radio button, chose Properties (Ctrl+I).
I copied the name: "What is your personal net worth in Canadian dollars including spousecommon law partner if applicable".
I clicked Close.
I then went into the Properties dialog window of the third radio button, which is one of the ungrouped choices. I pasted the name [What is your personal net worth in Canadian dollars including spousecommon law partner if applicable]. I then clicked Close.
I get an error message pop up:
A field of a different type already uses this name. Please choose a new name for the field, or change the field type to match the existing field with this name.
What must I do now?
Thanks.
Maybe you are looking for
-
Creating a read-only user account
I am trying to create a read-only user account. Reason being, when our users may be able to use MS Access to pull information and modify changes (if possible). I was told there is a way to do this. Help?
-
Refreshing package database crashes host machine
Hi everyone, I'm having a problem that I can't figure out here. I have Arch installed on my desktop computer. This is using kde networkmanagement to automatically 'share' the Internet connection on wlan0 to eth0. The ethernet connection is to my lapt
-
Server error when submitting Apple ID during initial settup
I'm doing initial setting up of brand new Mac Book Pro w/Retina. I select hotel WiFi then get to screen for Apple ID. I type my ID & password but get a server error. I connect with other devices thru the WiFi but it requires a term agreement befor
-
Security guidelines in switches.
Hello to everybody. This is my first post and I don´t know if it is the right place. I would like to know what are the security guidelines that you set up in your switched lan, I mean, do you block unused ports? do you use 802.1x with RADIUS? do you
-
Hi I use Pagemaker 7.0 to make greeting cards. Previously I've printed these cards on an Epson Photo Stylus 820 inkjet printer and have had very minor differences in the colour or b&w quality from PhotoShop to PageMaker.Usually I have to adjust the c