Help make a MovieClip to be a popup

Hi guys

I have a a scene in the stage as the background with a text saying to support on anywhere...

When someone clicks on it, a MC appears asking something...

My question is... How can I do that MC should be a pop up instead of being on the scene?

That's what I have so far:

private var initialScreen:Loader;

private var pos:TextField;

private var pos_holder:Sprite;

private var fmat:TextFormat;

..............................................

initialScreen = new Loader();

initialScreen.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);

initialScreen.load (new URLRequest ("1.jpg"));

Pierrick = new TextFormat();

FMAT.font = "Times New Roman";

FMAT. Size = 105;

FMAT. Color = "0x0000FF";

POS = new TextField();

pos.defaultTextFormat = fmat;

pos.autoSize = TextFieldAutoSize.CENTER;

POS. Text = "click anywhere;

pos_holder = new Sprite();

pos_holder. AddChild (POS);

private void onComplete(e:Event):void {}

initialScreen.width = stage.stageWidth;

initialScreen.height = (stage.stageHeight * 1.5);

initialScreen.x = 0;

initialScreen.y = ((stage.stageHeight/2) - stage.stageHeight);

addChild (initialScreen);

pos_holder. Width = stage.stageWidth * 0.8; width of 80% from the scene

pos_holder. ScaleY = titulo_holder.scaleX; To keep aspectratio

pos_holder.x = stage.stageWidth / 2 2;.

pos_holder.y = (stage.stageHeight * 0.2);

stage.addChild (titulo_holder);

initialScreen.addEventListener (MouseEvent.CLICK, popup);

}

popup (e:MouseEvent) private function: void {}

var question1:MovieClip = new MovieClip();

Question1. Graphics.beginFill (0xFF0000);

Question1. Graphics.drawRect (0, 0, 100, 80);

Question1. Graphics.endFill ();

Question1.x = (stage.stageWidth * 0.40);

Question1.y = (stage.stageHeight * 0,70);

addChild (question1);

}

I haven´t finished making the MC yet, since it will be a few buttons and a text... but I need to be like a popup, and now it seems just on the bottom

Thank you!!!

One way is to make the invisible/visible movieclip as needed.  He still lives on the stage, but you can see only when you say that it is visible.

Another way would be to assign a class name to the mc in the library, and then when you want to show that you create an instance of it, in the same way do you with the textfield pos.  When he wants to go that you remove.

Tags: Adobe Animate

Similar Questions

  • Microsoft helps make the windows for students genune?

    Genuine Windows is not available and its way too expensive for us students here in the Nepal.
    I had somewhere that Microsoft helps make real windows.
    How can I do?

    Unfortunately, no, you buy a genuine license if you need. You can get Windows 8 for a steep discount until January 31:

    http://www.Windows.com/buy

  • make a movieclip that is visible when an object is dragged on

    I'm ridiculously new on codeing in flash (or any program) and tries to make a movieclip that is visible only when an object is dragged on, can someone show me the code for this?

    Something like the following might work (not tested).

    MovieClip.alpha = 0;
    object.addEventListener (MouseEvent.MOUSE_DOWN, dragObject);

    function dragObject(evt:MouseEvent):void {}
    object.startDrag ();
    stage.addEventListener (MouseEvent.MOUSE_MOVE, checkObject);
    stage.addEventListener (MouseEvent.MOUSE_UP, endDrag);
    }

    function checkObject(evt:MouseEvent):void {}
    {if (Object.hitTestObject (MovieClip))}
    MovieClip.alpha = 1;
    } else {}
    MovieClip.alpha = 0;
    }
    }

    function endDrag(evt:MouseEvent):void {}
    stage.removeEventListener (MouseEvent.MOUSE_MOVE, checkObject);
    stage.removeEventListener (MouseEvent.MOUSE_UP, endDrag);
    }

  • Using "Keylines" to help make the titles broadcast safe in Premiere Pro

    Hello

    I use the following great link provided by Bill Hunt to help make downrezzed to look reasonably good SD HD titles.

    http://library.CreativeCOW.NET/articles/hodgetts_philip/titles.php

    I have a question about the screenshot below, taken from the link above:

    Screen shot 2011-05-17 at 7.06.45 PM.png

    I understand the notion of "keylines" here, but I'm not sure how to make that happen within my title options menu.

    Does have another name in Premiere Pro?  My search for "keylines" in the Help menu has been in vain.

    In addition, in this context, the "80-204/204/204" numbers mean mean?

    Thank you!

    Matt

    No, probably just outside. They are useful here, while the Interior would be just if you need a specific look.

    The numbers, by the way, are the RGB values.

  • How to make a movieclip and import it into another fla file?

    Hello

    I'm having one of those moments of "self doubt mental health."

    Entering the melting below!

    I want to do a clip from a background of graphics card and some existing movieClips that reside in another .fla

    In this other .fla file clips are in the wrong layer in order to start over, I would like to put things away.

    How can I create a clip like this?

    Then I started thinking, how can we create a clip, and then get into another file?

    I even did a test that went: -.

    (1) create the new AS3 file

    (2) draw a box of

    (3) box and press F8 convertir convert to symbol, select movieclip and name it box_movieclip

    (4) box of d/click and consist of a classic Tween and box moving across the stage.

    (5) save under and the file named MovieClip_Boxtest.fla

    (6) open new AS3 file and import into the library of the BoxTween.fla and had a message saying one or several files not imported as their reading problems.

    So after doing the above steps 1 to 5 makes a movieclip, how to do that in another fla file?

    having done this before that I'm panicking that I lost some brain cells!

    Envirographics.

    When I want to move a movieclip of one fla to another I just right click in the library and select copy.  Then, I go to the library of the FLA, library (off the coast of any other symbol) right click and select Paste.

  • How can I turn off the "do allow you the program following an unknown Publisher to make changes to this computer?" popup with the application compatibility Wizard? "

    The title says it all really.
    I try to use WinMerge, a program I've used for years.
    Now, every time that I throw I get say popup "want allow you the program following an unknown Publisher to make changes to this computer".

    I tried to use the application compatibility Wizard to solve this problem, and I managed to get to the pop-up window IF I run the program from the inside of the Act.
    But if I try to start the Dowes program I get the popup :(

    I guess I must be missing something in the law so that it works all the time.

    Any help/suggestions appreciated.

    Thank you

    The title says it all really.
    I try to use WinMerge, a program I've used for years.
    Now, every time that I throw I get say popup 'want allow you the program following an unknown Publisher to make changes to this computer?'.»

    I tried to use the application compatibility Wizard to solve this problem, and I managed to get to the pop-up window IF I run the program from the inside of the Act.
    But if I try to start the Dowes program I get the popup :(

    I guess I must be missing something in the law so that it works all the time.

    Any help/suggestions appreciated.

    Thank you

    Hello

    This message appears when the application doesn't have an authority root certificate. These types of notifications can be disabled from user account control settings.
    [1] method: Using Control Panel to change UAC settings
    CAUTION: Turn off UAC is NOT recommended
    • On the start menu, select Control Panel
    • Go to system and security > Action Center
    • In the left pane, select change user account control settings
    • Drag the button scroll never notify
    • Click OK to save your settings
    OPINIONS: UAC can avoid potentially dangerous applications to make changes on your computer. Disable UAC would disable the feature for all programs and not for a specific special application.
    Thank you
    I hope this helps :)
  • How to make my movieclip link button to a URL?

    I have a movieclip and actionscript on a separate layer that controls the clip. However, I would like to be able to make a link to a URL when I click on the button. Based on what I have anyone know how teck my code? Allows to pretend is the site I want to make a link to "http://www.google.com/ig?hl=en'. '"

    Here is the code:

    ProductMarketingIcon_mc.onRollOver = function() {}

    ProductMarketingIcon_mc.gotoAndPlay ("normal");

    }

    ProductMarketingIcon_mc.onRollOut = function() {}

    ProductMarketingIcon_mc.gotoAndStop ("normal");

    }

    ProductMarketingIcon_mc.onPress = function() {}

    ProductMarketingIcon_mc.gotoAndPlay ("over");

    }

    Thanks for your help!

    It's as2:

    ProductMarketingIcon_mc.onRollOver = function() {}

    ProductMarketingIcon_mc.gotoAndPlay ("normal");

    }

    ProductMarketingIcon_mc.onRollOut = function() {}

    ProductMarketingIcon_mc.gotoAndStop ("normal");

    }

    ProductMarketingIcon_mc.onPress = function() {}

    getURL ("http://www.google.com/ig?hl=en");

    ProductMarketingIcon_mc.gotoAndPlay ("over");

    }

  • need help make bluetooth keyboard & mouse Microsoft works on Tablet

    I had a Motion LE1600 Tablet for a few years. I like it. I had to recently reimage my Windows XP and start over. I improved all Svc Pack3 and reinstalled programs. I use Security Essentials. I still need to get my Microsoft IntelliMouse explore and Trackball bluetooth keyboard work. Currently I use a USB keyboard and a mouse, but I have the IntelliMouse CD that looks as if it would install two items. I can't make it work and I would really like to help someone who is very familiar with these items.

    I tried and failed to do this work. I tried to follow all the items on the installation guide that is displayed on the screen during installation, but I can't understand even when the connection of brand/Break button is on the keyboard.

    Ouch! I really need help from someone who is familiar with these elements!

    Hi JeffDavis,

    · You receive an error message or error during installation?

    You can follow the steps from the link below: troubleshooting failures in the detection of new Bluetooth mouse or keyboard:http://support.microsoft.com/kb/811805

    See also: Troubleshoot installation of Intellipoint and IntelliType LifeCam software:http://support.microsoft.com/kb/953691

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • help make items

    When I try to make an object in illustrator, it does not have the length or any information. It does not show the red line that helps you to be online with another object. How can I fix it? When I started it was working but it just stopped

    Turn on some guides

    view-> some guides

  • Help make the negative space of a PNG image

    So, I'm sure there is a super easy way to do it, but after an hour of struggle and in fifteen minutes of searching, I have nothing.

    What I'm trying to do is to take the picture of the family, the black silhouettes and make it negative space, so the purple background shines through, as it does with the Screenshot (10).png text.  Any help would be appreciated.  Please help me gods of illustrator.  Thank you

    a tip:

    Convert the image vector silhouette using image trace command (on top of the options bar)

    then use the pathfinder or the generator of form tool to subtract the background (yellow)

  • Need help make new samples of .png files

    Hello

    I bought some black with transparent background (png) tiled patterns and I want to make new samples out of each of them.  I'm doing everything I read and nothing works.

    I use CS6.  I have one .png templates in a document .ai.  I tried to drag on the box of the swatch group, and nothing happens.  When I click on "New shade" with the .png file selected, it creates a new shade but it's only in black, there is no model.  I tried to put a line around it and selecting 'New Swatch' again; He created a new grade with the race, but he did not use my .png image, he used the last nuance in the Panel!

    In addition, any input on what the size of the original .png file should be to make a shade.  Bought size is 3600 square px.  I don't know that I should probably use a different size.

    I thought it was supposed to be easy in Illustrator.  I have to do something wrong.  Help, please!  Thank you!

    Thanks for jumping in the tone! Your suggestion led me to the problem so I could fix.

    When I went to object > template > do as you suggested, I received an error message indicating that I couldn't make a shade of a linked object.  I included the image in the document and * finally * has managed to make a shade with success.

    Why it never appeared in my searches or documents Adobe, I found is beyond me, but all's well that ends well.

    Thanks again for your!

  • Help make half a circle or semicircle

    Hello: Level: just a little more than a Newbie OS: Windows 7 64 bit Ps: CS6

    I tried to do a semicirlce or half a circle to make a Sun on a horizon.

    So far I have used the Ellipse tool and tried to use the new layer > subtract before form method, but I find myself with something close to Crescent.

    I also tried to draw a circle and then remove the handles, but that did not work or the other.

    I tried a few other things, but all have me lack. I had everywhere in the 'Help' Forums, FAQ Adobe, Youtube etc. but have failed to find a "how to...". »

    If you get the gist of what I'm trying / explain and you know a way I can accomplish what I need I would greatly appreciate your time and your efforts.

    Thank you very much!!

    Take care

    Kara

    Make a positive and negative circle rectangle inside a shape layer. The options bar provides the necessary controls.

    Ellipse tool in mode "Shape" and "New layer" - draw a circle.

    Rectangle tool in mode "Shape" and "Subtract before shape" - a rectangle more than half of the circle.

    If you want, the circle and rectangle can be merged with "Combine the components of form" (in the options bar) to remove the parts that are not made.

  • Help make the text visible so click on the button

    Hello

    I am new to livecycle designer and have very little experience with scripts.

    That's what I want to do:

    I inserted a button on a form. When the button is clicked I want to make a text box read-only containing information useful and visible.

    I don't know about the editor script etc and my form is saved in a dynamic form - I don't know what script to write!  Previously, I managed to make a visible text box when a box is checked, but so far I could not find how to make the text appears when a button is clicked: it's the syntax with which I struggle. Any help is appreciated!

    Thank you very much.

    It comes to FormCalc on the click of the button or checkbox:

    If ($.rawValue == 1) then

    TextField1.presence = "visible".

  • Help make page magazine replica?

    Hello world.

    I'm having a hard time to make a replica of this page of the children's Magazine pointed out in inDesign CS5. http://I39.Tinypic.com/5ofhu8.jpg  Yes it is a project for my school, but I do not understand my directions of teachers. I asked him countless times how to approach this and all, he said, is "I've explained it already.  I have with me some scans of the highlighting of the word and the logo they use.

    I have two main concerns:

    1. How would I find the mouse and the red box + text? I know this has something to do with the text string tool (I think) but I would like a little more rear power on this concept.

    2. how I would get the text of the paragraphs to resemble the same structure (so that everything fits perfectly)?

    I'm sorry that I can't explain more in details. I am not experienced in this program, but I really want to learn with a correct orientation.

    Thank you to anyone and everyone who comments / help!

    P.S. Any other pointers would be appreciated as well

    It takes place at me that the project started opposite.

    Assuming that your page is created with the correct borders, you must create a text box with three columns with the required separation.

    Create a paragraph style for the body with good first line indent and hyphernation off the coast.

    You import text, not copy and paste! All your text to the body of style

    Then view the text invisible and get rid of all the tabs, returns no unwanted extra spaces etc. My guess is that what are you messing around

    Lou

  • Help make a video!

    Hey guys,.

    Fairly new to sequels, so patient with my noobness. I want to make a video of me me shooting. So I know I have to take the video twice, once to ruin my room and the second myself yet... find me mess up my room, I therefore withdraw my gun and shoot myself! Idea is not very well, just wanted to see if I can do it. So my question is:

    How can I add me twice on video?

    OK, im quite lost with the idea, that I have to hide me out on the first video and bring it to the second video... or use other software to follow myself... I don't know the guy, I'm totally lost. I tried to find the tutorial but failed. So it would be great if someone gave me a link to a tutorial (video or written) or just tell me what to do in response. Any help will be much appreciated. THANKS IN ADVANCE!

    Is the relatively simple composition, as long as you shoot two shots completely locked turned off so that there is no movement of the camera (or variation of light) and you pay attention not to let the shooting character B cross-fire zones that change in shooting.

    You just overlay of a sudden on top of the other and use masks on the top layer to determine which parts of the underlying layer to show through.

    Compositing features are described here.

    OK, now that I've answered your question, I need to give you some advice very hard:

    Don't just jump in the middle and try to use After Effects. Begins to run and work your way through the basic teaching. Seriously. If you do not, you will be frustrated. If you start to run and learn the simple things first, then you will be able to understand the answers to questions such as the one you have without the help of anyone.

