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.
The best answers from the company
-
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
-
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?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
-
Inappropriate?Hi Daniel,
I trying to figure out how to use a single simple image (though big) as described above.
What I'm trying to achieve differs a little in that the project requires me to produce a single swf. So that means no url to pass to openzoom only an embedded image. (If it were possible to embed the entire pyramid then that would also be fine of course.)
I realise that it sounds odd to embed a high resolution single image but the single-swf requirement is crucial.
Currently I'm thoroughly examining the loader and any options to pass a single embedded image.
Would you have any ideas off the top of your head that could benefit this challenge?
Cheers,
Koert
I’m excited
-
Inappropriate?First of all, I'd love to hear the reasons for a single SWF. Sounds rather peculiar to me.
If you really wanna take that path, I'd suggest to embed the image as an asset into your SWF and then simply add it to a MultiScaleContainer using addChild.
Let me know if this worked!
Cheers,
Daniel
I’m curious
-
Inappropriate?Hi Daniel,
Thanks for your reply. I'm just back in from a vacation.
The reason it has to be one single file is that it gets implemented in an app that replaces filenames when compiled. Something to do with security. Zo because there is no way to know what the name of the files will be when the app is run, there is no way to access other files outside the flash movie.
I just started looking into this again, but will keep you posted.
Koert
I’m confident
Loading Profile...




EMPLOYEE
