Member Avatar for feoperro

Hi,

I've been searching around for quite some time now but haven't found what I've been looking for... I'm trying to stretch a flash object inside my browser but for some reason the more I stretch it, the bigger the boarders get while the actual movie on the inside stays the same size. If I run the swf externally, in windows, and I expand and contract the size then the actual movie automatically fits to the size of the window instead of the boarder just expanding.

Is there some kind of command to make the flash item fit to params sent?

Below is my code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                                        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
                                        WIDTH="400"
                                        HEIGHT="200">
                                    <PARAM NAME=movie VALUE="Images/Directions/map.swf">
                                    <EMBED src="Images/Directions/map.swf"
                                           WIDTH="400%"
                                           HEIGHT="200%"
                                           TYPE="application/x-shockwave-flash"
                                           PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
                                    </EMBED>
                                </OBJECT>

Thanks,
-Ashton.

Why do you specify static size(200,400) for the object tag and percentages(200%,400%) for the embed tag?

Member Avatar for feoperro

No matter what I specify, it always does that, I've tried using both whole values, then both percentages, then visa versa for each...

Oh ok...you need to use scale="exactfit"...

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                                        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
                                        WIDTH="400"
                                        HEIGHT="200">
                                    <PARAM NAME=movie VALUE="Images/Directions/map.swf">
                                    <PARAM NAME=scale VALUE="exactfit">
                                    <EMBED src="Images/Directions/map.swf"
                                           WIDTH="400"
                                           HEIGHT="200"
                                           TYPE="application/x-shockwave-flash" 
                                           SCALE="exactfit"
                                           PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
                                    </EMBED>
                                </OBJECT>

That should do it for you.

Member Avatar for feoperro

Thanks man, works like a charm!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.