Custom shapes/sprites with code, where to start?

Hello,
I want to start building some prebuild shapes, like a star, cross, heart, and some more with code.
Does anyone know if there is already something like this ? A library with custom sprites or shapes?
And should i create these graphics extending the sprite or shape class? I read that shapes would
be better for performance?
Regards,
Chris.

thanks Kglad, i did some search on this topic, but could not find
prebuild shapes in Flash. So when i want to set properties of a shape, then
it is better to use a Sprite?
var myShape:CustomArrow = new CustomArrow();
myShape.color = 0xFF0000;
myShape.arrowSize = 14;
myShape.arrowlineWidth = 200;
This is the idea of using dynamic Shapes.
Regards,
Chris.

Similar Messages

  • Custom Master Page with Code behind in SharePoint 2013

    Hi All,
    I want to create the Custom Master Page in Sharepoint 2013 with Code file in it.
    Is it possible to create? if YES the how i can achieve it??
    PD

    To add something to Amit's reply, you can refer to the following link on how to create master page with code behind if you are new to ASP.net.
    Walkthrough: Creating and Using ASP.NET Master Pages in Visual Web Developer
    http://msdn.microsoft.com/en-us/library/ehszf8ax(v=vs.90).aspx
    Miles LI TechNet Community Support

  • Mac Pro keeps crashing when using with KVM. where to start my investigation

    hi guys.
    i have recently ordered ATEN CS-1762 KVM switch (2 ports model) to control my Mac and PC with a single keyboard and mouse. This KVM supports USB and DVI. the problem i have is Mac crashing when i switch from PC. I contacted mfg lately and they are unaware of this issue due to not having Mac Pro to test with this appliance. They have tested it with Mac Mini, G4 and G5 though and all was OK. based on this they put a description that this box is compatible with Mac. Anyway, being relatively new Mac user i ask for your help.
    here are my steps and some ATEN's thoughts:
    1. accroding to ATEN tech support, i should power up my second computer after the first one was started and is running. firstly i start the Mac Pro, 5 mins after that i power up my PC.
    2. When both computers are up and running (Mac is in KVM focus), i switch to PC and all seems OK. I have noticed though that if NumLock is activated during the PC session, I won't be able to switch back to Mac. However, even though NumLock is OFF i still may have troubles when switching back to Mac. So it is not the rule, but maybe the clue to start with..
    NOTES:
    1. if i start PC first, Mac won't start at all. The power led will be on, but there will be no picture on the monitor and it won't accept any keyboard/mouse inputs as well as it will be network inaccessible.
    2. I tried looking into Mac's logs but need your help in getting this clear.
    here is the log. as you will see it stops at 13:04 and then continues at 13:08 after reboot.
    i've seen some parallel's VMs but i don't have Parallels installed. i used to have it, but then it never happened to work so i deleted it from the machine. can this be the case it is still somewhere?
    pls guys, any thoughts are very welcome!!!
    PS: i can cause Mac to crash the same way if necessary or if log looks inclomplete. the thing forgot to mention is: when Mac crashes and i reboot it, it will not necessarily boot up completely. i've noticed that i would have to reset the KVM switch prior to Mac's successful start up. so maybe i copied the wrong log (not the one immediately after the crash). pls advise here
    Alex
    EDIT: specs for machines are:
    Mac Pro dual 2.6GHz, 1GB (+1GB aftermarket added half a year back, works perfectly), HDD 260GB, Nvidia 7300 256Mb.
    PC - Supermicro dual xeon 1.6GHz, 4GB Ram, 4 x 36GB SCSI, Nvidia 5200 256 MB with Windows 2000 Server.
    Apr 18 13:03:38 localhost kernel[0]: hi mem tramps at 0xffe00000
    Apr 18 13:03:38 localhost kernel[0]: PAE enabled
    Apr 18 13:03:38 localhost kernel[0]: 64 bit mode enabled
    Apr 18 13:03:38 localhost kernel[0]: standard timeslicing quantum is 10000 us
    Apr 18 13:03:38 localhost kernel[0]: vmpagebootstrap: 512109 free pages
    Apr 18 13:03:38 localhost kernel[0]: migtable_maxdispl = 71
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: 77 prelinked modules
    Apr 18 13:03:38 localhost kernel[0]: ACPI CA 20060421
    Apr 18 13:03:38 localhost kernel[0]: AppleIntelCPUPowerManagement: ready
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=2 LocalApicId=7 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=3 LocalApicId=6 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=4 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=5 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=6 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=7 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: Copyright (c) 1982, 1986, 1989, 1991, 1993
    Apr 18 13:03:38 localhost kernel[0]: The Regents of the University of California. All rights reserved.
    Apr 18 13:03:38 localhost kernel[0]: using 10485 buffer headers and 4096 cluster IO buffer headers
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: Started CPU 01
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: Started CPU 02
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: IOAPIC: Version 0x20 Vectors 64:87
    Apr 18 13:03:38 localhost kernel[0]: Started CPU 03
    Apr 18 13:03:38 localhost kernel[0]: ACPI: System State [S0 S3 S4 S5] (S3)
    Apr 18 13:03:38 localhost kernel[0]: Security auditing service present
    Apr 18 13:03:38 localhost kernel[0]: BSM auditing present
    Apr 18 13:03:38 localhost kernel[0]: disabled
    Apr 18 13:03:38 localhost kernel[0]: rooting via boot-uuid from /chosen: BE5A00F3-0C3D-4125-9DE4-3F2193D3DAA8
    Apr 18 13:03:38 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    Apr 18 13:03:38 localhost kernel[0]: USB caused wake event (EHCI)
    Apr 18 13:03:38 localhost kernel[0]: FireWire (OHCI) TI ID 8025 built-in now active, GUID 0016cbfffe6cfb5c; max speed s800.
    Apr 18 13:03:38 localhost kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT0 @0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDri ver/ST3160812AS P Media/IOGUIDPartitionScheme/Customer@2
    Apr 18 13:03:38 localhost kernel[0]: BSD root: disk0s2, major 14, minor 2
    Apr 18 13:03:38 localhost kernel[0]: jnl: replay_journal: from: 3560448 to: 7934976 (joffset 0x48b341000)
    Apr 18 13:03:38 localhost kernel[0]: HFS: Removed 9 orphaned unlinked files
    Apr 18 13:03:38 localhost kernel[0]: Jettisoning kernel linker.
    Apr 18 13:03:38 localhost kernel[0]: Resetting IOCatalogue.
    Apr 18 13:03:38 localhost kernel[0]: PXS1: family specific matching fails
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 1
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: NVDANV40HAL loaded and registered.
    Apr 18 13:03:38 localhost kernel[0]: PXS1: family specific matching fails
    Apr 18 13:03:38 localhost kernel[0]: Previous Shutdown Cause: 3
    Apr 18 13:03:38 localhost kernel[0]: IPv6 packet filtering initialized, default to accept, logging disabled
    Apr 18 13:03:38 localhost mDNSResponder-108.4 (Jan 8 2007 20: 39:46)[30]: starting
    Apr 18 13:03:38 localhost memberd[38]: memberd starting up
    Apr 18 13:03:38 localhost DirectoryService[42]: Launched version 2.1 (v353.6)
    Apr 18 13:03:39 localhost lookupd[44]: lookupd (version 369.6) starting - Wed Apr 18 13:03:39 2007
    Apr 18 13:03:39 localhost kernel[0]: AppleIntel8254XEthernet: Ethernet address 00:17:f2:01:63:16
    Apr 18 13:03:39 localhost configd[34]: No AirPort Driver found.
    Apr 18 13:03:39 localhost kernel[0]: AppleIntel8254XEthernet: Ethernet address 00:17:f2:01:63:17
    Apr 18 13:03:39 localhost diskarbitrationd[37]: disk0s2 hfs FDAB59BA-2B84-3AD5-AF66-4BD8CFA20261 Macintosh HD /
    Apr 18 13:03:40 localhost lookupd[55]: lookupd (version 369.6) starting - Wed Apr 18 13:03:40 2007
    Apr 18 13:03:42 localhost kernel[0]: Intel8254x -- Link Up -- 00:17:f2:01:63:16 -- called by interruptOccurred() --
    Apr 18 13:03:42 localhost /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow: Login Window Application Started
    Apr 18 13:03:42 localhost kernel[0]: -- Auto-Neg Advertise Reg (04d) = 0xde1, Link Partner Ability Reg (05d) = 0x41e1, Gig Advertise Reg (09d) = 0xe00, Gig Link Partner Ability Reg (10d) = 0x4000
    Apr 18 13:03:42 localhost mDNSResponder: Adding browse domain local.
    Apr 18 13:03:43 localhost loginwindow[62]: Login Window Started Security Agent
    Apr 18 13:03:46 localhost kernel[0]: Intel8254x -- Link down -- 00:17:f2:01:63:17 -- called by enableHardware() --
    Apr 18 13:03:46 localhost kernel[0]: -- Auto-Neg Advertise Reg (04d) = 0xde1, Link Partner Ability Reg (05d) = 0x0, Gig Advertise Reg (09d) = 0xe00, Gig Link Partner Ability Reg (10d) = 0x4000
    Apr 18 13:03:46 Alexs-Computer configd[34]: setting hostname to "Alexs-Computer.local"
    Apr 18 13:03:46 Alexs-Computer TabletDriver[71]: RunApplication called while eRelaunching
    Apr 18 13:03:52 Alexs-Computer configd[34]: executing /System/Library/SystemConfiguration/Kicker.bundle/Contents/Resources/enable-net work
    Apr 18 13:03:52 Alexs-Computer configd[34]: posting notification com.apple.system.config.network_change
    Apr 18 13:03:52 Alexs-Computer lookupd[82]: lookupd (version 369.6) starting - Wed Apr 18 13:03:52 2007
    Apr 18 13:03:52 Alexs-Computer ntpdate[94]: can't find host time.euro.apple.com\n
    Apr 18 13:03:52 Alexs-Computer ntpdate[94]: no servers can be used, exiting
    Apr 18 13:03:55 Alexs-Computer configd[34]: target=enable-network: disabled
    Apr 18 13:04:15 Alexs-Computer configd[34]: posting notification com.apple.system.config.network_change
    Apr 18 13:04:15 Alexs-Computer lookupd[148]: lookupd (version 369.6) starting - Wed Apr 18 13:04:15 2007
    Apr 18 13:04:15 Alexs-Computer SystemStarter[41]: "/Library/StartupItems/Tablet" failed security check: permissions
    Apr 18 13:04:17 Alexs-Computer kernel[0]: Parallels Workstation Hypervisor started.
    Apr 18 13:04:17 Alexs-Computer kernel[0]: Parallels Workstation VMM Main driver started.
    Apr 18 13:04:18 Alexs-Computer kernel[0]: comparallels_kextPvsvnic: Ethernet address 00:01:23:45:67:89
    Apr 18 13:04:19 Alexs-Computer SystemStarter[41]: Parallels VirtualMachine drivers (149) did not complete successfully
    Apr 18 13:08:25 localhost kernel[0]: hi mem tramps at 0xffe00000
    Apr 18 13:08:25 localhost kernel[0]: PAE enabled
    Apr 18 13:08:25 localhost kernel[0]: 64 bit mode enabled
    here couple more logs right at the moment of crash (found in paic.log). hopefully then can shed som elight on the troubles:
    pls advise
    Wed Apr 18 13:04:16 2007
    panic(cpu 0 caller 0x001A429B): Unresolved kernel trap (CPU 0, Type 14=page fault), registers:
    CR0: 0x8001003b, CR2: 0x00004000, CR3: 0x01019000, CR4: 0x000006e0
    EAX: 0x23a3d578, EBX: 0x00000000, ECX: 0x00001000, EDX: 0x00004000
    CR2: 0x00004000, EBP: 0x2544bc18, ESI: 0x23a3d578, EDI: 0x00004000
    EFL: 0x00010206, EIP: 0x0019637c, CS: 0x00000008, DS: 0x00000010
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x2544b9d8 : 0x128d08 (0x3cb134 0x2544b9fc 0x131de5 0x0)
    0x2544ba18 : 0x1a429b (0x3d0e4c 0x0 0xe 0x3d0670)
    0x2544bb28 : 0x19ada4 (0x2544bb40 0x23a39578 0x2544bb98 0x84ae50)
    0x2544bc18 : 0x84b148 (0x23a39000 0x2 0x2544bc68 0x1a1738)
    0x2544bc38 : 0x8393d4 (0x2544bddc 0x0 0x2544bc68 0x4b0000)
    0x2544bd18 : 0x6ca33a (0x23a39000 0x2544bdaa 0x2544bdaa 0x84)
    0x2544bd78 : 0x6be697 (0x3c34000 0x2544bdaa 0x2544bdaa 0x84)
    0x2544bdf8 : 0x6a72e3 (0x3c34000 0x1 0x2544be48 0x1a1738)
    0x2544be18 : 0x6aee4a (0x553f8000 0x0 0x3ff96a27 0x3d87)
    0x2544be78 : 0x546b55 (0x3c34000 0x2544beac 0x1 0x1a26ce)
    0x2544bec8 : 0x54a1d0 (0x3a21e00 0x3 0x3f60ddf8 0x3d87)
    0x2544bee8 : 0x54bc8d (0x3a21e00 0x7abf 0x5cbd220 0x5cbd160)
    0x2544bf28 : 0x39c536 (0x3a21e00 0x3a40280 0x8 0x2)
    0x2544bf78 : 0x13d7d9 (0x3a40280 0x3a87e78 0x0 0x0)
    0x2544bfc8 : 0x19ac1c (0x0 0x0 0x19e0b5 0x397fcec) Backtrace terminated-invalid frame pointer 0x0
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.NVDAResman(4.5.2)@0x6c9000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    com.apple.iokit.IOHIDFamily(1.4.10)@0x531000
    Kernel version:
    Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386
    Wed Apr 18 17:06:26 2007
    panic(cpu 1 caller 0x001A429B): Unresolved kernel trap (CPU 1, Type 14=page fault), registers:
    CR0: 0x8001003b, CR2: 0x00004000, CR3: 0x01019000, CR4: 0x000006e0
    EAX: 0x23a4d578, EBX: 0x00000000, ECX: 0x00001000, EDX: 0x00004000
    CR2: 0x00004000, EBP: 0x25443c18, ESI: 0x23a4d578, EDI: 0x00004000
    EFL: 0x00010206, EIP: 0x0019637c, CS: 0x00000008, DS: 0x04080010
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x254439d8 : 0x128d08 (0x3cb134 0x254439fc 0x131de5 0x0)
    0x25443a18 : 0x1a429b (0x3d0e4c 0x1 0xe 0x3d0670)
    0x25443b28 : 0x19ada4 (0x25443b40 0x23a49578 0x1 0x4065004)
    0x25443c18 : 0x84b148 (0x23a49000 0x2 0x25443c48 0x713bbf)
    0x25443c38 : 0x8393d4 (0x25443ddc 0x0 0x25443c68 0x7116c2)
    0x25443d18 : 0x6ca33a (0x23a49000 0x25443daa 0x25443daa 0x84)
    0x25443d78 : 0x6be697 (0x3c61c00 0x25443daa 0x25443daa 0x84)
    0x25443df8 : 0x6a72e3 (0x3c61c00 0x2 0x25443e28 0x1e)
    0x25443e18 : 0x6aee4a (0x523e0000 0x0 0xfd8e30e2 0xc93)
    0x25443e78 : 0x546b55 (0x3c61c00 0x25443eac 0x2 0x1a26ce)
    0x25443ec8 : 0x54a1d0 (0x3a21e00 0x3 0xfcf5a332 0xc93)
    0x25443ee8 : 0x54bc8d (0x3a21e00 0x1917 0x4336be0 0x4336b20)
    0x25443f28 : 0x39c536 (0x3a21e00 0x3a40280 0x8 0x2)
    0x25443f78 : 0x13d7d9 (0x3a40280 0x3a39ff8 0x0 0x3303)
    0x25443fc8 : 0x19ac1c (0x0 0x0 0x19e0b5 0x5cb2144) Backtrace terminated-invalid frame pointer 0x0
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.NVDAResman(4.5.2)@0x6c9000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    com.apple.iokit.IOHIDFamily(1.4.10)@0x531000
    Kernel version:
    Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386

    ok so i experimented a little with the hardware and here what i have to the moment:
    1. i thought that the usb kb could be the case for mac os to crash so i disconnected the cable from the KVM and plugged normal apple kb to the mac.
    2. however when i tried switching back to mac, the machine crashed again.
    from what i noticed for the last few days 'working' with this kvm switch was the screen resolution changing while i was switching. meaning the screen flickered for couple of times prior to showing 1280x1024 that was set up in the system. during flickering the resoution became 1024x768. i 've seen it pretty clearly, just it was for half of a second.
    also when powering up both machines, they were starting with 1024x768 and not 1280x1024 as was set up. i had to manually change the screen resolution on both machines (pc and mac) every time after successful start up.
    so by far my understanding is that kvm switch forces monitor for 1024x768 during switches and on start up. it also causes the OSes (win2K and MacOSX) to lose 1280x1024 and accept 1024x768 as if the monitor was changed and couldn't operate at a higher resolution.
    having said that i uploaded this info to kvm mfg (ATEN) and couple more mac forums so that this info may help someone else when ordering a kvm for mac. at the same time i am still open for any thoughts, advices and crazy ideas to get round this bug.
    alex

  • Newbee: I want to Podcast with Apple - where to start?

    Hi,
    I am in a WINDOWS environment trying to give apple technology a chance. At Heilbronn university we want to experiment with podcast technology using apples podcast producer. Blue-eyed I tried to install the Server OS and, as the next step, tried to configure the machine using the "podcast producer administration guide". I failed. E.g. the guide tells me to set up DNS to strange addresses, but only HOW, not WHY. And it doesn't work.
    So I need help:
    I have an environment where the server (mac mini) is attached via ethernet (manual DHCP with static IP address) using our university DNS. Our university has its own mail server, its own LDAP Server, etc.
    Attachment to LDAP is not needed but I want to use a macbook air to capture the podcasts.
    Where should I start?
    Any help is welcome.
    Best regards,
    Dr. Jörg Winckler

    Guten Tag Jörg!
    Your setup is similar to one i've just deployed for a college here in England.
    Are you planning on using Podcast Capture or quicktime on the macbook air to capture the podcasts? You have to login to the mac server in order to submit the podcasts, and that requires a user account either standalone on the mac server's openldap, or your university wide LDAP.
    The other options depend on exactly what you want to do with your podcasts. You might not need a mail server at all if you're not publishing notifications..
    As for DNS, its actually fairly simple. You just need the FQDN of the mac server to be published on the network you will be using to connect to the mac server from the macbook air, and it needs a reverse DNS entry for the same.
    I hope this helps, but feel free to ask detailed questions on anything i've missed.
    Thanks,
    Liam Gladdy
    GladdyMedia
    Message was edited by: Liam Gladdy

  • CLI template creator with variables - where to start

    Hello people !
    I would like to be able to create a template that checks a device hostname and  takes actions according to it - my goal is to enable Energy Wise Domains - one for every location.
    If I could have LMS4.2 to check the hostname of the device then would be easy to attribute the device to the aproppriate domain.
    Exam.
    Device hostname AAAA_switch1 - Domain 1
    Device hostname AAAA_switch2 - Domain 1
    Device hostname BBBB_switch1 - Domain 2
    I have read several threads about this but I am not being able to understand where is the best place to start.
    Any help would be most apprecciated and will be rewarded with the deserved points
    Thanks in advance
    Isaac

    Hello again
    I am moving forward on my quest and hope that someone will give me a hand at some point   - these are my first steps on XML on LMS so I'll probably do some not so clever remarks.
    Anyway to start I have created a cli template and exported it - that way I would have an XML file with the correct structure - I thought :).
    Even if I dont do any changes and try so simply import to LMS the file created on the template I get the error message:
    "Template import Failed. Unable to parse the XML file.Please ensure that the XML file is complaint to the schema."
    Any ideas on what could be causing this?
    many thanks
    Isaac

  • How do I create an object with code?

    I have a flash cs3 file in which I have created a simple movieclip (square) by drawing a rectangle on the stage of that movieclip.  When I drag that into another movieclip (clip) I am able to set properties for it such as x and y position by adding actionscript code to various frames of the "clip" timeline.  So far so good.
    Now I have created a second movieclip (shape).  I want to be able to define the shape purely with code, so I entered the following code into the first frame of the "shape" timeline:
    var myShape:Shape = new Shape();
    myShape.graphics.beginFill(0xFF0000);
    myShape.graphics.moveTo(20,20);
    myShape.graphics.lineTo(100,20);
    myShape.graphics.lineTo(100,100);
    myShape.graphics.lineTo(20,20);
    myShape.graphics.endFill();
    this.addChild(myShape);
    I then hoped I could drag and instance of the "shape" movieclip onto the "clip" stage and have a red triangle show up, but nothing shows up.  It seems I have to actually draw something onto the "shape" stage for something to show up.  I would like to be able to create shapes programmatically but I don;t know how to do it.
    Thanks.

    Thanks for your reply.  I tried doing what you said, creating a command by opening a new flash file, etc.  For some reason, I could make a rectangle and save that as a command, but making a shape using the polystar command didn't work - there was a red "x" next to it in the history panel.
    Anyway, even if I could do that, it's not what I want to do.  I want to be able to create a shape and then be able to change the shape dynamically.  For instance, I want to be able to create a series of points and draw curves between them to create a closed curve shape.  Then I want to be able to change the positions of the vertices so that the shape changes as the .swf is running.  Thanks.

  • Question about "mod_security: Access denied with code 400"

    Dear All,
    After merged clone's configure the application tier server nodes. I can get in form window, but after merged clone's finishing tasks:1.Generate JAR files / generate message files / relink executables / copy files to destination. I can't open form window any more.
    The apache error_log will show below
    mod_security: Access denied with code 400. Pattern match "!^([-_@|#!=A-Za-z0-9/ :.$]){0,255}([-_@|#!=A-Za-z0-9/:.$]){0,255}$" at ARGS_NAMES. [hostname "hcp11et30.liteonit.com.tw"] [uri "/oprocmgr-service"] [unique_id TugHyQoG2lsAAFOwD84]
    Then referred Note 389558.1, and can login normally, But the same error messages still keeping reporting in error_log.
    Please advise?
    Thanks,
    Jackie

    Hi;
    Did you check below notes:
    Access Denied With Code 400 When Starting Forms or Calling MOD_PLSQL [ID 394587.1]
    Why do we see Error: mod_security: access denied with code 400 IN OCO pages? [ID 976473.1]
    Regard
    Helios

  • No custom shape tool color option

    Hi,
    I'm using Adobe Photoshop CS5 and I'm trying to use the custom shape tool to make a black music note.  However when I make the music note, it has no color to it.  I cannot find a color option for the custom shape tool anywhere.
    Where is the option that would change the color so the note is black?
    Thanks.

    Look at the three options in the options bar!

  • Creating custom UI panels : where to start ?

    Hi,
    i've had a  hard time searching for clear information on how to create custom panels in InDesign.
    Maybe the wrong keywords, i dont know, but here i am
    I would like to create a panel displaying all the "text variables" and their actual values and be able to edit them right there.
    I have no idea where to start, any primers ? Cues ? Ressources ?
    Many thanks for the help !
    Ugo

    Well i was actually asking myself the very question : do i really need a panel ?
    So far i found a script thhat pretty much does what i need :
    run the script opens a window
    When all the fields are populated, hit continue and the custom text variables are updated with the freshly entered information
    Now i need to tweak this code to suit my variables and find a way to "get" the current values instead of the defaults ones populating the form.
    So i guess i can always execute the script to update, correct and update the variable and anytime, saving me the trouble of going about creating a plugin (this scared me more that anything )
    I'll make sure it runs and see whats up. Any chance i can ask you later for support if i hit a rock?
    Again thanks for the kind help, i now have ressources and some vocabulary to find stuff!
    Ugo

  • Multiple problems with 80GB classic, don't know where to start.

    Hey guys,
    I got an Apple classic 80GB for my bday early August and lately i've been having so many problems i dont know where to start, i'll try to explain them as best as i can.
    *problem 1:* Whenever i plug my iPod into my PC, it locks up the system for about 5 minutes, then comes up with an error box saying that 'There is a problem with your iPod yadda yadda restore etc'.
    I proceed to restore the iPod, then once its restored and reconnects itself, it repeats the cycle by freezing then telling me to restore. The only way i can do a restore and have it not give me an error is if i reboot when it is disconnected.
    *Problem 2:* When i finally get it up and ready to sync, i go to sync all my files (About 2000 songs). It gets to around the 1500 song mark then says there is an error and the iPod disconnects itself.
    It then instantaneously reconnects itself and starts syncing from where it left off.
    Once it has then sync'd all of the music ad tells me its ready to be ejected. I eject the iPod and disconnected it.
    I then go into the iPod and it has no songs/videos/photos, yet it has still used up about 15gb. If i reconnect it, it will just sit there for 5 minutes not syncing, it will then randomly say the sync is done and it will eject itself.
    FINALLY after all that i have my music on there
    *Problem 3* Once the songs are on the iPod, it becomes insanely laggy. If i navigate to a song and press play, it will take about 10 seconds for the actual song to play. The delay is just as bad for next song, pause etc. Even using it in my cars head unit causes it to lag.
    *Problem 4* If i do get a song playing after all that, about 1/5 songs will just randomly skip to the next song without letting it play through.
    I have all the latest iTunes/Firmware/Drivers for everything on my PC and iPod.
    I have sent it back to Apple for repair yet they could not find anything wrong (Yeah right :|)
    If anyone out there could help me please, im at my wits end with this infernal machine.
    Thankyou

    *Outdated operating system:* Cant be, im running XP SP3 with the latest updates
    *Computer needs updates:* I've got the latest drivers for all of my hardware, including BIOS
    *Software interference:* THe only other program i have running in the background is Kaspersky Antivirus, but that is disabled when i try to sync
    *Damaged Files* Possibly, i played through the album where it froze at and even reo-imported it, it seemed to play and import fine
    *Unregistered .dll files (Windows):* Tried this fix, but it did the same problems as the original post. Such as freezing on a certain song, then reconnecting itself only to put the music on there, yet it is really laggy
    *Damaged disk structure:* Tried this fix, didn't help
    *Corrupt iPod photo Cache* I have never tried to put photos on it, so i dont see how this could be it.
    *Lost connection:* Checked it, it's very firm and unlikely to come loose.
    *Conflict with third-party hardware:* I dont have any connected, nor have i ever
    *Bad hardware:* I tried it on all of my 8 USB drives. I dont use any hubs or firewire cards so this couldn't be it.
    Also i forgot to add that 1/5 times i go to restore, it locks the computer up and windows gives me a 'delayed write failed' bubble

  • Please! help me with this wrong code, where is mistake

    please! help me with this wrong code, where is mistake?
    import java.util.Stack;
    public class KnightsTour {
    Vars locs[];
    private int size, max=1, d=0, board[][];
    public KnightsTour(int x,int y, int newSize)
         size=newSize;
         locs=new Vars[size*size+1];
         for(int n=1;n<=size*size;n++)
              locs[n]=new Vars();
         board=new int[size+1][size+1];
         for(int n=1;n<=size;n++)
              for(int n2=1;n2<=size;n2++)
                   board[n][n2]=0;
         locs[max].x=x;
         locs[max].y=y;
         locs[max].d=1;
         board[x][y]=max;
         max++;
    class Vars{
         int x;
         int y;
         int d;
    public void GO()
         int n=0;
         while(max<=size*size)
              n++;
              d++;
              if(d>8)
                   max--;
                   board[locs[max].x][locs[max].y]=0;
                   d=locs[max].d+1;
              move();
         printBoard();
    public void move()
         int x=locs[max-1].x, y=locs[max-1].y;
         switch(d)
         case 1:x--;y-=2;break;
         case 2:x++;y-=2;break;
         case 3:x+=2;y--;break;
         case 4:x+=2;y++;break;
         case 5:x++;y+=2;break;
         case 6:x--;y+=2;break;
         case 7:x-=2;y++;break;
         case 8:x-=2;y--;break;
         //System.out.println(" X: "+x+" Y: "+y+" |"+max);
         if((x<1)||(x>size)||(y<1)||(y>size)){}
         else if(board[x][y]!=0){}
         else
              locs[max].x=x;
              locs[max].y=y;
              locs[max].d=d;
              board[x][y]=max;
              max++;
              d=0;
              //printBoard();
    public void printBoard()
         for(int n=1;n<=size;n++)
              for(int n2=1;n2<=size;n2++)
                   if(board[n2][n]<10)
                        System.out.print(board[n2][n]+" ");
                   else
                        System.out.print(board[n2][n]+" ");
              System.out.println();
         //System.out.println();
         System.out.println();
         public static void main (String[]args){
              KnightsTour k = new KnightsTour(1,1,8);
         }

    public class KnightsTour {
        Vars locs[];
        private int size,  max = 1,  d = 0,  board[][];
        public static void main (String[] args) {
            KnightsTour k = new KnightsTour (1, 1, 8);
            k.GO ();
        public KnightsTour (int x, int y, int newSize) {
            size = newSize;
            locs = new Vars[size * size + 1];
            for (int n = 1; n <= size * size; n++) {
                locs[n] = new Vars ();
            board = new int[size + 1][size + 1];
            for (int n = 1; n <= size; n++) {
                for (int n2 = 1; n2 <= size; n2++) {
                    board[n][n2] = 0;
            locs[max].x = x;
            locs[max].y = y;
            locs[max].d = 1;
            board[x][y] = max;
            max++;
        class Vars {
            int x;
            int y;
            int d;
        public void GO () {
            int n = 0;
            while (max <= size * size) {
                n++;
                d++;
                if (d > 8) {
                    max--;
                    board[locs[max].x][locs[max].y] = 0;
                    d = locs[max].d + 1;
                move ();
            printBoard ();
        public void move () {
            int x = locs[max - 1].x, y = locs[max - 1].y;
            switch (d) {
                case 1:
                    x--;
                    y -= 2;
                    break;
                case 2:
                    x++;
                    y -= 2;
                    break;
                case 3:
                    x += 2;
                    y--;
                    break;
                case 4:
                    x += 2;
                    y++;
                    break;
                case 5:
                    x++;
                    y += 2;
                    break;
                case 6:
                    x--;
                    y += 2;
                    break;
                case 7:
                    x -= 2;
                    y++;
                    break;
                case 8:
                    x -= 2;
                    y--;
                    break;
    //System.out.println(" X: "x" Y: "y" |"+max);
            if ((x < 1) || (x > size) || (y < 1) || (y > size)) {
            } else if (board[x][y] != 0) {
            } else {
                locs[max].x = x;
                locs[max].y = y;
                locs[max].d = d;
                board[x][y] = max;
                max++;
                d = 0;
    //printBoard();
        public void printBoard () {
            for (int n = 1; n <= size; n++) {
                for (int n2 = 1; n2 <= size; n2++) {
                    if (board[n2][n] < 10) {
                        System.out.print (board[n2][n] + " ");
                    } else {
                        System.out.print (board[n2][n] + " ");
                System.out.println ();
    //System.out.println();
            System.out.println ();
    }formatting ftw.
    If you call GO () you get in an infinite loop. max gets decreased, and it loops while max is smaller then or equal to size * size. Is your looping logic correct ?

  • I can not do the update , what should I do to fix this error ? "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    I can not do the update , what should I do to fix this error ?
    "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    Hi,
    Please refer to the help document below:
    Error downloading, installing, or updating Creative Cloud applications
    Regards,
    Sheena

  • I have a Adobe Creative Cloud's code, this is alphanumeric, but the registry only works with numeric codes ¿where i can use my code?.

    Hi, i have a problem with my Adobe Creative Cloud's code, this is alphanumeric, but the registry only works with numeric codes ¿where i can use my code? is a year-long Creative Cloud subscription.

    You most likely have a redemption code... especially if you did not buy direct from Adobe
    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    -or https://forums.adobe.com/thread/1572504

  • TREX NameServer exits with code 128 on system start

    Installed a new TREX server on Windows 2003 x64 server, using standard settings for a stand-alone TREX server.  Installed as Local (not domain) and install completed successfully.  After the install (or after any reboot), all the regular TREX services start up correctly except for TREXNameServer.exe.
    Looking at the trace file for TREX Daemon, here is an excerpt:
    [4084] 2008-11-06 12:01:18.093 i Daemon       TrexDaemon.cpp(07478) : start TREXDaemon
    [4084] 2008-11-06 12:01:18.274 i Daemon       TrexDaemon.cpp(01969) : created shared-memory for NameServer (shm: Handle=0x268, size=16690888, mtx: Handle=0x230)
    [4084] 2008-11-06 12:01:18.349 i Daemon       TrexDaemon.cpp(05496) : start 'TREXNameServer.exe -port 30001' as process 2152
    [4084] 2008-11-06 12:01:18.545 i Daemon       TrexDaemon.cpp(06789) : process TREXNameServer.exe with pid 2152 exited with code 128
    [4084] 2008-11-06 12:01:19.553 i Daemon       TrexDaemon.cpp(05460) : child <TREXNameServer.exe> terminates too soon -> disabled
    [4084] 2008-11-06 12:01:22.367 i Daemon       TrexDaemon.cpp(05496) : start 'TREXPreprocessor.exe -port 30002' as process 2256
    [4084] 2008-11-06 12:01:24.383 i Daemon       TrexDaemon.cpp(05496) : start 'TREXIndexServer.exe -port 30003' as process 2296
    [4084] 2008-11-06 12:01:29.363 i Daemon       TrexDaemon.cpp(05496) : start 'TREXQueueServer.exe -port 30004' as process 4132
    [4084] 2008-11-06 12:01:34.284 e Daemon       TrexDaemon.cpp(04782) : creation of process '"python" alertserver.py' failed: The system cannot find the file specified.
    [4084] 2008-11-06 12:01:34.284 i Daemon       TrexDaemon.cpp(05498) : start 'python alertserver.py' failed
    [4084] 2008-11-06 12:01:34.389 i Daemon       TrexDaemon.cpp(05496) : start 'TREXCruiser.exe' as process 4176
    If I log into the server as <sid>adm, run TREXConsole and then start TREXNameServer, it starts up fine and works without a problem.  However, that doesn't start the Name Server as a service, preventing the unattended operation that one would hope for.
    Has anyone encountered this before?  I've searched all over, but have not located anything that is not allowing the Name Server to start.  I would appreciate any suggestions to help track down this problem.  Thanks.
    TREX Version: 7.10.14.147693
    Windows 2003 Server x64 SP2 with vcredist64, JRE installed

    Hi Jones,
    It turns out my issue was related to security on the Windows drive in question.  I installed the TREX main directory on the E drive of the server and simply added the "Users" group to that drive to fix my problem.  I'm pretty sure that the service user SAPService<SID> was having access permission issues until I added the group to the security settings of the drive.

  • Where can I download free custom shapes por photoshop?

    Hi, I can't find where on the adobe site I can download additional custom shapes. I remember doing it before but I can't seem to find it anymore. Can anyone help me?

    https://creative.adobe.com/addons
    I only saw one that was free. But this is where they should be, when ever more are added.

Maybe you are looking for