make the button instance that contains the specific image of movieclip playback

What I want to do is have a movieclip that has many executives and become a button and make different instances of the button and have these instances display a certain slice of the underlying movieclip.  I am very new to AS3 and was a very beginner with AS2 and have no idea what to do here yet.  I searched some tutorials and found nothing helps me so if someone knows something or can help I would appreciate it.

Btn1.addEventListener (Event.ENTER_FRAME, gotoFrame);

function gotoFrame(event:Event):void {}

Btn1.stop ("Blue");

}

It makes no sense at all. It you just have to:

Btn1.gotoAndStop("Blue");

--

Kenneth Kawamoto

http://www.materiaprima.co.UK/

Tags: Adobe Animate

Similar Questions

  • A script to remove all rows in the table that contains a specific text

    Hello

    I tried some old scripts but cannot move to the right solution.

    I need a script that deletes all the rows in a table that contains a specific unique word text, something like "xxx".
    Someone has an idea?

    Thank you

    Hello

    To remove a line using row.remove () method.

    Iterate if table.rows and delete the matching condition.

    If we talk about condition, be more specific - what do you mean "a line contains a text:

    ==> 1st cell contains,

    ==> any cell contains.

    Content of the line whole is an array of his cells.contents, so your text from line 1 is:

    rows [0].contents.join ("") ==> string

    Jarek

  • How to print the specific image size?

    Hi Gang - How can I print an image 11 x 15 "on paper 13 x 19"?  Initially, it seems easy, but things are not how to navigate. Here's what I did:

    I exported the photo and used the dialog box LR image resize to 11 x 15 "- easy."

    I imported the exported image (assuming that the image was 11 x 15 ") and then in the LR print area - it is where the confusion begins.

    The print tab displays the dimensions of the image as 8 x10.19 in.  Help, how can I do the 11 x 15 "I need it to be?

    I understand that I will need to adjust the image to get the part I want in the space of 11 x 15, but for the moment, I can't even 11 x 15 "size.

    I tried package customized options, but no luck there.

    I would like to Print Studio Pro Canon plugin that works very well. Except, again, I don't know how to ask the image size 11 x 15 "for printing on paper 13 x 19".

    Fiddling with settings, I printed a dozen attempts and still no luck to reach 11 x 15 "size of the image on paper 13 x 19".  For now, I'm OK with the image to cut or to another plane - no baby - I need to know how to make the print image 11 x 15 "size of the image. A

    Thank you to offer suggestions.

    Screenshot shows that my image 11 x 15 "is 8x10.19; I don't know how 11 x 15 ".

    Untitled.jpg

    LR v5.7

    Mac OS X Yosemite v10.10.2

    Brain: generally intuitive, but need some help on this issue!

    The first step in the Lightroom print module is to click on the Page Setup button, select your printer, and then select the paper size. It looks like your screen to paper size correct has not been selected yet, because you said you wanted to print on paper 13 x 19 inches, but the paper on the screen is only 8.5 inches wide. My guess is that Page Setup is always programmed for letter-size paper, and you should come back on layout and change it. After you do this, if your layout Style is unique, you should be able to affect the size of the cell 11 x 15 inches.

  • Help make the second image in the slideshow load a button.

    Hello world.

    Can someone help me with the actionscript code to one of my images in a slideshow (whose images are linked externally through actionscript)

    load a button which is accessible only when this specific image is displayed.

    for example-image 1 - No button but image 2 has the button, button 3-no image, image 4, no button... and so more.

    Here is my script for the slideshow and prev buttons and following

    var totalSlides:Number = 6;
    var currentImage:Number = 0;
    var imagePath:String = "images/ad";
    var imageName:String = "announcement";
    var imageExt:String = ".jpg";

    var adImages:MovieClipLoader = new MovieClipLoader();

    function loadSlide() {}
    adImages.loadClip (imagePath + currentImage + imageExt, "adImages_mc");
    }

    loadSlide();

    this.prevSlide_btn.enabled = true;
    this.prevSlide_btn._alpha = 100;

    this.nextSlide_btn.onRelease = function() {}
    _root.prevSlide_btn.enabled = true;
    _root.prevSlide_btn._alpha = 100;


    If (currentImage < (totalSlides - 1)) {}
    currentImage ++;
    loadSlide();
    }

    If (currentImage == (totalSlides - 1)) {}
    _root.nextSlide_btn. Enabled = false;
    _root.nextSlide_btn._alpha = 50
    }
    }

    this.prevSlide_btn.onRelease = function() {}
    _root.nextSlide_btn.enabled = true;
    _root.nextSlide_btn._alpha = 100;

    If (currentImage > 0) {}
    -currentImage;
    loadSlide();
    }

    If (currentImage == 0) {}
    _root.prevSlide_btn. Enabled = false;
    _root.prevSlide_btn._alpha = 50;
    }
    }


    Im a beginner but know some actionscript.

    I really appreciate the help.

    Thanx

    I guess that the button that you want to display is not indicated for anywhere in the code that show you.  What you can do, is make the button visible/invisible in the function loadSlide.  This assumes that currentImage = 1 is the second image, change only if it is actually 2.

    function loadSlide() {}
    adImages.loadClip (imagePath + currentImage + imageExt, "adImages_mc");

    if(currentImage == 1) {}

    certainButton._visible = true;

    } else {}

    certainButton._visible = false;

    }
    }

  • Make the disk image using disk utility and the message "Apple_HFS: 0" is displayed

    I'm doing a disk image to try to work on that later. This is an image of a failed disk drive. Some areas can only be read, I know and the process takes a long time because of this, so I'm willing to be patient.

    I get messages in the disk utility window that says "Apple_HFS: 0" and "Creation of image xxxx.dmg.

    The disc has about 700 GB. I started it about 20 hours ago, and the blue bar is about 5% of the way, so not much happened.

    I fear that the message "Apple_HFS: 0" means that the disk image is not made. I am concerned about the part "0". I don't know what that means.

    I don't want to do it for days and days and find that there not to make a disc image all this time.

    I realize that the fact that the external drive is damaged (probably damage) means that this process will take longer than normal. I am willing to leave it for a week so that he can make a disk image. But not more than a week because then it is not worth my time.

    So my question is: does the message ' Apple_HFS: 0 "means something bad, or that the message normally during this procedure?

    Apart from this message and the message "Xxxx.dmg imaging", there is no other message.

    I think I'm making progress because the bar has moved since I started the process. For a long time I couldn't see a bar at all. And today, after spending the night, there is a small bar, as I said, about 5% complete. But it's very slow. It would take at least a week for the disk image to be made. I just want to know if the messages that I see are normal or not.

  • Make the code found on movieclip wich I clicked on

    Hi all

    I'm doing a game in AS3.

    I have a scene with empty space. There is an empty space 1, 2 empty space... etc.

    When the player clicks on an empty space, a usebox appear with 2 buttons. He the usebox even for all the empty spaces. When the reader, click on the 'Buy' buttons a window pops up where he can choose between different buildings (same windows for all the empty spaces).

    When he clicks on the building he wants, the 'building' function is called (someBuilding.visible = true) and the building appears on the scene.

    But I did not how tell the code to make the corresponding building to empty space visible...

    If the player has clicked on the empty space 2 for example, how can I know the code to make someBuilingInEmptySpace2.visible = true? If he clicked on the empty space 3-> someBuilingInEmptySpace3.visible = true?

    (something like):

    function build():void{ 
    if clicked on emptyspace2 { 
    someBuilingInEmptySpace2.visible = true ; } 
    if clicked on emptyspace3 { 
    .. .
    

    I asked around, and told me to:

    emptySpace1.addEventListener(MouseEvent.CLICK, onSpaceClicked);
    emptySpace2.addEventListener(MouseEvent.CLICK, onSpaceClicked);
    emptySpace3.addEventListener(MouseEvent.CLICK, onSpaceClicked);
    
    
    function onSpaceClicked(evt:MouseEvent):void 
    {
        var clickedSpace:MovieClip = evt.currentTarget as MovieClip;
        //... perform the actions you need to perform on the clickedSpace
    }
    

    But I really don't see where to put it. If someone could help me, it'll be a great help.

    So, here's my coden and my organization:

    I've got Engine.as where the elements of the game are:

    private function createBackground(thisBack:String):void{ 
    for (i in usableItems){ 
    var thisClip = usableItems[i]; 
    thisClip.buttonMode = true; 
    thisClip.addEventListener(MouseEvent.CLICK, examine, false, 0, true); 
    thisClip.gotoAndStop(1); 
    } 
    
    
    private function createUI():void{  
    toolbar = new Toolbar(stage); 
    addChild(toolbar); 
    toolbar.x = 0; 
    toolbar.y = 400;  
    buildings = new Buildings(stage); 
    addChild(buildings); 
    buildings.visible = false;  
    puzzle = new Puzzle(stage);  
    stage.addEventListener("endGame", endGame, false, 0, true); 
    }  
    
    
    private function examine(e:MouseEvent):void{ 
    stage.dispatchEvent(new Event("itemClicked")); 
    useBox = new UseBox(stage, e.currentTarget); 
    useBox.x = mouseX; 
    useBox.y = mouseY; 
    stage.addChild(useBox); 
    }
    

    When the player clicks on an empty area (emptyspace2 for example), consider the function is called and the useBox is displayed.

    In my UseBox.as :

    public function UseBox(stageRef:Stage, thisThing:Object){ 
    this.stageRef = stageRef; 
    this.thisThing = thisThing; 
    this.visible = true; 
    useButton.buttonMode = true; 
    lookButton.buttonMode = true; 
    lookButton.addEventListener(MouseEvent.CLICK, lookAt, false, 0, true); 
    useButton.addEventListener(MouseEvent.CLICK, useThing, false, 0, true);  
    
    
    private function useThing(e:MouseEvent):void{ 
    Engine.buildings.visible = true; 
    useButton.removeEventListener(MouseEvent.CLICK, useThing); 
    }
    

    In my Buildings.as

    public function Batiments(stageRef:Stage){ 
    houseBtn.addEventListener(MouseEvent.CLICK, houseConstruction, false, 0, true);
    } 
    private function houseConstruction(e:MouseEvent):void{ 
    var house; 
    var emptyspace1; 
    trace("choix"); 
    stage.dispatchEvent(new Event("itemClicked")); 
    Engine.buildings.visible = false; 
    Engine.puzzle.houseBuilt(); 
    toolbar.money.text = String( Number(toolbar.money.text ) - 100 ); 
    }
    


    And, finally, in my Puzzle.as

    public function Puzzle(stageRef:Stage){ 
    allPuzzles = new Object; 
    allPuzzles.tundra.maisonBought = false; 
    }  
    public function maisonBuilt():void{ 
    var house; var emptyspace1; 
    for (var i in Engine.usableItems){ 
    if (Engine.usableItems[i].displayName == "HOUSE") 
    house = Engine.usableItems[i]; 
    if (Engine.usableItems[i].displayName == "EMPTYSPACE1") 
    emptyspace1= Engine.usableItems[i]; 
    } 
    allPuzzles.tundra.houseBought = true; 
    house.visible = true; 
    house.gotoAndStop("contruction"); 
    house.lookTag = "1"; 
    timeConstruction.addEventListener(TimerEvent.TIMER_COMPLETE, constructionFini); 
    timeConstruction.start(); 
    emptyspace1.visible = false; }
    

    Where should I put the emptyspace listeners? I did too classes?

    Thanks again for the help.


    This is correct:

    emptySpace1.addEventListener(MouseEvent.CLICK, onSpaceClicked);
    emptySpace2.addEventListener(MouseEvent.CLICK, onSpaceClicked);
    emptySpace3.addEventListener(MouseEvent.CLICK, onSpaceClicked);

    function onSpaceClicked(evt:MouseEvent):void
    {
        var clickedSpace:MovieClip = evt.currentTarget as MovieClip;
        //... perform the actions you need to perform on the clickedSpace

    if (clickedSpace == emptyspace2) {
    someBuilingInEmptySpace2.visible = true ;

    } else if (clickedSpace == emptyspace3 {
    someBuilingInEmptySpace3.visible = true ;

    }

    }

  • How to make the background image for a site

    Hello.

    First of all, thank you for reading this.

    I intend using a gradient image as background on a new site of black on the sides gradiating to blue in the Middle I created in Photoshop. The site is designed for 1024 (955) and upward. How the background image would handle so that no matter what the resolution above 1024, the visitor sees the gradient correctly, which means that Blue will be always exactly in the center of the page and the image not horizontal mosaic? (I don't want to repeat from left to right when the resolution someone is really high)

    I saw a couple of sites that use strong images that seem to stretch the background image according to the resolution, but were not able to understand the CSS code. In my case, I have a single image that has say 5 pixels high, how wide I need for the (reasonable) maximum resolution, and let repeat from top to bottom.

    Thank you.

    MFitz721

    To do what you ask would require CSS3.  This is because that the CSS3 added support for multiple background images.  What you would do, is to set a gradient to the left and the other to the right with a background color that arise in a vacuum.    Basically use you the abbreviation of "substance" and separate the different environments with a comma ","  See this example ( http://www.css3.info/preview/multiple-backgrounds/ ).  I think it's possible the long way as well (for example: position of background, background image, etc.), but you would need to write the values and who is 1 and 2 in order when you do this.

  • Links that go to specific images in a slide show

    Hi, im trying to link a product within a gallery to a composition widget that works like a slide show showing more product details. If I add an individual anchor for each product inside my composition and then try to link to its corresponding image in the gallery page it will take me only up to the first image in the composition, but will not bind to a second image. Any ideas on how to make this work? Im trying to make it work like this page:

    OLC - OLC Jeans collection

    If you click on an image inside the gallery takes you to a new page that works like a slide show details of each product. I know for sure it will work if I add each product in a new page, but since I'm using a lot of products I want to avoid adding tons of new pages and to the contrary have everything in only 1 page with links work properly.

    You can use the signs for this where the label may include the name of the product and target container also includes the image accurately, you can configure the link to the image for slideshow page.

    Thank you

    Sanjit

  • Make an interactive PDF that contains all the elements of active

    Take a simple test for an example.

    I create a menu page with a button with an interactive button says open another pdf with this button.

    Call the MAIN menu page. PDF

    and the page he calls EXTERNAL. PDF

    Locally on Acrobat DC everything works as expected

    but when I save the MASTER.pdf to external such as location

    a network drive and click on the button on the MASTER page, nothing happens.

    This suggests a number of things

    (a) all external media must be provided when they provide a client with the PDF

    (b) acrobat DC does not bind external media in the presentation.

    Is there a "pack and go" function that will load all assets in the MASTER.pdf

    while I can email a single file and not a myriad of required external files to, click on the button?

    You are right - all external files must be provided when fed the "master" PDF
    You're right – Acrobat DC (no more than any previous version) 'bind' external files to the PDF 'master '.
    There is a term "pack and go".
    In Acrobat help attach files to the "master" PDF document
    Using Acrobat Pro to create a PDF Portfolio.
    To provide links to files in a Briefcase do you manually in the portfolio. Use the action "page mode."

    When a large collection of PDF documents that are inter and intra active must be deployed with or without an index catalogue (to support the advanced research that would include Boolean) build under a common folder to 'high level '.
    Transfer the record of highest level and all the content of the SD card, USB stick, CD, DVD, external HARD drive, network share, etc. for the deployment share.
    A fall in the Web space will work as well (with the exception of the index catalogue).

    Be well...

  • I made a game on CC Flash Professional on a MacBook Pro, how can I make a button so that when you finish the game you can close? (An exit button)

    Captura de pantalla 2016-01-27 a las 8.03.59 AM.png

    you publish the html/swf files that open in a web browser and you want to close the html page?

    If so, you can do that except if you opened your page html with javascript.  in this case, you can close it with javascript (and the class externalinterface in your SWF)

  • Make a button action that connects to another scene in animate CC

    Hello.

    I had used Flash some time ago, and I downloaded CC animate today.

    I'm trying to simulate a game, in which a single button will lead to a new scene.

    I remember the last version, I could assign an action button and write something like: goto (scene2); or something...

    But, I can't seem to find ways to create actions for buttons - whenever I try to write an action on the button, he writes on the keyframes where the button is staged on.

    Please help me.

    I'm doing a game kids-friednly on IOS device app.

    Thank you. ! !

    You cannot apply the code to objects using as3.

    affect your button in the Panel of the instance (for example, btn), an instance name and use:

    btn.addEventListener (MouseEvent.CLICK, f);

    function f(e:Event):void {}

    this.gotoAndPlay (image number or name in double quotes, name of scene between quotation marks);

    }

  • How can I make the JPG images inserted into a visible table cell?

    Dreamweaver CS4 - Macintosh iMac OSX 10.9.5

    DW has been great to work for ten years. I have a very simple website with a few tables and multiple images.

    He did all of a sudden all the images I have insert invisible. The 'elements - Visual Aids Invisible' is checked.

    I need to make changes to the site, but I'm frustrated. I can't add or replace images.

    I don't want to upgrade to creative cloud.

    Help!

    Benniemc wrote:

    Dreamweaver CS4 - Macintosh iMac OSX 10.9.5

    DW works a lot for ten years. I have a very simple website with a few tables and multiple images.

    He suddenly made all the images I have insert invisible. The 'elements - Visual Aids Invisible' is checked.

    It's all good and dandy that Nancy and Jon say that they see your site online will be images. Correct me if I'm wrong but... the real problem is that just inserted images are not visible in Dreamweaver making any visibility on the site online a moot point, right?

    best,

    Shocker

  • How to make the placed images/vectors remain within the boundaries of a smart object?

    Hi all.

    I have a question which I think has a simple solution, but it is difficult to find.

    I have a photo from a greeting card with rounded corners. I made the greeting card in shape a dynamic object... I want to drop my vector art of cards in the smart object to create easy shots for a website (model model style).

    My problem is this: when I stick my chart in the psb to smart object document, it remains within the limits of the object dynamic when I save it and return to the document .psd. for example if I fit my larger vector art, there will be a great vector art saved in the original psd rather than inserting in this "round card window. What I am doing wrong, that my account will be not cropping correctly? Same thing with if I try to add textures, they do not stay within the smart object... I'd appreciate your help with a simple solution. Some pictures below.

    Thank you

    Grace

    Image 1. The shape of the dynamic object.

    Screen Shot 2015-03-09 at 2.41.09 am.png

    2. the vector art. I paste in the dynamic object of psb document... Yet when I save the smart object and check related DSP, graphic design is great and not cropped within the smart object.

    I have resorted to copy my smart object layer, drag it to the top and deleting a selection reverse... but there must be a much easier way!

    Screen Shot 2015-03-09 at 2.45.30 am.png

    3. what happens when I save the smart object...

    Screen Shot 2015-03-09 at 2.48.09 am.png

    Well,'re missing you a layer mask or a clipping mask to crop the content of coverage.

    I would use a clipping mask, which makes life easier than a layer mask. As follows:

    To create a clipping mask

  • Make the following Image?

    Hey community members.

    I want to know what is the easiest way to make an image like this phone. Was - this fact using InDesign? PS? Illustrator? I should draw something like that or can find a picture and some how to whiten the image?

    If you want to clean like that, it's probably best to trace it. You could do this in Illustrator or Photoshop.

    Sometimes you can get a good result with kind of correction color effects, but that all depends on your source image and your intent.

  • In what color space is LR mobile make the raw images share?

    The title says pretty much all this.  I installed LR on my iPad, import raw images captured with the Camera Connection Kit, previously made some changes and exported jpg by email to myself.  The files come into Photoshop as "mystery meat", i.e. without embedded profile, or even an exif tag.  I'm probably leaving sRGB, but it would be useful that Adobe would include at least the color space tag in the exported file.

    Richard Southworth

    '

    Hey Richard Southworth,.

    Your assumption is correct. They are sRGB.

    Let us know if this answer helped in marking it as correct or responding. Thank you.

    Melissa

Maybe you are looking for