PDA

View Full Version : Newbie - trouble with images and flash


SojournUser
12-28-03, 03:06 PM
I think that there is a real simple solution that will probably solve both the image and flash problems. When I upload the html generated from Flash and the swf file, the page just attempts to load for a while until it the process locks up. And the images I upload either show up really distorted or don't show at all. I have tried to change the original jpg to a png or gif to see if that helps, but have not had any luck. Here are links to all 3 files.

PNG File (http://www.sojourncommunity.com/images/custom_header.png)
Original JPG (http://www.sojourncommunity.com/images/custom_header.jpg)

Croc Hunter
12-28-03, 11:01 PM
The .html must be FTP up in ASCII (text), and .swf in binary (images). You cannot rename extensions, they must be saved as .fla .swf .gif etc. I can't see where you've tried to embed with the html anywhere.

I'll use flash MX and Movement-joystick.swf for an example:

Open Flash.
Open your project.
Goto: File> Publish Settings> Format> tick Flash and html> OK.
Goto: File> Publish Preview> you'll see a webpage with the flash embedded come up. The .swf and .html can be found at: (the default) C:\Program Files\Macromedia\Flash MX\Samples\FLA (or similar on your computer)

FTP the .swf up in binary you should get this:
http://www.streetsie.com/images/Movement-joystick.swf
It's not embedded so it resizes to full screen.

FTP the .html up in ASCII to the same directory. You should get this:
http://www.streetsie.com/images/Movement-joystick.html
It is now embedded at true size.

You can cut and paste your .html code between <BODY> tags and insert between the <BODY> tags on any page. So long as you make sure the .swf and .html are in the same directory.

SojournUser
12-30-03, 07:11 PM
If you were just looking at the page we have up, it does not contain any Flash. We just needed to get something up so that was all text based.

Please try out the following links. What I did was create just a plain flash file with the text "Hello World." on it using Flash 4. I generated the HTML the same way you have listed and am still having the same problem. Here are the links to the swf file and the HTML generated file.

http://www.sojourncommunity.com/flashtest.swf

http://www.sojourncommunity.com/flashtest.html

I've developed Flash sites before and never really had this problem...guess you run into something new everyday.

Croc Hunter
12-30-03, 10:26 PM
Your .html code is fine. I tested it. So your .swf must be corrupt.

This pulls up a blank .swf ??
http://www.sojourncommunity.com/flashtest.swf

Try File> Export Movie> flashtest.swf
Make sure you ftp upload the .swf in binary mode.
If it still doesn't work.. try with a few different Save methods.

I've attached a flashtest.swf 722 bytes for you to test with.
Here it is running with your .html code.
http://www.streetsie.com/webmasters/flashtest.html

SojournUser
12-31-03, 05:46 PM
I think you may have hit upon it. I think it might be a problem with the way I FTP. This would also explain the problems with the images not showing up. I tried your Flash and it worked fine.

I think I may always be FTPing in ASCII. Can you explain how to do the FTP in binary. I have always used the DOS shell FTP that is built into Windows. I believe that everything is uploaded the same way through the built in Windows FTP, but there may be a way for me to add a parameter to the command-line to get it to do a binary transfer. Do you have another program that you can recommend? (preferrably freeware/shareware/cheap).

Keep up the good work. I think we're making progress.

SojournUser
12-31-03, 05:58 PM
Happy New Year!!!! Wahoo!!!!

It was just an issue with the way that I was doing the FTP. Thank you so much for all of your help. I had never run into an issue like this before, and it really had me baffled. I knew it just had to be some little thing that needed to be switched. I found that from the command-line, typing the word "binary" will change the transfer type. Thanks for the help, and have a happy new year!