I am currently trying too build a simple maping app in Flex
2. The application consists of 1 SWF map and a Canvas that hosts
that SWF. The SWF loader is working perfectly, and dragging the SFW
across the Canvas works also. The problem is that the SWF dragging
is slow without cachePolicy set to on on the SWFLoader. The problem
is when i scale (zoom) my SWF beyond 2000px width, the dragging
becomes slow again, its like cachePolicy is set to off automaticly.
Does anyone know is this a Flex bug or my mistake.
Also, i have another problem with the code, and any help
would be apriciated.
I zoom my SWF with scaleX and scaleY, but the scales by
default work so they scale the SWF at bottom and right sides, not
from the center. If anyone has some mapping expirience, i would be
greatfull to hear on how to scale/zoom my map proportionaly from
the center of the canvas, not the x,y of the SWF itself.
Do you have problem with memory growth. I am trying to do the
same application as you and when I load images into canvas the
memory grows to 200-300 Mb. Could you tell anything about these
fields: cacheAsBitmap, cacheHeuristic, cachePolicy?