Maybe you are looking for

  • Portege Z830 - issues after updating Windows for Win 7

    My laptop is PORTEGE Z830. I upgraded the system to Windows 7 Enterprise. I got this yellow (!) when I opened ad peripheral printers. When I tried to know what unit he showed: Pilot missing: ACPI\TOS6028\2 & daba3ff & 4 Also, I am not able to adjust

  • Satellite A200-1cr - two questions about the AC adapter / CC

    Hello guys,. I am owner of a laptop Toshiba Satellite A200-1cr and suddenly one morning, I can not charge my battery... I tried with another adapter that I bought for another laptop a few years ago and it worked perfectly... I have change the power s

  • Error code: 0 x 8007005

    Lost the ability of desktop connection icon and start menu from the top for MSE should I uninstall and reinstall as error code offers. Although when I'll update history of successful installation it says please help what do I do

  • Outlook Express 6 - I receive several emails duplicated - some as much as 5 times. other emails are received at once in my Inbox in?

    My box often takes a long time to receive e-mails, Registrant receiving 1 of 5.  So when they finally come thrus, I could have 3 exact same emails from the same sender and other 2 separate emails from different senders.  Often, I get a message that s

  • Windows 7 'download '.

    Sorry guys, I came across a post with the link to download unactivated legal win 7 on this community forum. I searched for a few days with/without chance for this link. Can someone who knows / come on please answer. Thank you