Re: [Flashcoders] Embedding bitmap/pixel fonts with pure AS3

2008-12-11 Thread Ian Thomas
Your own code would be helpful... (to see how you're using it).

But the normal issues about fonts not being displayed are:

- The font is embedded as bold or italic, and you are displaying it as
plain. Or vice versa. If you want to display a font as bold, you need
to embed it as bold.
- You haven't applied the font to the textfield properly. (How are you
doing that? TextFormat? CSS?)

Ian

On Thu, Dec 11, 2008 at 1:00 AM,  [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I'm using: http://pastebin.com/ded811b0 to embed my pixel font, but
 no errors and not working, displays as an ugly little default font.
 Any ideas? Purely AS3 please, no asset linking in flash please? :p

 - -e
 -BEGIN PGP SIGNATURE-
 Charset: UTF8
 Version: Hush 3.0
 Note: This signature can be verified at https://www.hushtools.com/verify

 wpwEAQMCAAYFAklAZkQACgkQJz1LFzHW7Hok5QP/S/O/a7Gootk/mzWssvOXanJeRmDA
 1lgnvytjA2B2sThaFWe+eB7z+LTXhLzO7sTqLEUGRfxkKRxCmysS6pDbsrudgsiY/wv5
 z/gARWKlHTR2WT1YQ1AB5Hfn3o3Z9ZZgzN1gRYCCu7iEPcBwRNTcRb68TRMJF2DyMfrX
 go9dJf4=
 =KCtY
 -END PGP SIGNATURE-

 --
 Start a rewarding Medical Transcriptionist career. Click to find affordable 
 and flexible programs.
  
 http://tagline.hushmail.com/fc/PnY6qxthN5Ots8FkC7r4DaavDyptQf0YLvzhvWezaFYyk9EIodogX/

 ___
 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] strange textfield behaviour in browser

2008-12-11 Thread laurent

Hi list,

I made some form in my app and the textfields work fine on local from 
the flash ide.
But when the site is in the browser the texfield don't recognise that 
the shift key is press. So on a french laptop you can't type numbers or @.
This behavior is so strange that i don't know where to look. Anyone ever 
got that problem ??


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


Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
Hi,
does trapallkeys make any difference?

greetz
JC

On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED] wrote:

 Hi list,

 I made some form in my app and the textfields work fine on local from the
 flash ide.
 But when the site is in the browser the texfield don't recognise that the
 shift key is press. So on a french laptop you can't type numbers or @.
 This behavior is so strange that i don't know where to look. Anyone ever
 got that problem ??

 thanks
 Laurent
 ___
 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] strange textfield behaviour in browser

2008-12-11 Thread laurent

Hi JC,

Thanks for the reply. Hm no effect. Actually I noticed this bug only on 
laptop running windows.
My team member running all on mac, laptop and boxes did not notice this 
horrible bug :(


L

Hans Wichman a écrit :

Hi,
does trapallkeys make any difference?

greetz
JC

On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED] wrote:

  

Hi list,

I made some form in my app and the textfields work fine on local from the
flash ide.
But when the site is in the browser the texfield don't recognise that the
shift key is press. So on a french laptop you can't type numbers or @.
This behavior is so strange that i don't know where to look. Anyone ever
got that problem ??

thanks
Laurent
___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] effects theory? keeping processes low...

2008-12-11 Thread Pedro Kostelec
I think i once read that filters are improved to work better with number
divisible with 4.
Maybe it's the same with other stuff in as.

On Wed, Dec 10, 2008 at 7:59 PM, Corban Baxter [EMAIL PROTECTED] wrote:

 Hey guys I am working on a fullscreen flash site. I am hoping to bring
 down the CPU cycles. Right now on the PC I'm using to test it on it
 runs high like 90%. I was hoping there might be a way to bring down
 the processor. But I have tried about everything. I'm not sure what I
 could do to get it much lower. I'm sure there are a few pros out there
 that would have a few ideas. Here is the page...
 http://projectx4.com/site_test/. From all my tests it just seems like
 moving that many large objects on the screen is just going to bring
 the processor to its knees no matter what. Would any one have any
 ideas how to help this at all?

 Would doing some sort of bitmap object hack work either? Thanks for
 the help in advance!

 And Here is some code I have written to run the animation...

 import gs.TweenLite;
 import gs.easing.*;

 var shell:MovieClip = this;

 var maxOrbs:Number = 10;
 var numOrbs:Number;

 function animateOrb(mc:MovieClip):void
 {
mc.orbTween = TweenLite.to(mc, 1, { alpha: 1 });
mc.orbTween = TweenLite.to(mc, mc.ranTime, { x: mc.moveToX,
 ease:Linear.easeNone, overwrite: false });
mc.orbTween = TweenLite.to(mc, 1, {delay: mc.ranTime-1, alpha: 0,
 onComplete: removeOrb, onCompleteScope: shell, onCompleteParams: [mc],
 overwrite: false});

 }

 function createOrbs():void
 {

numOrbs = 0; //reset count

for(var i:int=0; imaxOrbs; i++){

createNewOrb(numOrbs);
numOrbs++;

}

 }

 function removeOrb(orb:MovieClip):void
 {
var num:Number = orb.num;
motionBlurHldr.removeChild(orb);
numOrbs--;
var oldNum:Number = orb.num;

orb.orbTween = null;
delete orb.orbTween;

orb = null;
shell[orb + num] = null;
delete(shell[orb + num]);
delete(orb);

//trace(orb);

createNewOrb(oldNum); //replace the orb that was just removed with a
 new one
 }


 function createNewOrb(num:Number):void
 {

shell[orb + num] = new ch_orb();
var orb:MovieClip = shell[orb + num];

//setup random vars
var ranScale:int = Math.round(Math.random() * (4 - 2)) + 2;
var ranX:int = Math.round(Math.random() * (sWidth + 250) + 50);
 //sWidth is really stage.stageWidth
var ranY:int = Math.round(Math.random() * (sHeight + 250) + 50);
 //sWidth is really stage.stageHeight
var moveToX:int = Math.round(Math.random() * (290 - 90)) + 90;
var ranTime:int = Math.round(Math.random() * (6 - 3)) + 3;;

orb.moveToX = ranX - moveToX;
orb.ranTime = ranTime;

//setup properties of the orb
orb.scaleX = ranScale;
orb.scaleY = ranScale;
orb.x = ranX;
orb.y = ranY;
orb.alpha = 0;
orb.num = num;
orb.orbTween;
orb.name = orb + String(num);

var newColorTransform:ColorTransform = orb.transform.colorTransform;
newColorTransform.color = colorTones[Math.round(Math.random() * 5
 )];
orb.transform.colorTransform = newColorTransform;

animateOrb(orb);

motionBlurHldr.addChild(orb);

 }

 createOrbs();


 --
 Corban Baxter
 http://www.projectx4.com
 ___
 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] colour and transform matrices

