How Do I Enable Zoom & Pan for Simple Image?
Is it possible to use the pan/zoom function on a simple image as source instead of using a xml as source?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Shmk,
Yes, you can use a simple image but unless you have different resolutions (thumbnail & full) I'd recommend using a MultiScaleContainer instead of MultiScaleImage. Simply load your image via Loader and then place it on your MultiScaleContainer using addChild. Additionally, you may want to set your sceneWidth & sceneHeight to the dimensions of your original image.
Cheers,
Daniel
The company says
this answers the question
-
Inappropriate?What if you want to develop this functionality in Air and don't want to have to use a loader component to load the file from the net, but instead from a hard drive? I just don't want to have to deal with the sandbox security bs that every site seems to be implementing now.
-
Inappropriate?Batkins,
Even if you use Adobe AIR, you still have to use the Loader class to load content from the harddrive. Additionally, AIR should have almost no restrictions in terms of security sandbox. After all, that's the reason I've developed GigaPan Desktop in AIR.
Cheers,
Daniel
The company says
this answers the question
Loading Profile...




EMPLOYEE