function works in a simple application but not more complex app?

I made a simple with app

2 symbols of movieclip containing photos of a butterfly with this actionscript

Import fl.transitions.Tween;
Fl.transitions.easing import. *;

butterfly_mc.addEventListener (MouseEvent.CLICK, bookcase);
butterflyHand_mc.addEventListener (MouseEvent.CLICK, bookcase);

function bigPic(e:MouseEvent):void
{
new Tween (e.currentTarget, "scaleX", Strong.easeOut, e.currentTarget.scaleX, (e.currentTarget.scaleX * 1.4), 4, false ' ");
new Tween (e.currentTarget, "scaleY", Strong.easeOut, e.currentTarget.scaleY, (e.currentTarget.scaleY * 1.4), 4, false ' ");
}

When you click on the butterfly movieclips they grow up like I wanted.

However when I apply the same actionscript code in a more complex application code does not work. Here's the relevant actionscript for a more complex application

Import fl.transitions.Tween;
Fl.transitions.easing import. *;

case1_mc.c1_mc.case1a_mc.addEventListener (MouseEvent.CLICK, bookcase);
case1_mc.c1_mc.case1b_mc.addEventListener (MouseEvent.CLICK, bookcase);

function bigPic(e:MouseEvent):void
{
new Tween (e.currentTarget, "scaleX", Strong.easeOut, e.currentTarget.scaleX, (e.currentTarget.scaleX * 1.3), 4, false ' ");
new Tween (e.currentTarget, "scaleY", Strong.easeOut, e.currentTarget.scaleY, (e.currentTarget.scaleY * 1.3), 4, false ' ");
}

I don't get any error messages, but when I click on case1_mc.c1_mc.case1a_mc or case1_mc.c1_mc.case1b_mc, nothing happens. It is clear to you, what I'm doing wrong here?

Any help is appreciated!

If you don't know that you can see this movieclip (with the mouse listener), you must have an another interactiveobject covering what is intercept mouse events.

Tags: Adobe Animate

Similar Questions

  • . Images PNG in the Mail application, but not the Photo app?

    I was wondering if it was a bug or a limitation of the software. I myself have sent images properly displayed .png in the mail application. After clicking on "copy photos", the image did not appear in the downloads section of photo enforcement.

    Its seems strange that the mail app can display png files, but the photo app can not.

    You may not use png images for wallpapers because of this oversight even. Looks like a simple fix, obviously png display support is there, they just need to add other types of image files to funtions of the broswer photo file.

  • I installed the police of San Francisco system. his work in other applications, but not adobe, Ps and Pr

    I installed the police of San Francisco system. his work in other applications, but not adobe, Ps and Pr
    What... do not know any solution.

    Hello

    Please try to post your query in communities:

    General discussion of Photoshop

    Illustrator

    Premiere Pro

    Kind regards

    Sheena

  • My DVD works on our television screens, but not on some of our friends in televisions

    My DVD works on our television screens, but not on some of our friends television screens.
    He plays a photo then restarts and then plays two photos then restarts then plays three photos then restart etc etc..
    What is a parameter when creating the video to digital photos or a parameter on television of our friends?

    It has nothing to do with the connected TV!
    It s is the DVD drive!

    Some players can't handle all CD or DVD! Which is one reason why the created image DVD does not work with the friend (s) disk drive.

    You will need to test various DVDs of different drive manufacturers. Some discs are more compatible as other drives

  • USB works in XP safe mode but not in "normal" mode.

    Hello

    Something has trashed my usb connection because none of them work.  They worked a few days ago, but not now.  The USB ports work fine in XP safe mode, but I can't make them work under XP 'normal '.

    I tried system restore to restore to when I know they worked (Saturday).  But the restoration said it cannot restore at this time there.  I drive four other date back (Thu, Fri, Thur, sea) and it woul don't restore of any of them.

    I went to the HP web page for this computer.  They have no USB drivers, so I download the chipset and installed driver.  It does not work.

    I tried to uninstall USB devices by using Device Manager.  Devide manager uninstalled, then I rebooted the machine and it reloaded automatically usb drivers.  But I can not use devices.

    I tried Device Manager-> select your hardware-> right click-> properties-> tab driver-> update driver-> online search for the driver.

    I tried to uninstall in safe mode, run usb.inf and then re-startup - which did not work.

    I am current internet search for USB drivers for this computer.  But I still found nothing.

    Anyone know where I can find USB drivers for the HP Pavilion a1515n or should I be looking for on google.  Currently, I'm looking Drivers USB a1514n.

    I would like to reinstall the USB drives, but I can't find them.  Or some otherway to get USB devices working again.

    Thanks for any help.

    Dennis

    All,

    I got it to work!

    I have not updated the driver for the USB hub.   However, I finally tried to update the driver for the USB EHCI controller.  Once I updated the driver for it, all the USB ports and the connected devices are recognized.

    Life is good again.   It took me 5 hours to understand that I had to update a different device driver, but hey - at least it works!

    Denni

  • DVD burn with iDVD works on new DVD players, but not on older versions of the DVD player. Any suggestions?

    VDs that I burn with iDVD works on new DVD players, but not on older versions of the DVD player. Any suggestions?

    I'm using an iMac with OS X El Capitan 10:11.1 and iDVD 7.1.2.

    You use DVD + R disks?  Those who are not compatible with DVD players before 1997.  The DVD-R is compatible with all DVD players.

  • LifeCam HD-5000 works fine in other programs, but not in the Lifecam software accompanying

    My Lifecam HD-5000 works fine in other programs, but not in the Lifecam software that comes with it, I get "There is no camera connected to this computer." I tried to restart and uninstall then reinstall the software.

    Hello

    LifeCam HD-5000 - Support and warranty (3 years)
    http://www.Microsoft.com/hardware/en-us/p/LifeCam-HD-5000/7ND-00001#support

    Microsoft Hardware warranties
    http://www.Microsoft.com/hardware/warranties.mspx

    Support for WebCam
    http://www.Microsoft.com/hardware/digitalcommunication/support/default.mspx
    http://www.Microsoft.com/hardware/en-us/support

    Product Solution Center
    http://support.Microsoft.com/hardware

    MS material takes in charge and recourse in warranty (90 days support of)
    the date of the 1st call).

    1-800-936-5700 or 1-800 Microsoft (642-7676)

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Can print from other applications but not PS

    I'm trying to print from my Macbook Pro 2011 to a brother 2240 laser printer. I can print from other applications, but not of Socialist Party (CC 2014). In the preferences system, the printer shows as online, but in the PS print dialog box, when I click on the printer icon bit to the right of the selected printer, something of utility Brother appears and displays offlilne. But if I go to TextEdit I can print to the printer. Any ideas?

    Nuke your preferences to Photoshop and Photoshop to create new preferences files by pressing Command + Option + shift as soon as you launch Photoshop, keeping them pressed until you see a dialog box that you go click on Yes the force.

  • Question about media queires working in FF, and CR, but not IE

    Hello

    I'm trying to understand why my meïdia queries work in FF and Chrome, but not Internet EX 11.

    The page here: http://skeeterz71.com/auto/dealers.html

    The form at the top of the page, the pictures and information must be centered on the page to these: If someone has the time to watch, I would appreciate it.

    @media (max-width: 775px) {}
    .bold-product-title {}
    text-align: center;
    }
    .product-image-left {}
    text-align: center;
    }
    {.dealer-title
    text-align: center;
    }
    {.dealer-location
    text-align: center;
    }
    {.dealer-phone
    text-align: center;
    }
    {.dealer-information
    text-align: center;
    }
    {*.search city
    text-align: center;
    }
    . Search-of-city-select {}
    text-align: center;
    }
    }

    Thank you

    P.S. I use Bootstrap, but don't know of a bs class that will focus in Tablet and phone discovers only.

    Too bad. Don't have a closing tag on the right to request above this one... I went on the css so many times trying to find the problem and do not see it until about the 10th time. Probably should call it a day.

    I noticed in the element inspect it is to say, he doesn't yet see the request of media at all. Which clued me and should have been my first thing I should in fact...

    FF and chrome seen the request and IE is not. Strange, but IE was right in this case. FF and chrome gave me a lot of slack :)

  • Interactive buttons, working on the Adobe Viewer, but not on the final application

    Hello world

    I had a lot of problems with interactive buttons:

    I made buttons with link with 'pageTo' and 'getURL' (and the "navto://Article#2" syntax).

    What I already know:

    • When you use the "navto" syntax, the first page is 0 (and not the 1 page);

    • I double check spelling of the Article and that's okay.

    the problem is that when I test the application with the Adobe Viewer on my iPad these links work well, but when I create the app and I test on my iPad .ipa file these links no longer work.

    I work on Mac.

    someone has an idea?

    Thank you very much!

    It is a known problem with the simple editing applications. Do not submit this app to

    Apple and keep an eye on things here for an announcement on a fix.

  • FancyBox - Working in Live View mode, but not in the preview

    Hello!

    I searched the forums for some answers, but I can't just understand what I am doing wrong. I'm really a beginner with Dreamweaver and coding, so I think I'm just something wrong. I hope that someone will be able to point me in the right direction! Anyway, here's my problem...

    I could not get the Fancybox to work properly. When I test my page through Live View, it seems to work very well. However, Fancybox does not work as expected when I test through various browsers in preview. Instead of bring the image in a Fancybox object, it transfers me to a page that contains only the image. I've read several posts that have raised the same issue, but I can't simply solve this problem on my own.

    In order to understand this point, I created a simple test page that contains only the content of my Fancybox and a single image. I'll list the code below:

    <! doctype html >

    < html >

    < head >

    < meta charset = "UTF-8" >

    < title > FancyBox Test < /title >

    <! - load jquery - >

    " < script type =" text/javascript"src =" http://code.jQuery.com/jQuery-latest.min.js "> < / script > .

    <!--> fb style sheet

    "< link rel ="stylesheet"href="/fancybox/source/jquery.fancybox.css "type =" text/css"media ="screen"/ >

    <!-pack jquery fb->

    "< script type =" text/javascript"src="/fancybox/source/jquery.fancybox.pack.js "> < / script >

    < / head >

    < body >

    < a class = "fancybox" rel = "group1" href = "images/Illustration_1.png" > < img src = "images/Illustration_1.png" width = "620" class = "fancybox image" height = "662" / > < / a > "

    < script type = "text/javascript" >

    {$(document) .ready (function ()}

    $(".fancybox").fancybox ();

    });

    < /script >

    < / body >

    < / html >

    I kept all the Fancybox files in a folder called 'fancybox' in my root directory. I know that I do not need to place the image in a group, since I don't currently have more than one image, but finally, I would like to have multiple images, so I went ahead and assigned to a group. I added the class 'fancybox-image' to the image so that I was messing around and it seemed to make it work inside of Live View, but I does nothing for me when I use an excerpt.

    I tested in several browsers, but I tend to use Firefox to test the most. Using the Firefox web developer tools, I found some fundamental questions. The Console gives me the following error: "TypeError: $(...).» FancyBox is not a function"and the Style Editor told me that the style sheet can be loaded. I thought this might give me enough information to solve this problem on my own, but I'm obviously missing something here. Any help would be greatly appreciated!

    Is your folder fancybox on the same level of your images folder directory in your site definition?

    If so, just get rid of the bar oblique leader in your links to the fancybox scripts.

  • App works in control &gt; TestMovie &gt; DebugLauncherMobile but not for Mobile device

    This is supposed to be a very simple application of "press here and it made a noise of."

    When I use the control > test movie > Debug Launcher Mobile > touch and gestures > Touch layer... .She works perfectly.

    But when I publish and export the installer to windows... the button plays no noise when they are hit.

    Here's the code. Help please.

    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

    circle.addEventListener (TouchEvent.TOUCH_TAP, fl_ClickToPlayStopSound);

    var fl_SC:SoundChannel;

    This variable keeps track of whether you want to start or stop the sound

    var fl_ToPlay:Boolean = true;

    function fl_ClickToPlayStopSound(evt:TouchEvent):void

    {

    If (fl_ToPlay)

    {

    var s:Sound = new Sound (new URLRequest("Belly.mp3"));

    fl_SC = s.play ();

    }

    on the other

    {

    fl_SC. Stop();

    }

    fl_ToPlay =! fl_ToPlay;

    }

    Use the debug > debug movie > debugging usb test option.

    (p.s. Make sure that Belly.mp3 is in your control panel "included files" in the air for android/ios parameters.)

  • Help - links work in stand alone film, but not in html...

    Hi guys,.

    I have a huge problem. I have a menu in Flash MX (AS2), it's pretty simple: it's a list of links, but every time you hover over one of several related those highlight (the client really wanted it). The code on each button is:

    {run}
    gotoAndPlay (3);
    }

    {We (Release)}
    getURL ("http://festusobayiuwana.com/index.php?option=com_content & view = article & id = 17'");
    }

    {We (Rollout)}
    gotoAndPlay (1);
    }

    It works fine in IE8, it works fine in the preview in flash, but in FF/Chrome rolling works but the link is not clickable. Nothing happens when you click on. I thought maybe it was a record in question, but when I loaded the film in FF, but not embeded in html that it worked well, it is only when it is embedded in html that will not click on the links.

    The film is here , and the film in a plain html page is here.

    http://festusobayiuwana.com/images/Flash.htm

    There is no code that may be playing with her, because it's the only thing in the html code.

    Does anyone know why this problem might have occurred, please?

    Thank you

    Pete

    you have incomplete incorporation of code swf.

    have the flash publish your html file and use it.

  • Fonts/text resize function works on my local machine, does not work on others.

    I have embedded fonts (and yet he's pushing me always missing fonts by saying whenever I open the flash, but not the fonts that are not correctly resize)

    I have a function that takes in a textfield, resizes the police to adapt to the text box, works fine on my local machine, does NOT work on other machines.

    Does he know about reasons why it does not work? Here's the function

    function fontSizeChanger(dtb,myWidth)
    {
         dtb.embedFonts = true;
         
         var myFormat:TextFormat = dtb.getTextFormat();
         var metrics:Object = myFormat.getTextExtent(dtb.text); 
         
         while (metrics.textFieldWidth>myWidth) 
         { 
              myFormat.size--; 
              metrics = myFormat.getTextExtent(dtb.text);
         } 
         
         dtb.setTextFormat(myFormat);
         dtb.embedFonts = true;
    }
    

    Please mark this thread as answered, if you can.

  • Label and Format data binding work when running in JDev, but not deployment...

    Hello world:

    We run JDeveloper 10.1.3.42.70
    JHeadstart 10.1.3.2.51
    Our Oracle 10 g database is.

    I've been shooting some modifications of an existing Web page. Changes in which I remove an element of the page, or remove a box, this works fine running within JDeveloper (execution ViewController right-click menu arrow) and in the later deployment.

    But what I feel is anything in EO/VO data links - such as the format of a digital or a label behave differently when running in JDEV, then running deployed.

    When I change a label, or in a digital format in the folder of the local editor control tips entity/View, then run the application using the 'performance' within JDeveloper arrow, the changes appear as I expect.

    But I deploy this application, then run and formats and the old labels appear, but the new withdrawal of parts or elements is such that I wait for him. The new formats of labels / is displayed when the server is restarted. I'm testing if we can bounce the app, or bounce the container, but I wonder why these properties of the editor view/entity control Hint may not behave in the same way as other changes (deletion of point or region).

    I tried the model of cleaning & rebuild each time. I tried to clean the ViewController and rebuild each time. I closed my browser and deleted all the cache, then re-opened to make sure that I didn't put one old cached.

    After searching this forum, I tried the check from the "Bind prompt element to ADF BC control indication"Label text? '" under Tools - Preferences - settings of Jheadstart. Who hasn't made a difference.

    I do not understand why these changes form appearing when I run inside the JDEV app, but not when I deploy this application until the server is stopped. I hope certainly that I did not restart the server whenever I want to re - deploy.

    Does anyone have any suggestions? To try to understand what is happening here, I would also like to know where the text is generated when I make a change to a format or label. I can find references to the link in several files, for example ("#{bindings.") PersonLastName.label}'), but where is the actual location of the file that contains the label of 'Name' that I put in the entity control tips Editor folder in the "Text of the label" box?

    Is there a setting on the server? Is there something else I'm supposed to do?

    I appreciate any assistance.

    Mary
    U

    Mary,

    As long as the app server JAVA virtual machine is running, the adf business components are not reloaded. There is no mechanism for reloading available for business components on a JAVA virtual machine running. So, I'm afraid you will have to continue to restart the server. This also occurs when you run the application in JDev. She always starts a new OC4J instance, that's why you see the changes immediately JDev.

    Steven Davelaar,
    JHeadstart team.

Maybe you are looking for