Code for button located inside the MC
I decided to rearange my flash site and now things don't work.
I used to have an image collage where all the images were buttons and each image was located on the stage ( which made a stage with 10+ loose images)
I made each image a button. Below is a code example for one of the images named "icysophistication_app_btn". The previously working code for it was:
icysophistication_app_btn.addEventListener(MouseEvent.CLICK, onClick_IcySophisticationPopUp);
function onClick_IcySophisticationPopUp(event:MouseEvent) :void {
gotoAndPlay("icysophistication");
Then I decided to unite all the images into one mc called "imgscollage_buttons_mc" (because later on I want to build another collage and have them sliding on the screen with tweener engine)
imgscollage_buttons_mc.icysophistication_app_btn.addEventListener(MouseEvent.CLICK, onClick_IcySophisticationPopUp);
function onClick_IcySophisticationPopUp(event:MouseEvent) :void {
gotoAndPlay("icysophistication");
I am guessing I have to put something before - gotoAndPlay("icysophistication");
but can't figure out what.
Please suggest
your original code was on the main timeline and it was the main timeline that contained the frame labeled "icysophistication"?
your new code is still on the main timeline and the main timeline still has that frame label?
Similar Messages
-
Code for button is affecting the entire movie
The following code is on the timeline and the button
instance, cancelMC, is also on the same timeline in a different
layer and appears 4 times throughout the timeline. I've asked this
question (worded differently) at kirupa and the post has gone
ignored for some reason - maybe the title is too long or something.
The code tells the button, onRelease, to "gotoAndStop(1)" however,
if you click anywhere on the interface it does that. This is what
would have happened if I had put on the timeline
"this.gotoAndStop(1)." But I did not type that as you can see:
with(cancelMC){
onRollOver = function(){
this.ExplainMC.gotoAndStop("cancel");
onRollOut = function(){
this.ExplainMC.gotoAndStop("void");
onRelease = onReleaseOutside = function(){
_root.searchPanelMC.mainMenuMC.gotoAndStop(1);
this.gotoAndStop("user");
Notice it says "this.cancelMC"? That is the button. Someone
please help with this - I am at a loss and have tried everything to
make it work.your original code was on the main timeline and it was the main timeline that contained the frame labeled "icysophistication"?
your new code is still on the main timeline and the main timeline still has that frame label? -
What is folder q2tw177e.default located inside the profile folder
The application data folder, windows xp, has a folder labeled q2tw177e.default located inside the profile folder. I can find out nothing with this label when searching google. Makes me suspicious about this folder. Does anyone know anything about it. Thanks.
There is nothing to worry about that folder.
That is the actual Firefox Profile Folder that stores your personal data.
There are two of them:
* C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox\Profiles\<profile>\
*C:\Documents and Settings\<user>\Local Settings\Application Data\Mozilla\Firefox\Profiles\<profile>\
The latter is the location used for the browsing cache and a few other files.<br />
See also the about:cache page for the location of the cache.
You can use this button to go to the Firefox profile folder:
*Help > Troubleshooting Information > Profile Directory: Open Containing Folder
*http://kb.mozillazine.org/Profile_folder_-_Firefox -
How to find function code for buttons on toolbar in oops alv
Hi experts,
I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALVHi Prakash,
-->First you have to set the pf status in your alv program by,
{FORM pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'FIRST'.
ENDFORM. "PF_STATUS}
-->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
i_callback_pf_status_set = 'PF_STATUS'}
*-->Then doble click on that pf status,
From the menu bar, select Extras->Adjust Template->List Viewer,
This will give you the existing statndard gui status of the program*
->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
i_callback_user_command = 'COMM'
And make a subroutine of the name 'COMM'i.e,
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA: okcode TYPE sy-ucomm.
okcode = ucomm.
CASE okcode.
WHEN 'REF'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'MANSI'
txt1 = 'CREATED BY'
txt2 = SY-UNAME
TXT3 = ' '
TXT4 = ' '
endcase.
Hope it helps you
Regrds
Mansi -
Redeem code for Mountain Lion in the App Store
I input my redeem code for Mountain Lion in the App Store and it said it was downloading, but nothing happend. How do I know if the upgrade has been completed?
Welcome to Apple Support Communities
Open the Mac App Store and press the Redeem button: -
Added code for VA01 transaction ----in the include MV45AFZZ
Hi All,
I have added the code for pop-up
if the quantity is greter than 20000 then we need to give the confirm pop-up.
for that i have added code like this.
When we clik on YES it will save the order.
suppose if i clik on NO then i need to change the quantiy value.
Whats needs to be doing for this.
Please help me on this.
IF ( vbak-vkorg = 'CA01' OR vbak-vkorg = 'CA02' OR
vbak-vkorg = 'CA03' ).
IF vbak-netwr > '50000.00'. "Comparing quatity value
w_txt = 'Order Quantity exceeded 50000 CAD. Please confirm'.
w_txt1 = 'Order Quantity Check'.
MESSAGE w901(zmsg1) WITH '50,000.00 CAD'.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
defaultoption = 'Y'
textline1 = w_txt
TEXTLINE2 = ' '
titel = w_txt1
START_COLUMN = 25
START_ROW = 6
cancel_display = ' '
IMPORTING
answer = w_ans.
CASE w_ans.
WHEN 'J'. "<b>This is for COnfirm means Yes</b>
CONTINUE.
WHEN 'N'. "<b>This is for NO</b>
SET SCREEN 4008.
CALL SCREEN 4008.
LEAVE TO SCREEN 4008.
Thanks
Sriman.Hi,
I assume that you are writing this code in "<b>USEREXIT_SAVE_DOCUMENT_PREPARE</b>". If not that first thing you do is move your code here.
The next thing is modify your code like this
IF ( vbak-vkorg = 'CA01' OR vbak-vkorg = 'CA02' OR
vbak-vkorg = 'CA03' ).
DATA: lv_screenno TYPE syst-dynnr.
IF vbak-netwr > '50000.00'.
w_txt = 'Order Quantity exceeded 50000 CAD. Please confirm'.
w_txt1 = 'Order Quantity Check'.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
defaultoption = 'Y'
textline1 = w_txt
titel = w_txt1
cancel_display = ' '
IMPORTING
answer = w_ans.
CASE w_ans.
WHEN 'J'. "This is for COnfirm means Yes
WHEN 'N'. "This is for NO
* SET SCREEN 4008. "Remove this line
* LEAVE TO SCREEN 4008. "Remove this line
*" No need to define variable FCODE again,
*" it is alreay define in MV45ACOM
fcode = 'ENT1'. "sy-ucomm. Add this line
lv_screenno = sy-dynnr. "Add this line
LEAVE TO SCREEN lv_screenno. "Add this line
ENDCASE.
ENDIF.
ENDIF.
Let me know if you have any question.
Regards,
RS -
Does location based services (LBS) work for international locations (outside the USA)? For example does it work in Canada, European countries etc. Any help is appreciated.
Yes, but possibly limited to coverage of Skyhook database..
Applications that use location services also use the data from Skyhook...
Skyhook is a service that records the MAC addresses of Cell Base stations/towers and wireless access points.
Google Maps vehicles records the wireless AP data at the same time they get street view images.
There was some controversy over this - but they effectively record the location and the MAC address of any AP they find as they drive round. This gets sent to a massive database at Skyhook and is used to either locate without GPS or enhance/aid the GPS information. It's also why the location is always the road outside!
If your location/MAC relationship has not been mapped by Skyhook, Google or others - then the good news is that you can add it - although it can take a month or two at least - to work. The reason is that it depends which database is being used by Skyhook's clients..
Add your Wireless Access Point (or Wireless Router) here: http://www.skyhookwireless.com/howitworks/submit_ap.php
The main website for Skyhook is here: http://www.skyhookwireless.com
Hope that helps...! -
Hello
In my app (WP 8.1) i have to store user location (lat,lon) in sql db so how can i store that location detail? And i also have to find all the location which are inside certain radius X from another user location, How can i do this?
Any Sample project or code or any blog post?
P.S. I use sql server 2012.If you need to do spatial queries like the one you mentioned you'd need to store it as a spatial geography type. For points, a simple SQL INSERT statement using the Point() method would do it. Example here:
http://msdn.microsoft.com/en-us/library/bb933811.aspx For locations inside a radius, you'd use STDistance() method. All of the methods for the geography data type are documented here:
http://msdn.microsoft.com/en-us/library/bb933802.aspx and can be used in ordinary T-SQL statements.
If you need to use the SQL Server spatial library in your .NET application direct, Alastair has some nice blog posts, like this one:
https://alastaira.wordpress.com/2011/08/19/spatial-applications-in-windows-azure-redux-including-denali/ , he even wrote a book. Or search the answers in this forum.
Hope this helps, Bob -
How to create a byte[] as parameter for a Method inside the Controller
Hi Experts,
I want to create a method getCachedWebResource inside the component controller which has a parameter file which is of type byte[].
But in Netweaver Developer Studio I am not able to create this parameter with type byte[] .
When I try creating a parameter of this type (byte[]) . I get only byte from drop down and below Array type checkbox is disabled.
Please help me in this regards.
I am already highly obliged to his forum with lots of useful answers. Hoping the same this time too
Best Regards,
Roby..Robert-
There are two ways of achieving this:
1. Create a private getCachedWebResource() method inside your component controller's others section. i.e. do not create a method on the Methods tab, but instead code the method directly into the controller.
2. Create a parameter of type java.lang.Byte[ ] instead of byte[ ]. This can be done by clicking on the Browse button next to the Type and then choosing the Java Native Type radio button. In the Java Native Type input field provide java.lang.Byte. Click on Ok and you should see the Array Type option getting enabled. Check it, and in the method you should convert from java.lang.Byte to byte.
I would stick to option (1)
Cheers-
Atul -
Generated Code for Button Bar - Not Working
Hi all,
I'm working with LightSwitch 2013 (Visual Studio 2013 Update 4), and I noticed that when I view my HTML5 client in Internet Explorer 11 and switch between tabs (in the HTML5 client), the buttons become barely visible (like they were disabled, but they're
still enabled). Is there a quick fix for this, like regenerating the javascript that was generated to do this?
Thanks,
Gareth
Edit: Here's a picture of what I mean. The button looks disabled, but is actually enabled. Any buttons that are disabled just show up as even less visible. Also, if I switch between tabs enough times, it'll fix the issue and look enabled again. Any advice
would be greatly appreciated. Thanks!Have you added the button to the command bar for each tab or only the first tab?
If you want 'Add OS' available in more than one tab then you need to add buttons to all relevant tabs, but wire up to the same command and event handler in code behind.
Dave
Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer. -
Help with writing code for button
Hi!
Can someone help me with the code for a button that sends my menu back to 0?
This is the code current code, and I've created a button called sistapilen that I want to insert where the regular button "arrow" is not visible. I want sistapilen to navigate me back to 0. (Or if I can get "arrow" to do it and delete "sistapilen").
/Jen
// File downloaded from www.riacodes.com
import com.greensock.*;
var arrayX :Array = [0,-800,-1600,-2400,-3200,-4000,-4800];
var currentIndex:Number=6;
left_mc.addEventListener(MouseEvent.CLICK,navigate);
right_mc.addEventListener(MouseEvent.CLICK,navigate);
left_mc.buttonMode = true;
right_mc.buttonMode = true;
checkArrows();
function navigate(e:MouseEvent):void{
if(e.currentTarget == left_mc) currentIndex --;
else currentIndex ++;
checkArrows();
TweenLite.to(content_mc,.5 ,{x:arrayX[currentIndex]});
function checkArrows():void{
if(currentIndex == 0) left_mc.visible=false;
else if (currentIndex == arrayX.length - 1) right_mc.visible = false;
else{
left_mc.visible = true;
right_mc.visible= true;Add a listemer for whichever other button you plan to use...
sistapilen.addEventListener(MouseEvent.CLICK,navigate);
And try changing your navigate function as follows...
function navigate(e:MouseEvent):void{
if(e.currentTarget == left_mc) {
currentIndex--;
} else if(e.currentTarget == right_mc){
currentIndex ++;
} else {
currentIndex = 0;
checkArrows();
TweenLite.to(content_mc,.5 ,{x:arrayX[currentIndex]}); -
Cannot change company code for functional location in PM module
Dear Gurus,
When I try to change the maint plant for topmost level hierarchy FL, I get error. So I cleared the data in organization tab (planning plant....) and tried to click location tab but receive warning (After changing PM planning plant, please check dependent objects) & cannot proceed. Kindly advice me on how I can change the company code for all the functional location in the plant.
Thank you.Dear Gurus,
Is there any way I can mass change the company code for all FLs?
Thank you. -
I am not sure on what to do at this point. I have gotten rid of my old computer, I had used to sync my iPod, and to add to that.. The back button broke! I have tried everything from jailbreaking techniques, to just plugging it in to my new computer and trying to sync it. When I plug it in, and error message comes up on iTunes saying, "You cannot acces iTunes with this iPod, because it is locked with a passcode." My friends locked me out, changed the passcode, and nobody remembers it. Help would be greatly appriciated! My email is, [email protected] the other one is my old email and I am no longer in use of that so the best way to get back to me is by responding through email. Thank you for your time!
Disabled
Place the iPod in recovery mode using one of these programs:
For PC
RecBoot: Easy Way to Put iPhone into Recovery Mode
If necessary:
Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
and
RecBoot tip
For MAC or PC
The Firmware Umbrella - TinyUmbrella
and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
For how to restore:
iTunes: Restoring iOS software
To restore from backup see:
iOS: How to back up
If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
I've lost my access code for my device and the type of device is the iPad Mini
I lost my access code from may device and the type of device is the ipad mini
iOS: Device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212
How can I unlock my iPad if I forgot the passcode?
http://tinyurl.com/7ndy8tb
How to Reset a Forgotten Password for an iOS Device
http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
Using iPhone/iPad Recovery Mode
http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
~~~~~~~~~~~~~
‘iPad is disabled’ fix without resetting using iTunes
Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
2. Open iTunes with the iPad disconnected.
3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
5. Click ‘Setup as new iPad’ and then click restore.
6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
~~~~~~~~~~~~~
Try it and good luck. You have nothing more to lose if it doesn't work for you.
Cheers, Tom -
T CODE FOR BLCKED /UNBLOCKED IN THE COST CENTERS
hI,
i WANT TO SEE ALL CSOT CENTERS WHICH IS BLOCKED /AND UNBLOCKED PLEASE TELL ME THE T.CODE FOR THATHi,
I understand that you want to check the cost center for the locks activated for various transactions. Go to transaction KS13 - give the cost center hierarchy for which you want to see the cost centers and execute.
The report will be displayed showing the locks for the various postings. This can be further controlled by changing the layout as desired.
Good Luck!!! Please assign points if useful!!!!!!!
Thanks and Regards,
Bhuvaneswari.S
Maybe you are looking for
-
RoboHelp is unable to start RoboHelp Explorer
I recently installed RoboHelp 9 on my Windows 7 Ultimate 64-bit computer. I worked in it for a day, editing a previously existing robohelp file that was created in version 6. Yesterday when I tried to open RoboHelp, it wouldn't open. The RoboHelp spl
-
Material Type to Valuation Class
Hi On which table /Tcode can list the Valuation Class assigned to all the Material Types. Regards MM
-
When m installng latest version of i tunes error comes
when m installng latest version of i tunes some error comes it is ''service apple mobile device (apple mobile device) failed to start verify tht u have sufficient privileges to start system service" what should i do????????/
-
MS Access & MS SQL from a Java Server Page
I'm new to JSP but I know how to write Active Server Pages and was wondering how to set up a JSP so that I can access data in my MS Access database and also my MS SQL server. Anyone have code snippets that connect to these two databases, retrieve and
-
What host credentials must be given in local Instance ?
Hi i have a 10g DB on my local system on Windows XP SP2. We have exchange.com domain in our comoany I am able to start EM, but cannot perform recovery unless i enter host credentials. I entered my username on exchange and the password but it doesn't