#156 Accepting flash dimensions from the FlashBrowser

Version 2.x
closed-fixed
None
5
2005-12-23
2005-10-06
No

The hard part is being able to get the default width
and height for a flash file (at least it was for me
under asp, I had to develop a custome ActiveX component).
But then it's very useful to give that data back to the
Flash Dialog (I'm trying to port out old editor to
FCKeditor).

Just change in editor\dialog\fck_flash\fck_flash.js

from
function SetUrl( url )
{
GetE('txtUrl').value = url ;
UpdatePreview() ;

window.parent.SetSelectedTab( 'Info' ) ;
}

to

function SetUrl( url, width, height )
{
GetE('txtUrl').value = url ;
if (width) GetE('txtWidth').value = width ;
if (height) GetE('txtHeight').value = height ;
UpdatePreview() ;

window.parent.SetSelectedTab( 'Info' ) ;
}

so if the FlashBrowser gives the info then this dialog
is able to use the data.

Hope this is useful for anyone else.

Discussion

  • Frederico Caldeira Knabben

    • assigned_to: nobody --> fredck
    • status: open --> open-fixed
     
  • Frederico Caldeira Knabben

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks