Link to home
Start Free TrialLog in
Avatar of Joomlajohn
Joomlajohn

asked on

Changing image path with Zoomify doesn't change image right away.

I have a drop down that changes the image path for Zoomify,  the problem is the image doesn't change until the interface is clicked or dragged.    imageCombo is a combo box on the stage. viewer is the Zoomify component on the stage.  The path is set correctly as the image does change with user interaction.  The combo box is triggering the change, I have output a trace and also debugged. Is there something I have to invalidate to get Zoomify to load the image?




function change(evt){
	_root.viewer.setImagePath(evt.target.selectedItem.data["file_imagePath"]);
}
 
imageCombo.addEventListener("change", this);

Open in new window

Avatar of blue-genie
blue-genie
Flag of South Africa image

is this the zoomify from zoomify.com?
if so have a look where setImagePath is called.
and try calling that again with the new image.
Avatar of Joomlajohn
Joomlajohn

ASKER

This is Zoomify from zoomify.com.  I have traced and debugged the path being passed to setImagePath(). The correct path is being passed and is loading when user interaction happens, dragging, zooming in/out, not before then.
ok i'm not familiar with zoomify, but i was looking at the APIs and that's what i mean.
i'm thinking you need to call that again each time
updateView() needs to be called after anything changes.
in the interest of knowledge sharing care to share the solution.
sorry my bad. i didn't see that post when i first got the email.
ASKER CERTIFIED SOLUTION
Avatar of ee_auto
ee_auto

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial