PDA

View Full Version : Uploaded flash .swf are blank when uploading



artistwantab
05-26-2006, 08:06 PM
Is there a security issue on blue host that I need to know about. I cant get my flash 8 files to play on blue host.

The files play fine locally but not after uploading.

areidmtm
05-26-2006, 08:41 PM
What browser are you using? You might have to install the flash 8 browser plug-in before you can view it with in the browser.

Can you give us a test URL?

artistwantab
05-26-2006, 08:46 PM
Sorry,

I should have mentioned I have tried to different browsers and I do have the newest plug-ins.

http://www.eliocamacho.com/NewSiteTest/

master.fla if you have fla you can download and play locally with no issues.

The swf however will not play after uploading. As you can see I have attempted a number of different swf. I also sent the .fla to a friend to have him compile the file to see if my program was corruptinging something during compiling.

I have no guess as to what to try next.

areidmtm
05-26-2006, 08:51 PM
It is in fact loading the swf. It's just a gray screen. When I download the swf, the same thing. There must be somthing in the fla. I'll take a look at it.

Early Out
05-26-2006, 08:51 PM
I don't think you can just "open" a flash file in a browser. It has to be embedded in the HTML. Here's a tutorial (http://www.w3schools.com/flash/flash_inhtml.asp) about it.

areidmtm
05-26-2006, 08:53 PM
Same thing happens on a NON bluehost server.

http://155.100.73.196/al/Master.swf

OR

http://155.100.73.196/al/Master.html

artistwantab
05-26-2006, 08:53 PM
I don't think you can just "open" a flash file in a browser. It has to be embedded in the HTML. Here's a tutorial (http://www.w3schools.com/flash/flash_inhtml.asp) about it.


You can....I have embedded also in html but same issue. I did it this way to simplify things.

artistwantab
05-26-2006, 08:55 PM
Same thing happens on a NON bluehost server.

http://155.100.73.196/al/Master.swf


OK...well that rules out Blue host.

I have posted this issue on five flash forums and no one know what it could be.

All pointed at the host.

I was sure it wasn't.

Can you see the swf locally?

All it displays is the swf background.

areidmtm
05-26-2006, 08:58 PM
I think it's something in your actionscript.



myMCL.loadClip ("trigger.swf", 5);
myMCL.loadClip ("preloader.swf", 50);


Those two files are also just a gray screen

I'm getting an error saying that it's tring to find sharedLib.swf but that is not in your site

artistwantab
05-26-2006, 09:07 PM
I think it's something in your actionscript.



myMCL.loadClip ("trigger.swf", 5);
myMCL.loadClip ("preloader.swf", 50);


Those two files are also just a gray screen

I'm getting an error saying that it's tring to find sharedLib.swf but that is not in your site


Sorry I have uploaded and downloading files all day trying to resolve this issue.

I uploaded the sharedlib.

To be honest I have had a number of flash people look at my action script and no one see anything that would cause ALL the swf to be blank.

I will up load the .fla just in case your curious thanks for all the help.

E

areidmtm
05-26-2006, 09:20 PM
THERE! It was looking for the sharedLib.swf

Works here http://155.100.73.196/al/Master.html

But still not on yours...

areidmtm
05-26-2006, 09:23 PM
I also changed this in the fla


myMCL.loadClip ("trigger.swf", 5);
myMCL.loadClip ("preloader.swf", 50);

TO



myMCL.loadClip ("/al/trigger.swf", 5);
myMCL.loadClip ("/al/preloader.swf", 50);

The "/al/" being the directory where the swfs are in.

artistwantab
05-26-2006, 10:09 PM
THERE! It was looking for the sharedLib.swf

Works here http://155.100.73.196/al/Master.html

But still not on yours...

Sorry...Omg you got it

Not on my server...what did you do?

Did you use my swfs or recompile on your machine?

Omg I can't believe it.

areidmtm
05-26-2006, 10:11 PM
I changed the path to the other swfs to show the whole path and recompiled the master.swf

artistwantab
05-26-2006, 10:11 PM
myMCL.loadClip ("/al/trigger.swf", 5);
myMCL.loadClip ("/al/preloader.swf", 50);

The "/al/" being the directory where the swfs are in.

interesting?

They are in same location as master.swf...why the al?

what does al stand for I have never seen that that.

or did you create another folder for them?

areidmtm
05-26-2006, 10:14 PM
you have to have it show the whole path. "/al/" is the whole path where ALL the swf files are in. If you dont put the whole path, it wont work...so in your case you'd want to add "/NewSiteTest/"

Also "al" is just the folder where I put the swfs in. It's my nickname, Alex - Al

artistwantab
05-26-2006, 10:20 PM
Also "al" is just the folder where I put the swfs in. It's my nickname, Alex - Al

I thought al was some tricky Action Script I was typing in up in help.

Thank you so much I am going to test now.

I will let you in know in a but.

Thank you again...

I was starting to wonder if I was imaging it working locally.

artistwantab
05-26-2006, 10:32 PM
No go....

:(

can you send me the swfs let me upload them to test.

Maybe my flash is corrupting the files when compiling.

I also changed my folder name to al....maybe its good luck.

That way you dont need to change it on your end.

areidmtm
05-26-2006, 10:40 PM
11

Remove the ".txt" part

artistwantab
05-26-2006, 10:51 PM
ok well it is blue host...because your swf doesn't work now.

http://www.eliocamacho.com/al/

Any guess?

If you want to email me the swf to elio_camacho@hotmail.com just in case something is going wrong with changing it to txt and back.

The only reason I question it is now I am getting a white BG.

areidmtm
05-26-2006, 10:56 PM
Yeah, it must be because I just uploaded it to my bluehost account, and it didn't work...hummmmm. But how is that possible? I didnt think that the server matters

artistwantab
05-26-2006, 11:09 PM
Yeah, it must be because I just uploaded it to my bluehost account, and it didn't work...hummmmm. But how is that possible? I didnt think that the server matters

I am not crazy...Whew.


Ok flash 8 has some new secruity issues. I know that for sure. The problem is I know nothing about all that stuff.

I have read most of this and most is jibberish to me.:confused:


http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html

areidmtm
05-26-2006, 11:10 PM
but why would it work on one server and not the other?

artistwantab
05-26-2006, 11:19 PM
Is blue host the same host?

areidmtm
05-26-2006, 11:21 PM
nope. the other one is my server at the University of Utah

artistwantab
05-26-2006, 11:26 PM
has to be a security setting then. Strange thing is i did a search you would assume someone else would have had this issue.

areidmtm
05-26-2006, 11:41 PM
i didnt think that the server would have any effects of swf files, but since flash 8, maybe there is...I'm stumped

artistwantab
05-26-2006, 11:47 PM
I'm stumped


Oh God....

Well I guess I will have to call blue host.

areidmtm
05-27-2006, 12:22 PM
Hey, you got it working...what did you do?

artistwantab
05-27-2006, 08:26 PM
Hey, you got it working...what did you do?

Hey just got home. I went to watch the soccer game. Sorry couldn't reply this morning.

Turns out on a unix server the filenames are case sensitive.

I was looking for a file names sharedLib.swf when the file was named SharedLib.swf. Apparently windows based server do not have this issue which explains why it ran locally fine for me and for you.

AHHHH....can't believe so much trouble for just that.


Thank you so much for all your help. If it was not for you I would still be thinking this was an issue with flash.

areidmtm
05-27-2006, 08:58 PM
Man, I can't beleive I missed that. I knew that case could be problems. I just didnt even think of it at the time...I guess it was just too late.

KnowProSE
05-28-2006, 10:05 AM
Depending on the size of your file, you may need to adjust your PHP.ini -


post_max_size = ???M
upload_max_filesize = ???M

The default is 2 megabyte ( '2M' for '???' above), and if your file is larger than that you'll probably just get an empty file with an appropriate filename - which will give you the same thing you're seeing.

So, smaller file, or larger upload ability. Remember, the larger the file, the more likely you'll run out of processes during the time. ;-)

areidmtm
05-28-2006, 01:53 PM
The post_max_size and upload_max_filesize have nothing to do with what we were doing. As stated in the previous posts, we found out the solution and got the problem fixed. You only need to change the upload size in the php.ini file when you are uploading via PHP and a form. There is no need to do that when you are uploading with FTP

Besides, the swf files were less 300kb and even if we were trying to upload a file larger than 2mb with php and a form, it would just give a php error and upload nothing, not even an empty file