Help needed on designing the structure of a flash game

Hi,
I am studying the codes from http://www.emanueleferonato.com/2009/01/16/designing-the-structure-of-a-flash-game-as3-ver sion-part-3/. What I don't get is at level_selection.as. Where does main_menu_button come from? I can't find where it has been created. I only see main_menu, not main_menu_button.
Please help.

The codes in level_selection.as looks like this, but the problem is I cannot find main_menu_button anywhere, except for main_menu.
package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.display.SimpleButton;
    public class level_selection extends Sprite {
        public var main_class:the_game;
        private var level_thumb:level_thumbnail;
        public function level_selection(passed_class:the_game) {
            main_class = passed_class;
            for (var i:int = 1; i<=5; i++) {
                level_thumb = new level_thumbnail(i,main_class);
                addChild(level_thumb);
            main_menu_button.addEventListener(MouseEvent.CLICK, on_main_menu_button_clicked);
        public function on_main_menu_button_clicked(event:MouseEvent) {
            main_class.show_splash();

Similar Messages

  • Help needed in designing the Web Service Interface

    Hi,
    In have a scenario where a client will be sending an XML file , which is a SOAP message to a webservice. I would like to know what the input datatype for this interface would be?
    Is the following correct?
    interface MyWebService{
    public String recieveMessage(String aSOAPMessage);
    Also once I get the SOAP message what is the best way to parse or iterate through its contents.
    Any pointers or examples would be highly appreciated.
    Thanks
    Murtuza

    Hi,
    In have a scenario where a client will be sending an XML file , which is a SOAP message to a webservice. I would like to know what the input datatype for this interface would be?
    Is the following correct?
    interface MyWebService{
    public String recieveMessage(String aSOAPMessage);
    Also once I get the SOAP message what is the best way to parse or iterate through its contents.
    Any pointers or examples would be highly appreciated.
    Thanks
    Murtuza

  • Designing the structure of jsp pages using xml

    how can i design the structure of the jsp using xml file?

    The structure of the JSP? I don't know what that means. Perhaps you can explain why you thought using XML for that would be a good idea, that might help us comprehend the question.

  • Help needed to optimize the query

    Help needed to optimize the query:
    The requirement is to select the record with max eff_date from HIST_TBL and that max eff_date should be > = '01-Jan-2007'.
    This is having high cost and taking around 15mins to execute.
    Can anyone help to fine-tune this??
       SELECT c.H_SEC,
                    c.S_PAID,
                    c.H_PAID,
                    table_c.EFF_DATE
       FROM    MTCH_TBL c
                    LEFT OUTER JOIN
                       (SELECT b.SEC_ALIAS,
                               b.EFF_DATE,
                               b.INSTANCE
                          FROM HIST_TBL b
                         WHERE b.EFF_DATE =
                                  (SELECT MAX (b2.EFF_DATE)
                                     FROM HIST_TBL b2
                                    WHERE b.SEC_ALIAS = b2.SEC_ALIAS
                                          AND b.INSTANCE =
                                                 b2.INSTANCE
                                          AND b2.EFF_DATE >= '01-Jan-2007')
                               OR b.EFF_DATE IS NULL) table_c
                    ON  table_c.SEC_ALIAS=c.H_SEC
                       AND table_c.INSTANCE = 100;

    To start with, I would avoid scanning HIST_TBL twice.
    Try this
    select c.h_sec
         , c.s_paid
         , c.h_paid
         , table_c.eff_date
      from mtch_tbl c
      left
      join (
              select sec_alias
                   , eff_date
                   , instance
                from (
                        select sec_alias
                             , eff_date
                             , instance
                             , max(eff_date) over(partition by sec_alias, instance) max_eff_date
                          from hist_tbl b
                         where eff_date >= to_date('01-jan-2007', 'dd-mon-yyyy')
                            or eff_date is null
               where eff_date = max_eff_date
                  or eff_date is null
           ) table_c
        on table_c.sec_alias = c.h_sec
       and table_c.instance  = 100;

  • I can't see my facebook games on my mac. what app do i need to see the display and play my games?, i can't see my facebook games on my mac. what app do i need to see the display and play my games?

    i can't see my facebook games on my mac. what app do i need to see the display and play my games?, i can't see my facebook games on my mac. what app do i need to see the display and play my games?

    I don't play any Facbook games, but I'm assuming that they are played using your browser (Safari, Firefox, etc.).
    Clinton

  • How to let the character in my flash game make a jump using AS3?

    i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.Hope somebody will give me some advice, Thank you so much!!!

    what's the problem?

  • Help needed in understanding the concept of hierarchical queries

    I really need help in this matter. I have a flafile containing about 4000 rows. It is from my supplier, it's structure is as follows:
    create table Flatfile
    (Pgroup varchar2(30),
    Pclass varchar2(30),
    Manufacturer varchar2(30),
    Article varchar2(30),
    Price Number(6,2));
    Insert into Flatfile Values
    ('Application Software','Database Software','Oracle','Oracle 10G',115);
    Insert into Flatfile Values
    ('Application Software','Database Software','Microsoft','MS SQL Server 2000',200);
    Insert into Flatfile Values
    ('Application Software','Spreadsheet Software','Microsoft','Excel',100);
    Insert into Flatfile Values
    ('Monitor','15"','Acer','Acer 15"" TFT superscreen',199);
    Insert into Flatfile Values
    ('Monitor','15"','Sony','Sony R1500 flat',225);
    Insert into Flatfile Values
    ('Monitor','17"','Philips','Philips Flatscreen',250);
    Insert into Flatfile Values
    ('Monitor','19"','Viewsonic','Viewsonic PLasma Monitor',275);
    Insert into Flatfile Values
    ('Processor','AMD','AMD','FX-55',600);
    Insert into Flatfile Values
    ('Processor','Intel','Intel','P4 3 GHZ',399);
    My goal is to make a hierarchical query with the start with and connect by clauses. From what I have read is that I need to normalize the data of the flatfile.
    How do I achieve a table which I can query so that the query will represent the hierarchy that exists. Namely
    Pgroup
    ++Pclasse
    Application Software
    ++Database Software
    ++Spreadsheet Software
    So a 2-level hierarchy. I'd like to understand this simple concept first. I built on the knowledge that I gain. So the questions are:
    1.What do I need to do to make the table so that I can use a hierarchical query on it?
    2. How should the query syntax be?
    3. Is it also possible to get the data in the hierarchical query sorted asec?
    I would only like to use the simple structures of the start with and connect by clauses first. I've read there are some new additions to 10G. The problem with the examples used by the tutorials is that the tables are already made so that they are suitable for hierarchical queries. I hope to understand it by this example. And take it a step further.
    Sincerely,
    Pete

    Primarily hierarchy query serves to process tree-like structures which RDBMS simulates using through parent-child relation, often in a single table (see famoust
    EMP table where employee can have the manager who is an employee at the same time).
    In your case it could look like:
    SQL> select pgroup, pclass from flatfile;
    PGROUP                         PCLASS
    Application Software           Database Software
    Application Software           Database Software
    Application Software           Spreadsheet Software
    Monitor                        15"
    Monitor                        15"
    Monitor                        17"
    Monitor                        19"
    Processor                      AMD
    Processor                      Intel
                                   Application Software
                                   Monitor
                                   Processor
    12 rows selected.
    SQL> select decode(level,1,pclass,'  ' || pclass), Manufacturer from flatfile
      2  start with pgroup is null
      3  connect by prior pclass = pgroup
      4  /
    DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
    Application Software
      Database Software              Oracle
      Database Software              Microsoft
      Spreadsheet Software           Microsoft
    Monitor
      15"                            Acer
      15"                            Sony
      17"                            Philips
      19"                            Viewsonic
    Processor
      AMD                            AMD
      Intel                          Intel
    12 rows selected.The hierarchy syntax is described completely in the documentation including
    LEVEL and PRIOR keywords.
    As for the ordering question you can use siblings ordering:
    SQL> select decode(level,1,pclass,'  ' || pclass), Manufacturer from flatfile
      2  start with pgroup is null
      3  connect by prior pclass = pgroup
      4  order siblings by 1 desc
      5  /
    DECODE(LEVEL,1,PCLASS,''||PCLASS MANUFACTURER
    Processor
      Intel                          Intel
      AMD                            AMD
    Monitor
      19"                            Viewsonic
      17"                            Philips
      15"                            Acer
      15"                            Sony
    Application Software
      Spreadsheet Software           Microsoft
      Database Software              Oracle
      Database Software              Microsoft
    12 rows selected.Rgds.

  • On what Basis V need to Design the Process Chain in BI7

    Dear All,
    Hope every one having a great time. I am designing the Process Chain for the DTP's in BI7  its for the Attributes load, what things i need to consider while designing  dis chain mean is der any dependency i need to follow suppose der is "material" is an info provider  and it consist of "material type" as attribute, where dis "material type' is also a infoprovider which one should i load first. and how many processes can i assign to start variant n what is the effective way to decide dis. shall i need to consider the Datasource also suppose if the 2 or 3 process r feeding the data from the same Datasource den what i hav to do in BI7.
    Your Contribution will b appreciated
    Thanx in Advance.
    KK

    Hi ,
    There are several schools of thought on how to design your process chain for master data. For us, we load the attributes first, then hierarchies, then run ACR, and then load the texts.
    We have a meta chain (same as a process chain) that executes 2 process chains. The first loads our attibutes, hierarchies and runs the ACR. The second loads the texts. So, theoretically, we have one process chain that loads all our master data.
    Things to consider:
    1. Determine how many batch processes you can execute at one time on the system. This will determine how many infopackages you can have running at the same time (big influence on the design of your process chain).
    2. Determine the order in which you want to update your master data. Some say to update the infoobjects that are attributes of other master data first. Also, some extracts may take longer to execute than others. This may also influence your design.
    3. When connecting the infopackages in the process chain, you will be prompted as to how the connection should proceed (successful, error, or always). In your case, the decision should be always.
    Pls search for the links like this;
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/dc87c1d711f846b34e0e42ede5ebb7/content.htm
    Re: Next step...
    Hope this helps.
    Regards
    CSM Reddy

  • Help needed in overriding the finalize() method!

    Hi
    I need some help in overwriting the finalize() method.
    I have a program, but at certain points, i would like to "kill" a particular object.
    I figured that the only way to do that is to make that object's class override the finalize method, and call it when i need to kill the object.
    Once that is done, i would call the garbage collector gc() to hopefully dispose of it.
    Please assist me?
    Thanks
    Regards

    To, as you put it, kill an object, just null it. This
    will be an indication for the garbage collector to
    collect the object. In the finalizer, you marely null
    all fields in the class. Like this:
    public class DummyClass
    String string = "This is a string";
    Object object = new Boolean(true);
    public void finalize() throws Throwable
    super.finalize();
    string = null;
    object = null;
    public static void main(String[] args)
    //Create a new object, i.e allocate an
    te an instance.
    DummyClass cls = new DummyClass();
    //Null the reference
    cls = null;
    This is a pointless exercise. If an object is being finalized, then all the references it contains are about to cease being relevant anyway, so there's no purpose to be served in setting them to null.
    All that clearing a reference to an object does is to clear the reference. Whether the object is subsequently finalized depends on whether the object has become unreachable.
    Directly calling finalize is permitted, but doesn't usually serve any purpose. In particular, it does not cause the object to be released. Further, calling the finalize method does not consitute finalization of the object. Finalization occurs when the method is called as a consequence of a garbage collector action.
    If a variable contains a reference to an object (say a table), and you want a new table instead, then create a new table object, and assign its reference to the variable. Assuming that the variable was the only place that the old table's reference was stored, the old table will, sooner or later, get finalized and collected.
    Sylvia.

  • Help needed in using the appropriate Trigger

    I have a master detail form.DEPT block is the master block and Employee is Detail block.I need to display the message when user is
    trying to enter the ENAME field in the Employee block(detail) when the DEPTNO in the DEPT block(master) is not equal to 10.
    Messgae should be displayed when user trying to type the value but not when the user navigates into the ENAME text field.
    What is the appropriate trigger that is useful here?
    Thanks.
    GSR

    If the DEPT block is table based in the block's POST-QUERY trigger you can simply set
      if :DEPT.DEPTNO !=10 then
        set_item_proerty('DEPT.ENAME', insert_allowed, property_false);
        set_item_proerty('DEPT.ENAME', update_allowed, property_false);
      else
        set_item_proerty('DEPT.ENAME', insert_allowed, property_true);
        set_item_proerty('DEPT.ENAME', update_allowed, property_true);
      end if;if the block is a non-database one then you can put that code in EMPNAME's WHEN-VALIDATE-ITEM trigger
    Luca
    Don't forget to mark the answer as helpful/correct if it is. please.

  • Help needed in using the DocCheck utility

    Hi
    Can somebody help me to use the DocCheck utility.I need to check that all the java files have the required javadoc tags and they are correct.
    I have downloaded the zip file and I have been giving the following commands
    c:\javadoc -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath c:\svk\jdk1.2.2\bin\doccheck1.2b1\lib\doccheck.jar -sourcepath<full path with the file name>
    But I get the following error message : No package or class specified.
    I also tried giving the following command:
    D:\SegaSource\sega\src\com\sega\account>javadoc -doclet com.sun.tools.doclets.do
    ccheck.DocCheck -docletpath d:\jdk1.3\doccheck1.2b1\lib\doccheck.jar User.java
    But I get the following message:
    Loading source file User.java...
    Constructing Javadoc information...
    javadoc: warning - Import not found: com.sega.account.address.Address - ignoring
    javadoc: warning - Import not found: com.sega.account.icon.Icon - ignoring!
    javadoc: warning - Import not found: com.sega.common.DateUtil - ignoring!
    javadoc: warning - Import not found: atg.nucleus.GenericService - ignoring!
    javadoc: warning - Cannot find class com.sega.account.icon.Icon
    javadoc: warning - Cannot find class com.sega.account.address.Address
    javadoc: warning - Cannot find class com.sega.account.MasterManager
    7 warnings
    please help
    Thanks
    SVK

    I have never ran the DocCheck from the command prompt, so I really don't know how to do it, but I do run it succesfully using ant (build tool from apache - jakarta, if you use tomcat you already have it installed).
    So.. if you do use ant.. this will help:
    <target name="doccheck" depends="prepare">
         <javadoc
              packagenames="${packages}"
                    destdir="${doccheck.home}"
              doclet="com.sun.tools.doclets.doccheck.DocCheck"
              docletpath="${doccheck.path}" >
              <classpath refid="project.classpath"/>
              <sourcepath refid="project.classpath"/>
         </javadoc>
    </target>If you don't use it.. I guess I was of no help, sorry.
    Ylan

  • Need to design the database design to support Chinese language

    Hi,
      can anybody give me suggusstion to redesign the SQL Server 2008 R2 database with chinese language support for existing database with varchar datatype (Non- Unicode Data Type)
    Thanks
    Pari

    You have to use NVarchar. Here is the script. During Select also you need N in the string
    set nocount on
    go
    USE master;
    GO
    IF DB_ID (N'MyOptionsTest') IS NOT NULL
    DROP DATABASE MyOptionsTest;
    GO
    CREATE DATABASE MyOptionsTest
    COLLATE Chinese_Taiwan_Stroke_CI_AS;
    GO
    use MyOptionsTest
    go
    IF OBJECT_ID('jj1') IS NULL
    begin
    create table jj1 (name nvarchar(45))
    end
    go
    go
    insert into jj1
    select N'我家己人有淡薄無爽快。'
    insert into jj1
    select N's省城话; t省城話'
    insert into jj1
    select N'微软数据库'
    insert into jj1
    select N'你叫什么名字?'
    insert into jj1
    select N'歡迎!/ 不用謝!/ 不客氣!'
    insert into jj1
    select N'我想18號坐飛機到倫敦'
    select * from jj1
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Hp needs to design the following else you are gonna get left behind...

    I have used a lot of hp products but am now in search of what I ideally need and I find myself going to other companies and I think that is sad so being fond of  HP products..... loyalty counts....I think CEOs need to go out there and listen to the customers what they want.   Would your child not want quality and ease of use. You gotta listen to those who make a reality check....like the following.......today's need..it is performance and ease of use with lot of easy functions.... cut the crap and
    come up with the following ....
    laptop:
    sandy bridge processor....no touchscreen but 1920X1200 display...fingerprint reader and removable touchpad.....illuminated keyboard.... fantastic graphics card 680... 12 gb ram as standard max 24   todays applications need more.     256 ssd....forget 128...a superb camera   2m pixel....you have a winner....and you should give the option to the customer to go higher on the screen display like apple's retina display resolution.
    If you look at the best.....the follow them....
    you need to design a tablet like the apple ipad 3 4g 64gb and design a joining keyboard like that of logitech ultrathin keyboard for ipad 2/3....you can do better by illuminating that keyboard.....you need to do things that are ahead of the game ......I know it makes sense but the question is..........is  this making sense to you and is there a desire to build good quality stuff......what's HP going to do now...canon's printing products are getting way ahead..........get a move on......This is a new ballgame here......and I am not a ordinary jack ass siiting here blowing my time. In fact I write from an HP product....there is nothing in the market like the Hp 2310ea....thus the loyalty and screw the masters degree from A great Institution and all that crap....though education counts.....its the experience of sitting here wanting the ideal product. I have given you what is an ideal product.....quality has to be there like samsung apple and toshiba.... please pass this onto the product innovation team ....or are they sitting lame ducks.....if so contact Meg and tell her to GET ON THE BAND WAGON.......ELSE YOU ARE TOAST     as a matter of fact the capitalised should be slogan at HP...people will get a move on...
    paresh

    I assume you have a 2008-2009 inbody MBP.
    What OS are you using?
    In Disk Utility, what does it say next to S.M.A.R.T. status?
    Go to iFixit.com and look up your exact model and determine if they have the correct Optical Drive available and the instructions for installing it.  (They probably will)
    If you are handy, open your MBP and with the installation instructions from iFixit, take out your Optical Drive.  Open it up (I think there should be 4 screws that will have to be removed) and remove the Disk.  With a couple of cans of good quality non-residue electrical cleaner and a soft artists brush, clean out the hot chocolate residue from the Optical drive.  Put it back in and if you are very lucky, it may actually work.  If not, get a replacement from iFixit or any body else that sells them.
    Hints.  Use good quality tools.  The iFixit website should tell you what tools you will need.  Do this on a clean towel so that any screws that you drop will not bounce away.  Keep all of them organized.  Before you take out any screws, mentally prepare your self for what has to be done and in what order.
    Let me know how you do.
    Ciao.

  • [SOLVED] Help Needed to find the name of the openbox theme

    Can anyone help me to find the name of the openbox theme ?.
    Thank you.
    It's Numix
    Last edited by bhante (2015-01-07 11:13:12)

    That looks a lot like the Numix GTK theme...

  • Need to know the simplest workflow for Flash CS5 to iPad

    Hi There,
    Can you please tell me the simplest workflow for Flash CS5 to iPad.
    I want to put my company's flashCS5 made interactive portfolio(with FLV video showreel) into ipad to show my clients.
    What is the simplest way?? I am not familier with codes or programming.
    Can you help me guys??
    -Sahid
    I am using PC.

    It doesn't matter whether you use a MAC or a PC to create the content - the iPad simply will not accept it. It was designed with exactly that purpose in mind. That's why I advised you to get rid of it. Stick to PC and you'll have zero problems.
    Just a hint - a Sony Vaio (the 11 " models with carbon fiber casing) look even more prosperous, are the same weight, and since they run Windows OS will not have the typical Apple limitatations
    Emil Georgiev - Flash & Web Design

Maybe you are looking for

  • HP HDX 16 (p/n: NK133AV) laptop with the built-in TV Tuner and need a replacemen​t TV antenna

    I have an HP HDX 16 (p/n: NK133AV) laptop with the built-in TV Tuner and need a replacement TV antenna.. I've looked all over the HP support site for a replacement antenna, but cannot find one. Would someone please help me to find one that I can purc

  • User-Exit/BADI/BTE Search

    Guys, Got fed-up trying all the other programs which (unsucessfully) try to find user-exits etc. Here is my attempt... Any comments would be most welcome.. *& Report  ZPJA_PM002 (V2)                                            &* *& Text Elements:    

  • Software and Hardware Requirement for Management Agent

    Can any one help me to find out the software and Hardware requirements for Oracle 10g Management AGent for various platforms.

  • New tab strib in SC item detail

    Hi all, Maybe we have somebody who can answer this question. i have this problem. I want to add in SRM in a View on a shopping cart on item level, 1 additional tab strip. How it is possible ? Are there any BADIs that can be used. Which is the best wa

  • Photoshop CS5.1 Multiple Brush Preset Import

    Hi there, I assumed that simply copying my brushes to C:\Program Files (x86)\Adobe\Adobe Photoshop CS5.1\Presets\Brushes would mean that these files would now be available to me. However, this is not working for me. Am I copying my brushes to the inc