Large Dimensions of MultiScaleImage's Parent DisplayObject
I am trying to use a MultiScaleImage in a project. I am doing this:
I am very confused - why is my original Sprite so large? If i don't call addChild(msi), the size is 0,0. Is this normal behaviour?
var msi:MultiScaleImage = new MultiScaleImage();
msi.source = "...some.xml...";
addChild(msi);
// now it is being displayed
trace(height, width); // yields huge numbers
trace(msi.height, msi.width); //yields 100, 100
I am very confused - why is my original Sprite so large? If i don't call addChild(msi), the size is 0,0. Is this normal behaviour?
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company has a solution in progress.
-
Inappropriate?Claudius,
I haven't tried this myself but is the behavior you're describing actually negatively affecting your application in some way?
BTW, is this a Flex or Flash project?
–Daniel -
Inappropriate?Actually, no. I was just wondering why this happened.
This came up when we tried attaching the MSI to a self-resizing application. I was not sure which sprites' sizes to set, so i set all of them - which made the MSI tiny.
But in itself this is not currently a problem.
-
Inappropriate?Claudius,
Weird ;) Let me know if this starts to bother you and I'll have a look at it.
–Daniel
I’m amused
Loading Profile...




EMPLOYEE