![]() |
Image pop up window
I am trying to get a pop up window to come up when you click on a image in my gallery. i go the window to come up but the image does not show up. can someone help with my coding.
here is my gallery.mxml Code:
<?xml version="1.0" encoding="utf-8"?>Code:
<?xml version="1.0" encoding="utf-8"?> |
you have this bit in your window.mxml code:
<mx:Image source="{selectedImage}"/> but you probably need to set that property when you pop the window open: Code:
private function launchPopUp(e:MouseEvent):void { |
Quote:
Code:
private function launchPopUp(e:MouseEvent):void { |
Hi again,
what happens when you trace Code:
images.selectedImageI just noticed that your selectedImage variable in the main app code is of type ImageVO. Do you have a source string in this class? IE: can you do something like ---> Code:
win.selectedImage = images.selectedImage.sourcepaste you ImageVO code here if you're still having problems fresh. |
when i put in
Code:
win.selectedImage = images.selectedImage.source1119: Access of possibly undefined property selectedImage through a reference with static type spark.components:Group. |
have also tried this and get only one error
Code:
private function launchPopUp(e:MouseEvent):void { |
tried this and still get sourceImage error
Code:
private function launchPopUp(e:MouseEvent):void { |
where is the code for ImageVO? can you post that?
|
Quote:
Code:
<?xml version="1.0" encoding="utf-8"?> |
that's not your entire code, where are these classes:
Code:
import valueObjects.ImageVO;those errors are telling you exactly what's wrong with your code. Go through the errors one by one and debug them. While you're at it: start learning about the Flash API and the Flex Framework as that will surely help you. I haven't the patience (nor the brilliance) to help people like you that start acting like scumbags. |
| All times are GMT +1. The time now is 06:26 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.