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

Similar Messages

  • How do I change my country with a balance in my account

    How do I change my country with a balance in my account

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How can I change from paying with a credit card to using prepaid for itunes

    How can I change from paying with a credit card to using prepaid for itunes on ipad 2 .alrwady have app ID

    iTunes Store: Changing Account Information
    http://support.apple.com/kb/HT1918
    Apple ID Support - Manage Account
    http://www.apple.com/support/appleid/manage/
     Cheers, Tom

  • How can I change the language with the .dat (.bak) file?

    How can I change the language with the .dat (.bak) file? Is it legal?
    How does it work?
    Thanks for answering

    https://discussions.apple.com/message/17364930#17364930

  • How can I change of page with double click on my I-pod nano 7th generation?

    How can I change of page with the double click feature on my I pod nano 7th generation?

    I can't really understand what you are asking. Can you elaborate?

  • How do I change beige tabs with white text to beige tabs with black (or some other dark color) text?

    Classic Restore changed by FF 29 tabs to beige with black text on the active tab and to beige with white text on the other open tabs. The white text is not visible. How do I change the white text to a darker color?
    If this cannot be done, is there a way to reinstall FF 29 with just the security updates (and not all the other gimmicks) so that I can retain my FF 28 settings? Thank you.

    # Open the Add-ons Manager (Ctrl+Shift+A; Mac: Command+Shift+A), then the Extensions category.
    # Next to Classic Theme Restorer, click the Options button.
    # Click the Custom Colors tab, then the Tab (active/hover/default) tab below that.
    # Below Tab (active), check "Text", then click the color swatch and pick black.
    # Click the Tab (unread) / New Tab tab.
    # Below Tab (unread), check "Text", then click the color swatch and pick black.

  • How to extend the button together with a shadow?

    I had never used Photoshop. I found a nice button: http://www.psdchest.com/2011/05/09/web-elements/ and I would like to customize so that it includes the words driver or passenger. What tools I should to use and in what order to extend button together with shadow and maybe also reduce the break angle? I can now only change text. In psd file from link I mean the button from group->light->switch 1 on.

    It looks good so far.
    For the bevel pick (Hold Apple-Key to pick multiple layers at the same time) the follow layers and Re-Scale (Edit/transform/Scale) to give it less depth. I suggest grabbing the bottom right conner and moving up and to the left, you will see what I mean.
    Shape 3 copy 10
    Shape 3 copy 4
    Shape 2 copy
    After you do this you will see the Underneath black layer. You need to Re-Scale this on its own to get the right effect. Its file name is: Shape 3 copy 3.
    I would love to see how it comes out.

  • How Can I change a report with base in another in the same dashboard?

    Hi,
    I need to publish two reports in a dashboard, the first report is a list of values and the second report is a chart. When I click in a value of the first report, the second report must change with the value selected from the first report.
    I first created the first report, and I changed the column properties in the data format, I selected treat text as: "Custom Text Format", the Custom Text Format is:
    @[html]"<f ont class=Nav oncl ick=\"Ja vaScr ipt:GoNav(event, '/path/reporte2','TABLE','FIELD','"@"');\">"@"< /fo nt>";;@
    The second Report has the next filter: FIELD is equal to / is in @{NQ_SESSION.@}
    With this the first and second reports works well, however, when I include the two reports in dashboard, the second report is updated in another window not in the same section.
    How Can I change the second report in the same page or section where this the first report?
    Thanks
    Edwin Guerrero

    I am not sure whether this would work but worth a try. Create a third report which would call the 2nd report using iframe and GO URL. Name the iframe of the narrative view. And use the java script to update the iframe using objWin = window.open(<ur go url>, “biee”,”height=480,width=240,scrollbars=yes,resizeable=yes”);. I had used a similar method to integrate biee with mapviewer. You can check it out here http://oraclebizint.wordpress.com/2007/09/26/oracle-bi-ee-10133-and-mapviewer-step-by-step-integration-phase2-and-phase3/
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • I am planning to change my e- mail address to a g mail account.... how do I change the info with Apple?

    I am planning to change my e-mail address to a g-mail account.
    How do I change my apple accounts?

    Manage your Apple ID primary, rescue, alternate, and notification email addresses. Add, change, or delete the several types of email addresses you can use with your Apple ID account.

  • How to copy a generic extractor with function module into a new system?

    Dear Gurus,
    i would like to know how i can copy a gneric datasource with function module from one system to the target system.
    Thank you
    Cheers

    Hi Anesh,
    thank you for replying.
    Since the Datasource will have a new new in the new system, i will create a new one.
    Create a generic datasource base on the table is not the problem.
    My problem is how could i copy the FM in the new system?
    If you can help me on that, it will be fine.
    Thanks

  • How do i change image associated with login on forum?

    just registered. Site assigned an image for my account. How do I change the image?
    This question was solved.
    View Solution.

    Click on your nickname "marzona" in blue text, and then look at the right side of the screen for "Resources & Settings".  Click on it.
    Now click "User Settings".
    Look for the "Avatars" tab and click it.  Here is where you can change your avatar.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How can I change Time data with List Entry Screen ?

    Hi expert.
    I transfer Time Data (Infotype 2003) via CAT6.
    When I go to transaction PA61 and click List Entry icon.
    Record is display and cannot change data.
    If I wanna change data.I must to click Choose Icon one by one record.
    How can I change data with List Entry Screen?
    ps. If record create via PA61. I can change data with List Entry Screen.
    I can't change with record that create via CAT6.
    Best Regards.

    have u tried to change your time entry through CAT2 tcode, ithink if u have created profile for time entry then it should allow you to change and you can use esc otherwise, its generally the standard profile given by SAP. but is 4 one user
    hope this helps
    guds

  • How can I change iPhone 3GS with iPhone 4 White ?, How can I change iPhone 3GS with iPhone 4 White ?

    I am using a iPhone 3GS at the moment...and I would like to change that phone with iPhone 4 White.. so.. where can I change and how ?...

    Not sure I understand the question... you want to swap your phone out?
    If that's the case, depending on who your provider is, and where you originally purchased the phone, you should probably begin your discussion there, and find out if you have an upgrade or exchange option.
    If you've purchased the iPhone 4, and just want to sync and start using THAT phone instead? And have all of your apps, and music moved over there? Well... we can do that!
    If you can clarify the question, I'll narrow down the answer!
    Thanks...

  • How do i change the song with handsfree

    How do i change the song in iphone 4s, with handsfree, when i try to change it says siri not available, it says connect to internet. why do i need internet/data to change my song.
    is there any way to do that with hands free

    All of Siri's natural language processing is done on remote servers. Unless you have a data connection, there's no way to reach those servers.

  • How do I change a PDF with colored pages to all be white?

    I received a PDF that has colored pages.  How do I change them to all be white?  I have tried removing the background, but no background is found.  So, I tried to add a white background but that has not worked either.

    Can you select the background using the Edit Text & Images tool? If so you could select and delete it. Or you could find the right Path element in the Content pane and delete it there.

Maybe you are looking for

  • How do I Add groups to my contacts and delete a contact once it's in the group

    How do I Add groups to my contacts and delete a contact once it's in the group

  • RFC Sender Communication Channel is not Working Properly

    Hi All, I had a Small Problem. I had configured RFC Sender in Asyn mode as given in Weblog 5398 The Scenario is working fine for 1 time, after the execution the Communication Channel should be made Active again to make it work for the next time. For

  • Facebook & Tweet buttons

    Hey has anyone successfully found a way to add both the new twitter tweet button and the facebook share button to their iWeb site and each new post? I have been trying to find out how to do this all night and have had no luck...

  • Error Loading Transcode Preset

    I'm suddenly getting an "Error Loading Transcode Preset" message. It won't let me import files or create timelines from them. Files are .m2v and .wav How do I correct this? Thanks. Bobb

  • How do i make a dvd from an iphoto slideshow?

    I've got a slide show established in iphoto.  It's complete with music.  What's the simplest way to get it onto a dvd so I can show it at a party for my parent's 50th anniversary?  The guy supplying the projector said it has to be a DVD.