Subscribe Bookmark RSS Feed

Size of SWF output

jcbell

Community Trekker

Joined:

Jun 23, 2011

We are attempting to put two bubble SWF charts next to each other on 1 web page for comparison.  I need to design things for 1280x1024 resolution.  Unfortunately, I can not seem to change the size of the output SWF object.  The current size is too large to put 2 charts next to each other at that resolution.

This is the script I'm using:

dt = Open( "\\FRGDEMOX64\temp\boa\bubblecharts\ps_bubble_tilt_dr_purch.jmp" );

  Bubble Plot(

X( :nf_avg_rev_loan ),

Y( :nf_rsi ),

Sizes( :n_market_share_volume ),

Time( :week_name ),

Coloring( :bravo_product_group ),

ID( :bravo_product_group ),

All Labels( 0 ),

No Labels( 0 ),

SendToReport(

Dispatch(

   {},

   "1",

   ScaleBox,

   {Min( -15000 ), Max( 25000 ), Inc( 5000 ), Minor Ticks( 0 )}

  ),

  Dispatch(

   {},

   "2",

   ScaleBox,

   {Min( -125 ), Max( 75 ), Inc( 50 ), Minor Ticks( 1 )}

   

   ),

  

               Dispatch( {}, "Bubble Plot", FrameBox, Frame Size( 200, 136 )

               

               )

               )

                                   ,

      Go,

      Save as SWF("c:/temp/bubble.swf")

      );

     

)

;

I thought maybe this command would affect the size -

Dispatch( {}, "Bubble Plot", FrameBox, Frame Size( 200, 136 )

Does anyone know if I can change the default size?

Thanks,

John

)

;

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

The object sizes are not determined from JMP, rather the container showing the SWF object can control that.

Use object width and height in your html file to control the size of the flash object on the page and use flashvars to control how large the plot is within the page.

Here's an example making a large bubble plot. This example uses bicycle.swf which I saved.  I made the outer size is 1100x900 and the inner size 1000x800.

<html>

<body>

<object width="1100" height="900" id="Bicycle">

   <param name="flashvars" value="width=1000&height=800" />

   <param name="movie" value="Bicycle.swf" />

   <param name="quality" value="high" />

   <param name="bgcolor" value="#869ca7" />

   <param name="allowScriptAccess" value="sameDomain" />

   <embed width="1100" height="900"

      flashvars="width=1000&height=800"

      src="Bicycle.swf" quality="high"

name="Bicycle" align="middle"

play="true" loop="false" allowScriptAccess="sameDomain"

type="application/x-shockwave-flash"

pluginspage="http://www.adobe.com/go/getflashplayer">

   </embed>

</object>

</body>

</html>

John

2 REPLIES
Solution

The object sizes are not determined from JMP, rather the container showing the SWF object can control that.

Use object width and height in your html file to control the size of the flash object on the page and use flashvars to control how large the plot is within the page.

Here's an example making a large bubble plot. This example uses bicycle.swf which I saved.  I made the outer size is 1100x900 and the inner size 1000x800.

<html>

<body>

<object width="1100" height="900" id="Bicycle">

   <param name="flashvars" value="width=1000&height=800" />

   <param name="movie" value="Bicycle.swf" />

   <param name="quality" value="high" />

   <param name="bgcolor" value="#869ca7" />

   <param name="allowScriptAccess" value="sameDomain" />

   <embed width="1100" height="900"

      flashvars="width=1000&height=800"

      src="Bicycle.swf" quality="high"

name="Bicycle" align="middle"

play="true" loop="false" allowScriptAccess="sameDomain"

type="application/x-shockwave-flash"

pluginspage="http://www.adobe.com/go/getflashplayer">

   </embed>

</object>

</body>

</html>

John

jcbell

Community Trekker

Joined:

Jun 23, 2011

John,


Thanks!  I was playing with the sizes in the swf object - but was missing the embed width and flashvars parms.

Thanks again - !

-john