I have advice on a problem
Hi all
I need some advice on a problem, I'm going to. In my application, I'm working, I want to use b.filters = [new DropShadowFilter ()] filter to give the effect of a sprite being picked up and moved. I use this code to move the sprite:
cardSprites[card].addEventListener(MouseEvent.MOUSE_DOWN, onDown); cardSprites[card].addEventListener(MouseEvent.MOUSE_UP, onUp); addChild(cardSprites[card]); private function onDown(e:MouseEvent):void { b = Sprite(e.currentTarget); ... b.filters = [ new DropShadowFilter() ]; addChild(b); b.startDrag(false, new Rectangle(0, 0, 1024 - CARD_WIDTH, 594 + CARD_HEIGHT)); } private function onUp(e:MouseEvent):void { b.stopDrag(); ... }
The problem is sometimes the event MouseEvent.MOUSE_UP does not draw the sprite is not stop moving. This doesn't happen very often. Maybe 1 out of 100 times or more. I think that the problem is related to the speed of the Simulator because it is not all the time. I hope that it does on a real device. I noticed that when I remove the filter to DropShadowFilter () I don't have the problem. I like the shadow effect. I was thinking of doing a second series of images with a drop shadow, but that would mean I would have twice as many images and I have a lot. I want RIM to send me my PlayBook so I can test this on a real device.
Do you think I should present my application for approval or rework my application and add all the images?
Hey PBDev,
try changing your code as follows:
cardSprites[card].addEventListener(MouseEvent.MOUSE_DOWN, onDown); addChild(cardSprites[card]); private function onDown(e:MouseEvent):void{ b = Sprite(e.currentTarget); ... b.filters = [ new DropShadowFilter() ]; addChild(b); b.startDrag(false, new Rectangle(0, 0, 1024 - CARD_WIDTH, 594 + CARD_HEIGHT)); stage.addEventListener(MouseEvent.MOUSE_UP, onStageMouseUp); } private function onStageMouseUp(e:MouseEvent):void{ b.stopDrag(); stage.removeEventListner(MouseEvent.MOUSE_UP, onStageMouseUp); ...}
Basically instead of make a mouse event on the object itself, do on the stage. It doesn't matter where the user makes mouseup, he's always going to be picked up. the best way to go without compromise. hope that helps. Good luck!
Tags: BlackBerry Developers
Similar Questions
-
I've updated my IPhone 6 to 10 of IOS and have all kinds of problems
After downloading 10 IOS on my IPhone 6 s more, I have all sorts of problems, Apps take long to download or do not download at all, this new IOS 10 software made the unusual phone features no functional!
wolfgangfromcypress wrote:
After downloading 10 IOS on my IPhone 6 s more, I have all sorts of problems, Apps take long to download or do not download at all, this new IOS 10 software made the unusual phone features no functional!
Basic troubleshooting steps:
Reboot, reset, restore backup or restore like new.
-
I have 22 SPSS for Mac. Since I upgraded to El Capitan, I have a number of problems. I checked the Web sites of IBM, but they only mention fixes for SPSS 23. Any thoughts would be greatly appreciated. Thank you.
I am running SPSS 23.0
You can upgrade to 23.0?
Also, have you looked here
-
I have a very serious problem. My iPhone 6s fell and has cracks on the screen. What should I do now?
Warranty Apple does NOT cover accidental damage.
-
During the last two weeks, all changes (including new Contacts or changes/revisions to previous Contacts) have stopped syncing to my contacts in iCloud. I got my iPhone 5s almost two years and have never had this problem before. I look forward to thoughts about the causes and, above all, suggestions for solutions.
Try the settings/iCloud and remove the synchronization of Contacts. Wait a few minutes and then resynchronize.
-
HP Pavilion p 15-200nq: I have all sorts of problems in Device Manager...
Hi, I bought a laptop pavilion p-200nq, I installed windows and now I can not install the LAN, wi - fi, network and I have all kinds of problems in devices like Device Manager unknown ethernet cotroller, network controller, pci device and video controller...
I don't know if it is where I have to post but... I have a lot of problems... I don't understand.. need help
Hello:
You should be able to use the W7 x 64 drivers and software from the HP Pavilion 15z-p000 CTO Notebook PC on your model. Do not use the BIOS or firmware files but because they are the specific model.
In addition to the information above, you will need to also install the AMD Chipset drivers and reboot in order to install the smbus and usb3 controllers.
First driver on the list.
http://support.AMD.com/en-us/download/chipset?OS=Windows%207%20-%2064
-
HP ENVY 15 l: I have a lot of problems after windows 10
Hello
I have a lot of problems after the update of Windows 10
1 - what sleep mode the screen is not working! (I already tried to change the keyboard, but to no avail)
2. the footprint does not work after the update!
3 programs Microsoft Office cannot be installed after purchase! (Whenever you download the package, I get an error message)
4 - when I walked in the updates (windows) tells me that there is an error message!Windows 10 home unique Language، (error)
....
Please help me as soon as possible! I have a cousin reviewsHello @shySmile,
Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums, I would like to draw your attention to the HP Forums Guide first time here? Learn how to publish and more.
I came across your post about the problems associated with Windows 10 and wanted to help!
For starters, can you provide me with the product number of the laptop? Here is a link that you can use that will help you find your model and product number:
How can I find my model number or product number?
Try to see the next post to solve the problem of the Standby Mode. and let me know how it goes:
How to troubleshoot upgrade Post-Windows 10 on HP laptops
Can you give us more information about the print does not work after the update? For your problem regarding the purchase of Microsoft Office, contact Microsoft Product Support. To solve the problem with the update of Windows, try using the following tool found here:
Open the Windows Update troubleshooting tool
Please let me know if this information helps you solve the problem by marking this message as 'accept as Solution' , this will help others easily find the information they seek. In addition, by clicking on the Thumbs up below is a great way to say thank you!
Have a great day!
-
I run windows xp on HP Pavilion 750, in the past, I have not had a problem writing to the photos from my computer on disc.
It now written up so I get a message cannot keep any body can help please.
original title: problem writing Photos...
I'm sorry, but I don't have a solution for you. You can check the Device Manager (start > run > devmgmt.msc > OK) to see if there are warnings next to your CD burner. If there is a caution icon, double-click the entry and see what it says under "device status".
I don't know how you use picture & Fax Viewer to burn a CD. The usual method, except if you have 3rd party CD burning software, is to use Windows Explorer. This is what Windows XP Help & Support has to say on this topic:
To copy files and folders to a CD
- Insert a blank, writable CD into the CD burner.
- Open my computer.
- Click the files or folders to copy to the CD. To select multiple files, hold down the CTRL key while you click the files you want. Then, under file and folder tasks, click copy this file, copy this folder, or copy the selected items.
If the files are located in my pictures, under management of images, click copy to CD or copy all items to a CDand go to step 5.
- In the dialog box copy items , click the CD player record, and then click copy.
- In my computer, double-click the CD burner. Windows displays a temporary area where the files are held before they are copied to the CD. Verify that the files and folders you want to copy to the CD appear under files ready to be written on the CD.
- Under CD writing tasks, click write these files to CD. Windows displays the Assistant burn a CD. Follow the instructions in the wizard.
Notes
- To open my computer, click Startand then click my computer.
- Do not copy more files to the CD that it will hold. Standard CD hold up to 650 megabytes (MB). Large capacity CD contain up to 850 MB.
- Don't forget that you have enough disk space on your hard disk to store the temporary files that are created during the CD writing process. For a standard CD, Windows reserves up to 700 MB of available disk space. For a high-capacity CD, Windows reserves up to 1 gigabyte (GB) of the available free space.
- After you copy files or folders to the CD, it is useful to view the CD to verify that the files are copied.
-
Cannot open disk Defragmentar. Have never had this problem before.
I can't open Disk Defragmenter. The computer is 6 years old and have never had this problem before. I'm afraid that this is something that I've made or changed everything trying to "clean up" the computer. What can I do so that it can start working again? Thanks for any help.
With disk defrag does not, I never saw a response microsoft or "fix."
to do this, try kb922379
Also, if you're still running a 6 yr old pc, perhaps with the same OS, then windows could
be corrupted, or the user files can be also. Try to create a new user account & see
If she runs in this document, if so, delete the old account. Try 922379 1
-
I am XP user window (home addition) and have recently experienced a problem open a document created with Microsoft Word. I saved the file, he sent, and trying to open it it does not allow me to do. I get a pop up saying - bar FILE CAN BE USED BY ANOTHER APPLICATION, or FORMAT of FILE CAN NOT NOT BE supported BY any OF THE INSTALLED CONVERTERS OR THE FILE is maybe DAMAGED. After you click ok in the pop-up a white prosser page for Microsoft word opens. I'm trying to accomplish creating a coupon for my wife to be able to post to its customers by e-mail.
It may be in a format that Word can not handle. They are files DOC, DOCX, XLS or or something else?
There is an update available for the words to open the DOCX files.
Or you may need the free viewer for Word or Excel Viewer.
To download Microsoft Office converters and viewers:
http://www.Microsoft.com/downloads/en/resultsForProduct.aspx?displaylang=en&ProductID=4289ae77-4cba-4A75-86f3-9ff96f68e491&sType=n_pf
MD MOEEN AJAZ KHAN - MCP, N +, A +.
-
need to tune up and complete the review of the computer, I have a lot of problems
have laptop computer abput gateway 4-5 years with vista home premium with sp1 32-bit
have been msany to have a lot of problems and worsens with a lot of gel and crashing lately
has talked to someone at speedy pro and he said I needed a tune up and major maintenance that I had many many many problems and they wanted to charge Ms. $300 to fix did not have the $$$
Hi Sandy,
I'm sorry to know that you are facing this problem. Based on your description, it seems that the system freezes and it crashes very often.
- You receive a specific error?
- It does not occur when you perform a particular task?
- What is the brand and model of the computer?
You can consult this documentation and see if the suggestions it can improve the performance of the computer.
See also:
Maintenance tasks that improve performance
Reply with the status if it does not, then we can help you.
-
I have the ie3sh.exe problem on my laptop, can you tell me what I need to do, and this causes a problem with LAN to the internet. What happens on another laptop not this one.
Hello
· Which is exactly the problem that you face with iesh3.exe?
· When you receive the error message that is related to iesh3.exe?
· You did changes to the computer before the show?
· This issue you are facing with internet?
· What is the full error message that you receive?
Method 1: I suggest you to run the Microsoft safety scanner to ensure that the system is free of infection by the virus:
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Method 2: I would say as you put the computer to boot and check which application is causing the problem:
http://support.Microsoft.com/kb/929135
Note: after a repair, be sure to configure the computer to start as usual as mentioned in step 7 in the above article.
Post back with the required information so that we can help you further.
-
Using Photoshop, I have come across a problem, when I launch Photoshop CC (2015), it instantly goes to a blue screen with the error of KERNEL_SECURITY_CHECK_FAILURE, my PC is Windows 10 (64-bit), so please it outside. Thank you
Hi Sammo,
See this thread: Re: photoshop, 'kernel security check failed'
Kind regards
Claes
-
Some virtual machines have intermittent network connectivity problems and rest work correctly. The VMs are in the same group of port and on a 4-node cluster. Physical network interface cards are appearing in vsphere client
Please confirm if the issue has been resolved after you complete the steps.
-
My watermark came before I did the recent update on CC 2015, always when I would export to PhotoShelter. Now, the watermark does not appear. I asked PhotoShelter for help and they said they have heard about other problems. How can I solve this? Nothing has changed on my computer. Thank you.
Sharon Cameron
Hi sharonc,
Have you tried to reinstall the plugin Photoshelter for Lightroom CC newer version 2015.
See the below for the upgrade to the latest Version
Let us know if that helps.
Kind regards
~ Mohit
Maybe you are looking for
-
They gave me a Apple Watch for my birthday in may 2016. It has worked perfectly since then - until tonight. I went to check the time a few minutes ago, but the watch appears to be quite dead. I was it load every day night - it's usually about 65%, wh
-
You can upgrade to 5.0 touchsmart I 4.0
can you up grade touchsmart5.0 I 4.0
-
implementation of a communication with a SHIELD by a vector can case
I'm trying to communicate with a ECU by a vector can case... does anyone have information on how I can put up with the vector communications can case?... y at - it a library of functions of VI for that?
-
My function keys do not work, how do I activate the /?
I need to use the function for my work and it doesn't work, I had to go back to the wired keyboard. Any ideas?
-
Q5 with accents blackBerry problem
Hello! I bought my BlackBerry Q5 three days ago and this afternoon, when I pressed a long time on a letter, nothing! Normally, because I'm French, there are some proposals of letter with accents! So I put my tongue and my country, the Chinese, then t