PDA

View Full Version : Safari And Full-flash


lananci
03-07-2008, 07:25 PM
Hi everyone,
I posted this tread in the testing section of the forum

http://www.actionscript.org/forums/showthread.php3?t=163339

I figured out (all by myself, I'm so smart!!) that it might be because javascript is not supported in Safari. Is it? I also herd voices about Safari not supporting any kind of fulscreen. Is it true?

Well, please, check it out.

www.desperatehousecat.it

How can I solve my problem? As you can see, I have a homepage, with a javascript that leads to the fullscreen called "main.asp".

Is it possible to let IE users see this and Safari users see something else?

I want everyone to be able to see it.

Thanks.

atomic
03-07-2008, 08:20 PM
I'm on PC, and see it fine & fullscreen on IE, FF & the shitty Safari browser!

lananci
03-07-2008, 08:24 PM
Thanks fo checking.
So, why Mac users can't see it? I use PC too and I can't find any suggestion about that, apart some voices about Safari not supporting full windows. It's only on Mac, maybe? I really don't know how to fix this!!!

atomic
03-07-2008, 08:26 PM
Don't know... I hate Macs...

Where's Asf8 when we need him? He's on Mac!

lananci
03-07-2008, 08:43 PM
Yeah, me to a little.
But I'm noticing an increasing lobby between Adobe and Apple...
.. I think we'll have to switch one day.
Hope I meet him soon, because I don't know developers using Mac. PC only (and hate Mac).
Too bad for us!
Thanks again.

asf8
03-07-2008, 09:49 PM
Don't know... I hate Macs... Where's Asf8 when we need him? He's on Mac!

You Hate Macs? Now you sound like mattkenefick when he said he hated you (http://www.actionscript.org/forums/showthread.php3?t=140505) :o Anyway... I really love Winblows. (Actually to me a computer is just a computer I use both and really dont mind either, for the record).

Oh and thanks atomic now I am getting PM's from people that need site checks on a Mac. :(

... but I need a huge help. I know you work on Mac. I'm having troubles with my full-flash website www.desperatehousecat.it Some frinds of mine, Mac users, told me they can't see it. I posted in "Site Check" and "HTML and JavaScript" about it. Please, could you help me? I'm really sorry to bother you by private message, but I don't really know how to handle this mess and I want to fix it as soon as possible. Everyone (clients mostly) should be able to see it (being accessible should be the first thing first, right?). And you're the only Mac user "I know" who might help me.
Thanks a lot. And sorry again.

Well truth be told I was gonna respond first thing this morning when I saw your other thread, but the only problem being....
YOU FORGOT THE LINK, silly! ;)

Anyway I checked it and did not have any problems.

1.) Went to site
2.) Clicked on enter page
3.) Fullscreen pop-up opened with Flash site
4.) Saw the red door umbrella etc...
5.) Said goodbye and now I am posting here ;-)

Again it works for me, so maybe they had pop-up blockers or something and the site never launched when they clicked the enter page ?

EDIT: Although I spoke to soon, oddly when I go back and click enter after leaving the site it just says loading and shows the preload bar at 100% and I can see the swf sitting fully loaded in cache but it is stopped and wont play even though its loaded fully ??? Weird !! When I clear my cache it works again.... so maybe that is what they were talking about not working on a Mac.

Also Safari suppports Javascript, Fullscreen Flash, Flash Player 9 Fullscreen, and etc... etc... that is not the problem. So maybe your firends either had javascript disabled, or Block PopUp Windows on. Or the wrong Flash version since your targeting 9.0.45, or like I said maybe its the deal with the preloader they were talking about upon reload. It works initially just not when you go back.

Look on the bright side first impressions are everything its just the second one you have problems with when they revisit the site. Just joking! Maybe post some code or more info, or like I said maybe atomic can help you, he is really good with preloaders and sorting out problems like this.

I would also suggest getting rid of the enter page, click to enter pages are kind of old school (just my opinion). Also you might wanna consider using SWFobject (http://blog.deconcept.com/swfobject/) istead of the AC_RunActiveContent, its cleaner, but thats up to you.

Your next step is to PM atomic and have him decompile your swf and tell you what is wrong with your preloader :) and recode your file using the MovieClipLoader class which he loves even more than Mac's.