2008-12-11 Thread allandt bik-elliott (thefieldcomic.com)
thanks guys

^^

On Wed, Dec 10, 2008 at 12:31 PM, Vayu Robins [EMAIL PROTECTED] wrote:

 Dont know if this is what your looking for, but this guy does some nice
 work:


 http://blog.soulwire.co.uk/flash/actionscript-3/colourutils-bitmapdata-extra
 ct-colour-palette/http://blog.soulwire.co.uk/flash/actionscript-3/colourutils-bitmapdata-extract-colour-palette/

 Cordially
 Vayu
 flashkompagniet.dk

 On 12/10/08 12:25 PM, allandt bik-elliott (thefieldcomic.com)
 [EMAIL PROTECTED] wrote:

  Hi guys
 
  After a brief discussion with some of the devs where i'm working at the
 mo,
  i was wondering if anyone could point me at a decent tutorial for using
 and
  manipulating objects and colours using matrices. It seems to be one of
 those
  things that people only learn a teeny bit of but could be immensly
 powerful
  in the wrong... i mean right hands.
 
  thanks
  a
  ___
  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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread allandt bik-elliott (thefieldcomic.com)
windows and mac machines handle fonts differently but it's usually macs that
suffer problems as they need to have each weight and variation embedded
separately - i didn't think windows suffered this problem?

On Thu, Dec 11, 2008 at 11:38 AM, laurent [EMAIL PROTECTED] wrote:

 Hi JC,

 Thanks for the reply. Hm no effect. Actually I noticed this bug only on
 laptop running windows.
 My team member running all on mac, laptop and boxes did not notice this
 horrible bug :(

 L

 Hans Wichman a écrit :

  Hi,
 does trapallkeys make any difference?

 greetz
 JC

 On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED]
 wrote:



 Hi list,

 I made some form in my app and the textfields work fine on local from the
 flash ide.
 But when the site is in the browser the texfield don't recognise that the
 shift key is press. So on a french laptop you can't type numbers or @.
 This behavior is so strange that i don't know where to look. Anyone ever
 got that problem ??

 thanks
 Laurent
 ___
 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 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] Probably a simple answer...

2008-12-11 Thread Lehr, Ross (N-SGIS)
This is probably too simple of a question to ask here, but I'm trying to
get my head around this AS3 OOP thing.  I'm playing with a simple AIR
(built in Flash) web browser and I've hit a snag right off the bat.  I
have a document class that calls a class to build the HTMLLoader window.
If I comment out the code in the onGoEvent function it works fine.  When
I uncomment the code and compile, I get a  1061: Call to a possibly
undefined method urlToLoad through a reference with static type  I know
urlToLoad is there, I use it to load the default page, but for some
reason it gets lost along the way...  With my limited knowledge of AS3
and OOP I just can't find the problem.  Thanks for any advice and help.

urlInput = the text entry field a user would typ the URL address to a
web page.

PS. I've removed some of the code like the import statements to keep
the email as small as possible.

DOCUMENT CLASS

