Losing AS function after a button skin is applied

I am charged with skinning an existing Flex app that works...
prior to my application of skins. I am a novice at this, so please
forgive code that is sloppy.
There are two types of buttons and they require different
skins. I have put one skin in the button class, and one in the
styleName "bSearch". When skinned with Embedded jpgs, the buttons
(both Button class and bSearch) appear properly skinned, and they
change appropriately up, over, down, etc. I know, therefore, that
the app is accessing the image files and applying them correctly.
However, the application stops and does not call the function
for either the button class or the bSearch styled buttons when the
button is clicked. It works fine with a css that does not use a
style name, only button class.
Does anyone have any idea why skinning will interfere with
functionality?
please help.
Respectfully,
Blake

"Podzol" <[email protected]> wrote in
message
news:ghoodi$2ct$[email protected]..
> Hi Amy, Thanks.
> I wish I could do that, but the project is a
discombobulated assembly of
> things that our programmer made and hasn't sorted yet. I
am a graphics
> person,
> so I am limited in my abilities to work with the code. I
did just install
> the
> Flex 3.2 update last night and now a more specific error
comes up. Perhaps
> this
> will be more informative?
>
> ArgumentError: Error #2004: One of the parameters is
invalid.
> at flash.display::Graphics/drawRect()
> at
> mx.skins.halo::HaloBorder/
http://www.adobe.com/2006/flex/mx/internal::drawBorder
> ()
> at mx.skins.halo::HaloBorder/updateDisplayList()
> at mx.skins::ProgrammaticSkin/validateDisplayList()
> at mx.managers::LayoutManager/validateDisplayList()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/
http://adobe.com/AS3/2006/builtin::apply()
> at mx.core::UIComponent/callLaterDispatcher2()
> at mx.core::UIComponent/callLaterDispatcher()
Try making a small basic example that exhibits the problem. A
lot of times,
in the process of doing so you'll also find the answer.