atomic
03-07-2008, 10:18 PM
Luckily, she hasn't yet! ;)

asf8
03-07-2008, 10:20 PM
Luckily, she hasn't yet!

Whoops SHE, sorry lananci for calling you a HE ;)

PS: Atomic will be glad to help you, even if it takes all night to resolve this :p

lananci
03-07-2008, 10:29 PM
It's ok asf8... female or male, I just feel like a dumb... so, it doesn't matter.
As I said in the other post, thanks to everyone for taking so much care of me.
Love you all guys.
Thanks!!!!!!!!!!!!!!!!!

lananci
03-10-2008, 10:36 AM
... for those two Mac guys to test the website again.
BTW, I never experienced the "full preload and stop" that asf8 was talking about. But another friend of mine, did. So, I post the preloading code, which is in my first frame.

stop();

import flash.display.*;

this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);

function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;

lbar.scaleX=pcent/100;

lbc.text=int(pcent)+"%";

if(pcent==100){
this.gotoAndStop(2);
}
}

Any ideas?
Thanks.

asf8
03-10-2008, 04:16 PM
I'm still waiting...... for those two Mac guys to test the website again. BTW, I never experienced the "full preload and stop" that asf8 was talking about. But another friend of mine, did. So, I post the preloading code, which is in my first frame. Any ideas? Thanks.// AS3 code
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
// etc...

I get the same result with the preloader on page reload, it gets stuck on 100% and never plays the movie.

Are you coding in AS3 ? I dont have CS3, so you might want to ask your preloader question in the AS3 forum. Looks like you got your preloader from this thread? http://www.actionscript.org/forums/showthread.php3?t=151850

Also since your using AS3 you should be targeting Flash Player 9 in your SWFobject script.
var so = new SWFObject("DES-environmet_1.0.swf", "sotester", "100%", "100%", "8", "#FFFFFF");
var so = new SWFObject("DES-environmet_1.0.swf", "sotester", "100%", "100%", "8", "#FFFFFF");
// shoud be 9.0 or higher.

lananci
03-10-2008, 09:29 PM
That's not my preloader. But I see it Fixes Refresh Issue, so I'll try!!!
I'll let you know!!!
Thanks asf8, you're really kind!!! I owe you a beer!!!

asf8
03-10-2008, 10:09 PM
That's not my preloader.

:o Not sure where you got your code, but somehow it came from the same place somewhere because they are the same ;)

Your code:
stop();
import flash.display.*;
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lbc.text=int(pcent)+"%";
if(pcent==100){
this.gotoAndStop(2);
}
}
The code from that thread:
stop();
import flash.display.*;
this.stop(); // identical except this line
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if(pcent==100){
this.gotoAndStop(2);
}
}

But anyway :)


But I see it Fixes Refresh Issue, so I'll try!!!I'll let you know!!!

Yes in this link there is code for the reload issue
http://www.actionscript.org/forums/showpost.php3?p=707665&postcount=13

But again I do not Have CS3 so I do not know if that solves the issue, try it out and see.

However this is interesting also, might want to read
http://www.actionscript.org/forums/showthread.php3?t=136345

lananci
03-11-2008, 01:36 AM
Yep, it's definetly got something to do with mine... but actually I have no idea of where mine comes from. I'm a dumb, do you remember? :)
But this one, first view to say, has too many comments and I'm too lazy to remove them all. Basically they look the same.

BTW one of those two Mac guys told me it's ok now.

And I "fixed" it with the code you suggested... at least I hope so... I never experienced the problem, so I have no way to test by myself now.

I used this one

http://www.actionscript.org/forums/showthread.php3?t=151850

Tank you so much again!!!

asf8
03-11-2008, 02:58 AM
Yep, it's definetly got something to do with mine... but actually I have no idea of where mine comes from. I'm a dumb, do you remember? But this one, first view to say, has too many comments and I'm too lazy to remove them all. Basically they look the same. BTW one of those two Mac guys told me it's ok now. And I "fixed" it with the code you suggested... at least I hope so... I never experienced the problem, so I have no way to test by myself now. Thank you so much again!!!

Your welcome. It reloads now for me, and I see you updated the SWFobject to target player 9. So looks like your on your way!

;)