package  {

public class MyBrowser extends MovieClip {

var mainBrowserWindow:HTMLLoader;

public function MyBrowser() 

{

mainBrowserWindow = new
BasicBrowserWindow(this,10,45,stage.stageHeight -
100,900,http://www.yahoo.com;);

//goButton

goButton.addEventListener(MouseEvent.CLICK, onGoEvent);

}

public function onGoEvent(e:MouseEvent):void

{

mainBrowserWindow.urlToLoad( urlInput.text );

}

}

}

BasicBrowserWindow CLASS

package  {

public class BasicBrowserWindow extends HTMLLoader {

var htmlLoader:HTMLLoader = new HTMLLoader();

public function BasicBrowserWindow(mC:MovieClip,
xPos:int,
yPos:int,
browserH:int,
browserW:int,
defaultURL:String)

{

htmlLoader.x = xPos;

htmlLoader.y = yPos;

htmlLoader.width = browserW;

htmlLoader.height = browserH;

mC.addChild(htmlLoader);

urlToLoad(defaultURL);   

   }



public function urlToLoad(uTL:String):void

{

htmlLoader.load(new URLRequest( uTL ));
}

}

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


RE: [Flashcoders] Probably a simple answer...

2008-12-11 Thread Lehr, Ross (N-SGIS)
Great.. thanks Ian.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Thursday, December 11, 2008 8:12 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Probably a simple answer...

Hi Ross,

   The problem is this line:

var mainBrowserWindow:HTMLLoader;

It declares mainBrowserWindow as an HTMLLoader. But HTMLLoader (the
class) doesn't have a urlToLoad function, so the compiler gets
confused, not knowing mainBrowserWindow is really a
BasicBrowserWindow.

Replace with this:

var mainBrowserWindow:BasicBrowserWindow;

and the problem should go away.

HTH,
   Ian


On Thu, Dec 11, 2008 at 1:03 PM, Lehr, Ross (N-SGIS)
[EMAIL PROTECTED] wrote:
 This is probably too simple of a question to ask here, but I'm trying
to
 get my head around this AS3 OOP thing.  I'm playing with a simple AIR
 (built in Flash) web browser and I've hit a snag right off the bat.  I
 have a document class that calls a class to build the HTMLLoader
window.
 If I comment out the code in the onGoEvent function it works fine.
When
 I uncomment the code and compile, I get a  1061: Call to a possibly
 undefined method urlToLoad through a reference with static type  I
know
 urlToLoad is there, I use it to load the default page, but for some
 reason it gets lost along the way...  With my limited knowledge of AS3
 and OOP I just can't find the problem.  Thanks for any advice and
help.

 urlInput = the text entry field a user would typ the URL address to a
 web page.

 PS. I've removed some of the code like the import statements to keep
 the email as small as possible.

 DOCUMENT CLASS

 package  {

public class MyBrowser extends MovieClip {

var mainBrowserWindow:HTMLLoader;

public function MyBrowser()

{

mainBrowserWindow = new
 BasicBrowserWindow(this,10,45,stage.stageHeight -
 100,900,http://www.yahoo.com;);

//goButton

goButton.addEventListener(MouseEvent.CLICK, onGoEvent);

}

public function onGoEvent(e:MouseEvent):void

{

mainBrowserWindow.urlToLoad( urlInput.text );

}

}

 }

 BasicBrowserWindow CLASS

 package  {

public class BasicBrowserWindow extends HTMLLoader {

var htmlLoader:HTMLLoader = new HTMLLoader();

public function BasicBrowserWindow(mC:MovieClip,
xPos:int,
yPos:int,
browserH:int,
browserW:int,
defaultURL:String)

{

htmlLoader.x = xPos;

htmlLoader.y = yPos;

htmlLoader.width = browserW;

htmlLoader.height = browserH;

mC.addChild(htmlLoader);

urlToLoad(defaultURL);

   }



public function urlToLoad(uTL:String):void

{

htmlLoader.load(new URLRequest( uTL ));
}

}

 }
 ___
 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Probably a simple answer...

2008-12-11 Thread Sidney de Koning

Hi Ross,

when you create your variables, you forgot to set the identifier,  
public , private etc.

Because else it scopes it default to , if i'm not mistaken.
So now change that to (and its good practice to use an underscore for  
member variables);


private var _mainBrowser: BasicBrowserWindow; (not htmlLoader)

Also change the mainBrowser everywhere to _mainBrowser, now also do  
the same trick for the htmlLoader.

(set it to private and rename to_htmLoader).

That should fix it.

Hope this helps you on your way,

Sid


On Dec 11, 2008, at 2:03 PM, Lehr, Ross (N-SGIS) wrote:

This is probably too simple of a question to ask here, but I'm  
trying to

get my head around this AS3 OOP thing.  I'm playing with a simple AIR
(built in Flash) web browser and I've hit a snag right off the bat.  I
have a document class that calls a class to build the HTMLLoader  
window.
If I comment out the code in the onGoEvent function it works fine.   
When

I uncomment the code and compile, I get a  1061: Call to a possibly
undefined method urlToLoad through a reference with static type  I  
know

urlToLoad is there, I use it to load the default page, but for some
reason it gets lost along the way...  With my limited knowledge of AS3
and OOP I just can't find the problem.  Thanks for any advice and  
help.


urlInput = the text entry field a user would typ the URL address to a
web page.

PS. I've removed some of the code like the import statements to keep
the email as small as possible.

DOCUMENT CLASS

package  {

public class MyBrowser extends MovieClip {

var mainBrowserWindow:HTMLLoader;

public function MyBrowser()

{

mainBrowserWindow = new
BasicBrowserWindow(this,10,45,stage.stageHeight -
100,900,http://www.yahoo.com;);

//goButton

goButton.addEventListener(MouseEvent.CLICK, onGoEvent);

   }

public function onGoEvent(e:MouseEvent):void

{

mainBrowserWindow.urlToLoad( urlInput.text );

}

}

}

BasicBrowserWindow CLASS

package  {

public class BasicBrowserWindow extends HTMLLoader {

var htmlLoader:HTMLLoader = new HTMLLoader();

public function BasicBrowserWindow(mC:MovieClip,
xPos:int,
yPos:int,
browserH:int,
browserW:int,
defaultURL:String)

   {

htmlLoader.x = xPos;

htmlLoader.y = yPos;

htmlLoader.width = browserW;

htmlLoader.height = browserH;

mC.addChild(htmlLoader);

urlToLoad(defaultURL);

  }



   public function urlToLoad(uTL:String):void

   {

htmlLoader.load(new URLRequest( uTL ));
}

}

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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


Re: [Flashcoders] Probably a simple answer...

2008-12-11 Thread Ian Thomas
Hi Ross,

   The problem is this line:

var mainBrowserWindow:HTMLLoader;

It declares mainBrowserWindow as an HTMLLoader. But HTMLLoader (the
class) doesn't have a urlToLoad function, so the compiler gets
confused, not knowing mainBrowserWindow is really a
BasicBrowserWindow.

Replace with this:

var mainBrowserWindow:BasicBrowserWindow;

and the problem should go away.

HTH,
   Ian


On Thu, Dec 11, 2008 at 1:03 PM, Lehr, Ross (N-SGIS) [EMAIL PROTECTED] wrote:
 This is probably too simple of a question to ask here, but I'm trying to
 get my head around this AS3 OOP thing.  I'm playing with a simple AIR
 (built in Flash) web browser and I've hit a snag right off the bat.  I
 have a document class that calls a class to build the HTMLLoader window.
 If I comment out the code in the onGoEvent function it works fine.  When
 I uncomment the code and compile, I get a  1061: Call to a possibly
 undefined method urlToLoad through a reference with static type  I know
 urlToLoad is there, I use it to load the default page, but for some
 reason it gets lost along the way...  With my limited knowledge of AS3
 and OOP I just can't find the problem.  Thanks for any advice and help.

 urlInput = the text entry field a user would typ the URL address to a
 web page.

 PS. I've removed some of the code like the import statements to keep
 the email as small as possible.

 DOCUMENT CLASS

 package  {

public class MyBrowser extends MovieClip {

var mainBrowserWindow:HTMLLoader;

public function MyBrowser()

{

mainBrowserWindow = new
 BasicBrowserWindow(this,10,45,stage.stageHeight -
 100,900,http://www.yahoo.com;);

//goButton

goButton.addEventListener(MouseEvent.CLICK, onGoEvent);

}

public function onGoEvent(e:MouseEvent):void

{

mainBrowserWindow.urlToLoad( urlInput.text );

}

}

 }

 BasicBrowserWindow CLASS

 package  {

public class BasicBrowserWindow extends HTMLLoader {

var htmlLoader:HTMLLoader = new HTMLLoader();

public function BasicBrowserWindow(mC:MovieClip,
xPos:int,
yPos:int,
browserH:int,
browserW:int,
defaultURL:String)

{

htmlLoader.x = xPos;

htmlLoader.y = yPos;

htmlLoader.width = browserW;

htmlLoader.height = browserH;

mC.addChild(htmlLoader);

urlToLoad(defaultURL);

   }



public function urlToLoad(uTL:String):void

{

htmlLoader.load(new URLRequest( uTL ));
}

}

 }
 ___
 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] Embedding bitmap/pixel fonts with pure AS3

2008-12-11 Thread e319
It is a non-bold 8 pixel bitmap font. Here is my code.

package {

// Flash Packages
import flash.display.Sprite;
import flash.display.StageScaleMode;
import flash.events.*;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.StyleSheet;

// Setup the SWF Properties
[SWF(backgroundColor=#FF, frameRate=30, width=1000, 
height=600, quality=HIGH)]

public class EmbedFont extends Sprite {

// Embed Silkscreen Bitmap Font
[Embed(source=assets/fonts/silkscreen.ttf, 
fontName=mySilkscreen, mimeType=application/x-font-truetype)]
private var mySilkscreen:Class;
private var _mySilkscreenFormat:TextFormat;
private var _myEmbedBitmapText:TextField;
private var _container:Sprite;

public function EmbedFont() {
stage.scaleMode = StageScaleMode.NO_SCALE;
_mySilkscreenFormat = new TextFormat();
_mySilkscreenFormat.font = mySilkscreen;
_mySilkscreenFormat.size = 8;
_myEmbedBitmapText = new TextField();
_myEmbedBitmapText.text = this is silkscreen;
_myEmbedBitmapText.setTextFormat(_mySilkscreenFormat);
addChild(_myEmbedBitmapText);
}

}
}

--
Write, shoot, direct, edit your own movies.  Click here to request information.
 
http://tagline.hushmail.com/fc/PnY6qxsZP8W6bEoKKL58CZrfALeP0WmZbBPYJmUoSCkIf4C5fyeFh/

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


Re: [Flashcoders] Embedding bitmap/pixel fonts with pure AS3

2008-12-11 Thread Ian Thomas
I can't immediately see anything wrong with that - looks pretty
straightforward to me. Maybe someone else will spot something obvious!

But in the meantime, the only ideas I have are:
- Are you _sure_ the original .ttf isn't set to bold or italic under
the hood (even if it doesn't appear bold?). Try setting
fontWeight=bold in the embed and the text format.
- Try setDefaultTextFormat(_mySilkscreenFormat) before setting the .text member.
- Does the original .ttf actually support lowercase? (It's not one of
these uppercase only pixel fonts?)

Ian

On Thu, Dec 11, 2008 at 1:47 PM,  [EMAIL PROTECTED] wrote:
 It is a non-bold 8 pixel bitmap font. Here is my code.

 package {

// Flash Packages
import flash.display.Sprite;
import flash.display.StageScaleMode;
import flash.events.*;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.StyleSheet;

// Setup the SWF Properties
[SWF(backgroundColor=#FF, frameRate=30, width=1000,
 height=600, quality=HIGH)]

public class EmbedFont extends Sprite {

// Embed Silkscreen Bitmap Font
[Embed(source=assets/fonts/silkscreen.ttf,
 fontName=mySilkscreen, mimeType=application/x-font-truetype)]
private var mySilkscreen:Class;
private var _mySilkscreenFormat:TextFormat;
private var _myEmbedBitmapText:TextField;
private var _container:Sprite;

public function EmbedFont() {
stage.scaleMode = StageScaleMode.NO_SCALE;
_mySilkscreenFormat = new TextFormat();
_mySilkscreenFormat.font = mySilkscreen;
_mySilkscreenFormat.size = 8;
_myEmbedBitmapText = new TextField();
_myEmbedBitmapText.text = this is silkscreen;
_myEmbedBitmapText.setTextFormat(_mySilkscreenFormat);
addChild(_myEmbedBitmapText);
}

}
 }

 --
 Write, shoot, direct, edit your own movies.  Click here to request 
 information.
  
 http://tagline.hushmail.com/fc/PnY6qxsZP8W6bEoKKL58CZrfALeP0WmZbBPYJmUoSCkIf4C5fyeFh/

 ___
 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] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
Hi,

ok I misunderstood the problem at first, thinking you were trying to detect
shift keypress, but the whole textfield breaks... that is weird.
Which browser are you testing it in? Does it break in all browsers? But
plays fine in the IDE... any difference in player version?

Are you using firefox with wmode transparent?

greetz
JC
On Thu, Dec 11, 2008 at 12:38 PM, laurent [EMAIL PROTECTED] wrote:

 Hi JC,

 Thanks for the reply. Hm no effect. Actually I noticed this bug only on
 laptop running windows.
 My team member running all on mac, laptop and boxes did not notice this
 horrible bug :(

 L

 Hans Wichman a écrit :

 Hi,
 does trapallkeys make any difference?

 greetz
 JC

 On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED]
 wrote:



 Hi list,

 I made some form in my app and the textfields work fine on local from the
 flash ide.
 But when the site is in the browser the texfield don't recognise that the
 shift key is press. So on a french laptop you can't type numbers or @.
 This behavior is so strange that i don't know where to look. Anyone ever
 got that problem ??

 thanks
 Laurent
 ___
 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 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] Probably a simple answer...

2008-12-11 Thread Lehr, Ross (N-SGIS)
Thanks Sid, it does help... Thanks for the additional advice as well.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: Thursday, December 11, 2008 8:22 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Probably a simple answer...

Hi Ross,

when you create your variables, you forgot to set the identifier,  
public , private etc.
Because else it scopes it default to , if i'm not mistaken.
So now change that to (and its good practice to use an underscore for  
member variables);

private var _mainBrowser: BasicBrowserWindow; (not htmlLoader)

Also change the mainBrowser everywhere to _mainBrowser, now also do  
the same trick for the htmlLoader.
(set it to private and rename to_htmLoader).

That should fix it.

Hope this helps you on your way,

Sid


On Dec 11, 2008, at 2:03 PM, Lehr, Ross (N-SGIS) wrote:

 This is probably too simple of a question to ask here, but I'm  
 trying to
 get my head around this AS3 OOP thing.  I'm playing with a simple AIR
 (built in Flash) web browser and I've hit a snag right off the bat.  I
 have a document class that calls a class to build the HTMLLoader  
 window.
 If I comment out the code in the onGoEvent function it works fine.   
 When
 I uncomment the code and compile, I get a  1061: Call to a possibly
 undefined method urlToLoad through a reference with static type  I  
 know
 urlToLoad is there, I use it to load the default page, but for some
 reason it gets lost along the way...  With my limited knowledge of AS3
 and OOP I just can't find the problem.  Thanks for any advice and  
 help.

 urlInput = the text entry field a user would typ the URL address to a
 web page.

 PS. I've removed some of the code like the import statements to keep
 the email as small as possible.

 DOCUMENT CLASS

 package  {

   public class MyBrowser extends MovieClip {

   var mainBrowserWindow:HTMLLoader;

   public function MyBrowser()

   {

   mainBrowserWindow = new
 BasicBrowserWindow(this,10,45,stage.stageHeight -
 100,900,http://www.yahoo.com;);

   //goButton

   goButton.addEventListener(MouseEvent.CLICK, onGoEvent);

}

   public function onGoEvent(e:MouseEvent):void

   {

   mainBrowserWindow.urlToLoad( urlInput.text );

   }

   }

 }

 BasicBrowserWindow CLASS

 package  {

   public class BasicBrowserWindow extends HTMLLoader {
   
   var htmlLoader:HTMLLoader = new HTMLLoader();

   public function BasicBrowserWindow(mC:MovieClip,
   xPos:int,
   yPos:int,
   browserH:int,
   browserW:int,
   defaultURL:String)

{

   htmlLoader.x = xPos;

   htmlLoader.y = yPos;

   htmlLoader.width = browserW;

   htmlLoader.height = browserH;

   mC.addChild(htmlLoader);

   urlToLoad(defaultURL);

   }



public function urlToLoad(uTL:String):void

{

   htmlLoader.load(new URLRequest( uTL ));
   }

   }

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

Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




___
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] Probably a simple answer...

2008-12-11 Thread Sidney de Koning

No problem, thats why we are here :)

Happy coding,
Sid


On Dec 11, 2008, at 3:12 PM, Lehr, Ross (N-SGIS) wrote:


Thanks Sid, it does help... Thanks for the additional advice as well.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: Thursday, December 11, 2008 8:22 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Probably a simple answer...

Hi Ross,

when you create your variables, you forgot to set the identifier,
public , private etc.
Because else it scopes it default to , if i'm not mistaken.
So now change that to (and its good practice to use an underscore for
member variables);

private var _mainBrowser: BasicBrowserWindow; (not htmlLoader)

Also change the mainBrowser everywhere to _mainBrowser, now also do
the same trick for the htmlLoader.
(set it to private and rename to_htmLoader).

That should fix it.

Hope this helps you on your way,

Sid


On Dec 11, 2008, at 2:03 PM, Lehr, Ross (N-SGIS) wrote:


This is probably too simple of a question to ask here, but I'm
trying to
get my head around this AS3 OOP thing.  I'm playing with a simple AIR
(built in Flash) web browser and I've hit a snag right off the  
bat.  I

have a document class that calls a class to build the HTMLLoader
window.
If I comment out the code in the onGoEvent function it works fine.
When
I uncomment the code and compile, I get a  1061: Call to a possibly
undefined method urlToLoad through a reference with static type  I
know
urlToLoad is there, I use it to load the default page, but for some
reason it gets lost along the way...  With my limited knowledge of  
AS3

and OOP I just can't find the problem.  Thanks for any advice and
help.

urlInput = the text entry field a user would typ the URL address to a
web page.

PS. I've removed some of the code like the import statements to  
keep

the email as small as possible.

DOCUMENT CLASS

package  {

public class MyBrowser extends MovieClip {

var mainBrowserWindow:HTMLLoader;

public function MyBrowser()

{

mainBrowserWindow = new
BasicBrowserWindow(this,10,45,stage.stageHeight -
100,900,http://www.yahoo.com;);

//goButton

goButton.addEventListener(MouseEvent.CLICK, onGoEvent);

  }

public function onGoEvent(e:MouseEvent):void

{

mainBrowserWindow.urlToLoad( urlInput.text );

}

}

}

BasicBrowserWindow CLASS

package  {

public class BasicBrowserWindow extends HTMLLoader {

var htmlLoader:HTMLLoader = new HTMLLoader();

public function BasicBrowserWindow(mC:MovieClip,
xPos:int,
yPos:int,
browserH:int,
browserW:int,
defaultURL:String)

  {

htmlLoader.x = xPos;

htmlLoader.y = yPos;

htmlLoader.width = browserW;

htmlLoader.height = browserH;

mC.addChild(htmlLoader);

urlToLoad(defaultURL);

 }



  public function urlToLoad(uTL:String):void

  {

htmlLoader.load(new URLRequest( uTL ));
}

}

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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




___
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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread laurent


Hi,

The weird thing is that upper case work, the player in browser get the 
SHIFT is pressed but does not want to apply it's effect on certain 
keyboard buttons.


So fare we have seen the bug on firefox, IE, safari player 9 and 10 
windows laptop


with wmode = transparent

hm I guess people can check here on the platform we have not tested, 
...like mac..:)

http://240plan.ovh.net/~frenchda/index2.php

down right menu: 'MON COMPTE' you have a email texfield, try to write 
you one ;)


L




Hans Wichman a écrit :

Hi,

ok I misunderstood the problem at first, thinking you were trying to detect
shift keypress, but the whole textfield breaks... that is weird.
Which browser are you testing it in? Does it break in all browsers? But
plays fine in the IDE... any difference in player version?

Are you using firefox with wmode transparent?

greetz
JC
On Thu, Dec 11, 2008 at 12:38 PM, laurent [EMAIL PROTECTED] wrote:

  

Hi JC,

Thanks for the reply. Hm no effect. Actually I noticed this bug only on
laptop running windows.
My team member running all on mac, laptop and boxes did not notice this
horrible bug :(

L

Hans Wichman a écrit :

Hi,


does trapallkeys make any difference?

greetz
JC

On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED]
wrote:



  

Hi list,

I made some form in my app and the textfields work fine on local from the
flash ide.
But when the site is in the browser the texfield don't recognise that the
shift key is press. So on a french laptop you can't type numbers or @.
This behavior is so strange that i don't know where to look. Anyone ever
got that problem ??

thanks
Laurent
___
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 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SPAM-LOW: Re: [Flashcoders] Arabic flipping

2008-12-11 Thread Cedric Muller

Should be ok with FP10 TextLayout
http://labs.adobe.com/technologies/textlayout/
I am off for some arabic UTF-8 xml tests this week-end. I will let  
you know what I come up with.


Cedric

Yes, I would've thought that when using UTF-8 it would go just  
fine? It's good to know. What about Flash 10 new text engine?

___
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] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
Hi,

I can enter my email in the bottom textfield, win xp sp2, ie,player10. Ar
you using a non english keyboard?
And what happens when you turn wmode transparent off?

greetz
JC

On Thu, Dec 11, 2008 at 3:46 PM, laurent [EMAIL PROTECTED] wrote:


 Hi,

 The weird thing is that upper case work, the player in browser get the
 SHIFT is pressed but does not want to apply it's effect on certain keyboard
 buttons.

 So fare we have seen the bug on firefox, IE, safari player 9 and 10 windows
 laptop

 with wmode = transparent

 hm I guess people can check here on the platform we have not tested,
 ...like mac..:)
 http://240plan.ovh.net/~frenchda/index2.php

 down right menu: 'MON COMPTE' you have a email texfield, try to write you
 one ;)


 L




 Hans Wichman a écrit :

 Hi,

 ok I misunderstood the problem at first, thinking you were trying to
 detect
 shift keypress, but the whole textfield breaks... that is weird.
 Which browser are you testing it in? Does it break in all browsers? But
 plays fine in the IDE... any difference in player version?

 Are you using firefox with wmode transparent?

 greetz
 JC
 On Thu, Dec 11, 2008 at 12:38 PM, laurent [EMAIL PROTECTED]
 wrote:



 Hi JC,

 Thanks for the reply. Hm no effect. Actually I noticed this bug only on
 laptop running windows.
 My team member running all on mac, laptop and boxes did not notice this
 horrible bug :(

 L

 Hans Wichman a écrit :

 Hi,


 does trapallkeys make any difference?

 greetz
 JC

 On Thu, Dec 11, 2008 at 11:05 AM, laurent [EMAIL PROTECTED]
 wrote:





 Hi list,

 I made some form in my app and the textfields work fine on local from
 the
 flash ide.
 But when the site is in the browser the texfield don't recognise that
 the
 shift key is press. So on a french laptop you can't type numbers or @.
 This behavior is so strange that i don't know where to look. Anyone
 ever
 got that problem ??

 thanks
 Laurent
 ___
 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 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 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] asset versioncontrol (beginning to go OT:))

