Need help with as3 for pop-up window

I'm nearing the end of the semester in my Flash Animation class. I learned things very simple AS3, extracted etc. code. I'll try to find the actionscript code to encode a simple popup window, but have not found a clue.

Here's what I want to do... I have a white box with a certain guy on the stage. When a person clicks on the white box, I want a popup to open which is larger, which contains the same type but bigger. This box will have an x, so it may be rejected. I don't want to do it in html, only in Flash CS5. I don't want a browser window, I want just a larger version of the smaller area. I know how to build the two boxes, do not know how to write the code. I know there will be a click on the mouse event listener, and then I'm lost.

Can someone help with the code that I could use? It would be most appreciated.

It would be something along the lines of... (using the names of instance from your description)...

Popup.Visible = false;

whiteBox.addEventListener (MouseEvent.CLICK, showPopup);

function showPopup(evt:MouseEvent):void {}

Popup.Visible = true;

}

popup.popupX.addEventListener (MouseEvent.CLICK, hidePopup);

function hidePopup(evt:MouseEvent):void {}

Popup.Visible = false;

}

Tags: Adobe Animate

Similar Questions

  • Need help with AS3!

    Hello! I need help on as3. I'm still a noob at this stuff.

    I'm doing a simple game. You must click on the bugs that moves randomly to the bottom of the screen. When you click on the bugs, they will become invisible

    and if none of the bugs through the bottom of the screen, you lose 1 live.

    But right now, im of the problems with the script. When I click on the bugs and she go, life is further reduced. I don't understand.

    And theres also error coming out. "TypeError: Error #1009: cannot access a property or method of a null object reference."

    " to buh_fla::MainTimeline/tekan().

    Here is the script:

    ===================================

    Stop();

    import flash.events.Event;

    import flash.events.MouseEvent;

    var iscore:int = 0;

    score. Text = iscore.toString ();

    var health: int;

    health = 3;

    trace (Health);

    for (var i: int = 0; i < 10; i ++) {}

    var f: bug = new bogues();

    addChild (f);

    var fn = Math.round (Math.random () * 2) + 1;

    f.gotoAndPlay (fn);

    f.x = Math.random () * stage.stageWidth;

    f.SP = Math.random () * 7;

    f.addEventListener (Event.ENTER_FRAME, animate);

    f.addEventListener (MouseEvent.CLICK, klik);

    }

    function klik(e:MouseEvent) {}

    e.target.visible = false;

    iscore += 1;

    score. Text = iscore.toString ();

    }

    function animate (e: Event) {}

    e.Target.y += e.target.sp;

    if(e.Target.y > stage.stageHeight) {}

    -health;

    trace (Health);

    e.Target.y = - 20;

    e.Target.Visible = true;

    {if(health==0)}

    gotoAndPlay ("gameover")

    }

    }

    }

    ============================================

    You lose life because you are not to remove bugs or their listener but only making them invisible

    function klik(e:MouseEvent) {}

    e.Target.Visible = false;

    iscore += 1;

    score. Text = iscore.toString ();

    to this code

    var delbug = e.currentTarget
    delbug (Event.ENTER_FRAME, animate) .removeEventListener;

    removeChild (delbug)

    }

    --

    http://ww.darshanrane.com

  • Need help with coding for HTML5 with emergency Flash video

    Hello, need help with my coding in Dreamweaver CS5.5 for HTML5 with emergency Flash video. Not sure if the coding is correct. Do I need any other JavaScript etc.?

    code.jpg

    Another thing is that you don't have to include SWF as aid manual if you provide all 3 ogv, webm & mp4 video formats as one of these formats will certainly be played in any browser that is fully compatible HTML5.

    Still one thing you could do if you don't mind hosting your video on Youtube is to get an embed code for Youtube - in this way, you don't have to convert all the files. YouTube will do it for you and it will play on devices of HTML5 as well as supports Flash player of relief for devices that cannot play HTML5.

  • Need help with license for Windows store

    Hello! I have problem with Windows store, he says he has a problem with the license.

    It happened because I tried to upgrade my Windows 8.1 to Windows 10 and I've failed at about 20 times. Servers of M$ have been save this issue but they have not registered my fails so now servers $ M think I use illegal license for my laptop. My laptop is Asus F55A and I can not use the store because M$ servers does not allow me too.

    Please Microsoft something about it.i have legal Windows but probably your servers register this as illegal because I repeatedly upgrading to windows 10 who never worked and your servers did not know my fails.

    Please answer.

    Error with Windows store code "this application failed to start because of a problem with its license. Please try again later.

    Any help will be for me!

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you are facing problems with Windows.

    I suggest you to refer to the suggestions of B Abid replied on 29 October 2012 and check if that helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_store/unable-to-open-Windows-8-store/8a90d67e-9FEE-4B1F-A549-e702d0b207f4

    Hope that the information provided is useful. Let us know if you have questions related to Windows, we will be happy to help you.

  • Need help with the error Code 80244019 Windows Update

    From: Doug

    I get code 80244019 whenever I try to use Windows Update. I tried to change the DWORD in regedit nothing helps... Norton has recently found and 'resolved' trojan.zlob in 128 files in the registry, 21 cases (10 of which were in system32) and 1 browser cache. Whenever I try to use IE to go to http://windowsupdate.microsoft.com I am redirected to msn.com.

    Any advice or solutions would be welcome.

    From: PA bear [MS MVP]

    Chances are that ZLOB was not completely removed and she was accompanied by infections Vundo and SDBot variant, all protected by a rootkit infection. You are going to need specialized assistance to clean this machine,

    Unexplained computer behavior may be caused by deceptive software

    http://support.Microsoft.com/kb/827315

    Run a check of /thorough/ for hijackware, including post your hijackthis on a proper forum log.

    Verification / help with Hijackware

    http://aumha.org/a/parasite.htm

    http://aumha.org/a/quickfix.htm

    http://aumha.NET/viewtopic.php?t=5878

    http://wiki.CastleCops.com/Malware_Removal_and_Prevention:_Introduction

    http://MVPs.org/winhelp2002/unwanted.htm

    http://inetexplorer.MVPs.org/data/prevention.htm

    http://inetexplorer.MVPs.org/tshoot.html

    http://www.MVPs.org/sramesh2k/Malware_Defence.htm

    http://defendingyourmachine2.blogspot.com/

    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    When all else fails, HijackThis v2.0.2

    (http://aumha.org/downloads/hijackthis.exe) is the tool to use.

    It will help you to identify and remove any hijackware/spyware with

    assistance of an expert.  * Post your log to

    http://aumha.NET/viewforum.php?f=30,

    http://forums.Spybot.info/forumdisplay.php?f=22,

    http://CastleCops.com/forum67.html, or other appropriate review bodies

    by an expert in the field, not here.* *.

    If the procedures look too complex - and there is no shame in admitting

    isn't your cup of tea - take the local machine, good reputation and

    independent computer repair shop (i.e., not BigBoxStoreUSA).

    --

    ~ Robear Dyer (PA Bear)

    Another response of the community of Windows Vista discussion groups

  • Need help with keyframes for start and stop an effect

    I use a mask and blurred for a few seconds. I understand that I must use keyframes to indicate when to start and stop this effect in the video, so that the same area is not trimmed for video full.

    The problem is, I can't find help by correctly setting the keyframes. When I opened the menu keyframes in the effect, it seems that I must together for both the mask took and the blur effect. I did... to start and stop at specific times, but the rest indeed throughout the video, so of course miss me something by using keyframes. The manual to create effects is not useful. I need assistance with keyframes as what I'm doing is clearly not working. Help!

    If the mask does not move that you don't have to set the keyframe. For the blur, click the stopwatch next to 'bluriness' add keyframes as below, the Reds don't blur and blue those maximum blur this fade effect.

  • Need help with divers for ASUS Intel Socket 775 Motherboard,

    Need help to locate drivers for this motherboard, my external USB hard drives do work not be recognized, no drvers for SM Bus controller, link controller SATA Silicon Image Sil 31 or 32,.

    To help you to download the drivers for your computer, you can check out the link below. You can also contact the Asus Support using the link below.

    http://support.ASUS.com/download/download.aspx?SLanguage=en-us XD

  • Need help with the product key of window 8

    So my phone got wet by the rain and, fortunately, only my internal hard drive has been damaged. I went to the mall to buy a new hard drive and had it fixed by a pc repairman. However, they told me that I have to reinstall my windows and says that they can install a pirated copy of windows 8 (I bought my laptop with a pre-installed windows 8 in there), which I have allowed because of my urgent need for the laptop and the lack of money to buy a new installer. At first, I thought that my problem has been resolved and I can reuse the laptop. However, after a few days of use, windows crashes always with an error code driver_power_state_failure and don't constantly back running after a few minutes. So, I thought that what I have to do is to find my product key 8 original windows and reinstall windows 8. Someone told me that I can still install it by using the product key in my motherboard

    My question is how I'll be able to restore / reinstall windows 8 by using the original product key? And is it possible to recover the product key?

    PS: when it has been damaged by the rain, I've had my laptop checked by some computer know-how and told me that only the hard drive has been damaged and all the other parts still work fine. Once it was repaired, I was able to usevit again for a few days until the crash/restart happened.

    This error is not caused by the missing key, but because you have a pirated copy of the operating system, we can not help you.

  • Need help with drivers for Satellite P205-S6267

    I think I have all the drivers for my laptop, but I can't control the brightness of the screen or access capabilities of standby power. I downloaded tons of drivers power saver, and none of them work. Someone please help. I am running XP and the only driver I found is for Vista. I've been at this for two days... Please write to me at:

    [email protected]

    Hello

    Just FYI: whenever you need a driver download from http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_home.jsp?

    As you can see your model of laptop is not yet supported for WXP and I guess you have to wait because you need precisely designed these tools and utilities for your laptop model. In the meantime, I think you can live without brightness control option. In my opinion, it is not so important. Also try to use the Windows power saver options. I'm sure you can use them up to what Toshiba offer WXP tools and utilities.

  • Need help with a DMP file. Windows XP

    Hello guys!

    Need your help impeccable with a dmp file? What is the problem causing blue screen?
    Thank you for the kind help!

    Hello Molphyr,

    The first discharge seems to have been caused by viahduaa.sys and it should be updated.  My comments on the discharge are in bold:

    *******************************************************************************
    *                                                                             *
    * Bugcheck analysis *.
    *                                                                             *
    *******************************************************************************

    Use! analyze - v to obtain detailed debugging information.

    100000 1 error checking, {a824a000, 2, 0, acc5e0d8}

    Probably caused by: viahduaa.sys (viahduaa + 280d 8)<-- debugger="" suspects="" this="">

    Follow-up: MachineOwner
    ---------

    0: kd >! analyze - v
    *******************************************************************************
    *                                                                             *
    * Bugcheck analysis *.
    *                                                                             *
    *******************************************************************************

    DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1)
    An attempt was made to access an address pageable (or completely invalid) to a
    application interrupt level (IRQL) that is too high.  It is usually
    caused by drivers using a wrong address.
    If the kernel debugger is available, get a stack backtrace.
    Arguments:
    Arg1: a824a000, memory referenced
    Arg2: 00000002, IRQL
    Arg3: 00000000, value 0 = read operation, 1 = write operation
    Arg4: acc5e0d8, address memory

    Debugging information:
    ------------------

    READ_ADDRESS: a824a000

    CURRENT_IRQL: 2

    FAULTING_IP:
    viahduaa + 280d 8
    acc5e0d8 3b0f cmp ecx, dword ptr [edi]

    CUSTOMER_CRASH_COUNT: 1

    DEFAULT_BUCKET_ID: DRIVER_FAULT

    BUGCHECK_STR: 0XD1

    LAST_CONTROL_TRANSFER: from acc6134c to acc5e0d8

    STACK_TEXT:
    WARNING: Information not available stack unwind. Sequence of images may be wrong.
    acc6134c 80551384 a8249fe0 00000020 a8249fe0 viahduaa + 0x280d8<---driver is="" at="" top="" of="">
    805513a 8 acd8d676 847bcd58 a8249fe0 a9abcc80 viahduaa + 0x2b34c
    805513d 0 80551401 00000020 80551400 portcls acd8d945! CPortPinWaveCyclic::Copy + 0 x 56
    80551410 acd877bf 00024fa0 8055c0c0 ffdff000 portcls! CPortPinWaveCyclic::RequestService + 0 x 298
    80551428 80545ebf 847 4238 4228 portcls 00000000 847c c! CServiceGroup::ServiceDpc + 0x2a
    8055be60 80551440 ffdffc50 00000000 8055be60 nt! KiRetireDpcList + 0x61
    80545da4 80551450 0000000e 00000000 00000000 nt! KiIdleThread0
    80551454 00000000 0000000e 00000000 00000000 nt! KiIdleLoop + 0 x 28

    STACK_COMMAND: kb

    FOLLOWUP_IP:
    viahduaa + 280d 8
    acc5e0d8 3b0f cmp ecx, dword ptr [edi]

    SYMBOL_STACK_INDEX: 0

    SYMBOL_NAME: viahduaa + 280d 8

    FOLLOWUP_NAME: MachineOwner

    MODULE_NAME: viahduaa

    Nom_image: viahduaa.sys

    DEBUG_FLR_IMAGE_TIMESTAMP: 4a24e854

    FAILURE_BUCKET_ID: 0xD1_viahduaa + 280d 8

    BUCKET_ID: 0xD1_viahduaa + 280d 8

    Follow-up: MachineOwner
    ---------

    0: kd > lmvm viahduaa
    start end module name
    acc36000 acd85900 viahduaa T (no symbol)
    Loaded symbol image file: viahduaa.sys
    Image path: viahduaa.sys
    Image name: viahduaa.sys
    Timestamp: Kills Jun 02 03:52:36 2009 (4A24E854)<--- driver="" from="" 2009-="" should="" be="">
    CheckSum: 00156D7B
    ImageSize: 0014F900
    Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4

    Let us know if you have any questions.

    Best regards

    Matthew_Ha

  • Need help with adapters for T60 wireless

    Hello!

    I recently came across a T60 and I need it to be able to 5 GHz Wireless. The wireless current is not.

    I'm not a genius when it comes to wireless cards, where they are and whether or not they are compatible, this is why I come to you! Will you please help me find a wireless adapter which is dual band, so I can connect more than 5 GHz. No price is too high.

    Thank you for your time!

    -Gabriel Ruiz

    Welcome to the forum!

    If you do not use the BIOS modded, search eBay or Google T 42, 0825 , which is Lenovo a/b/g/n card than some T60 delivered with original series.

  • Need help with the formatting and reinstalling windows

    Hi, I have a Compaq Presario C700 p/n GR598EA #ABU I got to work about 3 years ago.

    Recently, it does not load windows, even in safe mode and I can't get back either.

    I used a disc to boot from linux to access and backup of all my important files and now I want to reformat the hard drive, resintall windows and start over (or try something else which will fix it)

    The laptop has been pre-installed with Windows Vista and HP stuff had already installed on it.  I don't have a Windows disc or discs of driver with the laptop.

    How can I format and reinstall windows and drivers, if I don't have records?

    Help, please.

    Thank you.

    Hello:

    You can order a Vista recovery disk set for your laptop if they are still available. See the instructions below:

    http://support.HP.com/US-en/document/c00810334=

    If you live not in the US or the Canada, you can contact HP Support worldwide for the country you live and ask recovery disks command to your laptop

    The link to the assistance of HP WW is below:

    http://welcome.HP.com/country/us/en/wwcontact_us.html

    Paul

  • need help with error # 800704db (10 istall windows problem)

    can anyone help?

    Start by resetting your Windows Update components:

    How to reset the Windows Update components

    http://support.Microsoft.com/kb/971058

    Suggest you download and save the Fixit. Then configure the system before the clean boot by running:

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7

    http://support.Microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native Windows Firewall is now on if a 3rd party firewall has been used previously. Now run the Fixit and choose the default mode. Restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode. Turn it back on when he finished the race and updates.

    I suggest before you stop and install the updates, disconnect from the Internet, first.

    Alternatively, you can perform the upgrade manually:

    Task of pre-required

    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

    then

    then

    • Turn off (preferably uninstall) your Antivirus utility before you perform the upgrade.
    • Reboot several times, and then try again.
    • Disable the general USB peripherals (for example - smart card reader).
    • If you are using a SCSI drive, make sure you have the drivers available for your storage on a thumdrive device and it is connected. During the installation of Windows 10, click on the advanced custom Option and use the command load driver to load the driver for the SCSI drive. If this does not work and the installer still fails, consider switching to an IDE based hard drive.
    • Perform a clean boot, restart, and then try again.
    • If you upgrade to the. ISO file, disconnect from the Internet during the installation, if you are connected in LAN (Ethernet) or wireless, disable both, then try to install.
    • If you are updated through Windows Update, when download reaches 100% disconnect from the LAN (Ethernet) Internet or Wi - Fi, then proceed with the installation.
    • If this does not work, try using the. ISO file to upgrade if possible.
    • If you are connected to a domain, go to a local account.
    • If you have an external equipment, attached to the machine, unplug them (example, game controllers, USB sticks, external hard drive, printers, peripherals not essential).
  • Need help with tabs for recipes

    I'm sorry if this is basic, but my brain does not work after hours of playing with it. I want to put in place a fairly simple tab for the ingredients of the recipe - not numbered as, I understand - but the quantities of ingredients that vary according to the width... May 1, could be 1 3/4 can be 14... I want this column of numbers flush right, then a space, then the rest of the ingredient should be flush left with a hanging indent (see the last line of the example). So, it looks like this (from cooks illustrated):

    tab.png

    Can someone give me an idea how to implement that (and have usable)? Unformatted text would be:

    2 large eggs 1 large white of egg

    1/2 cup (2 1/2 ounced) of all-purpose bleached, sifted flour.

    etc etc etc.

    This makes me crazy... any help appreciated.

    You need to configure it as a paragraph Style

  • Need help with AS3 on Radio button Quiz

    I am trying to set up a quiz question multiple choice of radio button, but I have problems with some of the ACE and hoped that some of you could help me. I'm fairly new to ActionScript, but I'm trying to pick up quickly. The code is listed below. The lines of errors have been increased in size.

    Import fl.controls.RadioButtonGroup;


    var radioGroup1:RadioButtonGroup = new RadioButtonGroup ("QuestionC1");

    var totalScore:int = 0;

    var totalCorrect:int = 0;

    var totalWrong:int = 0;


    cpr1a.label = "" Complete a resuscitation ";"

    cpr1b.label = "" cardio a resuscitation ";"

    cpr1c.label = "" cardio a Revival ";"

    cpr1d.label = "" Complete a Revival ";"


    cpr1a. Group = radioGroup1;

    cpr1b. Group = radioGroup1;

    cpr1c. Group = radioGroup1;

    cpr1d. Group = radioGroup1;


    submit_btn.addEventListener (MouseEvent.CLICK, submitClick);


    function submitClick (MouseEvent): void {}

    If (radioGroup1.selection == null) { }

    return;

    }

    If (radioGroup1.selection.label == "Cardio a resuscitation") { }

    status_txt.text is radioGroup1.selection.label + "is correct!";

    totalCorrect ++;

    score_txt.text = "Correct number:" + String (totalCorrect) + "\n"; "."

    score_txt.appendText ("wrong number:" + String (totalWrong));

    }else{

    status_txt.text is radioGroup1.selection.label + "is incorrect. I'm sorry. » ;

    totalWrong ++;

    score_txt.text = "Correct number:" + String (totalCorrect) + "\n"; "."

    score_txt.appendText ("wrong number:" + String (totalWrong));

    }

    }

    I don't see where this error could occur except perhaps for a case where a radio AS2 is used because it seems that they do not have a group property, but an AS3 radio button.  Make sure that your publication of Flash settings are set to use AS3.  AS3 errors normally have error numbers that also made the mistake that you mentioned ring of a scenario of AS2.

    Here is a link to the file that I made based on your code that works very well and does not display the errors you mention.  It is a CS3 file.

    http://www.nedwebs.com/Flash/AS3_Radios.fla

Maybe you are looking for

  • Working on the Satellite 5100-201 remote control?

    Hello I have a Satellite 5100-201 und I bought an original toshiba remote for the 5200-801. But it Don t work in my laptop, I install a driver? or it is not compatible with my laptop? Sorry for the bad English, I m of the Germany and do my best. Andr

  • Photosmart 3110 left in busy state

    After uograding 27 "iMac to the Mavericks (latest version OS X 10.9 (A 13, 603) the printer prints very well - but is always left in a State of "busy". If I do nothing, and then after a few minutes, a page prints with 5 characters 2345 X at the top l

  • Reinstall win7 on a HP 6730 s no CD drive in the F9 boot menu

    Hello I receive about 20 parts of the HP 6730 s of a school in the Netherlands, these laptops I have tro re instal for win7 IN. This is for one of our projects in Africa to Uganda. My problem is that I can't have the CD player in the start menu. Can

  • R210 MESSAGE after message BMC BIOS reboots

    Our R210 PE is being reconfiguration to be used primarily as a server antivirus. I took offline, uninstalled the software is no longer necessary on this subject and restarted. Since then, he is not able to reach the point where it offers the possibil

  • Click right does not work properly in the Microsoft Sidewinder X 8 mouse

    Original title: microsoft sidewinder x 8 Hi, I had a sidewinder x 8 micrsoft. I love rly. but since yesterday I have a problem strange rly. If I click on the right button of the mouse the mouse starts clicking on itself. Click, click, click, click. t