[Flashcoders] swf doesn't work the same online

2010-03-08 Thread John Singleton
Hi;
I built a swf that works the way I want it in Flash, but when I upload it, it 
acts differently! I built buttons in as3 like this:

function nav(nname:String, nurl:String, myX:int, bgcolor:uint):void
{
myfont2 = 'Arial';
mydize = 15;
mytxtcolor = 0x00;
myborder = true;
mybordercolor = 0xFF;
myY = 170;
myfill = 0x97f9ec;
mynav = new TextField();
var format:TextFormat = new TextFormat();
format.font = myfont2;
format.size = mysize;
mynav.htmlText = 'a href=' + nurl + '.html' + nname + '/a';
mynav.textColor = myTextColor;
mynav.border = myborder;
mynav.borderColor = mybordercolor;
mynav.background=true;
mynav.backgroundColor = bgcolor;
mynav.autoSize = TextFieldAutoSize.LEFT;
mynav.x = myX;
mynav.y = myY;
mynav.setTextFormat(format);
var navdrop:DropShadowFilter = new DropShadowFilter();
navdrop.color = 0x00;
navdrop.blurX = 3;
navdrop.blurY = 3;
navdrop.angle = 0;
navdrop.alpha = 0.5;
navdrop.distance = 3;
var navfilters:Array = new Array(navdrop);
mynav.filters = navFiltersArray;
var nsprite:Sprite = new Sprite();
addChild(nsprite);
nsprite.name = nname;
nsprite.addChild(mynav);
var len:int = mynav.numLines;
for (var i:int = 0; i  len; i++) 
{
var metrics:TextLineMetrics = mynav.getLineMetrics(i);
with(nsprite.graphics)
{
beginFill(myfill, 1);
drawRect(mynav.x, mynav.y, metrics.width + 4, 
metrics.height + metrics.descent + 1);
endFill();
}
}
addChild(nsprite);
nsprite.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler);
nsprite.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler);
nsprite.addEventListener(MouseEvent.CLICK, onClickHandler);
nsprite.addEventListener(MouseEvent.MOUSE_DOWN, onPressHandler);
nsprite.addEventListener(MouseEvent.MOUSE_UP, onReleaseHandler);
nsprite.mouseChildren = false;
nsprite.buttonMode = true;
}

function onRollOverHandler(e:MouseEvent) 
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0x97f9ec);
}
}

function onRollOutHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0x0e778a);
}

function onClickHandler(e:MouseEvent)
{
mynav.textColor = 0x00;
mynav.borderColor = 0xFF;
}

function onPressHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0xff);
}
}

function onReleaseHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0x0e778a);
}
}

I can't figure out why it doesn't work online like it does in Flash. Online, 
it's all broken. Is this common? What should I do?
Thanks,
John


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] swf doesn't work the same online

2010-03-08 Thread Valentin Schmidt
 Hi; I built a swf that works the way I want it in Flash, but when I
 upload it, it acts differently! I built buttons in as3 like this:

your code is corrupted:

 function onRollOutHandler(e:MouseEvent)
 {
 if (e.currentTarget.name == ' Home ') 
 {
 Navigation(' Home ', 'index', 235, 0x0e778a);
 }

the IF statement is not closed!

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] swf doesn't work the same online

2010-03-08 Thread John Singleton






From: Valentin Schmidt v...@dasdeck.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Mon, March 8, 2010 1:48:18 PM
Subject: Re: [Flashcoders] swf doesn't work the same online

 Hi; I built a swf that works the way I want it in Flash, but when I
 upload it, it acts differently! I built buttons in as3 like this:

your code is corrupted:

 function onRollOutHandler(e:MouseEvent)
 {
 if (e.currentTarget.name == ' Home ') 
 {
 Navigation(' Home ', 'index', 235, 0x0e778a);
 }

the IF statement is not closed!

No, the if statements were closed. I just edited some stuff out and missed 
that. The code works perfectly well in the swf in my Flash, and that's what 
confuses me.
John

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] swf doesn't work the same online

2010-03-08 Thread Mattheis, Erik (MIN - WSW)
What's broken about it? I recently had an issue with filters working 
differently in the browser than the authoring environment ...

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Singleton
Sent: Monday, March 08, 2010 11:31 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] swf doesn't work the same online

Hi;
I built a swf that works the way I want it in Flash, but when I upload it, it 
acts differently! I built buttons in as3 like this:

function nav(nname:String, nurl:String, myX:int, bgcolor:uint):void
{
myfont2 = 'Arial';
mydize = 15;
mytxtcolor = 0x00;
myborder = true;
mybordercolor = 0xFF;
myY = 170;
myfill = 0x97f9ec;
mynav = new TextField();
var format:TextFormat = new TextFormat();
format.font = myfont2;
format.size = mysize;
mynav.htmlText = 'a href=' + nurl + '.html' + nname + '/a';
mynav.textColor = myTextColor;
mynav.border = myborder;
mynav.borderColor = mybordercolor;
mynav.background=true;
mynav.backgroundColor = bgcolor;
mynav.autoSize = TextFieldAutoSize.LEFT;
mynav.x = myX;
mynav.y = myY;
mynav.setTextFormat(format);
var navdrop:DropShadowFilter = new DropShadowFilter();
navdrop.color = 0x00;
navdrop.blurX = 3;
navdrop.blurY = 3;
navdrop.angle = 0;
navdrop.alpha = 0.5;
navdrop.distance = 3;
var navfilters:Array = new Array(navdrop);
mynav.filters = navFiltersArray;
var nsprite:Sprite = new Sprite();
addChild(nsprite);
nsprite.name = nname;
nsprite.addChild(mynav);
var len:int = mynav.numLines;
for (var i:int = 0; i  len; i++) 
{
var metrics:TextLineMetrics = mynav.getLineMetrics(i);
with(nsprite.graphics)
{
beginFill(myfill, 1);
drawRect(mynav.x, mynav.y, metrics.width + 4, 
metrics.height + metrics.descent + 1);
endFill();
}
}
addChild(nsprite);
nsprite.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler);
nsprite.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler);
nsprite.addEventListener(MouseEvent.CLICK, onClickHandler);
nsprite.addEventListener(MouseEvent.MOUSE_DOWN, onPressHandler);
nsprite.addEventListener(MouseEvent.MOUSE_UP, onReleaseHandler);
nsprite.mouseChildren = false;
nsprite.buttonMode = true;
}

