Flash Professional Question

They have: 4 posts

Joined: Feb 2009

Hey guys,

I'm attempting to edit this swf file in flash professional, cs4.

I want to change the overall dimensions of what's being displayed. I am a novice at flash, obviously and am not sure how I should be doing this.

http://pokemonfan.net/mangaviewer.html

You can see the flash image gallery there, I'm trying to change the overall dimensions of the gallery, through it's swf file.

Anybody have any idea what I should be looking at to accomplish this?

Thanks a lot in advance.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Well, first of all I'm pretty sure you cannot edit a swf file in CS4 - you need to edit the fla file.

There is software named "Quicker" that edits some simple swfs - and fla extractors that sometimes successfully extract the fla from a swf.

If all you need to do is change the "overall dimensions" of the entire swf, you can do that by adjusting the width and height in the html code that embeds it:

<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>

They have: 4 posts

Joined: Feb 2009

Well, I tried to edit the object parameters via the html code.

This is the code from a php file which seems to be handling the swf file.

Also, as you can see when trying to view any image in that image gallery http://pokemonfan.net/mangaviewer.html It appears very wide and the dimensions aren't correct at all. So that's why I was trying to correct the overall dimensions so I could have it display correctly.

I believe that's the code below. There's another file which you'd put in an administrative folder to then allow it to read this code, and allow you to select one of those different set of dimensions. I edited in the code below and added in the 720 x 700 one.

What that seems to do instead of correcting the display issue is it instead changes the way that gray background displays, behind the image gallery, hopefully you can see what I'm talking about.

Which is why I figured I'd need to edit the swf file to try to correct the overall dimensions.

Again, thanks for your help.

if($data->resolution==0){
?>

Your browser does not support inline frames or is currently configured not to display inline frames.

<?php
   
}
    else if(
$data->resolution==1){
       
?>

Your browser does not support inline frames or is currently configured not to display inline frames.

<?php
   
}
    else if(
$data->resolution==2){
       
?>

Your browser does not support inline frames or is currently configured not to display inline frames.

<?php
   
}
    else if(
$data->resolution==3){
       
?>

Your browser does not support inline frames or is currently configured not to display inline frames.

<?php
   
}
   
?>

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

Please enclose code in the code tags so it will display
(3rd icon from right on the toolbar)

<blockquote>if($data->resolution==0){
?>
<iframe name="wmtportfolio" src="components/com_new_gallery/gallery.swf" marginwidth="0" marginheight="0" height="720" width="810" scrolling="no" align="center" border="1" frameborder="2">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
<?php
   
}
    else if(
$data->resolution==1){
       
?>

<iframe name="wmtportfolio" src="components/com_new_gallery/gallery.swf" marginwidth="0" marginheight="0" height="622" width="700" scrolling="no" align="center" border="1" frameborder="2">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
<?php
   
}
    else if(
$data->resolution==2){
       
?>

<iframe name="wmtportfolio" src="components/com_new_gallery/gallery.swf" marginwidth="0" marginheight="0" height="578" width="650" scrolling="no" align="center" border="1" frameborder="2">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
<?php
   
}
    else if(
$data->resolution==3){
       
?>

<iframe name="wmtportfolio" src="components/com_new_gallery/gallery.swf" marginwidth="0" marginheight="0" height="720" width="700" scrolling="no" align="center" border="1" frameborder="2">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
<?php
   
}
   
?>
</blockquote>

They have: 4 posts

Joined: Feb 2009

any ideas? I've had no luck fixing it.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

I cannot access the gallery at http://pokemonfan.net/mangaviewer.html without a login and I do not join sites where I do not plan to be an active mamber.

The width and height dimensions are for the iframe that contains the swf as its content.

So changing the dimensions will indeed change the background size while leaving the swf at its default size.

Please refer to code I posted earlier to embed the swf and try to integrate that code as the source of the iframe (hint - save it as an html file and set iframe src="filename.html" where filename is the name of the swf loading code).

They have: 4 posts

Joined: Feb 2009

My apologies correct url should be http://pokemonfan.net/ps-reader.html

Ah, well do you think I should be editing the swf code, I mean I have flash professional, and thus I think that should be able to edit it with that?

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

IceShard wrote:
Ah, well do you think I should be editing the swf code, I mean I have flash professional, and thus I think that should be able to edit it with that?

No, you need to edit the fla file - that is part of the protection of using Flash the swf file is not readily editable (but you could try one of the tools in my earlier post).

To resize the swf, you have two options:

1. edit the fla and make the swf smaller
2. use html code to load the swf in the iframe and set it's size in that code - then set the filename of that code as the iframe source (I already suggested that)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.