Similar Messages

  • PDF Forms + Illustrator CS4 (losing form functionality after saving in Illustrator CS4)

    I have a form set up that I use to keep information about various projects. The form was created in Illustrator CS3 and Acrobat Pro 8. Previously, data could be entered on the form by another Acrobat user, then opened in Illustrator CS3 by the artist to add artwork to the document. While open in Illustrator, none of the information entered on the form would be visible (the form would appear blank), but after saving the document and opening it in again in Acrobat Pro, both the artwork from Illustrator would appear and the information in the form fields would still be present as well as editable.
    Now I take the same form, I can fill out the data fields in Acrobat Pro 9, save, then add artwork in Illustrator CS4 and save it, all form data is lost and I'm not able to add anything to it in Acrobat Pro 9. (Illustrator seems to be breaking the form and wiping out any info that was previously entered onto the form).
    Any ideas on how to get around this? I tried taking the original document and running it through the forms wizard to sort of re-make the form in Acrobat 9, but I still lose form functionality and information once I save it in Illustrator CS4.

    Actually found a SOLUTION!
    I guess in Adobe infinite wisdom and my lack of formal training in adobe acrobat
    i was unaware of the TouchUp Object Tool (Tools>Advanced Editing>TouchUp Object Tool) it allows you to delete images and Place new images (although doesn't allow placement of .ai or .eps, just compressed images)
    Can also nudge and remove other objects.
    Hope this helps.

  • How do I change button skin with function arguments?

    Hi guys, I am building a map witch I represent with buttons grid 40*26, now I wont to create a function in action script that will get a string that contains the folder name where I am storing the buttons skin data for example:
    [Embed("maps/grass/upSkin.jpg")]
    private var _upSkin:Class;
    [Embed("maps/grass/overSkin.jpg")]
    private var _overSkin:Class;
    [Embed("maps/grass/downSkin.jpg")]
    private var _downSkin:Class;
    private function changeMap():void
         slot:Button=new Button();
         slot.setStyle("upSkin",test);
         slot.setStyle("overSkin",_overSkin);
         slot.setStyle("downSkin",_downSkin);
    This is what I managed to do up to now, what I would like to do is to send to changeMap() a string with the path name, but some how I can't embed a variables, I will be glade if you could find a solution for that.
    This is the link for my site, so you can see what I am talking about. I am not always online but you can try.
    http://gazmanwars.zapto.org/
    *Best view under 1280*960 rez

    in this case StyleManager.loadStyleDeclarations(currentTheme + ".swf"); can come handy.This satement will load new style Declarations for your application on runtime whenever you want.
    currentTheme will be your css file containing styles compiled into swf by flex builder  you can do that by right clicking on css file and selecting
    Compile Css To Swf
    for more information on style Manager see following link
    http://livedocs.adobe.com/flex/3/html/help.html?content=styles_07.html

  • Hi. I just got the iPhone 6, plugged into itunes and made the mistake of putting an OLD back up on my new phone resulting in losing all contacts after 2013. They are not saved on the cloud. Is there any way to go back to before I screwed up?

    Hi. I just got the iPhone 6, plugged into itunes and made the mistake of putting an OLD back up on my new phone resulting in losing all contacts after 2013. They are not saved on the cloud. Is there any way to go back to before I screwed up?

    If you have performed a sync with the device since you restored this old backup, then don't bother looking for another backup. iTunes writes over the last backup each time you sync. If you were handling contacts in iCloud, you would find them by logging into iCloud. Or you can check settings and iCloud and see if the button it on for Contacts. Otherwise it might have been on the computer, if you had a program that syncs with iTunes and handles contacts, depending on the computer system you use. If Windows, it would be Windows Contacts or Outlook. If a Mac, there is a Mac Address book as well.

  • I have a 60G classic with a non-functioning center select button. Can I set a specific playlist and change settings by hooking up to my PC and then maintain those settings and that playlist once I go remote?

    I have a 60G classic with a non-functioning center select button. Can I set a specific playlist and change settings by hooking up to my PC and then maintain those settings and that playlist once I go remote?

    I'm having a little trouble understanding the part about your password having to be reset. Why is that happening??
    Let's start with Firefox's settings:
    (1) You can configure the password manager feature on this tab:
    orange Firefox button (or Tools menu) > Options > Security
    There is a checkbox to enable/disable the feature.
    There also is a "Saved Passwords" button to review and remove any passwords you do not want Firefox to keep.
    That tab also has a feature to set a Master Password so that no one can use your saved passwords without knowing the Master Password. You may need to exit Firefox in order for Firefox to ask for that again.
    Related articles:
    * [[Password manager - Remember, delete and change saved passwords in Firefox]]
    * [[Use a Master Password to protect stored logins and passwords]]
    (2) Site-specific permissions
    If you want to use the password manager for other sites but NOT a particular site, you can configure that in the Permissions Manager.
    In a new tab, type or paste '''about:permissions''' in the address bar and press Enter.
    After the page loads, use the search box in the upper left corner to narrow down the list to the site you want to configure. Highlight the site on the left side, and on the right side, choose Block under Store Passwords.
    (3) Form autocomplete suggestions
    Separate from passwords, Firefox remembers entries you've made into forms (in most cases) and lists the matching ones below the form field in a drop-down.
    To clear a suggestion, press the down arrow key to highlight it and press the Delete key.
    To turn off this feature, see this article: [[Control whether Firefox automatically fills in forms with your information]].
    To review and selectively edit or delete form history entries, you need an add-on. For example, you could try this one: https://addons.mozilla.org/firefox/addon/form-history-control/

  • Function of Refresh Button in Web interface

    Hi All,
    I have created a web layout in which there is "REFRESH" button.
    If i have opened the web layout and i simultaneously do some changes in back end from BW side. After clicking refresh in web interface changes are not reflected.
    What exactly the function of "REFRESH" button is??
    Also is there any other way through which i can get the changes( done in back end) reflected in my already logged in Web layouts??
    Thanks in advance.
    Regards.

    Hi,
    Thanks for your reply.
    Can you clarify it more. Lets take an example. If i have one charachteristics for project say A and i have prepared a layout which is showing that projects attributes like project's begin date, end date, etc..
    Now if i open the Web interface and at the same time if i change its end date from back end, on click of refresh the changes are not reflected...
    But if i again open that Web interface changes are reflected. What is reason for this??
    Any help appreciated.

  • Call function after AutoSuggest select

    Hello,
    Looking at the
    Auto-suggest
    Overview I'm wondering if any clever folks out there can tell
    me the best way to call a function after a user has selected an
    item from the list (preferably by either mouse or keyboard). The
    function takes the selected value as an argument.
    On a related note does anyone think that
    Spry.Widget.AutoSuggest would benefit from a finish option like the
    apry effects have?
    Cheers,
    Peter

    Hi Cristian,
    Thanks for your reply.
    Firstly, I forgot to say in my previous post how great I
    think Spry is, I've played with some other frameworks in the past
    but Spry is the one that has really clicked with me.
    The future developments look very interesting, I'll be
    keeping my eye on Spry.
    As for the what I mean by the finish: callback function, it
    occurs to me that many people may want to have spry do 'x' after
    the user has selected something from the AutoSuggest list. In my
    case I want to filter a recordset based on what the user has just
    selected, this can be done easily by having them click a button
    that calls a function after they have made their selection but
    having the option of this happening 'automatically' would be a real
    boon.
    I don't really know anything about advanced JS so I don't
    know if something like this would be possible. E.g.:
    var ac6 = new Spry.Widget.AutoSuggest("productSampleDiv",
    "productMenuDiv", "dsProducts3", 'name', {containsString: true,
    minCharsType: 2, finish: function x() });

  • Disable Default function of "Back" button for Android.

    Hi there!
    I have tried SO MANY methods to PREVENT the default function of Back button in Android but no success
    This is one of the codes I have used with no success:
    stage.addEventListener(KeyboardEvent.KEY_UP, optionsKey, false, 0, true);
    function optionsKey(ke:KeyboardEvent):void
          if (ke.keyCode == Keyboard.BACK)
                ke.preventDefault();
                ke.stopImmediatePropagation();
              //Do my own code below...
    I am using Flash Cs6 , Air 3.2 for Android , Testing it on LG Google nexus 4.
    When I use the flash simulator, it works fine! Means the Back Button, let the App go back to previous step (as I expect it to do)
    But after I publish the apk (Aspect ratio: Auto , Auto orientation , Render mode: GPU), as soon as I press BACK, it minimize my app!
    (means when i press the Back button on my phone, the App minimize down (not close!). when I re-activate it/click on it, I see the app has actually gone one step BACK (as I programmed and expected), but I just CANT STOP the default action of MINIMIZING/De-activating my app after pressing Back button.
    Anyone have any "Fla" file that I can see it in ACTION please?!
    Because I have used many-many codes and no success yet
    thanks and looking forward for your any kind of hlep...
    Message was edited by: Pouradam

    I got my own answer thanks to myself!!
    in above code .KEY_UP should be changed to .KEY_DOWN.
    simple!

  • No messages by perfoming a Function After Data Change - Web Interface Build

    Hey Xperts,
    I have a problem to see messages, when I perform a Function via WEB - Function After Data Change.
    You can select by costomizing a Subcomponent "Layout" that a Function can be performent by the feature "Function After Data Change".
    But when I run the function there is no message in the message tray.
    When I run the function via Button, there will come up a messages.
    Is this a buk or a feature.
    How can I see message by performing a Function After Data Change ?
    Thanks for help.
    Thomas

    Hi Thomas,
    the system works as designed. It would be a bit anoying if the success messages are always displayed. Therefore only errors are shown.
    If you really need it, here's the modification:
    Include LUPWB_COMPONENTD18
    *   PROCESS FUNCTION (after data set)
        if m_state-request-function = cb_true.
          l_function ?= if_upwb_c_layout2~get_function( ).
          if l_function is not initial.
            l_function->_execute(
    *          i_show_success_msg = cb_false ).   "<<<DELETE
               i_show_success_msg = cb_true ).   "<<<INSERT
          endif.
          m_state-request-function = cb_false.
        endif.
    Regards
    Marc
    SAP NetWeaver RIG

  • Call javascript function after submit process

    Hi,
    How can I call javascript function after my submit process ?
    Thanks.

    Hi Carl,
    You say that I must have an Item or region that contains my js with conditionnal display. With this method I can execute my js with specific request value.
    My problem is that I tried to integrate the "save large value workaround" in my application with the APEX wysiwyg (fckeditor). To do that I have to call the javascript function clob_submit on the save button. This function save the value of my field but if I want to save other item value, how can I do that ?
    If I use your method, I will submit the page, save the other field and after that, I will branch on the same page. At this moment, I will execute my javascript file.
    Is it what did you said ?
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • Slideshow not resuming after certain buttons are used?

    Hello,
    I have this slideshow that I'm so close to having completed, but there's one issue I'm having with it not resuming after certain buttons are used. I've tried to figure out what could be causing this but I just can't see what it could be. I feel I'm so very close to having this completed if it weren't for this one issue.
    In the slideshow buttons '1' and '2' work perfectly, however buttons '3' to '6' are not working completely as they should. During the slideshow, as it plays through the slides if you click on button '1' or '2' you are taken to the corresponding slide and then the slideshow automatically resumes, which is correct. However, if you click on any of buttons '3' to '6' you are still taken to the corresponding slide, but the slideshow does not resume and stays on that particular slide. I've looked over the Action Script 3 code several times and I just don't see what could be causing this but I'm not too experienced so there could be some error, no matter how minor, that I am missing.
    I've attached the file and if anyone has any advice at all or can help in any way I would REALLY appreciate it!
    Thank you,
    William

    In looking at the post I just made just now, I notice my attachment didn't come through. I'm not sure why this happened, but here is the code I'm using for the buttons:
    btn1.addEventListener(MouseEvent.CLICK, btn1ClickHandler);
    function btn1ClickHandler(event:MouseEvent):void
        gotoAndStop(10);
    play();
    btn2.addEventListener(MouseEvent.CLICK, btn2ClickHandler);
    function btn2ClickHandler(event:MouseEvent):void
        gotoAndStop(55);
    play();
    btn3.addEventListener(MouseEvent.CLICK, btn3ClickHandler);
    function btn3ClickHandler(event:MouseEvent):void
        gotoAndStop(105);
    play();
    btn4.addEventListener(MouseEvent.CLICK, btn4ClickHandler);
    function btn4ClickHandler(event:MouseEvent):void
        gotoAndStop(150);
    play();
    btn5.addEventListener(MouseEvent.CLICK, btn5ClickHandler);
    function btn5ClickHandler(event:MouseEvent):void
        gotoAndStop(210);
    play();
    btn6.addEventListener(MouseEvent.CLICK, btn6ClickHandler);
    function btn6ClickHandler(event:MouseEvent):void
        gotoAndStop(259);
    play();
    And here is the code I'm using for slide images:
    link_1.addEventListener(MouseEvent.CLICK, link_1ClickHandler);
    function link_1ClickHandler(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.debcosolutions.com/en-us/categoryredirect.aspx?categoryid=gifts%20worth%20givin g%20can&pricing=cad"));
    link_2.addEventListener(MouseEvent.CLICK, link_2ClickHandler);
    function link_2ClickHandler(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.debcosolutions.com/EN-US/redirect.aspx?ssk=CU7323&pricing=CAD"));
    link_3.addEventListener(MouseEvent.CLICK, link_3ClickHandler);
    function link_3ClickHandler(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.debcosolutions.com/EN-US/redirect.aspx?ssk=CL7292&pricing=CAD"));
    link_4.addEventListener(MouseEvent.CLICK, link_4ClickHandler);
    function link_4ClickHandler(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.apple.com"));
    link_5.addEventListener(MouseEvent.CLICK, link_5ClickHandler);
    function link_5ClickHandler(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.debcosolutions.com/EN-US/redirect.aspx?ssk=CL7306&pricing=CAD"));
    link_6.addEventListener(MouseEvent.CLICK, link_6ClickHandler);
    function link_6ClickHandler(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.debcosolutions.com/en-us/categoryredirect.aspx?categoryid=shocking%20deals%20-% 20cl&pricing=cad"));

  • Have you experience a problem about losing your internet after downloading itunes? How to fix it?

    Have you experience a problem about losing your internet after downloading itunes? How to fix it?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself

  • Button Skin: How to add button properties (over, down,up)

    Hi all,
         I made a custom button "skin" because I want my buttons to be images with NO box or border around it and it works great, but I don't know how to add the button functionality. ex. In "over" state buttons tend to light up and in "down" state they tend to get darker. Anyone know how to apply this to an image??? below is my code. Thanks guys!!
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx" width="64" height="64">
        <fx:Metadata>
            [HostComponent("spark.components.Button")]
        </fx:Metadata>
        <s:states>
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="up" />
            <s:State name="disabled" />
        </s:states>   
        <mx:Image source="@Embed(source='assets/images/lightbulb.png')"/>
    </s:SparkSkin>

    You could try something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx"
                 width="64" height="64">
        <fx:Metadata>
            [HostComponent("spark.components.Button")]
        </fx:Metadata>
        <s:states>
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="up" />
            <s:State name="disabled" />
        </s:states>   
        <mx:Image source="@Embed('assets/images/lightbulb.png')"
                  source.over="@Embed('assets/images/lightbulb_lit.png')"
                  source.down="@Embed('assets/images/lightbulb_dark.png')"
                  source.disabled="@Embed('assets/images/candle.png')" />
    </s:SparkSkin>
    Peter

  • How to find function code for buttons on toolbar in oops alv

    Hi experts,
    I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
    method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALV

    Hi Prakash,
    -->First you have to set the pf status in your alv program by,
    {FORM pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'FIRST'.
    ENDFORM.                    "PF_STATUS}
    -->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
          i_callback_pf_status_set          = 'PF_STATUS'}
    *-->Then doble click on that pf status,
    From the menu bar, select Extras->Adjust Template->List Viewer,
    This will give you the existing statndard gui status of the program*
    ->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
          i_callback_user_command           = 'COMM'
    And make a subroutine of the name 'COMM'i.e,
    FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      DATA: okcode TYPE sy-ucomm.
      okcode = ucomm.
      CASE okcode.
        WHEN 'REF'.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel         = 'MANSI'
            txt1          = 'CREATED BY'
            txt2          = SY-UNAME
          TXT3          = ' '
          TXT4          = ' '
    endcase.
    Hope it helps you
    Regrds
    Mansi

  • What is the purpose of Destination Function on Submit Button?(Doesn't work)

    Hi Gurus,
    There is a property "Destination Function" on Submit buttons.
    What is the purpose of this field.
    I tried setting some values here expecting following behavior in order:
    1. Process Form Request will get executed.
    2. User will be navigated to the OAF page related to the Destination Function.
    Destination Function property probably point to setInvokeFunction method of the OASubmitButtonBean.
    Please advise on this.
    Thanks and Regards,
    Prince

    Question 2. What is the purpose of View Instance on Submit Button? Is it there for BoundValues? Any examples how can we use this?
    Question 3. Related to Question 2, What is the purpose of View Instance and View Attribute on Button?

Maybe you are looking for

  • Multiple Headings in a Report with Optional Sections

    I’m trying to create a BI publisher document that has a main section and two optional sections. The report is for an Oracle Apex 4.1 application so user responses regarding the sections they require is via an apex page. Apex allows session state vari

  • Photos taken on My I Phone 6 do not show up ON my Macbook Pro both on I cloud

    I have my I phone 6 with IOS 8.3. Then I have my Macbook Pro w/Retina Display 2014 with 10.10.3 with Photos. I migrated my I Photo Library to Photos and that went well. However since I updated both my I Phone and Macbook pro, Pictures I take on my I

  • Itunes 7.4.1.2 interfering with wireless network

    This is a weird one, i hope someone can help!! I upgraded my ipod the other day to an 80Gb ipod classic (6th gen) and so i had to upgrade to the lastest version of iTunes. Having done this, 8 times out of 10 when i eject my iPod from within iTunes my

  • Connect the iPhone to iTunes under Windows 7 via Bluetooth

    Is it possible to connect the iPhone to iTunes under Windows 7 via Bluetooth?

  • How to remove the START/END marker ?

    Hi. At the top of the arrange page , where the bars and beats are numbered , i have these Start and End markers , which i can move about but cant get rid of. Once the song hits the end point, recording stops. I can move this further away to increase