YOUR HELP IS VERY MUCH APPRECIATED... IM DEAD UHHH

I have a flash file but the problem is the scripts are object-oriented or (entered in some frames)
My professor prohibit that kind of method and I should create an AS file(package or class for those)... to be able to execute.
Meaning it could be in seperated AS files in one folder and frame codes must be clean.
Im a bit confused putting these codes in a package. I just copied these from net and as I try to pack them, the flash file is not workin.
Can someone help me pls regarding this. this is just easy for you coz Im just a newbie . I am willing to send you my FLA and AS files and check them..

PLSS GUYS MAKE THIS IN A PACKAGE:
var sfx_gun:Sound = new sfx();
var sp:MovieClip = new ship();
var tm:Timer = new Timer(700);
//var em:Sprite = new enemy();
var hp:Sprite = new hpbar();
tm.addEventListener(TimerEvent.TIMER, onstart);
var bulletholder:Sprite = new Sprite();
var healthbar:HealthBar = new HealthBar(10,10); //create the healthbar
addChild(healthbar); //add it to the stage
addChild(bulletholder);
addChild(sp);
//addChild(em);
addEventListener(Event.ENTER_FRAME,onenter);
addEventListener(MouseEvent.CLICK,onclick);
//stage.addEventListener(KeyboardEvent.KEY_UP, onKeyboardDown);
//stage.addEventListener(Event.EXIT_FRAME,onexit);
tm.start();
    function onstart(e:Event){
    var em:Sprite = new enemy();
    em.x= Math.random()*750;
    addChild(em);
//if (this.hitTestObject(MovieClip(root).sp)){
//MovieClip(root).hpbar.nextFrame();
function onenter(e:Event):void {
    sp.x-=(sp.x-mouseX)*.1;
    sp.y-=(sp.y-540)*.2;
//if (em.hitTestObject(MovieClip(root).sp)){
//  MovieClip(root).hp.subtractHealth(20);
//    if (em.hitTestObject(MovieClip(parent).sp)){
//        MovieClip(parent).healthBar.nextFrame();
//function onenter(e:Event):void {
//    sp.x=260;
//    sp.y=260;
//    sp.rotation=0;
//function onKeyboardDown(event:KeyboardEvent):void
//            if (event.keyCode == Keyboard.LEFT)
//                if (sp.x > sp.width/2)
//                    sp.x -= 19;
//            else if (event.keyCode == Keyboard.RIGHT)
//                if (sp.x < (stage.stageWidth - sp.width/2))
//                    sp.x += 19;
//function onKeyboardDown(event:KeyboardEvent):void
//            if (event.keyCode == Keyboard.LEFT)
//                if (sp.x > 0)
//                    sp.x -= 65;
//            else if (event.keyCode == Keyboard.RIGHT)
//                if (sp.x < (stage.stageWidth - sp.width))
//                    sp.x += 65;
function onclick(e:Event) {
    sfx_gun.play();
    sp.y=555;
    var bl:Sprite = new bullet();
    bl.y=sp.y;
    bl.x=sp.x;
    bulletholder.addChild(bl);
//function onexit(e:Event):void {
//removeEventListener(MouseEvent.CLICK, onclick);
//removeEventListener(TimerEvent.TIMER, onstart);
//removeChild(bulletholder);
//removeChild(sp);
quitb.addEventListener(MouseEvent.CLICK, remove);
function remove(e:MouseEvent):void{
removeChild(bulletholder);
removeChild(sp);
removeEventListener(Event.ENTER_FRAME,onenter);
removeEventListener(MouseEvent.CLICK,onclick);
tm.stop();
gotoAndStop("final");

Similar Messages

  • I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continues to blink on and off. I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated

    I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continue to blink on and off.
    I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated.

    are you backing up files, or doing a Time machine backup, either way, the Time machine will STOP when finished and show "last backup at XXXXXX"  meaning its done...... OR if when transferring files, it will show a progress bar on your desktop and vanish when files are copied.
    Open up the Hitachi drive (your G drive is made by Hitachi, and the best made by the way).....and see if the files are there.
    a MORE VISUAL way is to open the hard drive file, and drag and drop files INTO the Gdrive and you can see them visually be copied there as you do it.
    To see your HD on your desktop GOTO  FINDER......PREFERENCES....then GENERAL TAB.........check the box marked HARD DRIVES.........then your Gdrive will appear on your desktop........open it from there,  and DRAG and drop files from anywhere INTO the Gdrive....... easy visual way to see the files being copied into the Gdrive.

  • How can I please manage to get my contacts back in my MACBOOK PRO? On synchronizing with my iphone over icloud they are completely disappeared. Help is very much appreciated. Thx in advance.

    How can I please manage to get my contacts back to my MACBOOK PRO. They are completely disappeared after synchronization under iCloud with my iphone s4. Help is very much appreciated. Thx in advance.

    Unfortunately there is obviously no one who could help.
    I simply logged in over icloud.com and copied the contacts onto my monitor screen..... :-( Not the best idea, I know, but in fact I can look up my contacts.
    someone there with a better help???????????????????

  • Cleaning my powerbook, any help is very much appreciated

    Hello,
    My 12" powerbook is getting a bit grimy in places, and I was wondering if anyone knows any household stuff which will clean it up a bit. Also, I have 2 light scratches on the front of the laptop, and I was wondering if anyone knows any kind of solvent or liquid which would help in the cleaning up of the scratches so it makes it look new again. When you have a machine as good looking as a powerbook and you get a couple of light scratches, it really does make the laptop that much more undesirable. Thanks, and any help is welcome

    i use a light multi purpose cleaner on the case and water and a microfiber cloth on the screen not any chemicals it will cause it to dry out and start to crack.the only cleaner apple recommends is iklear but its pricey but it will do wonders for the whole computer

  • I have an iPhone 4s with over a gig left for space, but it will not sync music from iTunes to my phone. I select 'sync,' it goes through the six steps and is completed, yet no new music is added to my iPhone. Any help is very much appreciated!

    .

    fighter19lisa wrote:
    that only makes it say its synced, when its not.
    No, it does not.  It transfers purchases from the iDevice to the computer.  The computer must be authorized for the Apple ID that the content was acquired with.
    fighter19lisa wrote:
    my playlists wont show up on the phone.
    Are they selected to sync?  Is Manually Manage content on the device selected?
    fighter19lisa wrote:
    i had to change my password for my aol account again and i still cannot get my email on my phone to even work
    What does that have to do with syncing content to the device?  FYI, nothing.

  • Any help would be very much appreciated!

    Any help would be very much appreciated! My computer crashed and I didn't have itunes backed up elsewhere and now my son has disabled the ipod touch by entering the incorrect password too many times.  Any way I can save the songs,etc. I have on the ipod?

    If the iPod is disabled at this point, there would be no other way to access the iPod other than restoring it through iTunes.  If you don't have your purchases backed up, you can always email the iTunes billing team and hope that they will grant you an exception to have your purchases regranted so you don't have to pay again.
    http://apple.com/support/itunes/contact.html

  • My iMessage screen is locked horizontally and will not rotate. When I access the camera through iMessage it will not rotate either. Any help with this will be very much appreciated.

    My iMessage screen is locked horizontally and will not rotate. When I access the camera through iMessage it will not rotate either. Any help with this will be very much appreciated.

    Hi MikeyGway,
    If you are having rotation issues on your iPad, you may find the following articles helpful:
    iOS: Screen does not rotate
    http://support.apple.com/kb/ts3805
    iPad: Understanding the side switch
    http://support.apple.com/kb/HT4085
    Regards,
    - Brenden

  • How do I view a document sent to me in Winmail.dat(2.0MB).   I have downloaded and installed the libero app butthis doesn't help me open the winmail.dat document. Help very much appreciated. THANKS JANE

    How do I view a document sent to me in Winmail.dat(2.0MB).   I have downloaded and installed the libero app but this doesn't help me open the winmail.dat document. Help very much appreciated. THANKS JANE

    http://www.creativeinaustria.com/LetterOpenerPro?utm_source=macupdate.com&utm_me dium=referral&utm_campaign=Distribution%2BChannels
    Try it
    http://www.macupdate.com/app/mac/22614/letter-opener
    http://www.creativeinaustria.com/LetterOpenerLite

  • Why does it say "The configuration data for this product is corrupt. Contact your support personnel." when trying to install itunes64installer on my b4 bit windows 7 acer pc? Any help would be much appreciated...

    Why does it say "The configuration data for this product is corrupt. Contact your support personnel." when trying to install itunes64installer on my b4 bit windows 7 acer pc? Any help would be much appreciated...

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I can't burn a normal dvd from final cut pro.Help would be much appreciated!

    Hi.I am having great difficulty burning my final cut pro project to dvd.It is shot in HD and I have compressed it but when I burn a dvd it will not play in a normal/standalone dvd player.Could someone please tell me how to burn my project to dvd.Can HD film be burned to a normal dvd?The final cut pro file is only 1.3 GB.Any help/advice is much appreciated.Thank you.

    >Could you please tell me what the best settings to use when compressing to quicktime or if infact it has to be done at all?
    Matt has already told you twice; his first response (above) gave you step-by-step instruction.
    I'll spell it out for you again but with slightly more detail:
    1. In FCP, render the Sequence fully, then go to File->Export->QuickTime Movie.  (do NOT use "Using QuickTime Conversion).  In the export window, do NOT Recompress All Frames.  You can chose to make the movie self-contained or not.
    2. Use the resulting file in Compressor, where you will chose a DVD preset appropriate for your video's duration.  If needed, you can duplicate then modify any preset to better suit your needs.  Compressor will create two files; an MPEG-2 video file (.m2v) and a Dolby Digital audio file (.ac3).
    3.  Use the two files created by Compressor in DVD Studio Pro to author and burn a DVD.  Do NOT author an HD DVD as these will not play in DVD players.
    -DH

  • Can someone please help asap! just bought fce 4 and tried uploading some footage from canon 7d and when in the time line there is audio but txt saying "unrendered" knew to programme help would be much appreciated.

    and when in the time line there is audio but txt saying "unrendered", new to this programme and any help would be much appreciated.

    Any time Final Cut Express must perform more calculations than your computer can handle in real time, you need to render. Rendering is the process of creating temporary video and audio render files for segments of your sequence that Final Cut Express cannot play in real time. When you render a segment of your sequence, Final Cut Express substitutes a render file for the segment during playback. Render status bars above the ruler in the Timeline indicate which sections can play back in real time and which segments require rendering.  To render just click on the sequence menu and select render selection then click both. 

  • I have mistakenly deleted a mail folder which I had created. Can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    I have mistakenly deleted a mail folder in which I had created. I can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    Yeah not a problem. It does seem though that if you did not have a Time Machine backup then you may not be able to recover the deleted folder :/ But for future reference to prevent any of this, a Time Machine backup is a great investment.
    What it does is create an entire backup of your computer anything from personal information down to the screen saver.
    What you first need is a new external hard drive (I would recommend a 1TB or higher just to prevent running out of space soon).
    after that, just plug in the drive to your computer.
    once it is plugged in, in the top right hand corner, close to the wi-fi symbol, you should see a symbol that looks like a clock with a backwards arrow around it.
    click on that and select "open time machine preferences"
    just turn the button to the "on" position, and select the backup drive and Time Machine does the rest
    very great tool

  • Just purchased this, verified my email, payment taken etc., etc., but keep getting a message when trying to convert a doc saying an error occured when signing in.  I have siged out and signed in again - no avail.  Any help would be much appreciated.  Than

    Just purchased this product, verified my email, payment taken etc., etc., but keep getting a message when trying to convert a doc saying an error occured when signing in.  I have siged out and signed in again - no avail.  Any help would be much appreciated.  Thanks

    Hi there Katie,
    I just checked your account, and see that it's active. Are you trying to sign in via Adobe Reader? If so, please choose Help > Check for Updates in Reader and make sure that it-s up-to-date. The most current version, 11.0.07, should alleviate that sign-in error.
    Best,
    Sara

  • My screen smashed so had to get a new phone, my phone hadn't been backed up since march is there ANY way at all I could retrieve my pictures and/or videos? from all of my holidays :( please any help would be much appreciated! Thanks

    my screen smashed so had to get a new phone, my phone hadn't been backed up since march is there ANY way at all I could retrieve my pictures and/or videos? from all of my holidays please any help would be much appreciated! Thanks

    Strawbs12345 wrote:
    Yeah but I can't upload them because there not on the phone?
    Is that a question?
    Photo stream pictures can be viewed only on the devices they were sent to.  You can't transfer them back to your phone (or anywhere else).  If you didn't back up or import the photos to a computer, and they are no longer on your phone, they're gone.

  • E Mac I cant see any videos in sites like Youtube. I have versions 10 in the application folder and Mac version 7.6 in the utilities folder. Any help would be MUCH appreciated. Thanks.

    I can't see any videos in sites like Youtube. I have Quicktime Mac versions 10 in the application folder and Mac version 7.6 in the utilities folder. Any help would be MUCH appreciated. Thanks.

    *** may have found a fix ? *** Thanks to your post re: GDI objects I checked task manager ( added column "GDI objects")and saw 700+ whereas working 6.18 was 160 ish Got thinking - what could possibly  use that many GDI objects ( firefox only uses a few hundred and it's a platform ) Then it hit me - emoticons ! So in tools/ options/ IM&SMS/ IM Appearance    unchecked "show emoticons"and also unchecked "show images and other media previews"restarted Skype and GDI objects now only 164 ( down from 729 )and all other windows are repainting fine and are usable again( my problem was RDP sessions that became unusable, as I work remotely  ) To be sure, have rechecked the options and restarted skype and see 700+GDI objects ( goes up from 660 when place call to echo/sound test )and removed them again to get only 164have also rebooted a few times and gone through the whole processof unchecking emoticons, restart, rechecking emoticons, restart to make sure itsnot a fluke.  pretty sure this has fixed it for me ( so I now have a working 7.6.0.105 on XP SP3 ),and as your problem "sounds" the same I hope it also works for you. Thanks again for the GDI hint            

Maybe you are looking for