It depends on why. If the flash content is making assumptions that it is
top-level, that can be a difficult problem.
It can be said the flash might assume that it is top-level. I am working with flashes which do not aware of being loaded by another one.
Can you figure out the difficult situation? I am not clear about this issue!
It is not always possible to get it to work better. It may require
examining the decoded SWF.
I have the decompiled code via a tool. It's really big, and can't find the point to focus on.
Can you give me a clue?
1 person found this helpful
Look for the word "stage" and see if they are relying on it in some way.
You mean the flash rely stage to align its component, such as align center by stage.stageWidth/2?
Even in this case, the flash alignment is fixed someway in content flash code, how can we adjust it to the center? I saw that flash player can centralize the flash.
I observe that the content flash is align based on a 500x375 part at the center of it. If I set:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_RIGHT;
before load flash, it became stick to the right border, and a right part, equals to previously invisible left part, is invisible.
That is to say, the flash still align, but based on a rectangle inside it, not its largest bounds.
Beside, if I set stage align to left, it stick to left, set to right it stick to the right.
And if I can set align to center, I can see it as a whole. But how I can do this? there is not StageAlign.CENTER option!
I've set stage align to TOP, that also mean CENTER!
Now it's solved.