2008-12-11 Thread Hans Wichman
Hi Ian,

ok thanks, are you using some kind of DTAP setup as well (development,
test,acceptation, production) and if yes, could you shed some light on
whether you tag beta releases, test versions etc?

regards,
Hans

On Wed, Dec 10, 2008 at 11:04 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 On Wed, Dec 10, 2008 at 9:22 PM, Hans Wichman
 [EMAIL PROTECTED] wrote:
  Hi Ian,
 
  Doesn't tagging take an awful lot of time this way?

 No, not really. We only tag on release of a new version (not every
 build or anything), and the time taken is worth it.

 Ian
  ___
 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] asset versioncontrol (beginning to go OT:))

2008-12-11 Thread Ian Thomas
On Thu, Dec 11, 2008 at 3:14 PM, Hans Wichman
[EMAIL PROTECTED] wrote:

 ok thanks, are you using some kind of DTAP setup as well (development,
 test,acceptation, production) and if yes, could you shed some light on
 whether you tag beta releases, test versions etc?

Yes, we do tag alpha releases, beta releases and so forth.

We have no formal DTAP in place aside from the usual 'produce alpha,
review, produce beta, test, fix bugs, test, fix bugs, test again,
repeat until we're all fed up, release,  find unexpected bug, curse,
release patch' system that seems to be the norm for most small
software companies. :-)

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