function onRollOverHandler(e:MouseEvent) 
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0x97f9ec);
}
}

function onRollOutHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0x0e778a);
}

function onClickHandler(e:MouseEvent)
{
mynav.textColor = 0x00;
mynav.borderColor = 0xFF;
}

function onPressHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0xff);
}
}

function onReleaseHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ') 
{
Navigation(' Home ', 'index', 235, 0x0e778a);
}
}

I can't figure out why it doesn't work online like it does in Flash. Online, 
it's all broken. Is this common? What should I do?
Thanks,
John


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] swf doesn't work

2009-06-11 Thread Mendelsohn, Michael
Hi list...

[CS3, dev machine has FP10 installed]

I have a swf rendering problem on the pc.  Two people are viewing my swf with 
player 9,0,16,0.  When the swf initializes, there are a series of animations 
that occur where sprites are faded in on the stage.  These two people only see 
the last sprite fade in, without seeing all the other sprites accumulate on the 
stage.

My gut tells me it's a player version issue somehow.  I am not sure why they 
aren't seeing it correctly.  I'm publishing for 9, but I'm not sure if it's 
publishing a 9 build higher than 9,0,16,0.   I target 9,0,16 in the html.  I'm 
really puzzled.

Thanks for any advice,
- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] swf doesn't work

2009-06-11 Thread jonathan howe
Michael,

Sometimes things that appear to be player issues turn out to be loader
issues. When you first publish for external people, it's often the first
time you go over the web AND the first time you get configurations. Can you
be sure the app handles the loading of those sprite assets properly, using
Test Download and reviewing the code?

-jonathan



On Thu, Jun 11, 2009 at 10:03 AM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi list...

 [CS3, dev machine has FP10 installed]

 I have a swf rendering problem on the pc.  Two people are viewing my swf
 with player 9,0,16,0.  When the swf initializes, there are a series of
 animations that occur where sprites are faded in on the stage.  These two
 people only see the last sprite fade in, without seeing all the other
 sprites accumulate on the stage.

 My gut tells me it's a player version issue somehow.  I am not sure why
 they aren't seeing it correctly.  I'm publishing for 9, but I'm not sure if
 it's publishing a 9 build higher than 9,0,16,0.   I target 9,0,16 in the
 html.  I'm really puzzled.

 Thanks for any advice,
 - Michael M.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] swf doesn't work

2009-06-11 Thread Mendelsohn, Michael
Thanks for responding Jonathan.  My only external asset is an xml file, and I 
write a textfield to the stage if there's an IOError.  That's not happening, 
and all other sprites/graphics are within this swf.  It seems to me it's more 
of an ActionScript error, as if each chunk of code wipes out the previous chunk 
of code and all I'm left with is the last chunk of code.

- MM



Sometimes things that appear to be player issues turn out to be loader
issues. When you first publish for external people, it's often the first
time you go over the web AND the first time you get configurations. Can you
be sure the app handles the loading of those sprite assets properly, using
Test Download and reviewing the code?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] swf doesn't work

2009-06-11 Thread mark . jonkman
Hi Michael 

Keep in mind that Flash CS3 was released in conjunction with Flash Player 9r45 
(9,0,45,0). I can't recall all the differences. But there are certain events 
such as the ADDED_TO_STAGE/REMOVED_FROM_STAGE event that didn't make it in till 
at least 9r28. I also believe that 9r28 was the first release that supported 
all the various OSes and processors including Vista, Mac Intel. There were 
separate releases that added these features/OS support, but if need to set a 
minimum target for your content then don't go any further back then 9r28 and if 
you are using any of the Flash CS 3 features and components, you can't reliably 
support prior to 9r45 (without a lot of compatibility testing). 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: Michael Mendelsohn michael.mendels...@fmglobal.com 
To: Flash Coders List flashcoders@chattyfig.figleaf.com 
Sent: Thursday, June 11, 2009 10:03:55 AM GMT -05:00 US/Canada Eastern 
Subject: [Flashcoders] swf doesn't work 

Hi list... 

[CS3, dev machine has FP10 installed] 

I have a swf rendering problem on the pc. Two people are viewing my swf with 
player 9,0,16,0. When the swf initializes, there are a series of animations 
that occur where sprites are faded in on the stage. These two people only see 
the last sprite fade in, without seeing all the other sprites accumulate on the 
stage. 

My gut tells me it's a player version issue somehow. I am not sure why they 
aren't seeing it correctly. I'm publishing for 9, but I'm not sure if it's 
publishing a 9 build higher than 9,0,16,0. I target 9,0,16 in the html. I'm 
really puzzled. 

Thanks for any advice, 
- Michael M. 


___ 
Flashcoders mailing list 
Flashcoders@chattyfig.figleaf.com 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] swf doesn't work

2009-06-11 Thread Mendelsohn, Michael
Thanks Mark, that's really helpful information.

Regards,
- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders