Animated Flash Component Scaling when used as Button Skin

I am trying to skin the overSkin of a Flex Button component with an animated Flash .swc component. (Actually, an Accordion Header, but for all practical purposes the same.)
All works completely fine, in most cases.  The problem I run into is when I have any objects in the Flash animation moving on and off stage.  When this happens, although the objects cannot be seen when moved off-stage, the viewable area of the Flash animation scales down in either direction, or both, to make room in the button for the objects off stage.
If I play the animation directly in the application, or a Canvas, everything works fine and no scaling occurs.  But for a Button, where I really need it, I get the constant scaling back and forth as the Flash movie runs.  This can be REALLY annoying when trying to click on a button! (Or you find that you are no longer "over" the button (because it scaled down) so you get flicker back and forth between the Up and Over states.)
Any ideas on how I can keep this from happening, either on the Flash or Flex side would be much appreciated.
Pertinent Code:
[Bindable]
[Embed(source="assets//btn_StaticHollywood.jpg")]
private var Film:Class;
[Bindable]
[Embed(skinClass="fc.HollywoodWithSearchlights")]
private var FilmOver:Class;
animatedButton.setStyle("upSkin", Film);
animatedButton.setStyle("overSkin", FilmOver);
<mx:Button id="animatedButton" cornerRadius="0" />
Note: I tried all assortments of setting dimensions I believe.
Remember, the Flash component has objects that move in and off the stage from both directions, and this is the cause of the automatic resizing of the Button when it runs.

I am assuming that you are using Flex 4 and this does not work. In Flex 4, the default theme used is the "Spark" theme. In Flex 3, we used the "Halo" theme. The Halo theme supports styles like borderStyle, but, the Spark theme does not.
If you want to use these styles, you will need to compile with the Halo theme. You can do this by adding an additional compiler argument -theme=<SDK_DIR>/frameworks/themes/Halo/halo.swc (point to the halo.swc in your SDK installation)
Joan

Similar Messages

  • Adobe flash CS6 crashes when using the type tool or Editing word all the time... please help!

    Adobe flash CS6 crashes when using the type tool or Editing word all the time... please help!

    Nobody can tell you anything without proper system info or other technical details. The standard answer with all text issues simply is, that you have a "bad font" on your system and need to get rid of it.
    Mylenium

  • Errors when using Spark Buttons in dynamically loaded modules loaded by dynamically loaded modules

    Ok ... I have to admit this issue is rather special ;-)
    I have a flex application that loads a list of modules after the user logs in, depending on the permissions of the user.
    One of these modules contains a component, that allows the user to configure settings for different types of objects.
    For each object type (can be extended) there exists one module swf.
    The strange problem I am having now is that as soon as a Spark Button (or anything derived from one ... CheckBox) inside the settings-module. I get the following error (unfortunately in german ... but I'll try to translate).
    This error happens when using a spark CheckBox (Which is derived from Spark Button):
    ArgumentError: Error #2004: Einer der Parameter ist ungültig.
    at flash.display::Graphics/drawRect()
    at mx.graphics::RectangularDropShadow/drawShadow()[E:\dev\4.x\frameworks\projects\framework\ src\mx\graphics\RectangularDropShadow.as:575]
    at mx.skins.spark::BorderSkin/updateDisplayList()[E:\dev\4.x\frameworks\projects\sparkskins\ src\mx\skins\spark\BorderSkin.mxml:174]
    at mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\m x\core\UIComponent.as:8709]
    at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework \src\mx\managers\LayoutManager.as:663]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:718]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1072]
    When having a look at the problem the cause is that width and height are not set (NaN).
    If I use a plain Button I get the same error in "drawRoundRect".
    As soon as I change back to a mx-Button/Checkbox, everything is fine.
    In my current Case I wanted to use a custom TreeItemRenderer to display a CheckBox in the tree. This tree Item renderer is included in a custom Lib that is used by all modules.
    I have one Second Level module using this renderer. I have one Third Level Module thas uses the exact same tree definition. If I use the MX CheckBox I get CheckBoxes in the Second- and Third-Level Module. If I use the Spark-CheckBox I get a CheckBox in my Second Level Module and the above Error in the Third Level Module.
    To make everything even stranger: I have a custom component loading my modules and I use this in the Top Level Module to load the Second Level Modules and in my Second Level Module to load my Third Level Modules (So I would guess If my loader is broken, then the Second Level Modules should not work either).
    Help is greatly appreciated :-)
    Regards,
          Chris

    Ok, I managed to find out what was going wrong and to get my stuff working again. I have to admit that I have no idea why my application / flex was showing this behaviour. The only way I could track this down was by undoing the Subversion checkins one by one. Finding out what was happening using common sense seems to be out of the question with this issue.
    My application is built up of a main application swf that loads module swfs and a library swc that contains common stuff and is used in the main application and the modules.
    I now had some custom TreeItemRenderers in my modules. The problem was caused by moving a custom TreeItemRenderer from one module to the library-swc. I could successfully reproduce this. If I add only one class extending TreeItemRenderer to my library (I don't even have to use it), the entire flex system goes haywire. As soon as I remove that class, everything is ok. I checked, if there might be a problem with third party libs containing flex core classes which might be used instead of the sdk ones, but after looking at the catalogs of the third party swcs I couldn't find a reference to TreeItemRenderer.
    Any Ideas? I sort of dislike the idea of being able to run into such strange problems. Is there a tool that allows me to check for class compatibility issues?

  • Error Message when using menu buttons in IE but not chrome

    Hi.
    My recently uploaded site has an issue when using the menu buttons anywhere on the site in Internet Explorer but not on my mac using chrome? I get this error message come up on screen which takes three clicks to go away  MuseJSAssert: Error calling selector function:TypeError: Object doesn't support property or method . Then if I click anything else it pop ups again. Any ideas how to get rid of this? I have tried re-uploading the muse files but the same happens. I even tried uploading the files from a different exported frm muse folder as I saw had worked for someone else on here but no difference? Any help much appreciated.
    Website : vanletteringco.com
    You may get an error that iPage are sorting when opening too, just delete the /root1 in the address bar to see the site?
    Thanks
    Gav

    Hello,
    I am only getting the MuseJSAssert error on the contact page of your site when viewed in Internet Explorer.
    And as I can see you have used a webform from Jotforms which I suspect might be creating issues here.
    I would suggest you to remove the form  once and then upload your website again. if it starts working fine then get the Embed code of your form again from Jotforms and insert it again to check if it works fine or not.
    Please let us know the results of the testing.
    Regards,
    Sachin

  • Flash video artifacts when using discrete graphics

    So I have a 2011 MacBook Pro with Intel and ATI graphics. When watching flash video (YouTube), I have weird artifacting going on when using just discrete graphics. While using Intel graphics, the video usually plays fine, just a little choppy. I am using gfxCardStatus to switch between them. Is this a flash bug or something else? I've added an image to show what I'm talking about.

    Darrell110 posted in macromedia.dreamweaver
    > problem is I do not want to use another player. I add a
    lot of
    > video for clients and I love how easy it is to do that
    with
    > Dreamweaver.
    I don't see any evidence that you used Dreamweaver to insert
    the
    player. Normally, when you insert Flash with Dreamweaver, it
    inserts
    code I can readily identify. Did you use GoLive?
    The pages you show are consipicuously missing the
    <object> code and
    the JavaScript that DW uses.
    And I don't see any differences in the players. The pages
    both link to
    files named flvplayer.swf (in different folders) with the
    same look and
    the same file size. I am late in this thread, so maybe I
    missed the
    boat.
    Anyway, I don't know if this would make a difference with
    that player,
    but one page uses a relative link to the .flv, while the
    other page
    uses an absolute link, including
    http://. See if changing that one to a
    relative link helps.
    I only watched about a minute from both pages and, although
    872 Kpbs
    for the video track is VERY high, I did not see any glitches.
    (Did you mean to use two slashes in the second link?)
    > Here are samples using the same video file, only
    different
    > PLAYERS:
    http://bobbywarns.com/viewvideo.html
    >
    http://bobbywarns.com//video/viewvideo.html
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Having successfully installed Adobe Flash 11.3 when using Safari on my iMac and downloaded Firefox 21, why still the "plugin has crashed" message on Firefox?

    If my only solution is to downgrade to Flash 10.3 on Firefox by uninstalling Flash 11.3, will I lose the latter with its benefits when using Safari?
    My operating system is Mac OS X 10.7.5 (Lion)

    Flash updated yesterday, so please update your flash and check it out..
    *http://www.mozilla.org/en-US/plugincheck/

  • 2005 A Add-on upgrade to Sp01 u0096 Disconnects when using VCR buttons

    I have a strange issue after I upgraded my add-on to 2005 SP01. 
    The add-on seem to work fine except when the VCR buttons are used I get a system message  “Add-on XXXX is disconnected.” 
    I’m not doing anything with the VCR buttons. 
    And the Add-on continues to run in the background, although SAP isn’t connected to it any more. 
    And I don’t get this error when I’m debugging it. 
    This only happens after I’ve installed it as an add-on.

    Hi John,
    Thanks for your assistance.  i followed the steps and now its working.
    Regards,
    Jennifer

  • Safari 5.1 reloads page when using back button or gesture

    Safari has the strange behavior of reloading pages "navigated to" using the back button or gesture.  Most other browsers I've worked with pull from cache when using the back button.  I don't think this behavior is compliant with standards - defacto as they may be. 
    An example of why this is wrong is the navigation of this forum.  I just loaded Lion and need to use the forum for support.  When navigating back from a particular post to the list of posts the page will reload.  Needless to say several hundred posts have been entered since last looking at the list and I subsequently lose the context of what I read last.  The list of posts from cache which I orginally looked at should be returned - not the latest updated one.  Let me choose when to refresh a page from the cache.
    I downloaded Google Chrome to compare behaviors.  Chrome does not reload pages navigated to using the back button - it pulls the pages from cache.
    I've looked at the configuration of Safari and see no options to configure this behavior. 

    Switch from one finger swipe to two finger swipe
    ok, since i do not have a trackpad, i used my magic mouse. I changed my swipe between pages from one finger to two and my pages no longer re-loaded. Changing that option back to one finger swipe then set my pages to re-load   our setting are slightly differnt, but were looking for the same outcome.   Lood for a "Swipe between pages option. Then look for a drop down triangle. now change your swipe left or right with two fingers to one.   this should re-load your pages now ;-)

  • Game not handling screen scaling when using zoom on Internet explorer on Windows 8

    Hi,
    I'm completely stuck trying to fix a bug in one of our games where any user with Windows 8 playing using Internet explorer have issues with screen scaling and input when their browser is not at 100% zoom level.
    Today, I've tracked it down to a bug in Flash player that was reported 9 months ago, and which seems to have been fixed in flash player 11.9 ([MSFT 3612555][Win 8] - High DPI Displays - Corrects an issue where some content was not scaling with zoom changes). However, it is still occuring for our users. I have the latest flash player installed (13.0.0.206), and the latest flex sdk installed (4.6). Additionally, I'm targeting version 12 when compiling. I'm not sure what to do next, has anyone come across this problem in the past?
    Thanks,
    Graeme.

    Easy solution found.
    It was using the WDS boot image known as "wdsmgfw.efi".
    For proper UEFI mode booting with PXE, remove the original wdsmgfw.efi and make a copy of the file bootmgfw.efi in your RemoteInstall\Boot\x64 folder, and rename that copy of bootmgfw.efi to wdsmgfe.efi.

  • Flash version problems when using Extension Manager

    I am deaf so I wanted to try the extension at
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1182 518
    in case any web sites I visit happen to have provided captioning.
    When I try to install the extension with Extension Manager CS5, it halts with a message saying that I need Flash version 8 or higher.  Downgrading from Flash version 10.1 to 9.x did not help.  Further downgrading to version 8.42 did not help either.  Yes, I did uninstall Flash each time before installing the next version.
    I spent some time trying to find help in "Adobe Community Help", but that program is useless because the font is so tiny and it does not provide a way for the user to select a usable font size.   Reducing my display resolution enough to make "Adobe Community Help" readable renders everything else useless because menus, buttons, fonts, dialog boxes, etc are now so freaking huge.

    I do not have the "Creative Suite" in any version.   I thought I was trying to install an extension for viewing content - I have no interest in creating anything. 
    I went back to the link I posted and it still makes me think it is an extension for displaying captions and that there is a different extension for creating them.
    If it really is not an extension to allow end-users to read captions, then I've been wasting both of ours times.  I'll just go back to nagging web sites - news sites in particular - to stop using Flash and switch to proper video formats that allows captioning for deaf users.

  • How to avoid the "Save As" dialog when using "Close Button"

    Hello All,
    I am facing a problem while closing a pdf file.
    I am using the following code to Open a pdf file.
    CAcroApp objAcroApp = new AcroAppClass();
    CAcroAVDoc objAVDoc = new AcroAVDoc();
    objAVDoc.Open(C:\\new.pdf,Sample);
    objAcroApp.Show();
    After opening the document I am **** some changes (adding markup) in the file.
    Then I am closing the file using the Close Button and in YES for the save confirmation dialog.
    Here is the problem.
    After giving YES, I am getting a Save As dialog with "Sample.pdf" in the FileName box.
    I am getting this only in Acrobat 9.0.
    When I tried the same in Acrobat 8.0 I didnt get Save As dialog. It saved with out "Save As" dialog in "C:\\new.pdf".
    I need to give the same behavior in both Acrobat 9.0 and 8.0.
    Please help me out to fix this issue. Thanks in advance.
    Regards,
    Mohd Mustafa SK

    In what you have posted, there is no reason it shouldn't work the same way in Acrobat 9. I would recommend that you submit your complete application to developer support.

  • Has anyone else had the issue of the the screen randomly flashing black only when using Messages app in landscape?

    I have been having an issue with the screen flashing black for several seconds then turning back on. This olny occurs in the Messages app and only in landscape mode. I have never noticed the issue in any other app. The issue is 100% repeatable. Has anyone else had this issue or know of any solutions to what seems to be a bug?
    -iPhone 5s running iOS 7.1
    KCM

    I think this is an issue with the phone's proximity sensor (the one that turns the screen off when you hold it up to your ear). It's a bug that seems to occur when you switch to another app (any app) while still on a phone call. You'll notice in Messages that the screen goes dark when you move your thumb over the earpiece/iSight camera, but not when you move your other thumb.
    Simplest solution is to force-quit the Messages app (double-click the home button, and swipe up on the app). The problem should resolve itself when you restart Messages.

  • Acrobat 9 : How to modify subject & body of email when using send button in PDF

    Hello,
    I have to create several PDF forms who will be send to my mailadress.
    I already googled a lot but can't find a way to modifiy the subject of the mail and the bodytext of the mail when I use the send button in the purple bar on top of the PDF form.
    My acrobat 9 "speaks Dutch and says :
    Mailsubject: Ingevulde formulieren verzenden
    Body tekst: Instructies voor het toevoegen van het formulier aan een reactiebestand.
    Dubbelklik op de bijlage.
    Acrobat vraagt u een reactiebestand te selecteren.
    I managed to create a send button "in" the PDF with a javascript
    this.mailDoc({bUI: true, cTo: "[email protected]", cSubject: "My own subject ", cMsg: "blah blah blah"});
    But this has no influence on the top button and it also does not check if the mandatory fields are filled.
    Can anyone help ?
    Thanks

    When you distribute a form using the distribute process, Acrobat replaces whatever code you placed in the button with its own. You do not need to use the distribution process to set this up. Instead, Reader-enable the form and your button should work like you want.

  • Flash player timeout when using optus webmail

    hi -i am using windows 8 and explorer 10-i looked at my debugger-it suggested a flash timeout-i do surveys and i have to read the questions-the moment i stop the page pauses but the ads still move-i get a message that there is a long running script-so i hit stop script-and then all fine-maybe optus has not updated there system to work with windows 8-this is a problem i have only on my webmail-have you heard of this one ?-i have contacted optus but they have no idea-love to hear you comments

    What is your Firefox version?
    Does it also hang when you go to http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
    Can you give us a link to a page where it hangs?
    What are the Flash Player process names you see in Task Manager?

  • Duplicate custom component link when used in panelPage

    Hi Guys,
    I created a custom component, pretty simple component, just to create a list of links, something like :
    Community Discussion Forums » Developer Tools » JDeveloper
    It works fine in other pages, but when I use it with panelPage, panelPage automatically adds another link on the bottom of the page, and each time I refresh the page, the links keep repeating itself ... (behaviors kind of like the facet nemu1 links being added in the bottom)
    How can I avoid this behavior? (maybe set some attribute in panelPage?)
    Would really appreciate any help!

    Hi,
    how does the page source look ?
    Frank

Maybe you are looking for

  • Palm support in wtk2.5.2

    after sucessfully download of sun java wireless toolkit i have seen that there is nothing related to palm os infact in the articles of sun i have read out that midp 1.0 supports for palm OS and it also gives convertor for jar to prc tool in wtk 2.5.2

  • Files are missing in vxfs

    As I would like to know about data recovery for vxfs file system in solaris 10 for a vxfs error.

  • Open one than more file from Lightroom to photoshop at the same time

    Hi, i'm a PS Elements-User and i have a question. Is it possible to open more than 1 file from lightroom into photoshop with one click? Thank you in advance for helping me. SH

  • Fail to retrieve the logon ticket,please contact the administrator

    I Still get an error "Fail to retrieve the logon ticket,please contact the administrator" here is my status 1. Set the values "2" for login/create_sso2_ticket and "1" for login/accept_sso2_ticket in DEFAULT profile at RZ10. 2. Current configurationn

  • ESEUTIL /P recovery time

    My exchange 2010 server lost power before it was able to perform a clean shutdown and while coming back online some of the log files became corrupted. I've tried every safe-recovery option up my sleeve but finally decided to run the eseutil /p comman