Hi can somebody plz help me with cross domain RSL

i am currently working on optimisation techniques in flex 3.2.
i have to execute the commands (eg :
mxmlc.exe -o=myRSLmodule.swf -file-specs=<an as file form your swc> -source-path=<source path>)
any many more formaking cross domain RSL .
can somebody please help me with what these command are meant for and where do i run these like command promp or some where else ....and what all settings are required to run those..
Thnaks in advance ....

did i asked such a dumb question? ... :)Well, yes, sort of. The problem description "My following code failed to work and giving me some security exceptions" doesn't have nearly enough details. Such as, what exceptions, what is it supposed to do, what did it do instead, that sort of thing.

Similar Messages

  • Can u plz help me with the code to add BWART field to the DS:2LIS_04_P_COMP

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

  • Can somebody please help-..with page ITEM

    Can somebody please help…..
    I have an Item named P11_FLAG on Page 11 of my application. I want to reference or access the value of this Item in all the pages of my application. I have tried several options but it seems not to work. I will really appreciate your help on this regard.
    Thank you

    referencing from other pages in code, use :P11_FLAG or external packages you can use the function v('P11_FLAG') or in substitution situations like referring to it in a report title &P11_FLAG. (note the last full stop).
    Phil

  • Can any1 PLZ help me with my ipod?????I put my ipod in my pocket on lock, and when I took it out again it said on the display screen ipod is disabled..underneath it,it says connect to itunes ,however it wont let me in or anything..

    can any1 help me out with my ipod touch....I had my ipod in my pocket on lock and when i pulled it out to use it,it had ipod disabled and underneath that it had connect to itunes....unfortunately i am unable to get into my ipod its like locked me out....hope some1 out there can be of help...any advice given is much appreciated 

    The screen is telling you to connect the iPod to your computer and restore via iTunes.  You may have to also place the iPod in recovery mode in ordrer to allow a restore. For recovry mode:
    iPhone and iPod touch: Unable to update or restore
    For information see:
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen

  • Can somebody please help me with this? Security code issue; very small code

    Hi All, Iam a Unix admin and trying to learn Java/weblogic. I have a JSP and iam trying to run on my weblogic 81 Service Pack version 3.
    My following code failed to work and giving me some security exceptions. Then in my weblogic console i saw
    Domain Wide Security Settings > Anonymous Admin Lookup Enabled
    The above checkbox is disabled. When i enabled, it worked. I talked to my company "Security" folks and they do not allow this checkbox to be enabled. they are saying fix your code problem......
    if somebody can please let me know what a probable fix would, that be great and very helpful.
    try{
    Environment env = new Environment();   
    javax.naming.InitialContext ic = new InitialContext();
    MBeanHome home = (MBeanHome) ic.lookup(MBeanHome.LOCAL_JNDI_NAME);
    DomainMBean dom = home.getActiveDomain();
    Set s = home.getMBeansByType("ServerRuntime");
    ServerRuntimeMBean srmb = (ServerRuntimeMBean) s.iterator().next();
    WebLogicObjectName on = new WebLogicObjectName(home.getDomainName()+":Location="+srmb.getName()+",Name="+srmb.getName()+",Type=ServerConfig");
    //WebLogicObjectName on = new WebLogicObjectName(Name="+srmb.getName()+",Type="ServerConfig",Domain="+home.getDomainName()+",Location="+srmb.getName()+");
    ServerMBean server = (ServerMBean) home.getMBean(on);
    ClusterMBean cluster = null;
    if( server != null)
        cluster = server.getCluster();

    did i asked such a dumb question? ... :)Well, yes, sort of. The problem description "My following code failed to work and giving me some security exceptions" doesn't have nearly enough details. Such as, what exceptions, what is it supposed to do, what did it do instead, that sort of thing.

  • Can somebody please help me with my ipod plan??

    I have a Product Replacement Plan for two years on my 1st generation ipod touch. I bought it December 2007 and I just recently lost it November 2008. But before I lost it, in September 2008 I had to use my replacement plan to get another ipod so the serial number that is on my receipt would be different but I do have the geek squad receipt from when they gave me another one.How could I go by getting another one?? Would I be able to pay a deductible but not the full amount to get another one even though I have a two year protection plan on the ipod?? Also if there is a process to get another, which would be the best way of doing that and does Apple give a plan that does cover stolen products??
    Message Edited by Nevaeva16 on 12-27-2008 10:00 PM

    Hey Nevaeva16,
    Because Best Buy’s Performance Service Plans (PSP’s) and Geek Squad® Black Tie Protection (GSBTP) do not include coverage for accidental loss or theft, we’re unfortunately unable to replace stolen products. You can, however, always cancel your original PSP coverage and obtain a pro-rated refund if you’ve lost your iPod. Simply stop into your local Best Buy® store with a copy of your original receipt, and a customer service associate would be glad to help you out.
    Thanks,
    Agent Aaron
    Geek Squad® Community Connector
    Go Ahead. Use Us.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Can somebody please help me with this Panic Report?

    Hi Guys,
    I am having a little difficulty deciphering these panic reports we keep getting from our Mac Pro here.
    They've been crashing our Mac ever since we got our Hasselblad Camera back from Hasselblad repair however after submitting logs to Hasselblad they tell us its to do with the power management of the Mac... Can anyone tell me anymore ?
    Interval Since Last Panic Report: 283350 sec
    Panics Since Last Report: 2
    Anonymous UUID: 49A4EEED-A350-42FA-B6D4-7E741BBFDBA5
    Fri Feb 18 08:57:33 2011
    Machine-check capabilities (cpu 1) 0x0000000000000806:
    family: 6 model: 23 stepping: 6 microcode: 1547
    Intel(R) Xeon(R) CPU E5462 @ 2.80GHz
    6 error-reporting banks
    threshold-based error status present
    Machine-check status 0x0000000000000005:
    restart IP valid
    machine-check in progress
    MCA error-reporting registers:
    IA32MC0STATUS(0x401): 0x1000000020000000 invalid
    IA32MC1STATUS(0x405): 0x0000000000000000 invalid
    IA32MC2STATUS(0x409): 0x0000000000000000 invalid
    IA32MC3STATUS(0x40d): 0x0020000000000000 invalid
    IA32MC4STATUS(0x411): 0x0000000000000011 invalid
    IA32MC5STATUS(0x415): 0xb200001080200e0f valid
    MCA error code: 0x0e0f
    Model specific error code: 0x8020
    Other information: 0x00000010
    Threshold-based status: No tracking
    Status bits:
    Processor context corrupt
    Error enabled
    Uncorrected error
    panic(cpu 1 caller 0x2a9d27): Machine Check at 0x0105c58d, thread:0xde547a8, trapno:0x12, err:0x0,registers:
    CR0: 0x80010033, CR2: 0x759ab090, CR3: 0x00100000, CR4: 0x00000660
    EAX: 0x00000000, EBX: 0x0d4c00c0, ECX: 0x00000001, EDX: 0x00000000
    ESP: 0x85793a00, EBP: 0x85793a38, ESI: 0x0d496800, EDI: 0x01067388
    EFL: 0x00000006, EIP: 0x0105c58d
    Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
    0x7c23afb8 : 0x21b50c (0x5d4438 0x7c23afec 0x223974 0x0)
    0x7c23b008 : 0x2a9d27 (0x595f04 0x595ff1 0x105c58d 0xde547a8)
    0x7c23b0f8 : 0x2a1912 (0x1 0x55aa5 0x0 0x510e1a)
    0x85793a38 : 0x1051fc0 (0x7c1dd0a4 0x1 0xd496800 0x0)
    0x85793b28 : 0x105351c (0x4646aba7 0x80000142 0x0 0x0)
    0x85793be8 : 0x2abb32 (0xffffffff 0x7fffffff 0x85793c28 0x7c1e6000)
    0x85793c08 : 0x22584d (0x7c1e649c 0x4646aa44 0x142 0x7c1e6488)
    0x85793c68 : 0x22661f (0x1 0xde547a8 0xd4d3c58 0x142)
    0x85793cd8 : 0x227243 (0xde547c4 0x299e72b6 0x85793d68 0x86)
    0x85793d48 : 0x2272e7 (0x48a3f9 0x0 0x0 0xdaeb000)
    0x85793d68 : 0x48a201 (0x48a3f9 0xd7764c8 0x85793d88 0x2a358d)
    0x85793dd8 : 0x49732c (0x0 0x0 0x4975c0 0x0)
    0x85793ed8 : 0x497b89 (0x0 0x1 0xe444c10 0x0)
    0x85793f78 : 0x4f1053 (0xdc927e0 0xe444ba0 0xe444be4 0x48a556)
    0x85793fc8 : 0x2a0ef8 (0xe4360e0 0x0 0x10 0x0)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.driver.AppleIntelCPUPowerManagement(105.13.0)@0x1050000->0x106dfff
    BSD process name corresponding to current thread: rsync
    Mac OS version:
    10J567
    Kernel version:
    Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
    System model name: MacPro3,1 (Mac-F42C88C8)
    System uptime in nanoseconds: 1384158802011
    unloaded kexts:
    com.apple.driver.AppleFileSystemDriver 2.0 (addr 0xe90000, size 0x12288) - last unloaded 93634437466
    loaded kexts:
    com.SiliconImage.driver.Si3132 1.2.3
    com.apple.filesystems.afpfs 9.7 - last loaded 771679366985
    com.apple.nke.asp_tcp 5.0
    com.apple.driver.AppleHWSensor 1.9.3d0
    com.apple.driver.AppleUpstreamUserClient 3.4.5
    com.apple.driver.AppleMCCSControl 1.0.17
    com.apple.driver.AppleHDA 1.9.9f12
    com.apple.driver.AudioAUUC 1.13
    com.apple.GeForce 6.2.6
    com.apple.DontSteal_Mac_OSX 7.0.0
    com.apple.driver.AudioIPCDriver 1.1.6
    com.apple.driver.AppleMCEDriver 1.1.9
    com.apple.driver.AppleIntelPenrynProfile 17
    com.apple.driver.ACPISMCPlatformPlugin 4.5.0d5
    com.apple.driver.AppleLPC 1.4.12
    com.apple.filesystems.autofs 2.1.0
    com.apple.driver.Oxford_Semi 2.5.8
    com.apple.iokit.SCSITaskUserClient 2.6.5
    com.apple.BootCache 31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.iokit.IOAHCIBlockStorage 1.6.3
    com.apple.driver.AppleIntel8254XEthernet 2.1.1b7
    com.apple.driver.AppleFWOHCI 4.7.1
    com.apple.driver.AppleUSBHub 4.1.7
    com.apple.driver.AppleAHCIPort 2.1.5
    com.apple.driver.AppleIntelPIIXATA 2.5.1
    com.apple.driver.AppleEFINVRAM 1.4.0
    com.apple.driver.AppleUSBEHCI 4.1.7
    com.apple.driver.AppleUSBUHCI 4.1.5
    com.apple.driver.AppleACPIButtons 1.3.5
    com.apple.driver.AppleRTC 1.3.1
    com.apple.driver.AppleHPET 1.5
    com.apple.driver.AppleSMBIOS 1.6
    com.apple.driver.AppleACPIEC 1.3.5
    com.apple.driver.AppleAPIC 1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient 105.13.0
    com.apple.security.sandbox 1
    com.apple.security.quarantine 0
    com.apple.nke.applicationfirewall 2.1.11
    com.apple.driver.AppleIntelCPUPowerManagement 105.13.0
    com.apple.driver.AppleProfileReadCounterAction 17
    com.apple.driver.DspFuncLib 1.9.9f12
    com.apple.driver.AppleProfileTimestampAction 10
    com.apple.driver.AppleProfileThreadInfoAction 14
    com.apple.driver.AppleProfileRegisterStateAction 10
    com.apple.driver.AppleProfileKEventAction 10
    com.apple.driver.AppleProfileCallstackAction 20
    com.apple.nvidia.nv50hal 6.2.6
    com.apple.NVDAResman 6.2.6
    com.apple.iokit.IONDRVSupport 2.2
    com.apple.iokit.IOFireWireIP 2.0.3
    com.apple.iokit.IOSurface 74.2
    com.apple.iokit.IOBluetoothSerialManager 2.3.8f7
    com.apple.iokit.IOSerialFamily 10.0.3
    com.apple.iokit.IOAudioFamily 1.8.0fc1
    com.apple.kext.OSvKernDSPLib 1.3
    com.apple.driver.AppleHDAController 1.9.9f12
    com.apple.iokit.IOGraphicsFamily 2.2
    com.apple.iokit.IOHDAFamily 1.9.9f12
    com.apple.iokit.AppleProfileFamily 41
    com.apple.driver.AppleSMC 3.1.0d3
    com.apple.driver.IOPlatformPluginFamily 4.5.0d5
    com.apple.driver.CSRUSBBluetoothHCIController 2.3.8f7
    com.apple.driver.AppleUSBBluetoothHCIController 2.3.8f7
    com.apple.iokit.IOBluetoothFamily 2.3.8f7
    com.apple.iokit.IOSCSIBlockCommandsDevice 2.6.5
    com.apple.driver.AppleUSBHIDKeyboard 141
    com.apple.driver.AppleHIDKeyboard 141
    com.apple.iokit.IOUSBHIDDriver 4.1.5
    com.apple.iokit.IOFireWireSerialBusProtocolTransport 2.0.1
    com.apple.iokit.IOFireWireSBP2 4.0.6
    com.apple.driver.AppleUSBMergeNub 4.1.5
    com.apple.driver.AppleUSBComposite 3.9.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.5
    com.apple.iokit.IOBDStorageFamily 1.6
    com.apple.iokit.IODVDStorageFamily 1.6
    com.apple.iokit.IOCDStorageFamily 1.6
    com.apple.driver.XsanFilter 402.1
    com.apple.iokit.IOATAPIProtocolTransport 2.5.1
    com.apple.iokit.IOSCSIParallelFamily 2.0.1
    com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.5
    com.apple.iokit.IONetworkingFamily 1.9
    com.apple.iokit.IOFireWireFamily 4.2.6
    com.apple.iokit.IOUSBUserClient 4.1.5
    com.apple.iokit.IOAHCIFamily 2.0.4
    com.apple.iokit.IOATAFamily 2.5.1
    com.apple.iokit.IOUSBFamily 4.1.7
    com.apple.driver.AppleEFIRuntime 1.4.0
    com.apple.iokit.IOHIDFamily 1.6.5
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 6
    com.apple.driver.DiskImages 289
    com.apple.iokit.IOStorageFamily 1.6.2
    com.apple.driver.AppleACPIPlatform 1.3.5
    com.apple.iokit.IOPCIFamily 2.6
    com.apple.iokit.IOACPIFamily 1.3.0
    Model: MacPro3,1, BootROM MP31.006C.B05, 8 processors, Quad-Core Intel Xeon, 2.8 GHz, 8 GB, SMC 1.25f4
    Graphics: NVIDIA GeForce 8800 GT, NVIDIA GeForce 8800 GT, PCIe, 512 MB
    Memory Module: global_name
    Bluetooth: Version 2.3.8f7, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Ethernet 1, Ethernet, en0
    PCI Card: pci1095,3132, sppci_othermassstorage, Slot-3
    PCI Card: NVIDIA GeForce 8800 GT, Display, Slot-1
    Serial ATA Device: WDC WD5000AAKS-41YGA0, 465.76 GB
    Serial ATA Device: WDC WD5001AALS-00E3A0, 465.76 GB
    Parallel ATA Device: OPTIARC DVD RW AD-7170A
    USB Device: Keyboard Hub, 0x05ac (Apple Inc.), 0x1006, 0xfd500000
    USB Device: Optical Mouse, 0x0458 (KYE Systems Corp. (Mouse Systems)), 0x003a, 0xfd510000
    USB Device: Apple Keyboard, 0x05ac (Apple Inc.), 0x0221, 0xfd520000
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8206, 0x5d200000
    FireWire Device: built-in_hub, Up to 800 Mb/sec
    FireWire Device: Ixpress X29, Hasselblad, Up to 400 Mb/sec
    Many Thanks,
    Simon.

    I've also got several other Panic Logs relating to the same issues i believe:
    I've also found this is a crucial factor of the Panic report:
    Kernel Extensions in backtrace (with dependencies):
    com.apple.driver.AppleIntelCPUPowerManagement(105.13.0)@0x1050000->0x106dfff
    Other Report im looking through:
    Interval Since Last Panic Report: 283561 sec
    Panics Since Last Report: 1
    Anonymous UUID: 49A4EEED-A350-42FA-B6D4-7E741BBFDBA5
    Thu Feb 17 15:32:18 2011
    Machine-check capabilities (cpu 3) 0x0000000000000806:
    family: 6 model: 23 stepping: 6 microcode: 1547
    Intel(R) Xeon(R) CPU E5462 @ 2.80GHz
    6 error-reporting banks
    threshold-based error status present
    Machine-check status 0x0000000000000005:
    restart IP valid
    machine-check in progress
    MCA error-reporting registers:
    IA32MC0STATUS(0x401): 0x1000000020000000 invalid
    IA32MC1STATUS(0x405): 0x0000000000000000 invalid
    IA32MC2STATUS(0x409): 0x0000000000000000 invalid
    IA32MC3STATUS(0x40d): 0x0020000000000000 invalid
    IA32MC4STATUS(0x411): 0x0000000000000011 invalid
    IA32MC5STATUS(0x415): 0xb200000080200e0f valid
    MCA error code: 0x0e0f
    Model specific error code: 0x8020
    Other information: 0x00000000
    Threshold-based status: No tracking
    Status bits:
    Processor context corrupt
    Error enabled
    Uncorrected error
    panic(cpu 3 caller 0x2a9d27): Machine Check at 0x0105c58d, thread:0xd4d4b7c, trapno:0x12, err:0x0,registers:
    CR0: 0x8001003b, CR2: 0x7dfe7000, CR3: 0x00100000, CR4: 0x00000660
    EAX: 0x00000000, EBX: 0x0d4c01c0, ECX: 0x00000001, EDX: 0x00000000
    ESP: 0x856d3c20, EBP: 0x856d3c58, ESI: 0x0d496800, EDI: 0x01067388
    EFL: 0x00000006, EIP: 0x0105c58d
    Backtrace (CPU 3), Frame : Return Address (4 potential args on stack)
    0x7c290fb8 : 0x21b50c (0x5d4438 0x7c290fec 0x223974 0x0)
    0x7c291008 : 0x2a9d27 (0x595f04 0x595ff1 0x105c58d 0xd4d4b7c)
    0x7c2910f8 : 0x2a1912 (0x1 0x87c70000 0xf4 0x3f800000)
    0x856d3c58 : 0x1051fc0 (0x7c1fd0a4 0x1 0xd496800 0x0)
    0x856d3d48 : 0x105351c (0x3636c554 0x80000011 0x0 0x0)
    0x856d3e08 : 0x2abb32 (0xffffffff 0x7fffffff 0x856d3e48 0x7c206000)
    0x856d3e28 : 0x22584d (0x7c20649c 0x3636c3e2 0x11 0x7c206488)
    0x856d3e88 : 0x22661f (0x1 0xd4d4b7c 0xd4c1884 0x0)
    0x856d3ef8 : 0x227243 (0xd4d4b98 0xd4d4b98 0x856d3f58 0x2329f0)
    0x856d3f68 : 0x2272c4 (0x54ba1c 0xd3fa9c0 0x0 0x7c206000)
    0x856d3f88 : 0x54bad8 (0x54ba1c 0xd3fa9c0 0x0 0x2a9ef2)
    0x856d3fc8 : 0x2a06cc (0xd3fa9c0 0x0 0x10 0xe68c284)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.driver.AppleIntelCPUPowerManagement(105.13.0)@0x1050000->0x106dfff
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    10J567
    Kernel version:
    Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
    System model name: MacPro3,1 (Mac-F42C88C8)

  • Can somebody plz help?

    Hello, iam really confused. and i hope somebody will answer this Q...
    I have Windows XP , Fujitsu Siemens computer.
    But can i buy The Mac os X tiger 10,4 package? And will it work? if i install it i dont know.. If one buys that package does the person have to own a Apple computer? Can i run Windows Xp and then change it to the mac? when i install?
    Best regards Sanjin.

    Sanjin,
    I cant really understand. When i have downloaded this Boot camp then what? can i then just buy the Mac x tiger 10,4? what does it do?
    Macs have always been running MacOS
    Macs are (and were) able to run Windows. Previously via emulation, now (almost) natively
    MacOS runs on Macs only
    Macs were PPC-based now are Intel-based
    BootCamp allows an Intel-based Mac to run Windows (almost) natively
    BootCamp is not a PC compatible piece of software that will allow you to run MacOS X on a PC
    You cannot install BootCamp on your PC and run Mac OS X
    Don't waste your money to buy MacOS X expecting that it'll run on your Fujitsy (or any other computer other than Apple's) PC
    Keep your money, buy a Mac and you'll be able run both Windows and MacOS X the right way
    Macs running 9.x, Macs running 10.4.x, SGI workstations running Irix 6.5.x

  • Can somebody pleas help me?

    Can somebody please help me with SQL Injecting this site.
    Feel free to add me to your contacts on MSN or e-mail me.
    My MSN and E-Mail address is [email protected]
    - Julie (:

    Indeed. WTF?
    You want to inject SQL into the OTN site? Are you a hacker or just some sad geek with nowt better to do?

  • I need some help with my java game using applets, CAN SOMEBODY PLEASE HELP

    Hi,
    I am in the process of creating a RPG program using Java. I am not very experienced with java, however the problem i am currently facing is something i can't seem to figure out. I would like to draw a simple grid where a character (indicated by a filled circle) moves around this grid collecting items (indicated by a red rectangle). When the character moves on top of the grid with the item, i would like it to disappear. Right now i am not worrying about the fact that the item will reappear after the character moves away again, because sometimes, when the character moves over the item, nothing happens/another item disappears. i have been at this for 4 days and still cannot figure out what is goign on. can somebody please help me? it would be most appreciated.
    Thanks
    PS if i needed to send you my code, how do i do it?

    Thank you for replying.
    The thing is, I am taking java as a course, and it is necessary for me to start off this way (this is for my summative evaluation). i agree with you on the fact, however, that i should go in small steps. i have been doing that until this point, and my frustration caused me to jump around randomly for an answer. I also think that it may just be a bug, but i have no clue as to how to fix it, as i need to show my teacher at least a part of what i was doing by sometime next week. Here is my code for anybody willing to go through it:
    // The "Keys3" class.
    import java.applet.*;
    import java.awt.*;
    import java.awt.Event;
    import java.awt.Font;
    import java.awt.Color;
    import java.applet.AudioClip;
    public class Keys3 extends java.applet.Applet
        char currkey;
        int currx, curry, yint, xint;
        int itmval [] = new int [5],
            locval [] = new int [5],
            tempx [] = new int [5], tempy [] = new int [5],
            tot = 0, score = 0;
        boolean check = true;
        AudioClip bgSound, bgSound2;
        AudioClip hit;
        private Image offscreenImage;
        private Graphics offscreen;     //initializing variables for double buffering
        public void init ()  //DONE
            bgSound = getAudioClip (getCodeBase (), "sound2_works.au");
            hit = getAudioClip (getCodeBase (), "ah_works.au");
            if (bgSound != null)
                bgSound.loop ();
            currx = 162;
            curry = 68;
            setBackground (Color.white);
            for (int count = 0 ; count < 5 ; count++)
                itmval [count] = (int) (Math.random () * 5) + 1;
                locval [count] = (int) (Math.random () * 25) + 1;
            requestFocus ();
        public void paint (Graphics g)  //DONE
            resize (350, 270);
            drawgrid (g);
            if (check = true)
                pickitems (g);
                drawitems (g);
            g.setColor (Color.darkGray);
            g.fillOval (currx, curry, 25, 25);
            if (currkey != 0)
                g.setColor (Color.darkGray);
                g.fillOval (currx, curry, 25, 25);
            if (collcheck () != true)
                collision (g);
            else
                drawitems (g);
        } // paint method
        public void update (Graphics g)  //uses the double buffering method to overwrite the original
                                         //screen with another copy to reduce flickering
            if (offscreenImage == null)
                offscreenImage = createImage (this.getSize ().width, this.getSize ().height);
                offscreen = offscreenImage.getGraphics ();
            } //what to do if there is no offscreenImage copy of the original screen
            //draws the backgroudn colour of the offscreen
            offscreen.setColor (getBackground ());
            offscreen.fillRect (0, 0, this.getSize ().width, this.getSize ().height);
            //draws the foreground colour of the offscreen
            offscreen.setColor (getForeground ());
            paint (offscreen);
            //draws the offscreen image onto the main screen
            g.drawImage (offscreenImage, 0, 0, this);
        public boolean keyDown (Event evt, int key)  //DONE
            switch (key)
                case Event.DOWN:
                    curry += 46;
                    if (curry >= 252)
                        curry -= 46;
                        if (hit != null)
                            hit.play ();
                    break;
                case Event.UP:
                    curry -= 46;
                    if (curry <= 0)
                        curry += 46;
                        if (hit != null)
                            hit.play ();
                    break;
                case Event.LEFT:
                    currx -= 66;
                    if (currx <= 0)
                        currx += 66;
                        if (hit != null)
                            hit.play ();
                    break;
                case Event.RIGHT:
                    currx += 66;
                    if (currx >= 360)
                        currx -= 66;
                        if (hit != null)
                            hit.play ();
                    break;
                default:
                    currkey = (char) key;
            repaint ();
            return true;
        public boolean collcheck ()  //DONE
            if (((currx == tempx [0]) && (curry == tempy [0])) || ((currx == tempx [1]) && (curry == tempy [1])) || ((currx == tempx [2]) && (curry == tempy [2])) || ((currx == tempx [3]) && (curry == tempy [3])) || ((currx == tempx [4]) && (curry == tempy [4])))
                return false;
            else
                return true;
        public void collision (Graphics g)
            drawgrid (g);
            for (int count = 0 ; count < 5 ; count++)
                if ((currx == tempx [count]) && (curry == tempy [count]))
                    g.setColor (Color.darkGray);
                    g.fillOval (currx, curry, 25, 25);
                else if ((currx != tempx [count]) && (curry != tempy [count]))
                    g.setColor (Color.red);
                    g.fillRect (tempx [count], tempy [count], 25, 25);
        public void drawitems (Graphics g)
            for (int count = 0 ; count < 5 ; count++)
                g.setColor (Color.red);
                g.fillRect (tempx [count], tempy [count], 25, 25);
        public void pickitems (Graphics g)
            check = false;
            for (int count = 0 ; count < 5 ; count++)
                if (locval [count] <= 5)
                    tempy [count] = 22;
                else if (locval [count] <= 10)
                    tempy [count] = 68;
                else if (locval [count] <= 15)
                    tempy [count] = 114;
                else if (locval [count] <= 20)
                    tempy [count] = 160;
                else if (locval [count] <= 25)
                    tempy [count] = 206; //this determines the y-position of the item to be placed
                if (locval [count] % 5 == 0)
                    tempx [count] = 294;
                else if ((locval [count] == 1) || (locval [count] == 6) || (locval [count] == 11) || (locval [count] == 16) || (locval [count] == 21))
                    tempx [count] = 30;
                else if ((locval [count] == 2) || (locval [count] == 7) || (locval [count] == 12) || (locval [count] == 17) || (locval [count] == 22))
                    tempx [count] = 96;
                else if ((locval [count] == 3) || (locval [count] == 8) || (locval [count] == 13) || (locval [count] == 18) || (locval [count] == 23))
                    tempx [count] = 162;
                else if ((locval [count] == 4) || (locval [count] == 9) || (locval [count] == 14) || (locval [count] == 19) || (locval [count] == 24))
                    tempx [count] = 228;
        public void drawgrid (Graphics g)  //DONE
            g.drawRect (10, 10, 330, 230); //draws the outer rectangular border
            int wi = 10; //width of one square on the board
            int hi = 10; //height of one square on the board
            for (int height = 1 ; height <= 5 ; height++)
                for (int row = 1 ; row <= 5 ; row++)
                    if (((height % 2 == 1) && (row % 2 == 1)) || ((height % 2 == 0) && (row % 2 == 0)))
                        g.setColor (Color.gray);
                        g.fillRect (wi, hi, 66, 46);
                    else /*if (((height % 2 == 0) && (row % 2 == 1)) || ((height % 2 == 0) && (row % 2 == 0)))*/
                        g.setColor (Color.lightGray);
                        g.drawRect (wi, hi, 66, 46);
                        g.setColor (Color.lightGray);
                        g.drawRect (wi, hi, 66, 46); //drawn twice to make a shadow effect
                    wi += 66;
                wi = 10;
                hi += 46;
            } //this draws the basic outline of the game screen
    } // Keys3 class

  • I recently upgraded to IOS 10.9.5 and now I can't export anything from final cut Pro X. Could somebody please help me with this?

    I recently upgraded to IOS 10.9.5 and now I can't export anything from final cut Pro X. Could somebody please help me with this?

    SSign in to the App Store using the Apple ID that was used to purchase the software.

  • I'm having trouble with my macbook pro, I have only had it for three months, when I plugged a camera sd card into the sd slot it isn't appearing anywhere on the computer and i can not access my photographs. can somebody please help me?

    I'm having trouble with my macbook pro, I have only had it for three months, when I plugged a camera sd card into the sd slot it isn't appearing anywhere on the computer and i can not access my photographs. can somebody please help me?

    Shootist007 wrote:
    Clifton I must disagree with you on the above statement. It is my opinion and experience that you should never connect the camera directly to any computer, Mac Windows Whatever.
    It is always best to Remove the memory card from the camera and put it in a card reader, whether an external reader or one built into the computer, to copy images from the card.
    Hi Shootist. I would be interested in hearing some reasoning on this. I almost always use a USB cable to connect my camera to the MBP for transferring pictures, and have moved about 30,000 this way over the last 6 years since my photography went digital. Recently, on the rare occassions when I have only a few to transfer and I was too lazy to go for the cable, I have used the card reader; about half those times I have difficulty getting the MBP to recognise the card. I find I have to press the card very hard into the slot for it to be recognised.
    My rationale is quite possibly wrong, but I feel that the USB connectors are more robust and hard-wearing than the flimsy connectors on an SD card. Also, I haven't measured it, but I think the data transfer is faster with the cable. (I just came across this test, which reports noticeably faster transfer for cable than built-in card reader, but the computer was a PC)
    Chiara, sorry for hijacking your thread.

  • I recently updated my iPhone 5 with new ios 6.1 and i realize that my 3g is gone can u plz help me how to turn it back?

    i recently updated my iPhone 5 with new ios 6.1 and i realize that my 3g is gone can u plz help me how to turn it back?

    im using wifi, but before setting it was like ---> General--->Cellular---->Cellular Data on/off & 3g on/off. but now i cannot find 3g on/off its gone

  • Hello. I have problem here can someone plz help. I have usb of 32 gb but i have problem with it while i was trying to partition of it and it fails and my usb disappear from finder and desktop i have tried every possible thing but nothing  works .

    Hello. I have problem here can someone plz help. I have usb of 32 gb but i have problem with it while i was trying to partition of it and it fails and my usb disappear from finder and desktop i have tried every possible thing but nothing  works .

    Yea i tried in disk utility and its got faiiled and the partitation has deleted and when i tried  to replug the  usb  msg show up by saying  usb not compaitnle. With this mac  and  take me to disk utility  and thanks for replying

  • I set up my email account with ntlworld can somebody please help me why it keeps downloading emails i have deleted from about 4 years ago amounting to thousands of emails. thanks

    i set up my email account with ntlworld can somebody please help me why it keeps downloading emails i have deleted from about 4 years ago amounting to thousands of emails. thanks

    Hi, is this POP or IMAP?
    In Mail Preferences>Accounts>Mailbox Behaviors, what are settings for remove from server & such?

Maybe you are looking for

  • How to resolve the 3194 error when restoring an iPhone?

    My phone is locked (screen will only show the iTunes logo and an arrow implying i need to plug into iTunes).  It started doing this when I attempted to restore my phone (which it did not complete). Now, the phone is stuck and I can only get the error

  • Why Window doesn't appear back ???

    Hi Experts //get the repository content at runtime of the Web-Dynpro- // Window “AddressbookWindow” IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI .getComponentInfo() .findInWindows("AddressbookWindow"); //create the “AddressbookWindow” IWD

  • Connecting to mail slows Windows

    Hello, I noticed that when my iPhone is in cradle and connected to PC and eMail starts connection to check for email that my WindowsXP slows down. Specifically my mouse is hard to move around the screen. I know this sounds weird but it sounds like an

  • HT201209 I got a iTunes gift card and it wouldn't let me redeem

    I gr a iTunes gift card but if I try to redeem it wouldn't let me and so I can't buy songs

  • Encrypting password in xml file

    Hi I want to encrypt the passwords in my xml configuration files. So I read some articles and found this method. I tried to use it in my progroam , it gives me an error, saying java.security.NoSuchAlgorithmException: Algorithm DESede not available Th