How do i create a Count for the no. of images displayed on stage

i am a total newbie in flash ! & currently making a simple mcq quiz.
each stage will have three choices of answers (A/B/C)
every correct answers will be displayed an image :
var myQ1a:URLRequest=new URLRequest("tick.png");
in the end, how can i count the number of images displayed in the overall flash and display it.
or.. perhaps you have other options on how can i display the scores.

Hi.
here's my code :
stop();
aa1.addEventListener(MouseEvent.CLICK, ona1Click);
bb1.addEventListener(MouseEvent.CLICK, onb1Click);
cc1.addEventListener(MouseEvent.CLICK, onc1Click);
next1.addEventListener(MouseEvent.CLICK, onNext1Click);
home1.addEventListener(MouseEvent.CLICK, onHome1Click);
var Q1a:Loader;
var Q1b:Loader;
var Q1c:Loader;
var Q1next:Loader = new Loader();
var Q1home:Loader = new Loader();
//the name of the function has to match what you're calling from the event listener
function ona1Click(evt:MouseEvent):void {
Q1a = new Loader();
bb1.removeEventListener(MouseEvent.CLICK, onb1Click);
cc1.removeEventListener(MouseEvent.CLICK, onc1Click);
var myQ1a:URLRequest=new URLRequest("wrong.png");
Q1a.load(myQ1a);
addChild(Q1a);
Q1a.x=320;
Q1a.y=180;
function onb1Click(evt:MouseEvent):void {
Q1b = new Loader();
aa1.removeEventListener(MouseEvent.CLICK, ona1Click);
cc1.removeEventListener(MouseEvent.CLICK, onc1Click);
var myQ1b:URLRequest=new URLRequest("tick.png");
Q1b.load(myQ1b);
addChild(Q1b);
Q1b.x=320;
Q1b.y=260;
function onc1Click(evt:MouseEvent):void {
Q1c = new Loader();
aa1.removeEventListener(MouseEvent.CLICK, ona1Click);
bb1.removeEventListener(MouseEvent.CLICK, onb1Click);
var myQ1c:URLRequest=new URLRequest("wrong.png");
Q1c.load(myQ1c);
addChild(Q1c);
Q1c.x=320;
Q1c.y=340;
//next1.addEventListener(MouseEvent.CLICK, onNext1Click);
function onNext1Click(evt:MouseEvent):void {
if(Q1a)
removeChild(Q1a);
if (Q1b)
removeChild(Q1b);
if(Q1c)
removeChild(Q1c);
gotoAndPlay(2);
//home1.addEventListener(MouseEvent.CLICK, onHome1Click);
function onHome1Click(evt:MouseEvent):void {
gotoAndPlay(17);
this code is on the 1st frame. this will go on till the 15th frame. i wonder where i can put the codes you've given me ..

Similar Messages

  • Create a counter for the rows in a table using script editor?

    Hi ,
    I want to add afield in a particular table  with first field is its serial number . How to use scripting editor to fill the serial number ?
    How to create a counter ?
    Edited by: Rajan.Dexter9 on Jan 30, 2012 9:40 PM

    Hello Rajan,
    Create a field in the table and name it as 'SERIAL'.  Create a variable called 'count' with default value as 0.  Now in script editor, for javascript language and calculate event, write the following script.
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    for (var i=0; i <= fields.length-1; i++)
         if (fields.item(i).name == "SERIAL")
              count.value = count.value + 1;
                     this.rawValue = count.value;     

  • How can I create a Title for the worksheet in Discoverer Plus

    Dear members,
    I am using discoverer 4i Plus to create workbooks. I am not finding an option to insert a title for the worksheet. In Discoverer Desktop we have a separate option to insert or edit a title. I am not sure how can we create titles in Plus.
    Any suggestions.
    Thanks
    Sandeep

    Hi,
    I am not able to login to Discoverer Desktop Using my Applications username. My Desktop Version is 4.1.37. The same username works in Discoverer 4i Plus and i can create workbook there.
    I went to Tools--->Options--->Connections and checked the option connect to both standard and application EUL's and while i am logging in i checked the small box which comes in the login screen. I do not know why this happening.
    I am also able to login as the database user in Desktop but not as an application user.
    I want to login into desktop as an application user and create a template workbook which has title and then assign that workbook to a particular responsibility since creating title cannot be done in Plus.
    I am not sure what's going wrong here because the Desktop works for database user but not for an application user. Any comments are highly appreciated.
    Thanks
    sandeep

  • How can I create a log for the dice roll generator on my website?

    Here is my website: http://gator789.hostgator.com/~stillman/index.html
    I want to create a log for each time the roll button is clicked to generate a random image of a six-sided die on my website. I was thinking maybe a MySQL database with PHP would get me what I want? I have no idea how I would start setting this up though. I don't want to sound to pushy here, but I would also like to have a form setup above the roll button for name details, etc. How would I go about doing this?

    I don't understand why you need a log to generate a random number.  The logic behind a random javascript image generator with a math function is all you need.  Put your gif images into an array and let the script do the rest.
    http://eposic.org/samples/dice/part1.php
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How do I create individual URL for the pages within an Adobe Muse site?

    Could someone tell me how I can create separate URL addresses for each page within a site? I think it's in Page Properties, but I can't figure out how to do it.

    Your website is actually hosted at http://kcronaphotography.free.fr
    If you visit that URL, clicking on the other pages will change the URL displayed in the browser.
    Your individual pages are available at URLs like: http://kcronaphotography.free.fr/about.html
    www.karincrona.com is just a wrapper page containing a frameset that hosts your real pages in frames.
    It appears that this page was generated by a tool called "ORT - Ovh Redirect Technology".
    Displaying the pages inside a frame will not change the URL displayed in the web browser.
    If you'd like your page to have nice URLs like www.karincrona.com/about.html, you'll need to get rid of the frame wrapper, and move the domain name to the webhost where your pages are being served.
    If you want to keep the wrapper page, you may want to investigate if the ORT tool you're using provides any way of getting a URL to an individual page to show in the browser bar.

  • How do i create keyboard shortcuts for the different markup colours?

    I want to be able to quickly highlight with different colours in the preview app.

    You didn't read my post. You merely read your preconceived notion of what I posted.
    If you want to pop up menus and type letters, turn on the functions to activate the menus in the Keyboard & Text Input of Keyboard Shortcuts.
    You can then activate the menus, type letters of the menu to select the one you want, then type letters for the menu items to select those. Once selected, arrow down or space to drop the menu or activate a hierarchical submenu.
    These items allow you to activate the various menus, Dock, toolbars, etc.
    They are default to Function keys (in order), but I changed mine to things that make sense.

  • How to create search path for the file on the desktop..

    hello experts..
          I have used gui_upload module to upload the data from flatfile to the internal table, in that how can i create search path for the file selection in the selection screen, also please help me the code to update the ztable.
    thanks

    HI
      If iam not wrong you want to select a file from a location that you don't know so if this is ur problem then use the function module
    F4_FILENAME
    this FM helps to locate and select the desired file from the system.
    Sample code that you can check is
    How to get windows filename
    PARAMETERS: lv_file LIKE rlgrap-filename.
    Method 1
        CALL FUNCTION u2019KD_GET_FILENAME_ON_F4u2019
        EXPORTING
        MASK = u2019,.txt,.*u2019
        STATIC = u2019Xu2019
        CHANGING
        FILE_NAME = LV_FILE.
    Method 2
    CALL FUNCTION u2019F4_FILENAMEu2019
    EXPORTING
             program_name = syst-cprog
             dynpro_number = syst-dynnr
             field_name  = u2019 u2019
         IMPORTING
             file_name   = LV_FILE.
    Regards
    Pavan

  • Creating inbound delivery for the purchase order line items

    Hi Experts,
    Please let me know how can I create inbound delivery for the purchase order line items?  Say, I have a purchase order with 5 line items in it.  I wanted to create an inbound delivery for only 2 line items at this point of time.  Which SAP Standard transaction I have to use and what all  data I need to populate?  I would appreciate any help on this and will reward the right answer.  Please let me know.
    Thank you in advance.
    with regards,
    Muthu Ganapathy.

    Hi,
    While creating the inbound delivery (VL31N), intially all the items will be shown, see the advance shipping notfication - from the vendor for which he has send confirmation & rest items you can delete simply & save. & next time when the vendor sends rest advance shipping notifcation (confirmation), you can receive them.
    Hope this answers your query.
    Regards
    Irfan.

  • How would I create buttons states for MCs I am creating abstract MCs

    I am creating a generic website that would have abstract MCs that would load jpg or TXT fields for the user interface to allow for fast updates to the site. The MCs that would make up the user interface would be empty and load things into it using XML or PHP later on. How would I create button states for the user interface MCs.  I started creating a function for every MC button state but I thought there might be a more efficient way.
    would creating a array help in this case?
    and is using URLRequest the way to link to pages with in a movie well the flash movie that is the site it's self?
    /*---------------------------- THE START OF MY ACTION SCRIPT ------------------------------*/
    var waywardLogo_mc:MovieClip = new MovieClip;
    var theCollection_mc:MovieClip = new MovieClip;
    var newsPage_mc:MovieClip = new MovieClip;
    var whatthe#$@!doyouwant!?_mc:MovieClip = new MovieClip;
    /*---------------------------- onOver ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    newspage_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    /*---------------------------- onOut ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    newspage_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    /*---------------------------- onClick ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.CLICK,onClick);
    theCollection_mc.addEventListener(MouseEvent.CLICK,onClick);
    newspage_mc.addEventListener(MouseEvent.CLICK,onClick);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.CLICK,onClick);
    function onOver(event:MouseEvent):void
    event.target.alpha = .5;
    function onOut(event:MouseEvent):void
    event.target.alpha = 1;
    function onClick(event:MouseEvent):void
    event.target.URLRequest("");
    /*---------------------------- onover, onOut, onClick buttonModes ------------------------------*/
    waywardLogo_mc.buttonMode = true;
    theCollection_mc.buttonMode = true;
    newspage_mc.buttonMode = true;
    whatthe#$@!doyouwant!?_mc.buttonMode = true;

    click insert/new symbol, tick movieclip, assign a name, tick export for actionscript and in the class textfield enter a name (say ButtonClass) and click ok.
    attached to the first frame of your new movieclip, type stop() in the actions panel.  put whatever graphic you want on-stage for your button's up stage.  create another keyframe, label it "over" and put whatever graphic you want for button's over state on-stage.
    in a layer above those graphics, you'll probably want to add a dynamic textfield so each of your buttons can have different text.  assign the textfield and instance name (say tf) and extend its timeline to the last frame of your movieclip button.
    then when you want to create a button, on your timeline you can use:
    var b:ButtonClass=new ButtonClass();  // these two lines need to be entered for each button
    buttonhandlerF(b,someX,someY);
    //-------code between dotted lines only needs to be entered once no matter how many buttons you add --------------------
    function buttonhandlerF(b:ButtonClass,x:Number,y:Number){
    b.addEventListener(MouseEvent.MOUSE_OVER,overF);
    b.addEventListener(MouseEVent.MOUSE_OUT,outF);
    b.x=x
    b.y=y
    addChild(b);
    function overF(e:MouseEvent){
    e.currentTarget.gotoAndStop("over");
    function outF(e:MouseEvent){
    e.currentTarget.gotoAndStop(1);
    //-------code between dotted lines only needs to be entered once --------------------
    // you'll also want to create a click listener and listener function
    the code between the dotted lines is amenable to being added to a ButtonClass.as class file if want to expand your capabilities.

  • How can I create a URL for a PWA for MS Project Server 2010 project file that includes the view?

    Hi, this question has been answered for 2013. The answer here suggests that it can be done in  2010.
    See:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/3affdc4f-36bf-4381-8b75-27c73465efd4/action?threadDisplayName=how-can-i-create-a-url-for-a-pwa-for-ms-project-server-2013-project-file-that-includes-the-view
    Who knows how?
    Regards
    Sander

    Hi Sander,
    As far as I tested it, it is not possible either with PS2010. The URL only contains the PDP name and the projUID.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How to create a validation for the project coding mask

    Hi,
    Would just like to ask how to create a validation for the project coding mask wherein the WBS elements hierarchy will be checked against the template saved. For example,
    project coding mask is XXXX-XXXXX-XX-X-X-X-00-X
    mother WBS should be XXXX-XXXXX-X and lower level WBS would be XXXX-XXXXX-XX.
    The validation should not allow a mother WBS to be XXXX-XXXXX-XX.
    How can we go about this?

    Hi Jacquiline Bersamin,
    You can use validation with the combination of the level and the coding mask.
    In the validation:
    Pre requisite: WBS level = 1
    Validation: Prps-posid = prps-posid :1-12:
    Message : Error
    If required you can give the parameters for your detail error message.
    Please let me know if this does not work.
    Thanks
    Regards
    Srinivasan Desingh

  • How to create a password for the pdf file

    In Adore Acrobat XI, how to create a password for the file? The help states going to Tools Menu and clicking on Protection tab - but there is no such option. In the file - properties - security screen, it shows the security details but does not allow to edit it.

    I think you may be mixing up two different products: Adobe Reader (free), and Acrobat ($$).

  • HOw do I create a ringtone for iphone5 using the new itunes

    How can I create a ringtone for my iphone 5 using the newest version of itunes. Thanks

    This article takes you through the process
    http://www.simonblog.com/2012/12/01/itunes-11-how-to-create-free-ringtone-and-te xt-tone/

Maybe you are looking for

  • Issue in creation of GL masters

    Dear experts, I am having an issue in creation of General Ledger Master Record. We have three company codes and all are using the same chart of accounts. Some of the General Ledgers are being used only by one company code and not by other twos. So I

  • Lumia 920 broken glass

    My white lumia 920 screen broke when it slipped from my breast pocket and crash landed on a hard surface, please what can i do cause am missing my phone so much already and it was is my meeting hub with my clients and want something done fast. bought

  • Create multiple pdf files and open them at once from java application

    I came across a very unique problem , i am hoping some one could help me out with that . I am using itext to create pdf files , i have filtered some records (preferably i can say around 90) which has the option to open pdf for individual record. Now

  • Vendor evaluation criteria rejects/complaints

    Hi,     I have configured the vendor evaluation to look at the rejection/complaints sub criteria with the scoring method as 8 = Automatic Determ. from Quality Stat.: Quality Notification. The first time I create a notification, the score drops from 1

  • Will not open web address from browser; have to use google window

    when i type in a web address it will not open.. just sits in the window.. have to go to the google window and it will open the address. this just started happening and not sure why