There should not be any difference between setting layout properties for atomic and composite elements. It is true that composites use a different metadata subclass (CompositeMetadata), but that should not have any influence on how the layout system works.
I'm not exactly sure what problem you are running into: could you perhaps post a small sample app?
(Just as a heads-up: the layout APIs have been changes quite a bit over the last two weeks. You'll find that the samples on the trunk no longer use LayoutUtils, but a class called LayoutProperties instead.)
I have attached a test file:
1- The stage is set to 320x480
2- make sure at least 2 of the images are larger size than the stage
3- play each of the images separately through ImageElement
to see proper results
4- uncomment the serialElement code, then run. You should see the
images are not resizing properly.
5- watch the trace numbers when the SerialElement runs,
the resize numbers are correct but LayoutUtils does not obey
the correct numbers
test.fla.zip 8.0 K
I have done some more testing and found another problem,
I've added the additional code to the attached sample FLA.
The problem is that the TimeEvent.COMPLETE event is not firing
after I play a SerialElement with 3 videos.
The sample SerialElement containing 3 images,
does fire correctly on the TimeEvent.COMPLETE event.
It just has the other problem, I mentioned in the previous post.
Now I'm more confused, I just don't know if it's a bug or my coding.
Tested against Sprint 9.
test2.fla.zip 13.9 K
I can't seem to get any love from the OSMF team on this one,
this is a MediaContainer issue and needs to be looked at.
I have filed a bug:
"LayoutUtils.setAbsoluteLayout does not obey correct numbers"
Thank you for filing this as a bug. We're currently pretty much heads-down on getting the Sprint 10 release out of the door: appriciate your patience!
FYI, looks like bug FM-451 is fixed in Sprint 10.
Little bit verbose, but I think a lot more control.
Works nicely on my SerialElement.
LayoutUtils.setAbsoluteLayout(pMediaElement.metadata, vArray, vArray, vArray, vArray);
var vLayout:LayoutMetadata = new LayoutMetadata();
That's great to hear. I've marked the bug as fixed in the bug app.