0 Replies Latest reply on Oct 24, 2012 9:18 AM by superLeftyEdge

    how to get the properties of dynamic objects?


      Hi there,


      I'm coming from Flash background with limited knowledge in CSS, so pardon me if I sound ignorant.


      what I am doing is to create an image holder from the library using a symbol where I am attaching an imported image to.  it works great, but since not all the images that I'm importing have the same width, I'd like to get the width of every imported image.


      within the for loop, I'm attaching an imported image to an element called "image" as following:


      thumb.$("image").css({"background-image": "url('"+data[i].thumbnail+"')"});


      so what I'd like to figure out how to get the width of the imported image.