One function for multiple buttons?
I have a county map on my timeline with a list of each county as buttons ( there is 88 counties). I want to highlight the county on the map when I click the county's name from a list.
when I test this out, only the last one gets highlighted. I know I am missing something really simple. it does work if I write code for each button but I can't to seem to get it to work with only writing the function once for all buttons
var countyHigh:MovieClip = adamsHighlight;
var countyCheck:MovieClip = kickout.adamsCM;
kickout.adamsCheck_btn.addEventListener(MouseEvent.CLICK, highlightCounty);
kickout.allenCheck_btn.addEventListener(MouseEvent.CLICK, highlightCounty);
countyHigh = allenHighlight;
countyCheck = kickout.allenCM;
kickout.ashlandCheck_btn.addEventListener(MouseEvent.CLICK, highlightCounty);
countyHigh = ashlandHighlight;
countyCheck = kickout.ashlandCM;
function highlightCounty(event:Event):void{
if (countyHigh.alpha == 0)
countyHigh.alpha = .5;
else countyHigh.alpha = 0;
if(countyCheck.alpha == 0)
countyCheck.alpha = .5;
else
countyCheck.alpha = 0;
when I click all there buttons, the all highlight ashland county instead of their own county. I am using Flash Professional CS5 and only been playing with Flash for about a year.
var previouslyHighlightedCounty:Movieclip;
function highlightCounty(e:MouseEvent):void{
if(previouslyHighlightedCounty){
//reset previouslyHighlightedCounty. ie, un-highlight
// highlight e.currentTarget
e.currentTarget=previouslyHighlightedCounty
Similar Messages
-
One tray for multiple button group items
Hi,
I have 3 button group items in my templaate ,in the propoerties of these button grps the tray is on .NOw I can see 3 trays when I execute my template instead I want to have one tray for these 3 button group items . How is this possible?
THanks
SanyOK, I'm having trouble again. I need multiple items to drag
to one target. I'm putting all my actionscript in the same frame,
and here's how it looks:
stop();
name_mc.onPress = function():Void {
this.startDrag(true);
name_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == safe_mc) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
address_mc.onPress = function():Void {
this.startDrag(true);
address_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == safe_mc) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
And I'm getting the following error message:
**Error** Scene=Recap, layer=actions, frame=1:Line 21:
Statement block must be terminated by '}'
address_mc.onRelease = function():Void {
**Error** Scene=Recap, layer=actions, frame=1:Line 27: Syntax
error.
Total ActionScript Errors: 2 Reported Errors: 2
Do you know what I'm doing wrong? -
Single function for multiple buttons
Hi there
My problem is that I am trying to use the following functions on 10 different logo movieclips. Each logo movieclip has a popup up box (another mc) within its timeline with a description in. When I hover over the logo movieclip i want it to call the forward frames function and on hover out call the rewindframes function.
function forwardFrames() {
onEnterFrame = function () {
if (_currentframe != 15) {
nextFrame();
} else {
stop();
delete this["onEnterFrame"];
function rewindFrames() {
onEnterFrame = function () {
if (_currentframe != 1) {
prevFrame();
} else {
stop();
delete this["onEnterFrame"];
However i am trying to do all this on the main timeline and the only way i can think to make it currently work is if i do the following for every logo mc which, surely there is a better way:
symbol_1.onRollOver = function() {
symbol_1.onEnterFrame = function () {
if (symbol_1._currentframe != 15) {
symbol_1.nextFrame();
} else {
symbol_1.stop();
delete this["onEnterFrame"];
symbol_1.onRollOut = function() {
symbol_1.onEnterFrame = function () {
if (symbol_1._currentframe != 1) {
symbol_1.prevFrame();
} else {
symbol_1.stop();
delete this["onEnterFrame"];
Any advise would be much appriciated, thankyou
DanielYou should be able to use something like the following....
symbol_1.onRollOver = symbol_2.onRollOver = playFwd;
function playFwd() {
this.onEnterFrame = function () {
if (this._currentframe != 15) {
this.nextFrame();
} else {
this.stop();
delete this.onEnterFrame;
symbol_1.onRollOut = symbol_2.onRollOut = rewind;
function rewind() {
this.onEnterFrame = function () {
if (this._currentframe != 1) {
this.prevFrame();
} else {
this.stop();
delete this.onEnterFrame; -
Event and obj type in one eventlistener function for all buttons
Hi i have something like this
button1.addEventListener(MouseEvent.ROLL_OVER, manageMouseOver, false, 0, true);
button1.addEventListener(MouseEvent.ROLL_OUT, manageMouseOut, false, 0, true);
function manageMouseOver(event:MouseEvent):void{
TweenLite.to(button1, 1, {x:100, rotationX:360, ease:Back.easeOut});
function manageMouseOut(event:MouseEvent):void{
TweenLite.to(button1, 1, {x:14, rotationX:-360, ease:Back.easeOut});
and i would like to get one sentence for all button. I would like to create reference obj to use that function for all of my 7 buttons.
button1.addEventListener(MouseEvent.ROLL_OVER, manageMouseOver(button1), false, 0, true);
button1.addEventListener(MouseEvent.ROLL_OUT, manageMouseOut(button1), false, 0, true);
function manageMouseOver(event:MouseEvent, obj:Object):void{
TweenLite.to(obj, 1, {x:100, rotationX:360, ease:Back.easeOut});
function manageMouseOut(event:MouseEvent, obj:Object):void{
TweenLite.to(obj, 1, {x:14, rotationX:-360, ease:Back.easeOut});
but this is not working. I know that is wrong but what i should do to do this right?in the listener function, use the event's currentTarget property to determine which object dispatched the event.
-
Can i install itunes multiple times on one computer for multiple users?
Can i install itunes multiple times on one computer for multiple users?
Like most applications you only need to install it once for it to be available to all users. (That said it is possible to install an application and only make it available to the current user, but that's rarely needed.)
tt2 -
How to create one delivery for multiple sales order
Hi!! Friends,
Can some one explain the steps to be followed in creating one delivery for multiple sales order in SAP SD.
Regards
AKASH
Message was edited by:
AKASH TAMBIHi.,
You can combine different orders in to one delivery ,But for the customer Order combination should be checked in the sales area data of the shipping tab,we can combine orders but the ship to party,Route,Inco terms,Shipping date,shipping point should be same,you can do in T.code VL04 & VL10
REWARD if helpfull
Thanks & Regards
Narayana -
How to create one TO for multiple TRs
Dear All,
how to create one TO for multiple TRs, kindly suggest me
Regards,
baluAs for your question: it is discussed in sAP online help:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
Sorry I misunderstood your question.
The above mentioned solution won't create one single TO from multiple TR.
Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM -
One TPV for multiple Countries
Hi Experts,
Could you pls share experirnce/knowledge around having one TPV for multiple countries together. The scenario is like below:
1. There are mutiple Countries in Central America which are small islands for whom we need to roll out the Travel and Expense Solution.
2. The Company code is only one which contains employees from all these Countries.
Could you tell us how can we do the setup. Should we create one TPV at the company code level. OR should we rather use some other criteria for selecting the TPV maybe at the Personnel area or Personnel Sub Area level.
Your help is much appreciated.
Regards,
VijayHi Kiron,
These things I am aware about too. My real question is if I create only one TPV for the company code and assign the Country of the Company code then what issues would this cause. To name a few pls see below.
1) The domestic Country would always be the Company code Country so would be treated as Domestic Country and show on the Form also as domestic Country even for the employees who are from other Countries.
2) There are setting which SAP allows differently for Domestic and International like per diem, miles cumulations. So these necessarily have to be kept as same even though local laws are different in all these countries as Domestic is only the Company code Country.
So I need detailed analysis of what impact I will have by having only one TPV as against making many TPV like one for each Country by using some other parameter like Personnel area/Personnel sub area etc.
Appreciate your help!
Regards,
Vijay -
One invoice for multiple deliveries
Hi Gurus,
Can any one tell how can i create one invoice for multiple deliveries.
Regards,
Vinodone invoice for multiple delivers we can do in vf04
we can do in vf04
reward points if it is help ful
Thanks
mubeen
Edited by: mahammad mubeen on Mar 5, 2008 10:02 AM -
One cheque for multiple vendors
hi,
is it possible to generate one cheque for multiple vendors ?
cheque will be sent to bank and bank will deposit the amounts into vendor banks.
Can you anybody help me?
regards,
kalyanHi
Yes. you can do it
First transfer the amount to bank and from there bank will transfer the amount to respective vendors through ther banks.
Go for implementing automatic payment programme according to your client reqyuirement. Check TCode F110 which is master transaction for APP. Check at TCode F110-Environment-maintain Config.....
Cheers
Srinivas -
One lockbox for multiple company codes
Is it possible to have one lockbox for multiple company codes?
No, I don't think so. Lockbox is 1:1 for a Company Code.
You configure Lockbox for a Company Code.
You can use one of the 2 available Lockbox user exits (not sure which) to write a piece of code that searches invoices against the customer posted to different company codes. You will have to have the intercompany setups.
You may find an OSS notes for intercompany clearing.
Hope this helps! -
One delivery for multiple STO's
Folks,
I have multiple STO's for the same ship-to (plant). Items due for shipping would need to be combined into 1 delivery and not 1 delivery per STO.
Would this be possible? And if yes, how?
Thanks,
MZHi ,
Yes , We can create one delivery for multiple PO's .
Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
Select the STO's and click on background tab. Then it creates the log
Select the item again and press shift +F4
It will gives the log inforamation for the STO's and select the item and press on documents tab.
It will creates only one Delivery for all the STO's.
Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
then press on " post goods issue "
Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
Only one document will be posted for all the STO's
Regards,
Usha. -
One OCS for multiple Company´s ???
Hello,
It´s possible to install multiple "areas" on one OCS? We want to provide a OCS for our customers. They shouldn´t see other caledars or adress-book. Only ther own "area".
KR
MathiasHi ,
Yes , We can create one delivery for multiple PO's .
Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
Select the STO's and click on background tab. Then it creates the log
Select the item again and press shift +F4
It will gives the log inforamation for the STO's and select the item and press on documents tab.
It will creates only one Delivery for all the STO's.
Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
then press on " post goods issue "
Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
Only one document will be posted for all the STO's
Regards,
Usha. -
One inventory for multiple ORACLE_HOMEs ?
RDBMS version:11.2, 10.2
Platform : AIX
In one server , we are going to install multiple ORACLE_HOMEs (both 10.2 and 11.2). I have been asked to configure separate inventory for each ORACLE_HOME (each inventory within its own ORACLE_HOME). But i came across OTN posts which advices one inventory for all ORACLE_HOMEs .
1. How can i create 1 inventory for all ORACLE_HOMEs . Is it by specifying an inventory directory outside all ORACLE_HOMEs in OUI when you do the very first installation ?
2. Which one is more professional : one inventory for each ORACLE_HOME or one inventory for all ORACLE_HOMEs ?When installing Oracle software for the first time, the OUI will create a "global" inventory under $ORACLE_BASE.
Depending on you OS, to locate this inventory look at "/etc/oraInst.loc" (AIX+Others) or "/var/opt/oracle/oraInst.loc" (Linux+others).
You can add/remove Oracle homes from this inventory by using OUI or command line ./runInstaller.
Each Oracle home may also contain an "$ORACLE_HOME/oraInst.loc" file.
HTH
PS: +"One inventory for multiple ORACLE_HOME is a bad practice"+ -- Untrue. Perhaps only for those that don't know how to use it.
:p -
Shall I use one datasource for multiple connection pool?
Hi,
I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
Thanks with regards
SureshNo. If its transactions across multiple databases you should use different datasources.
Maybe you are looking for
-
Send/Receive progress bar is not shown in Outlook 2010
Hi friends, when ever i press send and receive option or F9, am not getting the send and receive progress bar in the bottom of the corner side. kindly help me
-
ATG Community is read only and will be decommissioned on September 29
After Sep 29th, we will not have access to read-only ATG community as well?
-
User Specific Items Visibility in all SAP Forms
Hi Experts, Greetings Of The Day!!!! I have a requirement where i need to show the item master list according to the user on all sap forms. For example GRPO :Some specific groups of items should be shown in CFL of item according to the user currently
-
Authorization to custom t code
Hi all, I HAVE A MODULE POOL PROGRAM AND I NEED TO PROVIDE AUTHORIZATION TO ACCESS THE THE Z TCODE FOR THAT MODULE POOL. I have to write code checking sy-uname or is there any other way that can be used to provide access. Thanks swathi
-
Happy accident?: AirPlay available on separate wifi networks
I have an apple airport express version 2011 hooked up to my ISP issued Zyxel modem/router. I use the airport express for a 5ghz signal that I use to stream Netflix and then mirror back onto apple tv for viewing in the living room. From my tests I ne