[Bindable]
private var dataAr1:ArrayCollection;
private function concernOriginalReceived(event:ResultEvent):void
{
dataAr1 = event.result as ArrayCollection;
}
private function imageListHandler(event:Event):void{
trace("Someone clicked on the Large Green Button!");
remoteObj.gallery.send();
}
[Bindable]
private var dataAr:ArrayCollection = new ArrayCollection;
public function displayResult(event:ResultEvent):void{
dataAr = new ArrayCollection( (event.result as ArrayCollection).source);
}
private function ClickEventHandler():void{
trace("Ouch! I got clicked! Let me tell this to the world.");
dispatchEvent(new Event("addImageEvent", true));// bubble
to parent
}
]]>
</mx:Script>
<mx:VBox width="100%" verticalGap="2" horizontalAlign="center"
borderStyle="solid" cornerRadius="10"
bottom="0">
<mx:HorizontalList id="photoList" dataProvider="{home_img}"
labelField="label" iconField="fullImage"
itemRenderer="components.Thumbnail" columnCount="4"
width="98%"/>
</mx:VBox>
<!--image used to test if "parentDocument.homeImages"
actually loads an image and the result was a success. it loads an image-->
<mx:Image x="348.5" y="169" source="assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}"/>
</mx:Canvas>
Hi guys I have a problem with an image gallery am trying to do. This is the scenario. In my application I have the main application file "gallery.mxml" and...
Add a Label to thumbnail.mxml and show the image path to see that it is getting that. Then hard-code an image path in thumbnail.mxml. This will help you...
i have tried to do as you asked, added a label to the thumbnail.mxml and the labels show up as expected. still haven't seen why those images cant show in the...
i hard-code an image path in imgGallery.mxml and it shows up perfectly bt i can't hard-code an image path in thumbnail.mxml coz its used as an item renderer...
nop that doesn't work, but when i hard-code the image path in the array the images show up but when i use a dynamic path, no image shows up. below is the...
Maybe "home_img" in "imgGallery.mxml" is not refreshed when "homeImages" is updated or not bindable too. thomas ... http://www.web-attitude.fr/ msn :...
Implement you renderer using a set data override function so that you can debug the path. Tracy Spratt, Lariat Services, development services available _____ ...
hi i have changed the dataprovider of the gallery from an array to an arraycollection, what an trying to archive is that when someone clicks on the list a...
Hi, I think "addImg()" in "imageListHandler" should be in "concernOriginalReceived". And I'm not sure source strings in "addImg()" are expanded ("such as ...
Sorry didnt mean to be offensive, but the difficulty to read the code is probably also the problem : the array of paths to images is build three times item by...
Hi you were not being offensive, sorry if i gave you the idea you were, as a matter of fact you are trying to help and i am grateful for it. now i cant use...
oops, read "event.result.getItemAt(0)" instead of "lastResult[0]"... I think you should keep one data holder (<mx:Model> or arrayCollection) which would be...