Using .as files in a Flash Game

Hello,
I am quite a beginner to Flash CS5 and ActionScript 3.0, I worked mostly with the good-old Macromedia Flash MX 2004. Recently, I had a school assignment to make a flash project, in which I created a basic game that sort-of worked, but it amazed my teacher anyway. Now, since I still have the characters and graphics, I would like to redo the game in a more professional manner (not like: placing 50 lines of AS3 in one frame, inside a MC, inside another MC, inside another MC, which was all under a mask on the main stage). What I would like to do is write '.as' files to contain the AS3 script and other components of the game.
I have found that Flash Builder 4 is a good tool for writing code, but I don't know (or understand) how the code can mix with the Flash timeline and MovieClips? (Like what does the word 'extends' mean in a package?, and what is the function 'super()'?). If anyone can lead me to a tutorial, a book, or just provide a post that can help me understand how ActionScript files are incorporated into flash, I would be very thankful.
Please, any knowledge to help this beginner is appriciated.
Thank you,
Greg

hi
there's plenty of info at http://www.adobe.com/devnet.html

Similar Messages

  • Do you have to pay royalty fees to use mp3 files in a Flash game?

    I'm looking at developing a Flash game but I am aware there are licensing fees involved with using mp3 files, and we seem to only be able to use mp3 files through Actionscript and Flashpunk. So my question is, will we have to pay any royalty fees, or does Adobe have that covered?

    ichat36 wrote:
    Regarding i-tunes match, a lot of music in my library is burned CDs (mostly imports) some "well most" are not available on i-Tunes U.S. So, if I use this service, I am thinking the majority of my library  will not be available to sync on all my devices.   Is this a proper assumption.
    No. The idea of iTunes Match is that everything in your library is available to sync.
    If it does match, the song in iTunes store is used.
    If it does not match, the song on your computer is used and that is uploaded to the cloud to sync to yoru devices.
    iCloud is not available for Mac OS previous to Lion.
    Which Mac/OS do you currently have?

  • Best way to embed an Mov file into interactive flash game?

    Hey,
    just a quick query. I'm creating an interactive flash game for a university project. It's along the lines of Guitar Hero, Tap Tap Revolution, Boom Boom Rocket etc..
    At the moment the game comprises of streaks of notes generated by Actionscript which the user much hit the corresponding key when notes are in the receptor. The background at the moment is an audio spectrum analyser created using AS based on the music playing.
    I want to add loop movie file as the very background of the stage and was just wondering what was the best way to place it there with the least ammount of overheads. At the moment I have it in a child movie clip placed on the stage, in which I use File -> Import and embeded the FLV file into the time line. This works, however lags out quite badly.
    Any help would be appriciated.
    Thanks in advance,
    John Minns

    Have you tried this method?
    1. Save as new file.
    2. With your usual color management preferences selected, run Xtras>Color>'Name all colors'.
    3. In color swatches list, select all colors. From swatches pop-up menu 'Make RGB'.
    4. In Preferences>Color, set color management settings to 'None'. The RGB colors should look about the same as they did with color management on.
    Now you should be able to export to Flash with RGB colors that look quite close to your CMYK version of the file.
    This should work the same in FH9 or FHMX. I hope it does the trick for you.

  • How to use PSD files as a flash page

    I have read that I can use a psd file in Flash as a "page".
    At what version does this become possible. Can I take a multi-layer
    PSD file that was exported from a Flash program and make changes to
    it in Illustrator and then import it back in as a page? Where can I
    find information on what product versions I need for both me
    (developer) and my designer to use to facilitate this and how to do
    it, any limitations, etc.

    Here is a sample code to set a jpg image in a frame:
    import java.awt.*;
    import java.awt.event.*;
    public class ImageFrame extends Frame{   
    private ImageCanvas c;
    private Image i;
    ImageFrame()
         Toolkit tk = Toolkit.getDefaultToolkit();
         // This assumes you have an image named
         // "somePic.jpg" in the current directory.
         i = tk.getImage( "somePic.jpg" );
         c = new ImageCanvas( i );
         add( c );
         public static void main( String[] args ) {       
         ImageFrame f = new ImageFrame();
         f.addWindowListener( new WindowAdapter()
    public void windowClosing( WindowEvent e ) {                
         System.exit( 0 );
         f.setSize( 400, 400 );
         f.show();
    private class ImageCanvas extends Canvas {       
         Image i;
         public ImageCanvas( Image i ) {           
         this.i = i;
    public void paint( Graphics g ) {           
         g.drawImage( i, 0, 0, 400, 400, this );
    I hope I can have my dukes now :-)

  • Problem using captivate file in a flash file

    Hi,
    I am using a captivate file inside a flashfile.
    I am experiencing the following problem.
    I have a button in a layer above the captivate file. But when
    I click that button the button and the captivate file react.
    How is this possible, and how can I resolve this?

    I don't understand your question.
    You 'click a button and the button and the captivate file
    react'.
    What does that mean?
    A bit more clarity in exactly what is happening may help
    diagnose the
    problem (no promises!).
    Erik
    moglidroop wrote:
    > Hi,
    >
    > I am using a captivate file inside a flashfile.
    > I am experiencing the following problem.
    > I have a button in a layer above the captivate file. But
    when I click that
    > button the button and the captivate file react.
    > How is this possible, and how can I resolve this?
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • CanI use swf files made w/ Flash 8 that include  FLVPlayBack comp

    I am porting an application from Flash 8 to Flex that
    includes a number of videos (FLV).
    In Flash 8 I am using the FLVPlayBack component to be able to
    include the available skins. In particular the
    MojaveExternalAll.swf.
    I tried to load the swf that inlcudes the FLVPlayBack
    component and the skin, but I only get the video (stopped at the
    first frame and no skin).
    Is there a method to use those skins, or are they equivalent
    video skins in Flex?
    Gilbert

    I am porting an application from Flash 8 to Flex that
    includes a number of videos (FLV).
    In Flash 8 I am using the FLVPlayBack component to be able to
    include the available skins. In particular the
    MojaveExternalAll.swf.
    I tried to load the swf that inlcudes the FLVPlayBack
    component and the skin, but I only get the video (stopped at the
    first frame and no skin).
    Is there a method to use those skins, or are they equivalent
    video skins in Flex?
    Gilbert

  • How to use .mov files for video in Flash...

    Hello-
    I am trying to use .mov files for my Flash videos. I know it uses .mp4/flv/f4v, but I really need to use .movs. I know this works... but how?
    Suggestions?

    unfortunately running it through Adobe Encoder makes it a much, much larger file and the quality goes out the window. i really need to use .mov.
    any suggestions?

  • Flash Game FPS drop in HTML

    I'm developing a game in Flash, and it runs fine in the Flash
    Player. When I open it using the .html file though, the FPS drops
    drastically. The FPS for the .fla is set at 30, but my FPS counter
    in the game rarely goes over 24 (tested on multiple computers). My
    question is if there is something I can do about this - is there
    some kind of setting that needs to be changed, or is it just a
    problem inherant to the web browser?

    Just to anyone who might be having the same problem with lag
    in browser (which seems to be a rampant problem), I seem to have
    found a solution. I was searching around and randomly found a
    comment with someone who used 33.5 fps for the settings, which
    worked for them. So in desperation, I tried the same. Strangely
    enough, it seems to work, but only under certain computer
    configurations. For people using Itel CPUs, running the Flash game
    through Internet Explorer, the game runs at a perfect 30 fps. For
    CPUs from AMD or running in Firefox, the game still lags. Hope this
    helps someone.

  • Macbook Pro 13.3" 2.8G   8G RAM is very hot when playing web base flash game =.="

    I used to play web based flash game, and could open up to 5 different browsers (with the same game) each time with my old notebook 1.8GHz + 4G RAM (Win 7). However, changing to my new macbook pro 13.3 2.8GHz + 8G RAM (OSX Lion), even opening the same flash game with 1 browser. The keyboard will be soon very hot. If open 2 browsers, there will be noisy fan sound and keyboard will become even hotter =.="
    Could engineer in Apple solve this issue??? or any suggestion???

    Mahdi411,
    if Candy Crush is a graphics-intensive game, then your MacBook Pro will consume energy (and generate heat as a side effect) to meet those graphics demands. The fans run quickly to expel as much as heat as possible, so that your MacBook Pro’s components don’t bake. The additional airflow generates more noise.

  • The problem of profiling a multi-thread flash game  using adobe scout cc

    I have a multi-thread flash game code, it can run perfectly. The main swf creates another swf which will connect to a remote server. I can get profiling information of the main swf  using adobe scout cc, but the problem is that I can't get profiling information of another swf ! The scout complains " can't start a session because the telemetry data isn't valid" for another swf. Although some times, the scout does not complain, the Summary Panel of scout provides information“We encountered an error while processing this session: Some of the data we present may not be correct". And the scout log file shows:
    Log file created: 2014/11/20 15:35:08
    11/20/2014 15:35:08.395 Scout starting up.
    11/20/2014 15:35:08.471 InitDNSService failed
    11/20/2014 15:36:47.055 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [100000,200000] is greated than its parent
    11/20/2014 15:36:47.057 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [200000,300000] is greated than its parent
    11/20/2014 15:36:47.058 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [300000,400000] is greated than its parent
    11/20/2014 15:36:47.058 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [400000,500000] is greated than its parent
    11/20/2014 15:36:47.061 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [500000,600000] is greated than its parent
    11/20/2014 15:36:47.062 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [600000,700000] is greated than its parent
    11/20/2014 15:36:47.063 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [700000,800000] is greated than its parent
    11/20/2014 15:36:47.063 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [800000,900000] is greated than its parent
    11/20/2014 15:36:47.064 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [900000,1000000] is greated than its parent
    11/20/2014 15:36:47.064 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1000000,1100000] is greated than its parent
    11/20/2014 15:36:47.064 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1100000,1200000] is greated than its parent
    11/20/2014 15:36:47.065 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1200000,1300000] is greated than its parent
    11/20/2014 15:36:47.065 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1300000,1400000] is greated than its parent
    11/20/2014 15:36:47.065 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1400000,1500000] is greated than its parent
    11/20/2014 15:36:47.066 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1500000,1600000] is greated than its parent
    11/20/2014 15:36:47.066 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1600000,1700000] is greated than its parent
    11/20/2014 15:36:47.066 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1700000,1800000] is greated than its parent
    11/20/2014 15:36:47.067 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1800000,1900000] is greated than its parent
    11/20/2014 15:36:47.067 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [1900000,2000000] is greated than its parent
    11/20/2014 15:36:47.067 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2000000,2100000] is greated than its parent
    11/20/2014 15:36:47.068 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2100000,2200000] is greated than its parent
    11/20/2014 15:36:47.068 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2200000,2300000] is greated than its parent
    11/20/2014 15:36:47.068 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2300000,2400000] is greated than its parent
    11/20/2014 15:36:47.069 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2400000,2500000] is greated than its parent
    11/20/2014 15:36:47.069 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2500000,2600000] is greated than its parent
    11/20/2014 15:36:47.069 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2600000,2700000] is greated than its parent
    11/20/2014 15:36:47.070 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2700000,2800000] is greated than its parent
    11/20/2014 15:36:47.070 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2800000,2900000] is greated than its parent
    11/20/2014 15:36:47.070 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [2900000,3000000] is greated than its parent
    11/20/2014 15:36:47.071 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [3000000,3100000] is greated than its parent
    11/20/2014 15:36:47.071 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [3100000,3200000] is greated than its parent
    11/20/2014 15:46:30.931 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [100000,200000] is greated than its parent
    11/20/2014 15:46:30.933 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [200000,300000] is greated than its parent
    11/20/2014 15:46:30.936 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [300000,400000] is greated than its parent
    11/20/2014 15:46:30.937 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [400000,500000] is greated than its parent
    11/20/2014 15:46:30.937 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [500000,600000] is greated than its parent
    11/20/2014 15:46:30.937 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [600000,700000] is greated than its parent
    11/20/2014 15:46:30.937 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [700000,800000] is greated than its parent
    11/20/2014 15:46:30.938 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [800000,900000] is greated than its parent
    11/20/2014 15:46:30.938 <2896> <telemetryCore.Query> <1> Incorrect data: Memory category 7 for frame stats query over time interval [900000,1000000] is greated than its parent
    I run flash code directly on flash_player_11_7_sa.exe. I think the problem may have something to do with ActionScript Sampler of scout, because I can get the correct profiling information  without ActionScript Sampler.
    But I don't know what the information in the log file means.

    We are using Microsoft SQL Server 2008 . but it's well with MySQL & JBoss

  • Using Chrome's Flash game saves in Firefox

    With the changes made to Chrome recently, I am switching back to Firefox :-)
    That being said, I noticed that my Chrome Flash game saves don't seem to work in Firefox. I have created symbolic links to a single folder for both browsers' Flash game saves. Chrome works fine and pulls up the saved games, but if I try with Firefox, it doesn't read them...nor does it save over the same files.
    Does Firefox do something differently when using Flash game saves?

    While Firefox uses Adobe Flash Player, Chrome uses a version of flash player made by them (called PepperFlash). These two flash players work very differently. I don't think you're going to be able to access saved games from one in another.

  • How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; I also have Microsoft Word installed on the Mac as well.

    How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; none of the options I choose work. I also have Microsoft Office (with Word) installed on the Mac as well.

    Format the external drive as FAT32 or ExFAT. Both computers will then be able to read and write to it.

  • FireFox with adobe flash using a retina macbook pro under win 8.1 64 bit is lagging . when you move the mouse above any flash game / video

    Hi
    I asked this question again and i reported this bug , i am a computer engineer and i tested it with few macbook pro retina laptops , when u use win 8.1 64 bit or 32 bit and install adobe flash under firefox try to play any game in facebook , view video on youtube or use any FLASH video and move the mouse above the screen of the flash game / video / etc , the screen will lag alot .
    under chrome this problem doesnt exist but the screen is blurry in chrome when using retina screen thats why firefox is better , but the problem is annoying .
    i tried to disable hardware acceleration as you suggested still the same problem

    Hi thesoulkeeper,
    Do you have the bug number? We can try needsinfo to ask for some help.

  • Can I use this laptop to download the Firefox install files to a flash drive, so that I can install it on an XP computer that only has Windows Explorer?

    Another computer is running on Windows XP. I don't want to run Windows Explorer on it to search for Firefox so I can install it to use instead. How do I download the necessary files to a flash drive the current laptop where Firefox is the search engine?

    Are you looking for a full version?
    *[https://www.mozilla.org/en-US/firefox/all/ All versions]

  • When I try to play flash games it uses the wrong gpu

    When I try to play flash games it uses my integrated Intel gpu not my dedicated Nvidia one. Other games use the correct gpu, however. Is there any way that I could possibly force flash to use the correct gpu? I can't change it through the Nvidia settings as it is apart of browsers and I can't change browser gpus.

    Unable to find ANY GPU settings in Firefox.
    I don't use IE or Chrome, so I can't say how to even check them.
    Nvidia forums have NOTHING on forcing a browser to use a specific GPU, and I know Flash has nothing in settings to do it.

Maybe you are looking for

  • Advice for clean install of windows 8.1

    I finally figured out how to install windows 8.1 from an 8.1 iso and get rid of Toshiba's bloatware.  The computer ran so much better, however, I could not get the wifi installed and there was another missing PCI driver.  I went ahead and restored ba

  • AR Reserve Invoice Printing

    Hi all, One of our clients needs to see following 3 fields on their Printed Invoices (on both Normal and Reserve) Quantity Ordered Quantity Sent so Far Quantity In the Package Again this must work for both Reserve and Normal Invoices. Would anyone ha

  • Help please-browser problems

    Hi folks: I'm getting an error "http 504 gateway timeout" on some pages. For instance, I do a web search and end up on wikipedia. If the wikipedia page has more pages, I click next, and get the error message. This happens on other sites with multiple

  • The font in the URL address line is too small. How do I make it bigger? My computer screen is already set for maximum size.

    # Question Since Firefox last updated to a new version, the font in the URL address line is too small. How do I make it bigger? My computer screen is already set for maximum size.

  • Can I link this site with my Gmail account?

    <i>(Personal information removed by Moderator. Please read the [[Forum rules and guidelines]] -m)</i> Read above.