[Flashcoders] FLV and Sound issue

2008-12-11 Thread Jeff Fox
I am having an issue stopping sound playback using the Video player (Library
- New Video) and Sound object in a AS2/Player 8 movie. Here is the code I
am using to play the video and attach sound:

BEGIN CODE-

var videoPlayer:Video;
var vSound:MovieClip;
var so:Sound;

nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.setBufferTime(2);
var myStatus = ns.onStatus = function(info) {
if(info.code == NetStream.Play.Stop) {
ns.seek(0);
}
}
videoPlayer.attachVideo(ns);
ns.play(_flvpath);

vSound = createEmptyMovieClip(vSound, getNextHighestDepth());
vSound.attachAudio(ns);
so = new Sound(vSound);
so.setVolume(100);


END CODE-

The issue is that when I try to manipulate the level of the sound via the so
Sound object while the movie is playing, the volume does not change, even
though so.getVolume value traces with a correct value. Any thoughts or ideas
on how to debug this problem?

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


[Flashcoders] Re: AS2 cross-domain parent-child swf scripting

2008-12-11 Thread Ricky Blaha
So further testing showed the parent SWF can access ordinary variables and
functions in the cross-domain child's SWF no problem...

The problems I ran into earlier were due to the fact that I was attempting
to have the parent SWF read directly from / write to a dynamic text field in
the child SWF so I could make visual observations and was not testing
regular vars and functions -- this is what I found:
- The parent SWF can obtain the child SWF's textfield itself (i.e.
_level0.childLoader.textFieldInstance)
- The parent SWF can obtain the text field's _name property.
- But the parent SWF cannot obtain the text field's text propertyit just
always returns undefined. Why this is I have no idea, but at least for this
test it's a simple workaround to have a function in the child that can
return the text field's text.

So the takeaway is that cross domain accessing of variables and functions
works (as long as System.security.allowDomain() is in the loadee), but
accessing textfields needs wrapper functions.

~Ricky
http://codingjourney.blogspot.com


On Wed, Dec 10, 2008 at 3:12 PM, Ricky Blaha ricky.bl...@gmail.com wrote:

 *Background:*
 SWF #1 is published for Flash 8 / AS2 on domain name #1 and loads in SWF #2
 (same publish settings) from domain #2. Both SWFs are created using Flash
 CS4 (I need to stick with these publish settings for this project) and I
 have tested this using Flash Player 9 and 10.

 SWF #1 needs to load SWF #2 as a child movieclip, then at any point after
 load, SWF #1 should be able to read variables from SWF #2. (Eventually it
 will need to work both ways.)

 I ensured that I can at least do a simple cross-domain data load using
 LoadVars in SWF #1 and a cross domain policy file on domain #2 - that works
 perfectly.

 *Problem:
 *SWF #1 loads SWF #2 no problem, but SWF #1 cannot read any variables from
 SWF #2 long after loading has completed -- every variable is always
 undefined. But when testing within the Flash IDE it works fine. Sounds easy
 enough as these posts describe the simple solution to this security
 restriction:

 http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1083.html

 http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1082.html#wp238823

 But whether SWF #2 contains System.security.allowDomain(*), or
 System.security.allowDomain(domain #1 here), or
 System.security.allowDomain(_parent._url), or even if I attempt to set up a
 LocalConnection in SWF #2 whose allowDomain handler always returns
 true.none of these work.


 I could post code samples but they no different than the examples in those
 two links. Can anyone else get this simple setup to work correctly?

 Thanks!
 RB

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


Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread laurent



!!!yes...wmode='normal' fixed it.

do you know why ??

it was  french keyboard

thank you!
L


Hans Wichman a écrit :

Hi,

I can enter my email in the bottom textfield, win xp sp2, ie,player10. Ar
you using a non english keyboard?
And what happens when you turn wmode transparent off?

greetz
JC

On Thu, Dec 11, 2008 at 3:46 PM, laurent laur...@logiquefloue.org wrote:

  

Hi,

The weird thing is that upper case work, the player in browser get the
SHIFT is pressed but does not want to apply it's effect on certain keyboard
buttons.

So fare we have seen the bug on firefox, IE, safari player 9 and 10 windows
laptop

with wmode = transparent

hm I guess people can check here on the platform we have not tested,
...like mac..:)
http://240plan.ovh.net/~frenchda/index2.php

down right menu: 'MON COMPTE' you have a email texfield, try to write you
one ;)


L




Hans Wichman a écrit :



Hi,

ok I misunderstood the problem at first, thinking you were trying to
detect
shift keypress, but the whole textfield breaks... that is weird.
Which browser are you testing it in? Does it break in all browsers? But
plays fine in the IDE... any difference in player version?

Are you using firefox with wmode transparent?

greetz
JC
On Thu, Dec 11, 2008 at 12:38 PM, laurent laur...@logiquefloue.org
wrote:



  

Hi JC,

Thanks for the reply. Hm no effect. Actually I noticed this bug only on
laptop running windows.
My team member running all on mac, laptop and boxes did not notice this
horrible bug :(

L

Hans Wichman a écrit :

Hi,




does trapallkeys make any difference?

greetz
JC

On Thu, Dec 11, 2008 at 11:05 AM, laurent laur...@logiquefloue.org
wrote:





  

Hi list,

I made some form in my app and the textfields work fine on local from
the
flash ide.
But when the site is in the browser the texfield don't recognise that
the
shift key is press. So on a french laptop you can't type numbers or @.
This behavior is so strange that i don't know where to look. Anyone
ever
got that problem ??

thanks
Laurent
___
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 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 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] strange textfield behaviour in browser

2008-12-11 Thread Hans Wichman
http://bugs.adobe.com/jira/browse/FP-479

;)

At least I think that was it, lucky guess tbfh, but hey you've got to have
luck sometimes now don't we :)

On Thu, Dec 11, 2008 at 8:59 PM, laurent laur...@logiquefloue.org wrote:



 !!!yes...wmode='normal' fixed it.

 do you know why ??

 it was  french keyboard

 thank you!

 L


 Hans Wichman a écrit :

 Hi,

 I can enter my email in the bottom textfield, win xp sp2, ie,player10. Ar
 you using a non english keyboard?
 And what happens when you turn wmode transparent off?

 greetz
 JC

 On Thu, Dec 11, 2008 at 3:46 PM, laurent laur...@logiquefloue.org
 wrote:



 Hi,

 The weird thing is that upper case work, the player in browser get the
 SHIFT is pressed but does not want to apply it's effect on certain
 keyboard
 buttons.

 So fare we have seen the bug on firefox, IE, safari player 9 and 10
 windows
 laptop

 with wmode = transparent

 hm I guess people can check here on the platform we have not tested,
 ...like mac..:)
 http://240plan.ovh.net/~frenchda/index2.php

 down right menu: 'MON COMPTE' you have a email texfield, try to write you
 one ;)


 L




 Hans Wichman a écrit :



 Hi,

 ok I misunderstood the problem at first, thinking you were trying to
 detect
 shift keypress, but the whole textfield breaks... that is weird.
 Which browser are you testing it in? Does it break in all browsers? But
 plays fine in the IDE... any difference in player version?

 Are you using firefox with wmode transparent?

 greetz
 JC
 On Thu, Dec 11, 2008 at 12:38 PM, laurent laur...@logiquefloue.org
 wrote:





 Hi JC,

 Thanks for the reply. Hm no effect. Actually I noticed this bug only on
 laptop running windows.
 My team member running all on mac, laptop and boxes did not notice this
 horrible bug :(

 L

 Hans Wichman a écrit :

 Hi,




 does trapallkeys make any difference?

 greetz
 JC

 On Thu, Dec 11, 2008 at 11:05 AM, laurent laur...@logiquefloue.org
 wrote:







 Hi list,

 I made some form in my app and the textfields work fine on local from
 the
 flash ide.
 But when the site is in the browser the texfield don't recognise that
 the
 shift key is press. So on a french laptop you can't type numbers or
 @.
 This behavior is so strange that i don't know where to look. Anyone
 ever
 got that problem ??

 thanks
 Laurent
 ___
 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 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 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 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] Status

2008-12-11 Thread Anthony Pace

Hi Chad,

Just wondering what the status is and how your meeting went.

Take care,
Anthony Pace
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] memory optimization

2008-12-11 Thread Anthony Pace
Is there any way to force the GC to sweep through that works 100% of the 
time?


Is there any way to release unused memory that is used by the player for 
rendering?


Is there any way to get a list of all objects in memory?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] memory optimization

2008-12-11 Thread Juan Pablo Califano
On forcing a GC cycle, you can check this out:

http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-actionscript-3-with-air/

Basically, you have to call:

flash.system.System.gc();
But the article points out a couple of gotchas.


I'm not sure I understand your question about releasing unused memory that
is used by the player for rendering.


About your third question, if you mean offline, you can use the profiler
that comes with Flex Builder. It's a really fine tool for optimizing
performance and memory usage. If you mean, at runtime, I don't think it's
possible to do it natively; I don't see a relatively straight forward way to
do it in Actionscript. In principle, if you start from a root / live object,
you could recursively walk the objects tree to get to any referenced /
linked node. But the problem is that, to my knowledge, there's no way to
unhide every property of any given object (as there was in AS 2.0 with
ASSetPropFlags), so I'm not sure how would you iterate over an object's
fields if you can enumerate them (maybe there's something similar for AS
3.0, or maybe there's another possible approach I'm not aware of).

My two cents.


Cheers
Juan Pablo Califano



2008/12/12, Anthony Pace anthony.p...@utoronto.ca:

 Is there any way to force the GC to sweep through that works 100% of the
 time?

 Is there any way to release unused memory that is used by the player for
 rendering?

 Is there any way to get a list of all objects in memory?
 ___
 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