Flash Buttons - Onclick display text
Hello,
I have a total of 5 separate buttons in my flash document. I want to have a user to be able to click the button and have it display some sort of text near the button itself. How do I get the text to stay once a button is clicked and disappear when another button is clicked? I dont want to use the hit method because the text will contain hyperlinks that I want the user to be able to click on. Any help would be appreciated.
var tf:TextField=new TextField();
addChild(tf);
// add button listener's with listener function onClick
function onClick(e:MouseEvent):void{
tf.x=e.currentTarget.x+e.currentTarget.width; // depends on your buttons' reg points
tf.y=e.currentTarget.y; ""
tf.text =whatever
// whatever else
Similar Messages
-
Flash button with dynamic text
I'm trying to create a flash button so that it can toggle
between "Sound On" and "Sound Off" but I feel like I'm doing
something wrong and it errors out on me.
I have a button on stage as, and in my up/over/down/hit in
different colors I have a dynamic text field identified as
sound_txt.
Here's the script I have so far for my frame:
stop();
mutebtn.addEventListener(MouseEvent.CLICK,muteDo);
function muteDo(event:MouseEvent) {
if (mutebtn.sound_txt.text == "Sound Off") {
mutebtn.sound_txt.text = "Sound On";
} else {
mutebtn.sound_txt.text = "Sound Off";
and this is the error message I am getting:
TypeError: Error #1010: A term is undefined and has no
properties.
at buttontst_fla::MainTimeline/muteDo()
TypeError: Error #1010: A term is undefined and has no
properties.
at buttontst_fla::MainTimeline/muteDo()
Can someboy please advise as to how I can get this to
work?I tried bringing the textfield out of the button but while it
worked when I pressed the button portion that is not under the
text, it was the part of the text that got in the way from doing
anything. I wonder where I can find an existing example that works
the way I want it too so I can at least follow that example. I
think I tried making the dynamic text a movie clip but was still
getting similar errors.
Edit: I at least got it to work by converting the button into
a movie clip although I had also wanted it so that I could also
change the foreground color of the dynamic text upon rollover,
etc. -
Flash Player not displaying text/fonts
My operating system is Mac OS X 10.6.7, Snow Leopard, 2.5 Ghz Intel Core 2 Duo Processor. My main browser is Firefox 4.0. I recently upgraded my Adobe Flash Player to the latest version available.
My problem is that the flash player is not properly displaying fonts or text, not only in my broswer but in emails. I have repaired my disk permissions, repaired my disk, uninstalled adobe flash player and reinstalled in, updated my software including the Java Script. I am at a lost as to what the problem is. I am including a snapshot of what I see with this error below:
This is from an email
This is from the internetApparently the picture did not attach to the last message, so I am including them here. Thanks in advance for any help.
-
My flash player doesnt display text
so every time i goto youtube.com or listen.grooveshark.com, theres text it the flash player thats suppost to show up, for like the names of videos or music. but its not there any reason why, and how do i fix it...?
i use google chrome but i've found it doesn't involve browser b/c safari and firefox dont work as wellMake sure you are using the latest version of Adobe's Flash Player.
http://get.adobe.com/flashplayer/otherversions/
However, it may be related to your poor texting techniques when posting. Grammatically correct English is easier to read. Give it a try. -
Is it possible to add text when using flashing button property node?
I am trying to get a text button that displays TEST to show "running"
when it flashes. I am using a property node for flashing.
At present it cycles between TEST and default color which is set in
flashing clolor options.hi there,
use the "Strings[4]" property of the button. right click on the property node and see online doc for more information about the meanings of the 4 elements of strings[4].
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!" -
The Flash Text and Flash Button options have dissappeared
the Flash Text and Flash Button options have dissappeared in the insert menu in Dreamweaver CS4. They used to be there but not now
Adobe announced the features they were removing from CS4 a year or so before CS4 launched:
The ill-conceived Flash buttons and Flash text were among the deprecated features.
http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS2C41F19D-502B-4fb5-8A54-4442E2127C84a .html
Deprecated features
The following features have been deprecated for Dreamweaver CS4:
Timelines
Web services
Layout mode
Site Map view
Java Bean support
Adobe® Flash elements (Image Viewer)
Adobe® Flash text and Adobe® Flash buttons
ASP.NET and JSP server behaviors and recordsets -
Flash Text and Flash Button options have dissappeared in DW CS4
the Flash Text and Flash Button options have dissappeared in the insert menu in Dreamweaver CS4. They used to be there but not now
You need the Dreamweaver forum - click here.
-
On Button click change the button display text from LOCK to UNLOCK
Hi Freinds,
I am rendering a TreeByNestingTableColumn with two columns like: Name , Status as below shown. In The status column I inserted a Table Cell editor Button type and the button element property text mapped to the context attribute called statusButton and set the button name in the code to display as LOCK. When the tree renders all the vales are displaying in status column as LOCK. Now whrn the user click on LOCK i should fire the event and change the button text from LOCK to UNLOCK. The same way when they click on UNLOCK and i have change to LOCK. please help how to do this.
Name Status
|> Employee1------------------LOCK (when i click on lock button here, his and under neath of him button status should
|>Employee2-----------LOCK change from LOCK status to UNLOCK)
|>Employee3----LOCK
Thanks in advance.
Thanks
SriniArmin,
Yes I removed the method and created the calicualted value as you suggested and I able to get the out put what i have asked.
My complete scenario is some thing like this, i able to complete upto certain level but not able to make it work for complete scenario, I appreicate your comments or advice for getting me the below output
I have a TreeByNestingTableColum UI rendering with three columns as NAME(node |>), STATUS(Toggle Button) and PLANNING (Text view) (developed based on sample tutorial Integration of a Tree Structure in a Web Dynpro Table.pdf)
I am trying to get this output:
From the sap backed i am getting flag value, based on that i have to render Tree UI columns NAME, STATUS(Toggle Button) and PLANNING (Text view). if the flag is null i have to show as LOCK and In Planning else Unlock and Submitted (please see the below picture for clear idea)*
if (statusflag = ""){
i have to show values in two columns like Lock ...Planning
} else
show values in two columns like Un Un Lock ...Submitted
One more thing is , If i lock a record at secound node level , then all the records should locked underneath of that node (it could be 2 nodes or 10 nodes) and then the status column values should change from lock to Unlock and Planning column values should change from In Planning to Submitted. where as when i Click on Unlock , only that perticular record (not node level) should changed from unlocked to Lock and planning is from Submitted to In Planning.
This is the functionality actually I am looking for.
Here the tree sample:
Name Status Planning
|>M1 Lock In Planning
|>M2 Lock In Planning
*M2a Lock In Planning
|>M3 Un Lock Submittd
Thank you.
Srini -
All of a sudden, when I move my cursor over a flash button or
flash text a grey border appears around the object and a message
"click to activate this control" appears and you have to double
click the object to action it.
Has anyone else had this problem???Read here about recent changes to Internet Explorer:
http://www.macromedia.com/devnet/activecontent/articles/devletter.html
http://msdn.microsoft.com/ieupdate/
Dan Mode
*Must Read*
http://www.smithmediafusion.com/blog
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
"iishka22" <[email protected]> wrote in
message
news:e26gq4$56b$[email protected]..
> All of a sudden, when I move my cursor over a flash
button or flash text a
grey
> border appears around the object and a message "click to
activate this
control"
> appears and you have to double click the object to
action it.
>
> Has anyone else had this problem???
> -
Flash button text dont fit!
when i create a flash button, the text i have provided for
inside of the button doesn't fit. Some letters are missing, but
when i change the width or height of the button; the button is just
white around the area i made bigger. therefore not really doing
anything at all"powned"?
pwned
Unlike the other people who have posted definitions that are
ridiculous, do not have substantial backing, or are simply
mis-informed, I
will give the complete definition of what "pwned" means.
1. The origins of "pwned" are debated but there are two
possible
sources:
a. A prominent quake player mis spelled "owned" and the new
word
"pwned" was adopted by people who thought it was "1337".
b. A warcraft map designer misspelled "owned" and thus
people started
using "pwned" instead.
The definitions are as follows:
In video games:
1. Completely annihilated or dominated.
2. Perfectly owned, meaning the other player did not do any
damage.
I pwned your head with my awp.
OR
I just pwned your *** noob!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"New Guy" <[email protected]> wrote in message
news:ep7ia1$nn7$[email protected]..
> powned!
>
> Murray *ACE* wrote:
>> Thanks, John. How about I just continue to warn
people of the dangers,
>> *and* the inadvisability of using Flash for
navigation. OK?
>> -
Displaying Text When Button Pushed
I am preparing a form in Designer with multiple check-boxes. The instructions for each check-box are so detailed that even an experienced user will occasionally want to review the detailed parameters. I would like to place a button next to each check-box which, when pushed, displays pdf or typed text of the relevant portion of the instructions (i.e. - every button would display a different pdf/text). Can this be done with a limited amount of scripting? Also, can the pdf/text be "embedded" into the form?
Steven,
We had a similar requirement for one of our forms. What we did was to create a multi line text field called additional_guidance.
Then in the mouseEnter event of each field we had the following Formcalc:
additional_guidance = "This is further information about this checkbox"
On the mouseExit event we had:
additional_guidance = null
Alternatively, you could set up the root container as a flowed content. Then the checkboxes would be in a positioned content subform and subsequent fields in another positioned subform. In between these you would have a hidden invisible flowed subform which contains the notes in a text field or static text. This would appear or be hidden depending on mouseEnter events or click events on buttons.
If you need to provide alot of detailed information in a formatted layout, then you could set up a page for each checkbox (or one page for all of the checkboxes) at the end of your form (e.g. called checkbox1_notes). You would set the presence to hidden. Then your button next to checkBox1 would have javascript like this in the click event:
checkbox1_notes.presence = "visible";
xfa.host.currentPage = xfa.host.numPages - 1;
Remember to put a hide button on this help page with the folloeing javascript in the click event:
checkbox1_notes. presence = "hidden";
xfa.host.setFocus(xfa.form.form1.p1.checkbox1); //this would be the full reference for your object
Good luck,
Niall -
Flash buttons in dreamweaver 8
Hi,
i am having a problem with inserting flash button in
dreamweaver 8, when i insert the buttons it appears on the page as
a grey box with "F"(flash) and not displaying the proper text. The
user is a standard windows users and has not administrator
privilidges. but if an administrator loggs into the pc and does the
exact same process then the flash button work.
has anyone come across this problem ? does anyone know how to
resolve
cheers
davidYou'll need to go back into Flash and build the links into the buttons before you create the swf's. Look in the Flash help docs regarding the getURL function as far as the code you'll need for linking. If you have problems, post in the Flash AS1 and AS2 forum.
Beyond that, don't be surprised if some feedback arises here regarding using Flash buttons. -
Htmlb:button onClick event
Hi experts I'm using follwoing code for htmlb :button
<htmlb:button id = "myButton2"
text = "<%= v_save %>"
tooltip = "<%= v_save %>"
onClick = "approveClick"
design = "emphasized"
/>
and in
do_handle_event I'm using followin code
DATA : button_event TYPE REF TO cl_htmlb_event_button,
event1 TYPE REF TO cl_htmlb_event.
event1 = cl_htmlb_manager=>get_event( runtime->server->request ).
CASE event1->server_event.
WHEN 'approveClick'.
button_event ?= event1 .
< some code >
ENDCASE.
when i clicked the button it is not going into do_handle_event
I'm unable to capture onclick event of button .I tried it by keeping some break points .But couldn't be ableto capture it
Here I'm using MVC pattern .When one check box clicked in view of another controller the page which contains this button will be displayed.Do i need to write any additional code for itThere are 2 kind of break-points.
1. Session break-points - This will wok only to debug normal ABAP codes.
2. External break-points - This will help you to debug BSP/Webdynpro application.
Set the external-break point to figure out whether its triggering the events or not.
<b>
To set the external Break-points:</b>
Before settings the external-break-point, you need to Active External break-point for HTTP. YOu can find this option in
SE80, in
Utilites--> Break-point/External break-point or Utilites--> External break-point --> Set External break-point
or if you dont find, then
utilities-->setttings -> ABAP Workbench -> look at the debugger tab
& find the external Debugging check box or External Debugging user ID. Give SAP User ID
Also have a look at this..
http://help.sap.com/saphelp_nw2004s/helpdata/en/17/00ab3b72d5df3be10000000a11402f/frameset.htm
<i>* Reward each useful answer</i>
Raja T
Message was edited by:
Raja Thangamani -
Previewing Flash Button in Dreamweaver
When I insert the Flash Button/Movie into the Dreamweaver doc
and preview in browser, I only see a placeholder.
I created a simple Flash "movie" with some dynamic text
functioning as a button layered over the animation.
It previews fine in flash, and when I play the animation in
the Dreamweaver document it looks fine but when I try to preview it
in the browser from the Dreamweaver document all I see is a Flash
placeholder. Is this something that will change when the page is
published or is there something else I should try?If you want to use Flash for navigation, consider this -
1. Some people don't have Flash installed - what do they do?
Especially
consider those people who are browsing from a corporate
internet where Flash
is not allowed by the IT staff.
2. Search engines may not parse Flash links - your site will
not be
spidered unless you have redundant HTML links
3. Screen assistive devices don't parse Flash links - what
will those users
do?
4. DW cannot maintain links within a Flash movie, so if you
move or rename
a linked file, your navigation will break - what will you do?
You will have
to remake those buttons.
It's usually a very bad idea for these reasons - and for
these reasons,
Adobe has removed Flash buttons and Flash text from CS4.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"webnauta" <[email protected]> wrote in
message
news:gpaf0d$qjl$[email protected]..
> After inserting a flash button in dreamweaver CS3 , I
select add behavior
> and
> then Go to URL onFocus (i tried onClick to), when i
upload the website
> works
> fine in IE but in firefox the buttons doesnt works, how
can i fix it?.
>
> Thanks.
> -
Hi there,
I'm using flash MX2004 to create a navigation bar for a
project in Director 8.5. I have used the getURL command in Flash to
transfer information to Director. The buttons are names button1,
button2 etc. I have put the flash component in Director and tested
that it is recieving variable button names successfully.
I want the button bar to change the director movie depending
on what button is pressed. I am able to have the buttons jump to
marker but not change movie.
I'm also trying to implement a roll-over information feature
ie. when the user rolls the mouse over a Flash button from
Director, a text box in Director displays information, eg. When the
user rolls over the "home" button, the information box reads "This
button takes you to the first page".
I'm pretty new to Director and randomly scouring the Lingo
help doesn't seem to be helping me :)
If anyone has any tips or solutions for my problems it would
be much appreciated.
Thanks in advance,
GLIt sounds like you want to have a number of different results
from these
flash button events. It also sounds like you have a number of
buttons in
the flash sprite.
As duckets said, you can use the getURL() actionscript method
to send
information to Director, either to a behavior attached to the
flash
sprite or to a movie script.
Director can interpret a mouse event on the Flash sprite, but
it can't
tell which object inside the flash sprite has been effected.
In other
words Director knows that the cursor rolled over the sprite,
just not
which clip or button was specifically rolled over.
You will need to set up a strategy for working with these
flash buttons.
You will need to decide how much information to send to
Director and
when to send that information.
Actionscript has rollover and rollout events as well as
mouseDown and
mouseUp events. So one way to deal with this is to use the
individual
rollover and rollout events to send information about the
text display.
Then use the mouseup event for navigation control.
One way to simplify the work on the Flash end is to name each
button
instance. Then on the rollover, rollout and mouseup events,
send the
name of the button instance to Director. You can then use a
simple case
statement to parse out the button's instance name and use
that name to
tell Director what to do.
In flash, name your buttons, it could be as simple as "one",
"two", etc.
The write a series of functions for those buttons. Maybe
something like
this:
-- create an array to hold the names of all of the buttons...
var buttonArray:Array = new Array(one,two,three,four);
-- create a set of functions for these buttons...
for (i in buttonArray) {
buttonArray
.onRollOver = sendRollOver;
buttonArray.onRollOut = sendRollOut;
buttonArray
.onMouseUp = sendMouseUp;
-- for the rollover event, send a string that contains a key
word and
the button name...
function sendRollOver() {
var stringToSend:String = "roll$"+ parseButtonName(this);
getURL(stringToSend);
-- do similar for the mouseUp event...
function sendMouseUp() {
var stringToSend:String = "up$"+ parseButtonName(this);
getURL(stringToSend);
-- for the rollout event just send a simple string...
function sendRollOut() {
getURL("rollout");
-- this function will strip out the simple button instance
name from its
full path...
function parseButtonName(button) {
var buttonName:String = string(button);
var nameParts:Array = buttonName.split(".");
var shortName = nameParts[nameParts.length -1];
return shortName;
Now you have a very simple flash movie that doesn't need to
be edited
every time something changes in the Director movie.
in Director make a behavior that will sit on the Flash
sprite:
property thisSprite
on beginSprite me
thisSprite = me.spriteNum
end
on getURL me,data
if data = "rollout" then
member("text display member").text = ""
else
parseOut(data)
end if
end
on parseOut(thisString)
oldDelim = the itemDelimiter
the itemDelimiter = "$"
if thisString.item[1] = "roll" then
case (thisString.item[2]) of
"one": member("text display member").text =
"first button string"
"two": member("text display member").text =
"second button string"
-- continue as needed
end case
if thisString.item[1] = "up" then
case (thisString.item[2]) of
-- similar to above
end case
end if
the itemDelimiter = oldDelim
end
Rob
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
412-243-9119
http://www.macromedia.com/software/trial/
Maybe you are looking for
-
'No detailed information exists for this person' while adding new reviewer
Hi All, <b>This is an extremely urgent issue.</b> We are getting the following message in SRM while adding a new approver to the Shopping cart once the - 'No detailed information exists for this person' <b>We have implemented the following OSS Notes
-
Error while executing bts_ConfigureBizTalkLogShipping with SQL Server 2012 and BTS 2013
Hi, while configuring the DR site for Log shipping (http://msdn.microsoft.com/en-us/library/aa560961(v=bts.10).aspx) exec bts_ConfigureBizTalkLogShipping @nvcDescription = '<MyLogShippingSolution>', @nvcMgmtDatabaseName = '<BizTalkServerManagementDat
-
Have literally tried everything and iTunes will not detect iPhone
Just bought a new macbook and am having some serious issues with iTunes.... My iPhone was detected the first time i plugged it in, but now it will not detect it. As soon as i plug my phone in, iPhoto pops up but iTunes does not. When i open iTunes, m
-
Chapter Markers do not show on iDVD
I edited a movie in FCE, DV 16:9 aspect ratio. added chapter markers, but in order to preserve the 16:9 aspect ratio when I exported the project to Quick Time I encoded it as HD 16:9, It worked preserving the aspect ratio but in the process I lost th
-
Selection-screen texts and logon language
Hi all, I'm having reports with english selection texts (Dictionnary ref. is ticked). So I expect SAP to translate it in all languages automatically, or at least to use english as default value But when I logon in german, french, russian .... these t