Access image in item render

hello guys i have an item renderer
like so
<mx:Component>
<mx:HBox width="100%" height="70" paddingLeft="0" paddingRight="0">
<mx:Image id="gb"  source="assets/Warning.png" enabled="true" alpha="1" click="outerDocument.ShowPidmHideDuplicate();"  useHandCursor="true" buttonMode="true"/>
<mx:Text id="stext" text="{data.fwvitals_messageA}"
                    fontFamily="
Georgia"                     fontSize="
14" fontWeight="bold" />
<mx:Image id="his" source="assets/history.png" enabled="true" alpha="1" useHandCursor="true" buttonMode="true"/>
</mx:HBox>
</mx:Component>
I would like to access the image in the item renderer so i can change it to something else using actionscript 3.0 does anyone know how does one go about doing this?

Hi miguel,
You can access the image in your itemRenderer the following way by writing the ActionScript block within the itemRenderer...
<mx:itemRenderer>
    <mx:Component>
     <mx:HBox width="100%" height="70" paddingLeft="0" paddingRight="0">
      <mx:Script>
                  <![CDATA[
               private function changeImage():void
                  gb.source = "assets/Warning1.png";
                  his.source = "assets/history1.png";
                  ]]>
              </mx:Script>
      <mx:Image id="gb"  source="assets/Warning.png" enabled="true" alpha="1" click="outerDocument.ShowPidmHideDuplicate();"  useHandCursor="true" buttonMode="true"/>
      <mx:Text id="stext" text="{data.fwvitals_messageA}" fontFamily="Georgia" fontSize="14" fontWeight="bold" />
      <mx:Image id="his" source="assets/history.png" enabled="true" alpha="1" useHandCursor="true" buttonMode="true"/>
     </mx:HBox>
    </mx:Component>
</mx:itemRenderer>
You can call the function changeImage() either on a button click or any event you want to chnage the source of image..
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari

Similar Messages

  • Access to gallery item dimensions?

    I know we can't use something like {{item.dimensions}} in a custom gallery layout, but does anybody know of a way to access image dimensions without having to resize them algorithmically?

    I need the dimensions for use with  data-size="" and data-med-size="" as per the use case below. The application works acceptably with the small and large versions of the images pre-defined programmatically, but it'd be far better to use the normal image sizes, especially because this current setup doesn't exactly sit well with portraits!
    <div class="collection-gallery" itemscope itemtype="http://schema.org/ImageGallery">
        {% for item in items %}
        <a class="gallery-item" href="{{item.link}}?Action=thumbnail&amp;Width=1200&amp;Height=772&algorithm=fill_proport ional"
          data-size="1200x772"
          data-med="{{item.link}}?Action=thumbnail&amp;Width=1024&amp;Height=641&algorithm=fill_pro portional"
          data-med-size="1024x641"
          data-author="" itemscope itemtype="http://schema.org/ImageObject">
              <img src="{{item.thumbnailLink}}" alt="" itemprop="thumbnail" />
              <figure itemprop="caption description">{{item.description}}</figure>
          </a>
        {% endfor %}
    </div>

  • How do I overcome Keychain access "Access to this item is restricted".  I need to view a password stored in Keychain

    I am the adminstrator and only user of this MacBook.  I need to see an internet password which is not stored on my browser or email client.  When I go into Keychain Access and check the Show Password box it asks for Keychain password - that is no problem. Enter password, hit OK, then the message comes up Access to this item is restricted.  I have gone into File - Get Info and made it read and write to Administrsators, System, Wheel and myself but it still says Restricted.  Any ideas anyone PLEASE!!

    I posted the same question elsewhere, but after poking around I discovered the following, which might be helpful. 
    Open Keychain Access, which is in your Applications/Utilities folder.  There should be two sections on the left sidebar, Keychains and Category.  When I opened it, only the Category section showed, but I eventually found an arrow which expanded the Keychains section. 
    Choose Login in the Keychains section, and "Passwords" in the Category section.  Use the search field to find the program you need the password for, and double-click on it.  A window with that program's label will open.  Under the Attributes tab, click on the little Show Password checkbox.  You'll be asked for your admin password.  Once you've entered it, the password will appear in the Show Password field.
    As an aside, I thought this is what I was doing all along, so here's another thing I did before it started working:  I found Keychain First Aid and ran both the Verify and Repair options.  Both of these reported no problems, but it might have done something to encourage things to work right.*
    *As you can tell, I anthropomorphize my electronic devices.  It's the only way to cope with the way they misbehave.

  • How to access images in my localmachine without deploying them

    Hi
    I am trying to access images in my localmachine from an ADF Application (11.1.2.4). If the source of the images is an url address it works fine. However, if they are in my local machine I don't know how to make it work. I don't want to deploy them with the application. I want them to be referenced like:
    file:///C:/images/bla/bla.jpg
    I might be failing is something really silly. Apologies in advance.
    Regards

    You can only address images inside your web root directly. The application can't just reference your file system.
    You can archive this using a servlet which you call via an url with parameters (e.g. the filename) and send the image from there (where you have access to the file system).
    Timo

  • Error while trying to access a Repository Item thru ACC

    Hi,
    I was trying to access a Repository Item from ACC , I am getting this following error :
    Error reading list or array index from the database. This means the database table holding this property does not have sequential integers starting with 0 in its multi-column. This should only happen if the database table was modified directly (outside of Dynamo).
    java.lang.Exception
      at atg.adapter.gsa.ListTable.loadHelper(ListTable.java:190)
      at atg.adapter.gsa.ListTable.loadProperties(ListTable.java:97)
      at atg.adapter.gsa.GSAItemDescriptor.loadProperties(GSAItemDescriptor.java:5874)
      at atg.adapter.gsa.GSAItemDescriptor.loadProperty(GSAItemDescriptor.java:5986)
      at atg.adapter.gsa.GSAItem.getPersistentPropertyValue(GSAItem.java:1339)
      at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1232)
      at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1510)
      at atg.repository.RepositoryItemImpl.getPropertyValue(RepositoryItemImpl.java:151)
      at atg.repository.nucleus.RepositoryItemPropertyMapper.getPropertyValue(RepositoryItemPropertyMapper.java:151)
      at atg.beans.DynamicBeans.getPropertyValue(DynamicBeans.java:333)
      at atg.beans.DynamicBeanState.initializeFrom(DynamicBeanState.java:152)
      at atg.beans.DynamicBeanState.<init>(DynamicBeanState.java:122)
      at atg.ui.repository.model.RepositoryItemState.<init>(RepositoryItemState.java:428)
      at atg.ui.repository.model.RepositoryAgentImpl.createRepositoryItemState(RepositoryAgentImpl.java:2934)
      at atg.ui.repository.model.RepositoryAgentImpl.getRepositoryItem(RepositoryAgentImpl.java:3901)
      at atg.ui.repository.model.RepositoryAgentImpl.getRepositoryItem(RepositoryAgentImpl.java:1225)
      at atg.ui.repository.model.RepositoryAgentImpl.getCompressedRepositoryItem(RepositoryAgentImpl.java:1251)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at atg.security.proxy.UserSessionProxy$SessionSkeletonHandler.invoke(UserSessionProxy.java:273)
      at atg.rmi.context.ContextualSkeletonImpl.invoke(ContextualSkeletonImpl.java:127)
      at sun.reflect.GeneratedMethodAccessor401.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
      at sun.rmi.transport.Transport$1.run(Transport.java:159)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:662)

    Got corrected with changing data-type for a property in the definition file.

  • TS3276 When I try and access my sent items- mail quits due to an error? How do I resolve this?

    Just last eek, the mail started generating an error message, when I try to access my sent items folder. I can receive and send emails but for reference of items that I have sent, I cannot access them as it says that 'mail quit unexpectedly'. Please can someone offer any advice- It doesn't give a specific code either? The message is as follows... (and more)... It says that the report will be sent to Apple but then what?...
    Process:         Mail [2137]
    Path:            /Applications/Mail.app/Contents/MacOS/Mail
    Identifier:      com.apple.mail
    Version:         4.5 (1084)
    Build Info:      Mail-10840000~1
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [1889]
    Date/Time:       2012-05-14 12:08:26.211 +0100
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          150366 sec
    Crashes Since Last Report:           10
    Per-App Interval Since Last Report:  141708 sec
    Per-App Crashes Since Last Report:   10
    Anonymous UUID:                      71421F5A-9DD0-467B-92C6-3C58F25777E8
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Crashed Thread:  14
    Application Specific Information:
    -[MessageContentController _fetchContentsForMessage:fromStore:withViewingState:]
    abort() called
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ABGroup nts_CustomImageData]: unrecognized selector sent to instance 0x114c46ad0'
    *** Call stack at first throw:
              0   CoreFoundation                      0x00007fff83d93784 __exceptionPreprocess + 180
              1   libobjc.A.dylib                     0x00007fff8a144f03 objc_exception_throw + 45
              2   CoreFoundation                      0x00007fff83ded110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
              3   CoreFoundation                      0x00007fff83d658ef ___forwarding___ + 751
              4   CoreFoundation                      0x00007fff83d61a38 _CF_forwarding_prep_0 + 232
              5   AddressBook                         0x00007fff84bf08d7 -[ABRemoteImageLoader workLoop] + 1548
              6   Foundation                          0x00007fff823de114 __NSThread__main__ + 1429
              7   libSystem.B.dylib                   0x00007fff888e3fd6 _pthread_start + 331
              8   libSystem.B.dylib                   0x00007fff888e3e89 thread_start + 13

    Try rebuilding the mailbox.
    To do that
    1) Launch Mail,
    2) Select the account
    3) In the Mailbox menu, select Rebuild.

  • HT201272 I have deleted a song from my library and want to re-download it.  When I access my purchased items in the iTunes store, the song has the 'purchased' button next to it and won't let me re-download. Any suggestions for things to try?

    I have deleted a song from my library and want to re-download it.  When I access my purchased items in the iTunes store, the song has the 'purchased' button next to it and won't let me re-download. Any suggestions for things to try?

    While you can redownload most past purchases without charge, you can't redownload movies without paying again.  See Downloading past purchases from the App Store, iBookstore, and iTunes Store: http://support.apple.com/kb/HT2519

  • Access image size and color profile

    Hi all,
    Is it possible to access image size and color profile ? If not, will it be possible in CS6 ?
    Thanks.

    Load the external XMP library and get it from that?

  • How can I access images from IPhoto on my Mac to Photoshop CS6

    How can I access images from IPhoto library on my Mac to Photoshop CS6?  I enable jpg with format "Photoshop" and this is what comes up -  "Could not complete your request because Photoshop does not recognize this type of file" 

    MountainArtist wrote:
    …I enable jpg with format "Photoshop" and this is what comes up -  "Could not complete your request because Photoshop does not recognize this type of file" 
    Photoshop is not a format.  It's an application.
    What you are looking at are not true JPEGs, just iPhoto's "tease" representations of the hidden images it swallowed, as explained above.

  • How to access images files outside an ear file

    I tried accessing images that are not part of the ear file which i deployed. And
    which created on a fly during the execution of applicaiton. I get URL not found
    error, can any one let me know if is there any way where in i could access the
    files not part of deployed ear. I am uisnig Weblogic 6.1 Awaiting for a reply
    ASAP.
    Thanks
    Anastasia

    Generally, accessing files that are not within your
              war hierarchy is not allowed. Everything the webapp
              needs should be contained within the webapp.
              WebLogic does have an extension known as "virtual
              directories" which does allow you to access content
              outside the war. There is information on it at:
              http://e-docs.bea.com/wls/docs70/ConsoleHelp/war_webappext_virtualdirectorymapping_config.html
              mark
              > "Ajit Mukka" <[email protected]> wrote in message
              > news:[email protected]..
              >
              > Hi
              >
              > I tried accessing files that are part of my Default WebApp directory.
              > These files are not part of the ear file which i deployed. I create
              > few runtime files and make dynamic calls to access those files.
              > I get URL not found error, can any one let me know if is there any
              > way wherein i could access the files not part of deployed ear.
              > awaiting for a reply asap.
              >
              > Thanks
              > Ajit
              >
              

  • Checkbox DataGrid Item Render Issue

    I have a DataGrid component that has a column with a checkbox
    item render. The code at the end of this post is identical to the
    code at the bottom of the tutorial on this page:
    Tutorial
    The creation complete method calls a PHP function using the
    AMFPHP framework. The PHP function returns an array of MySQL rows.
    When I created the application initially, I was using the HTTP
    Service component that would return the data as an XML list and
    then Flex would bring it in as an Array Collection. The only thing
    I changed was how the records were getting returned to Flex, which
    is using AMFPHP. Now the item render does not function properly. If
    the first record returned had a value of "true" then all the
    subsequent rows would have their check boxes checked. If it were
    "false" then the subsequent rows would have their check boxes
    unchecked. Why is it doing this? It worked the way it was suppose
    to before.
    Also I have a label component nested in the itemRenderer to
    see if it matches the data in the MySQL database; which it does
    match. Here is a screenshot of what exactly I am seeing:
    Screenshot

    Maybe the values being returned must be cast to Boolean
    now?

  • Access image files on mobile device

    Hi
    I've just started playing about with J2ME and was writing a application for my mobile (LG8120) ... it a simple applicaion, an image scroller. Allowing the user to scroll around a large image using the keypad ... Anyhow, i've come across a snag! .. How do you access images off the mobile device?, such as taken by the camara, or sent to me ... basically file access! ...
    thanks for your time ...

    For image access you have 'Image' class and 'ImageItem' to display image on form.
    You can either get image from resource file (bundled with jar) or via HTTP.
    For resource file use :
    getClass().getResourceAsStream(imageFile)
    For HTTP use:
    HttpConnection newHttpConnection = (HttpConnection) Connector.open(imageUrl);
    To create image use:
    Image.createImage()

  • Access image data

    Iam doing a project on remote desktop viewing.For this I need to access image data stored in the video memory.If anyone has any information regarding this please mail us.
    [email protected]

    Thanks,I went through the mentioned websites.Now I am able to acceess the image data.
    I have already set up a client server connection, I am giving the client side image data in the form of an input file to the server.The problem is first we have to run the client and then the server.And also on server side it is displaying the previous client desktop not the current one.
    If anybody has relevent information or code please mail .
    [email protected]

  • Keychain Access to recover password: "Access to this item is restricted."

    I need to recover my network password, which I saved in my keychain, but can't figure out how to get it using keychain access.  I've tried to get keychain access to reveal other passwords which I do know, but I can't get it to show them either.  Here's what I tried to do:
    Opened Keychain Access, found the network name, and double clicked on it.  A window describes its attributes popped up, but the password field was blank.  Clicking on the "Show password" box brought a window saying "Access to this item is restricted."  I tried to retrieve other passwords in the keychain today using the same method with the same results.
    I'm running Snow Lion, version 10.6.8. 

    OK, I played around with keychain access for a while, but finally hit on it.  For the benefit of others with the same problem, here's what worked:
    There are two sections on the left sidebar, Keychains and Category.  I'd chosen "Passwords" in the Category section, and eventually, in poking just about everything in that window, I clicked on an arrow which expanded the Keychains section.  I kept playing until I clicked on System in the Keychains section.  That brought up all of my past networks.  I double-clicked on my current network's name and once again clicked on the "show password" box.  This time I was asked for my admin password, hit enter, and vois-la! there it was.
    The only thing that had happened in the meantime was that I ran Keychain First Aid's verify and repair (found in Keychain Acces's File menu).  I have no idea whether this is what changed things, or if it was just expanding the Keychains section, but now I can view any of my passwords in the Paswords choice in the Category section.
    Who knows if this will help anyone, but I'll go to some of the other recent threads and post a link to this thread in case it can.

  • Email Link... and Email Image menu items don't work.

    Suddenly, about a week ago, the Email Link... and Email Image menu items stopped working. Problem seems to be on only one login on one of my three machines. The rest seem to be OK.
    Using FF 19.0 and TB 17.0.3 under Windows 7.
    Any ideas?

    Thank you. Although I had already checked the MailTo: application and found it set to "Use Thunderbird (default)", clearing that association and setting it to "Always Ask" jarred things loose. When I set it back to T-Bird, it worked again.
    Again, thanks for the nudge.

Maybe you are looking for