MY DRAG & DROP JIGSAW STILL NOT WORKING!
After 3 drag and drops of the puzzle i get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MultimediaProducttest_fla::MainTimeline/dropIt()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MultimediaProducttest_fla::MainTimeline/pickUp()
ACTION SCRIPT 3!!! HELP PLEASEEEEEE!
restbar_btn4.addEventListener(MouseEvent.CLICK, restbar4Clicked);
museum_btn4.addEventListener(MouseEvent.CLICK, museum4Clicked);
sark_btn4.addEventListener(MouseEvent.CLICK,sark4Clicked);
market_btn4.addEventListener(MouseEvent.CLICK, market4Clicked);
park_btn4.addEventListener(MouseEvent.CLICK, park4Clicked);
function home4Clicked(event:MouseEvent):void {
gotoAndPlay("Home");
removeF();
function removeF():void {
pone_mc.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pone_mc.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
ptwo_mc.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
ptwo_mc.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
pthree_mc.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pthree_mc.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
pfour_mc.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pfour_mc.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
pfive_mc.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pfive_mc.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
psix_mc.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
psix_mc.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
removeChild(pone_mc);
removeChild(ptwo_mc);
removeChild(pthree_mc);
removeChild(pfour_mc);
removeChild(pfive_mc);
removeChild(psix_mc);
pone_mc=null;
ptwo_mc=null;
pthree_mc=null;
pfour_mc=null;
pfive_mc=null;
psix_mc=null;
function restbar4Clicked(event:MouseEvent):void {
gotoAndPlay("Restaurant");
removeF()
function museum4Clicked(event:MouseEvent):void {
gotoAndPlay("Museum");
removeF();
function market4Clicked(event:MouseEvent):void {
gotoAndPlay("Market");
removeF();
function park4Clicked(event:MouseEvent):void {
gotoAndPlay("Park");
removeF();
function sark4Clicked(event:MouseEvent):void {
gotoAndPlay("Cutty");
removeF();
var startX:Number;
var startY:Number;
var counter:Number=0;
pone_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pone_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
ptwo_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
ptwo_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
pthree_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pthree_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
pfour_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pfour_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
pfive_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
pfive_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
psix_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
psix_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function pickUp(event:MouseEvent):void {
event.target.startDrag(true);
feedback_txt.text="";
event.target.parent.addChild(event.target);
startX=event.target.x;
startY=event.target.y;
function dropIt(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String="target"+event.target.name;
var myTarget:DisplayObject=getChildByName(myTargetName);
if (event.target.dropTarget!=null&&event.target.dropTarget.parent==myTar get) {
feedback_txt.text="Good Job!";
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
event.target.buttonMode=false;
event.target.x=myTarget.x;
event.target.y=myTarget.y;
counter++;
} else {
feedback_txt.text="Try Again!";
event.target.x=startX;
event.target.y=startY;
if (counter==6) {
feedback_txt.text="Congratulations, you've finished!";
pone_mc.buttonMode=true;
ptwo_mc.buttonMode=true;
pthree_mc.buttonMode=true;
pfour_mc.buttonMode=true;
pfive_mc.buttonMode=true;
psix_mc.buttonMode=true;
The 1009 error indicates that one of the objects being targeted by your code is out of scope. This could mean that the object....
- is not in the display list
- doesn't have an instance name (or the instance name is mispelled)
- does not exist in the frame where that code is trying to talk to it
- is animated into place but is not assigned instance names in every keyframe for it
- is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.
Similar Messages
-
Drag/Drop inside SWFLoader not working
I've got a Flex application that loads a secondary Flex app via SWFLoader. The secondary app uses drag/drop operations to rearrange components, delete them etc. The secondary app works perfectly while it is running by itself (eg. not 'embedded' via SWFLoader into the main app).
Once I load it into the main application using a SWFLoader drag/drop operations no longer work correctly. All other events seems to work fine. It is only drag/drop that don't always work right.
Is there something I am missing that would cause this issue? I'm thinking there may be a property I need to set on the SWFLoader. Hopefully someone can help.Thanks Alex.
I did as you say, and DragManager is in the report file in several places. Also, Drag/Drop does work inside of SWFLoader for the TileList in the loaded app, and even somtimes as it should as far as the drag/drop operation I am talking about, but not always.
It seems to work sometimes and not others. When it does work it is not nearly as smooth as when I run the app as a "stand alone" and I never see the drag proxy while dragging inside of SWFLoader.
Is there anything else that could be causing these issues? -
Reinstalling CS2, and dragging/dropping files does not work
I have Photoshop CS2. Or at least I
had it. I had updated my operating system to Tiger, and it just caused a bunch of files to change, nothing really bad. It gave me an error message upon opening photoshop that "files necessary for running Photoshop were missing from the Application Support folder"
So I read the advice on this FAQ:
Scott Weichert, "Double-click/Drag-&-drop Photoshop files opens application but not file or I get a message saying that some files in Application Support are missing and I have to reinstall. (Photoshop CS/CS2/CS3)" #, 29 Dec 2003 2:45 pm
And did what it said. I trashed the CS2 folder, and now when I try to re-install it my serial number won't work. Is my $400 serial number now permanently registered on a nonexistent platform?
As an active photographer and graphic artist, I need Photoshop constantly. So any advice would be greatly appreciated as soon as possible. Thank you.The problem you got into is a known problem after updating to Tiger. It is a small 4K file that gets trashed with the update. It is called the Adobe Unit Types. Both Photoshop and Photoshop Elements need this file to function.
One way to get it back is to reinstall Photoshop, the other is to add this file again.
You can get the file from here http://www.dd.se/Tips/bildbehandling/downloads/AdobeUnitTypes.zip
It is only 3,7 KB big.
You put the file you download here:
[hard disk] /Library/ScriptingAdditions. If you don't have a Scripting Additions folder, you create it.
As you trashed Photoshop, you need to completely deinstall it to be able to reinstall it. -
PR to PO creation drag & drop partner funtion not working.
Hi,
While creating the PO by using Drag & Drop function in ME21N, the partner function (PI,OA) of the vendor are not appering in P.O. Header except VN funtion. But if we created the P.O. Manually (with same PR) it is appering in P.O. I would like to know is this standard fuctionality of SAP or it has any patch/Note to correct it?hi Jitendra Kinja
i am facing a simlar kind of issue in my SAP system , is there any workaround for this?pl let me know
thanks
Dkmurthy -
AICS4 drag/drop from finder not working
so I'm a huge fan of dragging and dropping my images from the finder into an AI doc, but suddenly i can no longer do this. yes, all the layers are unlocked and visible, so it's not that. they're RGB images (jpgs, psds, mostly) and the document is RGB, so it's not that.
did i accidentally hit a keystroke that would prevent this from happening properly? the ai doc window highlights when i drag over it, but then it just sort of twinkles and does nothing.
i've restarted illustrator, still no go.
any ideas?
thank you,
erikaI can place the image the slow and boring way, one at a time. however, i cannot drag and drop from Bridge either.
There's something up with the file. it works fine in a new file. what did I do? -
Since installing Yosemite and Photos I can now no longer drag and drop a photo in an email, as I have always done. I repaired permission and restarted a number of times. still not working... Help?! Thanks, Michael
What happens if you use the Share button and select Mail?
What happens when you try? I had to hold there photo there for a short period before it would load. -
Drag and drop from Aperture not working?
This sounds like a pretty stupid issue but... when I attempt to drag & drop an image from Aperture (to anywhere, e.g. desktop, iweb, mail) it usually doesn't let me. Some photos will drag out but most won't (Two pictures of the identical format and size - one will let me drag&drop it and the other won't), and the export feature takes forever. I tried making sure that aperture is maintaining the previews and that the file to export is half size but still not working... any ideas?
Not stupid at all. That's a feature I use all the time and I'd be pretty PO'd if it wasn't working.
Your profile doesn't indicate whether you're running Aperture 3.x or not. Did the problem appear after an update or has it always been that way on your installation?
-Steve -
Drag and drop feature is not working in Maverick?
what can i do when the Drag and Drop feature is not working in my I Mac Using Maverick 10.9.4, it will not do it at all i must do copy and paste.
reading from earlier forums this has been a problem in earlier versions for the mac.Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test. -
Trackpoint + dragging is still not working with the Ultranav middle button as of 16.2.19.2 driver.
It's an extremely important function for any 3D graphics program. With the Lenovo driver it's not possible to use the middle button + trackpoint to navigate in these programs!
Lenovo, please fix this bug. It's working perfectly if I install the latest Synaptics driver. It's only happening with Lenovo's driver. Using Synaptics driver is not an option, because it has no guard against keyboard typing + touchpad accidental clicking.
Test:
Testing is very easy.
1. Set your middle button behaviour to "None".
2. Above an empty area of your desktop, click the middle button + try to move the mouse pointer with your trackpoint. The pointer isn't moving! It's the same thing what happens in any 3D graphics program! You cannot navigate your camera, unless you use an external mouse!
Fix:
Please fix it. Just don't stop the trackpoint pointer when someone clicks the middle button in "None" settings.
System: Using a W520 for the reference.Yes, the latest driver from Synaptics doesn't have this bug. So if you uninstall UltraNav driver from Lenovo and install the latest one from Synaptics, it will work with 3 buttons.
But the behaviour of the Synaptics is annoying for an other reason: it has no feature to stop the touchpad while you are typing. Normally you'd never notice it with the Lenovo one, but with Synaptics, you'll go crazy with the accidental scrolls and clicks. But at least it works with 3 buttons.
Lenovo, can you confirm that you understand this bug? Please fix it in one of the future versions! -
My MacBook Air won't turn on? I have to dropped it but earlier in the day I got a notification about a full single drive. I have tried the ideas in the communities but its still not working, help!
See this article:
http://support.apple.com/kb/ht3964
Find the section that applies to your computer, and follow the instructions.
Shut down the computer.
Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
Release all the keys and the power button at the same time.
Press the power button to turn on the computer.
Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC. -
I purchased a Macbook Pro in July 2014 so my computer is still new. There is no damage to it (it has never been dropped and kept in case). My issue started about a month to month and half ago. When watching netflix the show will stop and when I try to hit play it comes up as an audio system error.
The sound won't work and then a few minutes later it'll turn on, as if it was lagging. For example I would send an email and try to hit the volume button to get the sound to work and then a little later I will hear the whooshing sound from the email and the sound adjusting sounds from the keys all at once. I followed the steps from netflix to fix it which were to uninstall and reinstall silverlight. That still didn't work. After a while I took it into Apple and they replaced the switch board. I got my computer back yesterday and today it is still not working. I have done everything I can think of to fix it. What else can I do?Return it to the repair shop. Tell them they didn't fix it. Take full advantage of your warranty.
-
Scroll-bar STILL not working right in 10.6.1 update
The scroll-bar is STILL NOT working right in the 10.6.1 update. I am not able to click anywhere on the scroll-bar and have the navigation go there. I have to drag the blamed thing where ever I want it to go. This problem only exist with the recent iTunes 10.6.x updates.
I have the new MacBook Pro 2010, Dell 3007WFP. No mirroring problemsat that or higher res. I was chagrined, however, to find out that while my 2007 15" MacBook Pro had no problems driving the Dell 30", the 2010 17" requires the Dual Link cable for $100 extra. ;>(
But it works fine.
ak -
Drop Down menus not working in newest Internet Explorer.
Drop Down menus not working in newest Internet Explorer. Ant suggestions??
<script language="JavaScript" src="mm_menu.js">
Wait - are you using the long-discredited Macromedia "Popup menus"?
I'm surprised those still work in any browser. You should read this about them -
http://www.losingfight.com/blog/2006/08/page/3/
It's illuminating.... -
Drop down menus not working in Firefox 24.0
Drop down menus not working in Firefox 24.0 but they still work in Safari/IE/Chrome.
http://www.horizonhomes-samui.com/
I'm using Windows 8.OK
Application Basics
Name: Firefox
Version: 24.0
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Extensions
Name: Adobe Acrobat - Create PDF
Version: 1.2
Enabled: false
ID: [email protected]
Name: Wondershare Video Converter Ultimate
Version: 6.0.0
Enabled: false
ID: {8D150B8F-EFE8-45a3-A4A3-053020F48FAC}
Important Modified Preferences
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.disk.smart_size_cached_value: 358400
browser.places.smartBookmarksVersion: 4
browser.startup.homepage_override.buildID: 20130910160258
browser.startup.homepage_override.mstone: 24.0
browser.urlbar.autocomplete.enabled: false
extensions.lastAppVersion: 24.0
gfx.direct3d.last_used_feature_level_idx: 0
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1382343540
places.history.expiration.transient_current_max_pages: 104261
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
privacy.sanitize.migrateFx3Prefs: true
storage.vacuum.last.index: 0
storage.vacuum.last.places.sqlite: 1382343540
Graphics
Adapter Description: Intel(R) HD Graphics 3000
Adapter Drivers: igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32
Adapter RAM: Unknown
Device ID: 0x0116
DirectWrite Enabled: false (6.2.9200.16581)
Driver Date: 7-31-2012
Driver Version: 9.17.10.2828
GPU #2 Active: false
GPU Accelerated Windows: 0/1 Basic
Vendor ID: 0x8086
WebGL Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 3000 Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote: false
AzureCanvasBackend: skia
AzureContentBackend: none
AzureFallbackCanvasBackend: cairo
JavaScript
Incremental GC: true
Accessibility
Activated: true
Prevent Accessibility: 0
Library Versions
NSPR
Expected minimum version: 4.10
Version in use: 4.10
NSS
Expected minimum version: 3.15.1 Basic ECC
Version in use: 3.15.1 Basic ECC
NSSSMIME
Expected minimum version: 3.15.1 Basic ECC
Version in use: 3.15.1 Basic ECC
NSSSSL
Expected minimum version: 3.15.1 Basic ECC
Version in use: 3.15.1 Basic ECC
NSSUTIL
Expected minimum version: 3.15.1
Version in use: 3.15.1 -
The itunes ogg drop X component not working
Hi there,
I installed the itunes ogg drop X component not working from Ogg Drop X 1.0b5 and rebooted.
I still cant play ogg streams. they play fine in a VLC player so I know they work.
any body get the Ogg Drop X 1.0b5 itunes component working. How do I get it goin'?
Cheersno response.
Maybe you are looking for
-
Hey guys, my name is Armando I bought this laptop back in April -->http://www.walmart.com/ip/HP-Anodized-Silver-17.3-Pavilion-17-e119wm-Laptop-PC-with-AMD-A10-5750M-Qu... cause my old HP laptop had too many problems. Anyway I was wondering if thi
-
I've been having massive issues copying mp4 video files onto my iPhone 4 from my windows 7 (64 bit) pc. I converted a large number of avi files into mp4 using aiseesoft movie converter and most of them work just fine. However about a quarter of the f
-
XI 3.1 SP2 QaaWS Trusted Authentication with WSDL
Hi, there, QaaWS comes with a client tool to build query as a web service and provide corresponding WSDL to consume these services. We are not using Xcelsius, but using Apache Axis to access the query web service via WSDL. There's a [note from SMP KB
-
I got a Bluetooth adapter hooked up to my Harman Kardon AVR 130 Receiver, to play Music i connect my MacBook Pro to the Bluetooh adapter. Is it possible (since the Receiver plays 5.1 sound, and i have 5.1 speakers) to play my iTunes music via bluetoo
-
Upgrade to MyFaces 1.2. Listener start error
Hello, I'm trying to upgrade my project from MyFaces 1.1.5 to MyFaces 1.2. I have changed myfaces jars and modified faces-config header. But when I starts my aplication I get an error:SEVERE: Error listenerStartSeems that they are some problem with S