Help with wii button trigger
I'm fairly new to action script and struggling to get a
wiimote to trigger a flash scene.
Need the scene to be triggered by the IR and B button
together.
I currently have this piece of script which triggers the
scene but only through the IR.
if (bButtonPressed)(myWiimote.ir.x1 >=0.1);
gotoAndStop(10);
Can anyone help me please.
Cheers
Tom
I suggest you move the procedure call from the button's pl/sql block to an explicitly defined WHEN-BUTTON-PRESSED event. Then Designer will not generate any message handling, so you can write your own.
In your WHEN-BUTTON-PRESSED code block, put something like...
BEGIN
procedure_name;
IF NOT form_success THEN
qms$errors.show_message('XXX-00016',p_param0='procedure_name');
END IF;
END;
For more information on qms$errors.show_message, see the Headstart User Guide, pg 16-6 through 16-7.
On another subject, you reported about a month ago with using qms$menu_call_form. I was wondering if you were able to reproduce this problem with the Headstart Demo Application, or have any more information about when it happens. If so, can you email me at [email protected]
Regards,
Lauri
Similar Messages
-
Hello,
I need help with a button. I created a button and set it up
so that when you click and hold it, the button becomes lighter in
color (I used Alpha). I want the button to stay this light color
after i release the click. Right now it goes back to the normal
color when I release the click. Can somone help we this?
Thanks!rpofclt wrote:
> Hello,
>
> I need help with a button. I created a button and set it
up so that when you
> click and hold it, the button becomes lighter in color
(I used Alpha). I want
> the button to stay this light color after i release the
click. Right now it
> goes back to the normal color when I release the click.
Can somone help we
> this?
you can't use the button itself if you want to maintain the
DOWN state after
release as button automatically resets itself once the mouse
lives the HIT zone.
Use movie clip instead and on press simply send it to a frame
where there
is DOWN state like image.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Help with linking buttons to Scenes
Hey,
Rookie to Flash and AS3. Just needed some help with my buttons. Im making a flash program about pancakes (random I know). I have a "Mainmenu" scene and then a "Recipe" scene. I have a button on my mainmenu which takes me to the recipe page when I click it, the code behind the button is
"stop();btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
Then when I arrive at my recipe page I have a button which will take me back to my MainMenu, the code behind that button is:
"stop();btn_home.addEventListener(MouseEvent.MOUSE_DOWN, mouse5DownHandler);function mouse5DownHandler(event:MouseEvent):void {
gotoAndPlay(1, "MainMenu");
So I run my program and the first button works and takes me to recipe page but the button to get to the main menu does nothing, click it and no response or anything
Please helpFirst, hopefully having all your code mushed onto the same line is a copy/paste error, otherwise it should look like...
stop();
btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
If the intention is to click the buttons to make them work, then you should use CLICK instead of MOUSE_DOWN. MOUSE_DOWN can be a persistent state whereas CLICK involves releasing it afterwards.
As for the code to get you back home, where is it located on the timeline? Are you getting any error messages when you try to use it?
One thing you should learn to use is the trace() function. It is useful for troubleshooting. You can use it now to see if your second button is talking to the function at all...
stop();
btn_home.addEventListener(MouseEvent.CLICK, mouse5DownHandler);
function mouse5DownHandler(event:MouseEvent):void {
trace("the button works okay");
gotoAndPlay(1, "MainMenu");
If you don't get that message in the output panel, you'll know the button is not properly coded to work.
Most folks here will recommend you get away from using scenes in a design that includes navigation--they have a history of being problematic. Instead of using scenes, divide the one main timeline up into sections or use movieclips for the sections and manage their visibility... or do a bit of both. -
Little bit of help[ with a button.
Good day all!
I need help making a button. This is what I want to happen.
I have a bunch of text, One of the words "merino" is bule as
to say there is a link hear! And I want an image of the "merino" to
come up, like a "ALT" box. Or have an image in the "ALT" box?
I know how to do this in "Flash" i.e just drop in the image
on the over state of the button event. Easy as pie! This is why I
cant get to grips with Dreamweaver! I hate it!
But I am willing to learn and maybe in time love???
Thanks all!"satrop" <[email protected]> wrote in
message
news:f0o4t7$954$[email protected]..
> Good day all!
>
> I need help making a button. This is what I want to
happen.
>
> I have a bunch of text, One of the words "merino" is
bule as to say there
> is a
> link hear! And I want an image of the "merino" to come
up, like a "ALT"
> box.
>
> I know how to do this in "Flash" i.e just drop in the
image on the over
> state
> of the button event. Easy as pie! This is why I cant get
to grips with
> Dreamweaver! I hate it!
>
> But I am willing to learn and maybe in time love???
HTML is a lot different from Flash! :-)
I believe you could do this using DW's Show-Hide layer
behavior - have
mousing over the link trigger a layer with the image to
appear. Someone else
may have a better idea.
Just FYI, having to mouse over a link in order to get more
information about
it isn't usually appreciated by users. You *might* want to
re-think this
plan..
Patty Ayers | Adobe Community Expert
www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate
Worksheet -
IF anyone can provide clear instructions to help get my Nintendo Wii online, that would be great. Here's what I have:
1. Wii
2. Airport Extreme (UFO shape)
3. Airport Express (helps extend network)
4. Various Macs (see signature below)
The Wii is on the second floor, the computers one floor below. I have the AP Express in the same room as the Wii, which helps the Wii see my network. When I go through the set up, I get the 51330 error. I have a 13-character WEP key. I read that if I started from scratch with the AP Extreme, it may work, but I have not yet tried it. I thought I would try here first.
Thanks in advance....Took a while to sort out because I was not familiar with what a HEX key was...so, thought I would pass on a few more details.
Open Airport Admin Utility
Select your base station from your list
Click configure (this should open up a different window)
Click on the password icon if network pw protected
This will open up another pop up which will give you your HEX key equiv/WEP KEY
Enter the long key in the Wii internet settings
Wii should connect.
The steps above are what got me to success! -
I need help with a button animation!
Hi,
I hope someone can help with a simple-looking problem which
nonetheless has me stumped!
I have a feeling that I've missed something obvious.
I've created a movie clip to act as a button (I've called it
"abs_button") and placed it on the stage.
My main movie has one frame.
Within the "abs_button" movie clip there are 5 layers.
Labels, actions, default button state, rollover state and rollout
state.
Technically, default button state, rollover state and rollout
state could be on the same layer as they don't overlap, but I've
given each animation its own layer for clarity.
FRAME 01.
Default button state is one frame with a graphic of the
button. Just a label at the start ("abs_up") and a "stop();" action
at the end.
FRAME 02 to 31.
Rollover state is a 30 frame animation. Label at start
("abs_over"), "stop()"; action at the end.
FRAME 32 to 62.
Rollout state is a 30 frame animation. Label at start
("abs_out"), "stop()"; action at the end.
All animations were achieved with tweens.
My initial "abs_button" code:
on (release) {
getURL("targetPage.htm", "_self");
on (rollOver) {
gotoAndPlay("abs_button", "abs_over");
on (rollOut) {
gotoAndPlay("abs_button", "abs_out");
As it stands, the animation jumps to frame 1 of "abs_out" on
rollout.
I need the "abs_over" animation to always play through to the
end, as the "abs_out" is "abs_over" in reverse (i.e. image grows
large on rollover and shrinks again on rollout.
I've tried for 2 days to solve this, but I clearly need help.
My experiments with variables simply didn't work.
I would be grateful if someone could tell me where I'm going
wrong!
Thanks,
Andyuse this:
on (rollOver) {
gotoAndPlay("abs_over");
Since the code is attached directly to the movieclip, you
don't have to
identify the clip. A gotoAndPlay() function takes a frame
number or a
frame label name as its argument, never the name of the clip
that
contains the frame number or name.
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412.243.9119 -
hello all
i have a 4 tables and i would like to create a trigger in a tables
CREATE TABLE CLIENT_INFO
( CLIENT_NO VARCHAR2(10) CONSTRAINT CLIENT_INFO_CNO_PK PRIMARY KEY,
CLIENT_NAME VARCHAR2(50) NOT NULL,
ORDERS_AMOUNT NUMBER(7)
CREATE TABLE STOCK_INFO
( ITEM_NO VARCHAR2(10) ,
ITEM_DESCRIPTION VARCHAR2(100),
SELLING_PRICE NUMBER(6),
QTY_IN_HAND NUMBER(6) NOT NULL,
CONSTRAINT ITEM_NUM_SPRICE_PK PRIMARY KEY (ITEM_NO , SELLING_PRICE)
CREATE TABLE ORDER_INFO
( ORDER_NO VARCHAR2(10) CONSTRAINT ORDER_INFO_ONO_PK PRIMARY KEY,
CLIENT_NO VARCHAR2(10),
ORDER_DATE DATE,
ORDER_AMOUNT NUMBER(6),
CONSTRAINT ORDER_INFO_CNO_FK FOREIGN KEY (CLIENT_NO) REFERENCES CLIENT_INFO (CLIENT_NO)
CREATE TABLE ORDER_LINES
( ORDER_NO VARCHAR2(10),
ITEM_NO VARCHAR2(10),
LINE_QTY NUMBER(6),
SELLING_PRICE NUMBER(6),
TOTAL_PRICE NUMBER(6)
ALTER TABLE ORDER_LINES
ADD CONSTRAINT ORDER_LINES_ONO_FK FOREIGN KEY (ORDER_NO) REFERENCES ORDER_INFO (ORDER_NO);
ALTER TABLE ORDER_LINES
ADD CONSTRAINT ORDER_LINES_INO_FK FOREIGN KEY (ITEM_NO) REFERENCES STOCK_INFO (ITEM_NO);i would like to create this trigger
1-order_amount in table 3 due to any (insert,update or delete ) in total_price in table 4
2-orders_amount in table 1 due to any (insert,update or delete ) in order_amount in table 3
i would like to ask another quotations r this relations in good for tables
thank's all>
plz i need a help to create a trigger
>
Using a trigger won't solve your problem. You are trying to use child table triggers to maintain parent table information.
There is no transaction control to ensure that the parent table will be updated with the correct information.
One process could update child record 1 while another process is updating child record two. Each process will see a different total if they try to compute the sum of all child records since the first process will see the 'old' value for the child record that the second process is updating and the second process will the 'old' value for the child record that the first process is updating.
So the last process to commit could store the wrong total in the parent record withoug an exception ever being raised.
See Conflicting Writes in Read Committed Transactions in the Database Concepts doc
http://docs.oracle.com/cd/E14072_01/server.112/e10713/consist.htm
>
some one ask me this quotation in interview
and im told him i can't understand this structure for database he said just do it
>
And I would tell them that using a trigger is not the right way to accomplish that since it could invalidate the data concurrency and data consistency of the tables.
Sometimes you just have to tell people NO. -
Help With Radio Buttons -- URGENT!!
Hi i am new to using UI compents in flash.
Basically i havnt a clue where to start.
Just some simple action script will help and be much
appreciated if someone can give me it.
Basically i have a question to ask which requires radio
buttons to answer the question.
I have a question and the answers are A, B, C, D.
I want:
A to equal 1
B to equal 2
C to equal 3
D to equal 4
E to equal 5
Would someone be able to tell me how to set up the radio
button so that the value of the radio button is stored into an
array called SCORE.
i dont need a tutor for arrays, i can do them, i just need
help with the radio buttons so a reference to an array would be
enough, eg how to store the answer from the radio button in an
array.
Thank youPlace the radio buttons on the stage and set their parameters
to what you need. Make sure that for each group of radio buttons
you give them the same group name. Then you could use something
like this:
var listenerObject:Object = new Object();
var answerArr:Array = new Array();
listenerObject.click = function(eventObj:Object) {
answerArr.push(eventObj.target.selectedData);
trace(answerArr);
radioGroup.addEventListener("click", listenerObject);
radioGroup refers to the group name for the buttons.
eventObj.target will refer to the actual radio button
clicked.
Tim -
Need help with encore buttons - highlights
Hi All
I am seeking help with Encode CS5. I have a project working fine except that I dont have highlights for buttons, at least I think thats what its called. So when the mouse or remote control navigates up/down toa button it changes colour.
In the properties of my button, the highlight option is greyed out.
How do I apply highlights ?
many thanks
Chris AndersonHi Bill
Thanks for your reply.
Here are 2 screen prints. One from encore the other from photoshop.
First time I have inserted images, and they seem a little small on this message - if you have any problems reading I could email to you.
I have highlighted the first button - which is called 'Highlights' - same issue with all the other buttons.
Do you have to use photoshop to add highlighting? or can you do this in encore - i dont have much experience with photoshop.
Not sure how to check 'Color Set' ? can you tell me how to get that for you - same for transparency for states? - I havent experienced them or changed them as I dont know how to
Yes it was duplicated - have left a message not to reply
Thanks again
Chris -
UWL - Help with Decision Buttons
Hello SDNers,
I'm customizing the UWL iView to show approval itens only, and their respective decision buttons.
Everything looks ok, but when someone try to submit the decisions it shows the message:
"reject wasn't correct"
Where "reject" is the name I gave to the action.
It also happens with the approval action.
Below is the XML I've created.
Does someone have a clue in what that message means, or what I've done wrong?
Thanks in advance!!Hi There,
Make sure that your decisionKeys are correct. I have seen issues with this many times. Log on to the backend system and call SAP_WAPI_DECISION_READ or SWK_DECISION READ for a specific workitem (You can get the details of the workitem id from the support information on the UWL - enable this and you can check this specific workitem) The decision key is an internal value (typically a numeric value) corresponding to the selected decision used by the provider.
You will need to ensure that you have x amount of decisions configured in the xml file, where x = the amount of decisions configured in the backend system.
For additional help with this topic please see the userDecision Action Handler documentation:
http://help.sap.com/saphelp_nw70/helpdata/en/7a/df014b037141ca9afc6433ed42b519/content.htm
Beth Maben
EP - Senior Support Consultant II
AGS Primary Support
Global Support Centre Ireland
Please see the UWL Wiki @
https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq *** -
Help with Social buttons ...
Hi,
I'm designing a muse site with social buttons that are created when you embed code from a site such as facebook, and others. They look like this on my site ...
I would like to build a 'social' area on my site that looks like this instead ...
So, to clarify when my user clicks on the 'f' in the lower of the two graphics above I'd like my website to behave as if the user had clicked on the 'f share' icon generated by the embedded html from facebook.
How?
Many Thanks!
GaryHi Gary
This would be a customization with codes for share.
You can use Share This and use the embed code for the same view that you have mentioned , which will allow users to share the page where you will insert the code.
http://www.sharethis.com
- Select Website
- Select the layout
- Generate the code
Thanks,
Sanjit -
Can anyone help with a custom trigger?
Hi - I know this is a tough one and appreciate anyone's help!
I'm trying to create a custom trigger that confirms 2 fields belong to the same record. If they do, proceed with insert transaction.
I have gone through the tutorial (from the old Interakt Discussion Board tutorial at http://www.interaktonline.com/Documentation/MXKollection/075000_tutorialdiscussionboard.h tm) on how to create a custom trigger that checks to see whether a duplicate message and subject exist in the table and if so, stop the insert. I have this working fine, using my own table and fields.
Can anyone help me to change the script here to confirm that both fields belong to the same record? Here is what I have right now:
$query = "SELECT * FROM dan_camptrans_login_familyid_confirmid WHERE family_id = ".KT_escapeForSql($tNG->getColumnValue("family_id"),$tNG->getColumnType("family_id"))." AND confirm_id = ".KT_escapeForSql($tNG->getColumnValue("familyconfirm_id"),$tNG->getColumnType("familycon firm_id"));
$result = $tNG->connection->Execute($query);
if(!$result) {
$error = new tNG_error("Could not access database!",array(),array());
return $error;
} else {
if($numberOfRecords = $result->recordCount()) {
$uniqueFailed = new tNG_error("There is already a message with the same subject and content!",array(),array());
return $uniqueFailed;
} else {
return NULL;
Any help would be SUPER appreciated!
DanThank you very much Shane for responding.
Right now, if I fill out the form and enter any numbers in the family_id and familyconfirm_id fields that are currently NOT in the dan_camptrans_login_familyid_confirmid table, the form submits fine. If however, both fields already exist within the same record, the error is returned.
I guess what I am looking for is the opposite. When the form is submitted, the table dan_camptrans_login_familyid_confirmid is checked. If both field entries are not within the same record, return the error.
Basically, I am sending out a user ID and confirmation number via mail to users. When they register they need to enter in both of these numbers and only if they match the records will the registration proceed.
The main recordset/form that this custom trigger is attached to is one for my user registration table. This custom trigger and associated table is only to confirm the user registering has the correct information to register.
Thanks again - I hope that I am explaining this clearly.
Dan -
Help with Radio Buttons in Form
Hi. I have inherited a website that has a simple form. I have
been asked to edit the form adding 4 radio buttons to collect the
consumer's satisfaction with the content of the website. I have
added the radio buttons using Dreamweaver MX, however, they do not
work as I expected them to. I was under the impression that radio
buttons did not allow the user to select more than one option
because when the user selected a different option, the first option
was unselected. My form is currently allowing all four options to
be selected at the same time. The code for the form is below. I
have changed the @ in the email address of the form to prevent
possible spam. Any help would be greatly appreciated.It looks like you need to change the name= to the same on
each radio button, if they all have the same name then you can only
check one. Then click the form in the behaviors panel and be sure
the radio button name is inserting into the proper db
column. -
I'm needing a script that locks all of the fields once the submit button is pressed and it's emailed to someone else. Is that possible? Thanks in advance for your help.
Right now I'm using javascript to submit the form. I'm using
this.mailDoc({
bUI: true,
cTo: [email protected],
cSubject: ""
So I need to incorporate the script you gave me with this script that I'm already using? -
Help with submit button remove null value
Hello,
First of all I dont know much about java, but I wanted to create a submit button and I did alot of research. I want a button that will email some pdf files I have created in LiveCycle. So far everyting works but my code needs help.
There are a few fields I want to be place in the body of the e-mail, but if left blank I dont want null to apear on the email subject or body.
Here is what I have so far *this is a work around I like to konw the proper code.
var
strToAddress, strCCAddress, strSubject, strMessagestrToAddress
= myemail@atwork;strCCAddress
= myemail@atwork;
strSubject
= "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue +" " +mi.rawValue;
if
(mi.rawValue ==null || mi.rawValue =="")strSubject = "Account "+DropDownList1.rawValue+" For: " +last.rawValue +", " +first.rawValue;
strMessage
= "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +mi.rawValue +". " +last.rawValue +"\n\n*All provisions in have been met" +"\n\n Comments: " +com.rawValue;
if
(mi.rawValue ==null || mi.rawValue =="")strMessage = "Please " +DropDownList1.rawValue +" account for " +"\n"+first.rawValue +" " +last.rawValue +"\n\n*All provisions in have been met" +"\n\n Comments: " +com.rawValue;
event.target.submitForm({cURL
:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
//this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage;
The 4 fields am working on are First name, last name, Mi and comments. First and last are alwasy used, but if MI is not I dont want Null in there, with what I have above it works but its messy. I wanted to do the same with Comments if its left blank I like for it to read "Comments: None" not null
on the If statement I just re did the whole deal with out the mi.rawvalue but i now that is not right way... any help would be great.
ThanksI believe that you should re-post this in either the Forms or the Designer forum. You are more likely to get the right folks to look at it there.
Generally this forum is for building custom Document Service Component (DSC) plugins that extend the LiveCycle ES server side product.
Maybe you are looking for
-
Inserting image in a wiki page
Hi All, How to add image in a wiki page. I want to insert an image in between the contents of the wiki page. thanks & regards, Manoj
-
Livetype Image turns Black in FCP
Ok, I've got a canvas (Ovals) from Livetype. I changed it using the color sampler (sampling a color from a clip in my FCP timeline). The Livetype canvas plays just the way I want it. I import it into FCP, and it just displays black. If I import into
-
is true an apple lap top can't get virus?
-
Our organization purchased license keys to Photoshop Elements/ Premiere Elements 11.0, but when I go to the "Welcome TechSoup Customer of TechSoup Global!" page, I see the the message stating "Important: If you do not see your licensed product in thi
-
Scale to fit not working in Ppro cs3
I have an issue with scale to fit of export settings in Premier Pro CS3. I need to eliminate the black bars on the side of clips. I check the scale to fit of the output box but it will not do the job. I have to manually play around with pixels number