You can use a box to mask the content area ---

        <mx:Box id="loaderMask" backgroundColor="black" width="918"
height="424" x="1" y="1" />
        
                <mx:SWFLoader id="grillNav"
source="{ServerLink.getImageURL('swf/grills.swf') }"
                unload="unloadSWF()" complete="initSWF(event)"
                height="424" width="918" x="0" y="0" mask="{loaderMask}"
            />

this will restrict the display area of the embedded swf file



On Wed, Jul 2, 2008 at 1:10 PM, Sean Clark Hess <[EMAIL PROTECTED]> wrote:
> Do you have clipContent='true' on the container?
>
> On Wed, Jul 2, 2008 at 9:14 AM, djepyon <[EMAIL PROTECTED]> wrote:
>>
>> I'm loading a swf into a SWFLoader (earth-shattering, I know). The swf
>> document size itself is set 2800x960, but there is an additional
>> element beneath this in the pasteboard (what was the flash 8
>> "workarea") that is about 500px in length. I need to be able to pan
>> down to this element. If make a call to set the y value of the
>> SWFLoader to -500 (to pan downward) the top portion breaks out and
>> hovers above my other components instead disappearing at the top border.
>>
>> I went a step further and wrapped the swfLoader in a Canvas object.
>> Setting the y value to -500 on the MXML object did just what I wanted
>> to. I then began setting this dynamically, which produced the same
>> results as before. I also tried to run validateDisplayList() hoping it
>> would fix things but to no avail.
>>
>> Any suggestions would be greatly appreciated :)
>>
>
> 

Reply via email to