Using custom images for radiobuttons

Hi
I'm looking for help with creating a radio buttons with external images (fetched from XML/Javascript file) cause, I don't want to use standard looking radio buttons from components. I wish to use different images for each state of the button.
Any one can help me with some ideas how to change look of then radio buttons?

To manage homegrown radiobuttons as a group, you would incorporate an event listener function that manages the group.  That function would know which radio button was selected via the event target and would act to reset all of the other radios while setting the one selected.  I don't have a specific AS3 example, but below is a rough draft of the function/scenario.  In this, I am using 3 radio buttons that have numerically differentiated instance names (rb1, rb2, rb3)...
var selectedRadio:MovieClip;
function manageRadios(evt:MouseEvent){
     // first reset all radios
     for(var i:uint = 1; i<4; i++){
          this["rb"+String(i)].gotoAndStop(1);  // frame displaying deselected state
     selectedRadio = MovieClip(evt.currentTarget);
     selectedRadio.gotoAndStop(2);           // frame displaying selected state
     trace(selectedRadio.name);
rb1.addEventListener(MouseEvent.CLICK, manageRadios);
rb2.addEventListener(MouseEvent.CLICK, manageRadios);
rb3.addEventListener(MouseEvent.CLICK, manageRadios);
In this case, each radio button is simply a two framed movieclip, with stops for each frame... frame 1 displays the unselected state, and frame 2 displays the selected state.
For the code shown, I include an external variable (selectedRadio) that can be used to target information related to the selected Radio button.  So if you assigned each radio with a variable (let's say you name it varName) that would hold data to be used in the processing elsewhere, you can get it using: selectedRadio.varName

Similar Messages

  • Using custom images for website?

    Hi, I'm totally new to this Dreamweaver stuff so I'm sorry if this is very easy, but I have created an image in Illustrator that I would now like to use as a website. The image is this:
    I have a background, and a menu bar and I'm trying to figure out how to use it as a background image. I'm looking to create a one column website that is liquid and has a little content on each page.
    Thanks in advance!

    Of course, this CSS will only work if the background image is named "background.png", and it is in the same location as the page you are making.  Perhaps it would be more helpful to do it this way -
    body {
        margin: 0;
        padding: 0;
        background-image: url(the_path_to_your_image);
        background-repeat:no-repeat;
    This will place the background image on the page aligned with the upper, left-hand corner of the browser viewport.  Now you will have to build the page's infrastructure so that the content is properly aligned with the background image.  You may have problems doing this, as this approach is not normally one that is successful (i.e., designing a single background image containing all of your layout elements and then just trying to align content to it).  Think about what will happen with that approach if someone makes their browser display text larger or smaller than you have used while you are aligning things!
    A better approach is to make the background an image (if you use an image at all) that can tile to fill the screen no matter how large the screen is.  Then build the page as a series of stacked rectangular containers, where each container is parent to a single part of the page's layout (like masthead, menu, content, footer, credit for example) and style each container with its own background image/color as needed.  That way, if one container expands because text is resized, the whole arrangement can flex vertically to accommodate it.  This approach will require that you understand enough about CSS to know that using absolute positioning is NOT the right way to go about making such a page.
    If you are not so friendly with CSS, then I suggest you delay your beginning on this site until you have acquired some additional familiarity with it.  A great way to get that is to read the "Missing Manual" volume for your version of DW.  The book is published by O'Reilly press and is authored by David McFarland.

  • Custom image for shipping options

    Hey I was wondering if its possible to display a custom image for each shipping option. So for example if you select regular postage, an image of regular postage would be displayed. If you select express postage, same thing. Is this possible with Business Catalyst?
    One other thing. Is it possible to have free shipping option for 2 or more of a product, but also have express option if they want it?
    Cheers,
    Garuda

    Hi Garuda,
    The image thing would have to be implemented with some JS. You'd listen to the dropdown change and then render the image according to the shipping selection. I unfortunately don't have the code for you that will do this.
    As for the free shipping option, you'd need to use a user defined option of $0 rather than the Free Shipping option and then set your weights so that both options are displayed at the same time when 2 or more items are added.
    Cheers,
    -mario

  • Custom image for bullets

    For Keynote 2.02 I only seem to be able to choose one custom image for bullets. Is this the way it is, or is my application being glitchy?

    Hi Garuda,
    The image thing would have to be implemented with some JS. You'd listen to the dropdown change and then render the image according to the shipping selection. I unfortunately don't have the code for you that will do this.
    As for the free shipping option, you'd need to use a user defined option of $0 rather than the Free Shipping option and then set your weights so that both options are displayed at the same time when 2 or more items are added.
    Cheers,
    -mario

  • Even though I set "Use custom settings for history" when I close the window and recheck it has set itself back to "Rember History"..why?

    I am having trouble getting the settings to stay and can't figure out why...no matter what I do it just resets every time back to the
    "Remember History" and it won't save passwords on some of my sites.

    Firefox shows the "(Never) Remember history" choice if all the history and cookie setting are the default.<br />
    Make at least one change to the default setting if you want "Use custom settings for history" to stay selected.<br />
    Otherwise Firefox will revert to "(Never) Remember history" if you return to the Privacy tab.<br />
    The choice "Use custom settings for history" will stay selected as long as not all settings are the default to make you aware that you made changes.<br />
    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    * Websites remembering you and automatically log you in is stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    See also:
    * http://kb.mozillazine.org/Cookies
    * [[Enabling and disabling cookies]]

  • Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Hi,
    I had never heard of someone using the iPhone Number as the ID in the iMessages account in the Mac version.
    i.e without adding an Apple ID
    iMessages does allow iPhone numbers and mine lists mine.
    I would try this.
    Sign Out of the iMessages account and Quit Messages
    On the iPhone in Settings > Messages remove the Apple ID
    Set the iPhone to Airplane mode for a few minutes (to break with the  Server)
    On starting the phone up again check the iPhone Number  is ticked for iMessages.
    If it is add the Apple ID
    On the Mac restart Messages
    Add the Apple ID
    At this point you should get a pop up or two saying the iPhone is using the Number and Apple ID.
    Accept these and they get added to the Receive At list and Send From drop down.
    9:41 pm      Monday; October 28, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I want to set Firefox to never remember history. When I do this using the tools tab and click okay, it goes right back to "Use Custom Settings for History". I don't want that.

    I know how to manage privacy using the tools tab at the top of the address bar, or so I thought. I want to choose "Never Remember History". When I do that, and click "OK", the next time I check the privacy settings, the history is right back to "Use custom settings for history". I don't want this. Also, I don't want to use autocomplete for forms, but I can't get those settings to stay, either. I basically don't want info. stored on this computer. My system was hacked several months ago, by some joker who named all my system folders a racist slur (I reported it to Norton, and a technician had a look at it). Anyway, I want to keep things as safe as possible. Please allow me to delete all my history when I close Firefox. I don't really like Google, either, because they have a reputation for not respecting people's privacy. I don't like that I didn't have an option to uncheck google's toolbar when I installed Firefox.
    Thank you.

    That is probably OK.<br />
    You may have changed one of the other history or cookie settings.
    If Firefox shows the "Use custom settings for history" setting then that is an indication that at least one of the history and cookie settings are not the default to make you aware that changes were made.

  • How to export book pdf using custom presets for all book files in indesign using javascript

    How to export book pdf using custom presets for all book files in indesign using javascript.

    Hi jackkistens,
    Try the below js code.
    Note: you can change your preset name in below (e.g, Your preset name).
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "Your preset name", myBook.bookContents, "Book_PDF", false);
    example:
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "[High Quality Print]", myBook.bookContents, "Book_PDF", false);
    thx,
    csm_phil

  • I have selected "Use custom settings for history" and pressed "OK" but it defaults back to "Remember history", how do I stop this?

    I have to enable cookies in order to have an online purchase credited to my mileage account. So, I opened Firefox Tool and selected Options then Privacy. There, I changed "Remember history" to "Use custom settings for history," as, this will achieve what I am trying to do. However, when I press "OK" the box jumps back to the Privacy box and I see that "Remember history" is still the setting. What steps do I take to prevent the Privacy box from defaulting to "Remember history" when I want to change that setting to something else?

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    "Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
    Do you have a problem with the cookies?
    You can inspect and manage permissions for the domain in the currently selected tab via these steps:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    *Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • My privacy setting is stuck on Remember history, won't stay on Use custom settings for history after I set and click ok

    When I go into Tools, Options, Privacy and set 'Use custom settings for history' and then click okay it will not save. It stays on 'Remember history', though it will save 'Never remember history' as I tested this. This seems to have happened after recent Firefox latest update. Does anyone know why I can't choose 'Use custom settings for history' as this is the setting I want to use?

    It's not that I'm not satisfied with the current settings, it's just that I'm one of those curious people - wanting to know why suddenly I couldn't change my history setting when I could always chop and change it before to a setting of my choice. I noticed this has happened since recently updating to Firefox 6. When things like this just happen I always search for a reason. Anyway, it sounds as though I am a bit of a novice on Firefox compared to yourself, and if you recommend that it's probably best to stay on Remember History and it's not likely to cause any problems, then say no more, I shall accept your advice. Any more tips would be greatly appreciated! Thanks.

  • Cannot change setting in privacy from remember history to use custom settings for history. I can set in to change but on closing with the ok button thus closing the privacy tab, it then reverts back to remember history.

    I have been by a web sit that the cookies are disabled in the browser. on looking at the help on firefox help the instuction as i understand was to change the setting under the privacy tab ref history fromthe default setting of rember hhistory to use custom settings for history. I change the setting click ok but it reverts back to rember history. I just cannot change the setting.This also happend in the prevous version.

    To see History and Cookie settings in Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    You need to make at least one change to make "Use Custom settings" stay selected.
    If all history settings are the default then the History and Cookie setting revert to "Remember history" the next time you open Tools > Options > Privacy.
    So it looks that your cookie setting are already correct.
    * http://kb.mozillazine.org/Cookies
    * http://kb.mozillazine.org/Websites_report_cookies_are_disabled

  • How to use background image for a page that work in Netscape..???

    Hi there
    Is there anyway around to use background image for a portal page that works well with netscape.
    As I have used that but in coming in Netscape.
    thanks
    Rakesh

    1) You post questions in the wrong forum. (As you title says this is a Swing question).
    2) Not once in your last 10 postings have you ever bothered to reply to a posting to thank people for the help you have received.
    I seriously doubt you well ever get answers in the future.

  • Can i use Custom Tags for Database retrieval (as per MVC pattern)?

    In our project we are dealing with database, and i've used the Cutom Tags for database retrieval (as per the Article from Mr Faisal Khan) and it is working fine. But i have a doubt if it affects the performance in any way . I wanted to know if its recommendable to use Custom Tags for the DB retrieval as per MVC Pattern or shall i create a intermediate bean and then call the bean in custom tag.
    Thanks
    Prakash

    Putting database code in your JSPs certainly couples your view to the database. That's usually not good.
    If it's a simple app, it might be justified.
    When you start having lots of pages and complex business logic it becomes less attractive. - MOD

  • Struts - using html:image for link

    I would like to use an image for a link but I am not sure how to do this. Right now I'm using the <html:link> tag and using the action mapping. Can this be done using the <html:image> tag?
    Here's an example of what I'm currently doing.
    <html:link action="/homePage"><bean:message key="General.button.HomePage"/></html:link>I'm new at java and struts and could definitely use a little help.
    Thanks!
    bfrmbama

    yeah, <html:image> is a form submit button... in HTML, it's this:
    <input type="image" name="thename" src="thesrc" value="thevalue" />
    <html:link> has onmouseover and onmouseout attributes... so you just put the mouseover script stuff there.

  • When I try to set my 'History Setting' to 'Use custom settings for history' it doesn't appply - it continually defults to 'Never Remember History' - how do I fix it?

    When I got into my 'History Setting' and click on 'Use custom settings for history' it doesn't apply. I click on the 'OK' tab and it appears to apply and then closes. When I go back into it, in order to see if it applied, it has reset back to the 'Never Remember History'. How do I fix it?

    If "Never Remember History" is displayed then that means that you are in Private Browsing mode and that all other history settings have the default value.
    *https://support.mozilla.com/kb/Private+Browsing
    If you intend to run Firefox in Private Browsing mode the that is OK.<br />
    Otherwise you need to leave mode.
    To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

Maybe you are looking for

  • Nomad Jukebox Zen Xtra -- Intrinsically Safe

    Is this mp3 player intrinsically safe? So far I've been reading over all the information I can find on it, but I haven't found this specifically. Anyone else found anything about this? For example is it alright to use this when you're around chemical

  • Import/Export Single Object

    Hi Folks, i tested imort/export for SWCV it is working fine...but when i m trying it for single object like namespace etc... I face the problem while exporting/importing a namespace in IR. 1) I exported a namespace using menu Tools->Export design Obj

  • Activate retail in ECC 6.0

    Dear All, Please guide 1. How to activate retail system in ECC 6.0 and 2. What are the differences after activating Retail and 3. Any other settings required in customization ?

  • Problem when Saving Texts using Function Module CREATE_TEXT

    Hi All, I am using Function Module CREATE_TEXT to save text in transaction XK02. But the first character of few lines disappears in one of (Ruled) editor while that character appears in a new line in another editor. In debug mode, I found that value

  • Adobe reader 9 - Updater Plug-in has been removed

    Prior to installing the recent version of Adobe reader, I was able to populate an Adobe reader form. When I now try and populate the same form, I receive an error message "Updater plug-in has been removed. Please re-install Acrobat to continue viewin