[Flashcoders] Access Amazons Simple storage S3

2008-03-07 Thread Barry Duggan
Hi

Has anyone got experience with using flash and Amazons S3?

What I have to do is send this key to amazon

http://webdeploy/r/mixes/mixreq.aspx?username=+username+mixname=+mixname,
_parent;

Amazon then returns a unique key to me.

I've been trying to use getURL method but all that does is open a web page
with the key I need to get printed on it?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
hello list,

I am making some tests to discover if it is possibile to pixelize a bitmap
with AS3, with a reasonable speed. I wrote the code below, but it works only
with images until 50x50 (in a quadcore). You can see the effect
http://www.andreithomaz.com/labs/files/pixel/teste1.html.

I would like to ask you for advices about how I could optimize it. Or if I
just should try Java/C++.


thank you,
andrei



public dynamic class Teste1 extends MovieClip {

public var m_mcPicture:MovieClip;
public var m_sprScreen:Sprite;
private var m_tmTimer:Timer;
private var m_nPixel:int;
private var m_bDirection:Boolean;
private var m_bmpOriginalImage:BitmapData;
private var m_aPixels:ByteArray;
private var m_rcImageArea:Rectangle;

public function Teste1() {

m_rcImageArea = new Rectangle(0, 0, m_mcPicture.width,
m_mcPicture.height);
m_nPixel = 1;

m_bmpOriginalImage = new BitmapData( m_mcPicture.width,
m_mcPicture.height );
m_bmpOriginalImage.draw(m_mcPicture);
m_aPixels = m_bmpOriginalImage.getPixels(m_rcImageArea);

m_mcPicture.visible = false;

m_sprScreen = new Sprite();
addChild(m_sprScreen);

m_tmTimer = new Timer(2000);
m_tmTimer.addEventListener( TimerEvent.TIMER, _pixelizaImagem );
m_tmTimer.start();

m_bDirection = true;
}

private function _pixelizaImagem( evt:TimerEvent ):void
{
if (m_bDirection) {
++m_nPixel;
if (m_nPixel = 50) {
m_bDirection = false;
}
}
else {
--m_nPixel;
if (m_nPixel = 1) {
m_bDirection = true;
}
}

var nRows:int = Math.ceil( (m_mcPicture.height as Number) /
(m_nPixel as Number) );
var nCols:int = Math.ceil( (m_mcPicture.width as Number) /
(m_nPixel as Number) );
var i:int;
var j:int;
var k:int = 0;
var l:int = 0;
var m:int = 0;
var r:int, g:int, b:int;
var offset:int;
var offset2:int;
var aPixels:ByteArray = new ByteArray();

var nPixelsPerPixel;
var nLimitK:int = m_nPixel;
var nLimitL:int = m_nPixel;

for (i = 0; i  nRows; i++) {
if (i == (nRows - 1)) {
nLimitK = m_bmpOriginalImage.height - (i * m_nPixel);
}
else {
nLimitK = m_nPixel;
}

for (j = 0; j  nCols; j++) {

if (j == (nCols - 1)) {
nLimitL = m_bmpOriginalImage.width - (j * m_nPixel);
}
else {
nLimitL = m_nPixel;
}

offset = i * m_bmpOriginalImage.width * m_nPixel;
offset += (j * m_nPixel);

r = g = b = 0;

for (k = 0; k  nLimitK; k++) {
offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
for (l = 0; l  nLimitL; l++) {

r += m_aPixels[ offset2 + 1];
g += m_aPixels[ offset2 + 2 ];
b += m_aPixels[ offset2 + 3 ];
offset2 += 4;
}
}
nPixelsPerPixel = nLimitK * nLimitL;
r /= nPixelsPerPixel;
g /= nPixelsPerPixel;
b /= nPixelsPerPixel;

for (k = 0; k  nLimitK; k++) {
offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
for (l = 0; l  nLimitL; l++) {

aPixels[ offset2 ] = 255;
aPixels[ offset2 + 1 ] = r;
aPixels[ offset2 + 2 ] = g;
aPixels[ offset2 + 3 ] = b;
offset2 += 4;
}
}


}
}

var bmpPixelizedImage:BitmapData = new BitmapData(
m_bmpOriginalImage.width, m_bmpOriginalImage.height);
bmpPixelizedImage.setPixels(m_rcImageArea, aPixels);

m_sprScreen.graphics.beginBitmapFill(bmpPixelizedImage);

m_sprScreen.graphics.moveTo(0, 0);
m_sprScreen.graphics.lineTo(bmpPixelizedImage.width, 0);
m_sprScreen.graphics.lineTo(bmpPixelizedImage.width,
bmpPixelizedImage.height);
m_sprScreen.graphics.lineTo(0, bmpPixelizedImage.height);
m_sprScreen.graphics.lineTo(0, 0);
m_sprScreen.graphics.endFill();

}

}

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Glen Pike

Hi,

   Would it not be quicker to shrink the source bitmap to a size that 
is proportional to the pixelized square size, copy the pixels into a 
destination bitmap, then scale the destination back to the original size?
  
   Not sure if that works, but just a suggestion.


   Glen

Andrei Thomaz wrote:

hello list,

I am making some tests to discover if it is possibile to pixelize a bitmap
with AS3, with a reasonable speed. I wrote the code below, but it works only
with images until 50x50 (in a quadcore). You can see the effect
http://www.andreithomaz.com/labs/files/pixel/teste1.html.

I would like to ask you for advices about how I could optimize it. Or if I
just should try Java/C++.


thank you,
andrei



public dynamic class Teste1 extends MovieClip {

public var m_mcPicture:MovieClip;
public var m_sprScreen:Sprite;
private var m_tmTimer:Timer;
private var m_nPixel:int;
private var m_bDirection:Boolean;
private var m_bmpOriginalImage:BitmapData;
private var m_aPixels:ByteArray;
private var m_rcImageArea:Rectangle;

public function Teste1() {

m_rcImageArea = new Rectangle(0, 0, m_mcPicture.width,
m_mcPicture.height);
m_nPixel = 1;

m_bmpOriginalImage = new BitmapData( m_mcPicture.width,
m_mcPicture.height );
m_bmpOriginalImage.draw(m_mcPicture);
m_aPixels = m_bmpOriginalImage.getPixels(m_rcImageArea);

m_mcPicture.visible = false;

m_sprScreen = new Sprite();
addChild(m_sprScreen);

m_tmTimer = new Timer(2000);
m_tmTimer.addEventListener( TimerEvent.TIMER, _pixelizaImagem );
m_tmTimer.start();

m_bDirection = true;
}

private function _pixelizaImagem( evt:TimerEvent ):void
{
if (m_bDirection) {
++m_nPixel;
if (m_nPixel = 50) {
m_bDirection = false;
}
}
else {
--m_nPixel;
if (m_nPixel = 1) {
m_bDirection = true;
}
}

var nRows:int = Math.ceil( (m_mcPicture.height as Number) /
(m_nPixel as Number) );
var nCols:int = Math.ceil( (m_mcPicture.width as Number) /
(m_nPixel as Number) );
var i:int;
var j:int;
var k:int = 0;
var l:int = 0;
var m:int = 0;
var r:int, g:int, b:int;
var offset:int;
var offset2:int;
var aPixels:ByteArray = new ByteArray();

var nPixelsPerPixel;
var nLimitK:int = m_nPixel;
var nLimitL:int = m_nPixel;

for (i = 0; i  nRows; i++) {
if (i == (nRows - 1)) {
nLimitK = m_bmpOriginalImage.height - (i * m_nPixel);
}
else {
nLimitK = m_nPixel;
}

for (j = 0; j  nCols; j++) {

if (j == (nCols - 1)) {
nLimitL = m_bmpOriginalImage.width - (j * m_nPixel);
}
else {
nLimitL = m_nPixel;
}

offset = i * m_bmpOriginalImage.width * m_nPixel;
offset += (j * m_nPixel);

r = g = b = 0;

for (k = 0; k  nLimitK; k++) {
offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
for (l = 0; l  nLimitL; l++) {

r += m_aPixels[ offset2 + 1];
g += m_aPixels[ offset2 + 2 ];
b += m_aPixels[ offset2 + 3 ];
offset2 += 4;
}
}
nPixelsPerPixel = nLimitK * nLimitL;
r /= nPixelsPerPixel;
g /= nPixelsPerPixel;
b /= nPixelsPerPixel;

for (k = 0; k  nLimitK; k++) {
offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
for (l = 0; l  nLimitL; l++) {

aPixels[ offset2 ] = 255;
aPixels[ offset2 + 1 ] = r;
aPixels[ offset2 + 2 ] = g;
aPixels[ offset2 + 3 ] = b;
offset2 += 4;
}
}


}
}

var bmpPixelizedImage:BitmapData = new BitmapData(
m_bmpOriginalImage.width, m_bmpOriginalImage.height);
bmpPixelizedImage.setPixels(m_rcImageArea, aPixels);

m_sprScreen.graphics.beginBitmapFill(bmpPixelizedImage);

m_sprScreen.graphics.moveTo(0, 0);
m_sprScreen.graphics.lineTo(bmpPixelizedImage.width, 0);
 

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Zeh Fernando

You want to create a mosaic-like effect?

Forget getPixel/setPixel/drawrect.. it'll be too slow. Instead, you 
should let Flash handle it by creating new Bitmaps, shrinking the image 
inside it, drawing that to a new bitmapdata, and then using that new 
bitmapdata on the original size.


Zeh

Andrei Thomaz wrote:

hello list,

I am making some tests to discover if it is possibile to pixelize a bitmap
with AS3, with a reasonable speed. I wrote the code below, but it works only
with images until 50x50 (in a quadcore). You can see the effect
http://www.andreithomaz.com/labs/files/pixel/teste1.html.

I would like to ask you for advices about how I could optimize it. Or if I
just should try Java/C++.


thank you,
andrei



public dynamic class Teste1 extends MovieClip {

public var m_mcPicture:MovieClip;
public var m_sprScreen:Sprite;
private var m_tmTimer:Timer;
private var m_nPixel:int;
private var m_bDirection:Boolean;
private var m_bmpOriginalImage:BitmapData;
private var m_aPixels:ByteArray;
private var m_rcImageArea:Rectangle;

public function Teste1() {

m_rcImageArea = new Rectangle(0, 0, m_mcPicture.width,
m_mcPicture.height);
m_nPixel = 1;

m_bmpOriginalImage = new BitmapData( m_mcPicture.width,
m_mcPicture.height );
m_bmpOriginalImage.draw(m_mcPicture);
m_aPixels = m_bmpOriginalImage.getPixels(m_rcImageArea);

m_mcPicture.visible = false;

m_sprScreen = new Sprite();
addChild(m_sprScreen);

m_tmTimer = new Timer(2000);
m_tmTimer.addEventListener( TimerEvent.TIMER, _pixelizaImagem );
m_tmTimer.start();

m_bDirection = true;
}

private function _pixelizaImagem( evt:TimerEvent ):void
{
if (m_bDirection) {
++m_nPixel;
if (m_nPixel = 50) {
m_bDirection = false;
}
}
else {
--m_nPixel;
if (m_nPixel = 1) {
m_bDirection = true;
}
}

var nRows:int = Math.ceil( (m_mcPicture.height as Number) /
(m_nPixel as Number) );
var nCols:int = Math.ceil( (m_mcPicture.width as Number) /
(m_nPixel as Number) );
var i:int;
var j:int;
var k:int = 0;
var l:int = 0;
var m:int = 0;
var r:int, g:int, b:int;
var offset:int;
var offset2:int;
var aPixels:ByteArray = new ByteArray();

var nPixelsPerPixel;
var nLimitK:int = m_nPixel;
var nLimitL:int = m_nPixel;

for (i = 0; i  nRows; i++) {
if (i == (nRows - 1)) {
nLimitK = m_bmpOriginalImage.height - (i * m_nPixel);
}
else {
nLimitK = m_nPixel;
}

for (j = 0; j  nCols; j++) {

if (j == (nCols - 1)) {
nLimitL = m_bmpOriginalImage.width - (j * m_nPixel);
}
else {
nLimitL = m_nPixel;
}

offset = i * m_bmpOriginalImage.width * m_nPixel;
offset += (j * m_nPixel);

r = g = b = 0;

for (k = 0; k  nLimitK; k++) {
offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
for (l = 0; l  nLimitL; l++) {

r += m_aPixels[ offset2 + 1];
g += m_aPixels[ offset2 + 2 ];
b += m_aPixels[ offset2 + 3 ];
offset2 += 4;
}
}
nPixelsPerPixel = nLimitK * nLimitL;
r /= nPixelsPerPixel;
g /= nPixelsPerPixel;
b /= nPixelsPerPixel;

for (k = 0; k  nLimitK; k++) {
offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
for (l = 0; l  nLimitL; l++) {

aPixels[ offset2 ] = 255;
aPixels[ offset2 + 1 ] = r;
aPixels[ offset2 + 2 ] = g;
aPixels[ offset2 + 3 ] = b;
offset2 += 4;
}
}


}
}

var bmpPixelizedImage:BitmapData = new BitmapData(
m_bmpOriginalImage.width, m_bmpOriginalImage.height);
bmpPixelizedImage.setPixels(m_rcImageArea, aPixels);

m_sprScreen.graphics.beginBitmapFill(bmpPixelizedImage);

m_sprScreen.graphics.moveTo(0, 0);
m_sprScreen.graphics.lineTo(bmpPixelizedImage.width, 

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
hello glen,

it worked fine, thank you. Scaling the bitmaps produces a more discrete
animations (i.e., it is not so continuous; the pixel size is incremented in
such a way that there is no small pixels at the corners), but, for what I
have to do, that is not a problem:

http://www.andreithomaz.com/labs/files/pixel/teste2.html


[]'s
andrei



On Fri, Mar 7, 2008 at 10:51 AM, Glen Pike [EMAIL PROTECTED]
wrote:

 Hi,

Would it not be quicker to shrink the source bitmap to a size that
 is proportional to the pixelized square size, copy the pixels into a
 destination bitmap, then scale the destination back to the original size?

Not sure if that works, but just a suggestion.

Glen

 Andrei Thomaz wrote:
  hello list,
 
  I am making some tests to discover if it is possibile to pixelize a
 bitmap
  with AS3, with a reasonable speed. I wrote the code below, but it works
 only
  with images until 50x50 (in a quadcore). You can see the effect
  http://www.andreithomaz.com/labs/files/pixel/teste1.html.
 
  I would like to ask you for advices about how I could optimize it. Or if
 I
  just should try Java/C++.
 
 
  thank you,
  andrei
 
 
 
  public dynamic class Teste1 extends MovieClip {
 
  public var m_mcPicture:MovieClip;
  public var m_sprScreen:Sprite;
  private var m_tmTimer:Timer;
  private var m_nPixel:int;
  private var m_bDirection:Boolean;
  private var m_bmpOriginalImage:BitmapData;
  private var m_aPixels:ByteArray;
  private var m_rcImageArea:Rectangle;
 
  public function Teste1() {
 
  m_rcImageArea = new Rectangle(0, 0, m_mcPicture.width,
  m_mcPicture.height);
  m_nPixel = 1;
 
  m_bmpOriginalImage = new BitmapData( m_mcPicture.width,
  m_mcPicture.height );
  m_bmpOriginalImage.draw(m_mcPicture);
  m_aPixels = m_bmpOriginalImage.getPixels(m_rcImageArea);
 
  m_mcPicture.visible = false;
 
  m_sprScreen = new Sprite();
  addChild(m_sprScreen);
 
  m_tmTimer = new Timer(2000);
  m_tmTimer.addEventListener( TimerEvent.TIMER,
 _pixelizaImagem );
  m_tmTimer.start();
 
  m_bDirection = true;
  }
 
  private function _pixelizaImagem( evt:TimerEvent ):void
  {
  if (m_bDirection) {
  ++m_nPixel;
  if (m_nPixel = 50) {
  m_bDirection = false;
  }
  }
  else {
  --m_nPixel;
  if (m_nPixel = 1) {
  m_bDirection = true;
  }
  }
 
  var nRows:int = Math.ceil( (m_mcPicture.height as Number) /
  (m_nPixel as Number) );
  var nCols:int = Math.ceil( (m_mcPicture.width as Number) /
  (m_nPixel as Number) );
  var i:int;
  var j:int;
  var k:int = 0;
  var l:int = 0;
  var m:int = 0;
  var r:int, g:int, b:int;
  var offset:int;
  var offset2:int;
  var aPixels:ByteArray = new ByteArray();
 
  var nPixelsPerPixel;
  var nLimitK:int = m_nPixel;
  var nLimitL:int = m_nPixel;
 
  for (i = 0; i  nRows; i++) {
  if (i == (nRows - 1)) {
  nLimitK = m_bmpOriginalImage.height - (i *
 m_nPixel);
  }
  else {
  nLimitK = m_nPixel;
  }
 
  for (j = 0; j  nCols; j++) {
 
  if (j == (nCols - 1)) {
  nLimitL = m_bmpOriginalImage.width - (j *
 m_nPixel);
  }
  else {
  nLimitL = m_nPixel;
  }
 
  offset = i * m_bmpOriginalImage.width * m_nPixel;
  offset += (j * m_nPixel);
 
  r = g = b = 0;
 
  for (k = 0; k  nLimitK; k++) {
  offset2 = (offset + (k *
 m_bmpOriginalImage.width) )
  * 4;
  for (l = 0; l  nLimitL; l++) {
 
  r += m_aPixels[ offset2 + 1];
  g += m_aPixels[ offset2 + 2 ];
  b += m_aPixels[ offset2 + 3 ];
  offset2 += 4;
  }
  }
  nPixelsPerPixel = nLimitK * nLimitL;
  r /= nPixelsPerPixel;
  g /= nPixelsPerPixel;
  b /= nPixelsPerPixel;
 
  for (k = 0; k  nLimitK; k++) {
  offset2 = (offset + (k *
 m_bmpOriginalImage.width) )
  * 4;
  for (l = 0; l  nLimitL; l++) {
 
  aPixels[ offset2 ] = 255;
  

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
I need to create an animation, increasing the pixel size. The Glen's
suggestion (the same you game) worked fine. Thank you.

andrei



On Fri, Mar 7, 2008 at 11:17 AM, Zeh Fernando [EMAIL PROTECTED]
wrote:

 You want to create a mosaic-like effect?

 Forget getPixel/setPixel/drawrect.. it'll be too slow. Instead, you
 should let Flash handle it by creating new Bitmaps, shrinking the image
 inside it, drawing that to a new bitmapdata, and then using that new
 bitmapdata on the original size.

 Zeh

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


Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Muzak

Does this help?
http://www.flash-db.com/Tutorials/transitions/transition.php

regards,
Muzak

- Original Message - 
From: Andrei Thomaz [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, March 07, 2008 2:31 PM
Subject: [Flashcoders] pixelizing a bitmap



hello list,

I am making some tests to discover if it is possibile to pixelize a bitmap
with AS3, with a reasonable speed. I wrote the code below, but it works only
with images until 50x50 (in a quadcore). You can see the effect
http://www.andreithomaz.com/labs/files/pixel/teste1.html.

I would like to ask you for advices about how I could optimize it. Or if I
just should try Java/C++.


thank you,
andrei



public dynamic class Teste1 extends MovieClip {

   public var m_mcPicture:MovieClip;
   public var m_sprScreen:Sprite;
   private var m_tmTimer:Timer;
   private var m_nPixel:int;
   private var m_bDirection:Boolean;
   private var m_bmpOriginalImage:BitmapData;
   private var m_aPixels:ByteArray;
   private var m_rcImageArea:Rectangle;

   public function Teste1() {

   m_rcImageArea = new Rectangle(0, 0, m_mcPicture.width,
m_mcPicture.height);
   m_nPixel = 1;

   m_bmpOriginalImage = new BitmapData( m_mcPicture.width,
m_mcPicture.height );
   m_bmpOriginalImage.draw(m_mcPicture);
   m_aPixels = m_bmpOriginalImage.getPixels(m_rcImageArea);

   m_mcPicture.visible = false;

   m_sprScreen = new Sprite();
   addChild(m_sprScreen);

   m_tmTimer = new Timer(2000);
   m_tmTimer.addEventListener( TimerEvent.TIMER, _pixelizaImagem );
   m_tmTimer.start();

   m_bDirection = true;
   }

   private function _pixelizaImagem( evt:TimerEvent ):void
   {
   if (m_bDirection) {
   ++m_nPixel;
   if (m_nPixel = 50) {
   m_bDirection = false;
   }
   }
   else {
   --m_nPixel;
   if (m_nPixel = 1) {
   m_bDirection = true;
   }
   }

   var nRows:int = Math.ceil( (m_mcPicture.height as Number) /
(m_nPixel as Number) );
   var nCols:int = Math.ceil( (m_mcPicture.width as Number) /
(m_nPixel as Number) );
   var i:int;
   var j:int;
   var k:int = 0;
   var l:int = 0;
   var m:int = 0;
   var r:int, g:int, b:int;
   var offset:int;
   var offset2:int;
   var aPixels:ByteArray = new ByteArray();

   var nPixelsPerPixel;
   var nLimitK:int = m_nPixel;
   var nLimitL:int = m_nPixel;

   for (i = 0; i  nRows; i++) {
   if (i == (nRows - 1)) {
   nLimitK = m_bmpOriginalImage.height - (i * m_nPixel);
   }
   else {
   nLimitK = m_nPixel;
   }

   for (j = 0; j  nCols; j++) {

   if (j == (nCols - 1)) {
   nLimitL = m_bmpOriginalImage.width - (j * m_nPixel);
   }
   else {
   nLimitL = m_nPixel;
   }

   offset = i * m_bmpOriginalImage.width * m_nPixel;
   offset += (j * m_nPixel);

   r = g = b = 0;

   for (k = 0; k  nLimitK; k++) {
   offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
   for (l = 0; l  nLimitL; l++) {

   r += m_aPixels[ offset2 + 1];
   g += m_aPixels[ offset2 + 2 ];
   b += m_aPixels[ offset2 + 3 ];
   offset2 += 4;
   }
   }
   nPixelsPerPixel = nLimitK * nLimitL;
   r /= nPixelsPerPixel;
   g /= nPixelsPerPixel;
   b /= nPixelsPerPixel;

   for (k = 0; k  nLimitK; k++) {
   offset2 = (offset + (k * m_bmpOriginalImage.width) )
* 4;
   for (l = 0; l  nLimitL; l++) {

   aPixels[ offset2 ] = 255;
   aPixels[ offset2 + 1 ] = r;
   aPixels[ offset2 + 2 ] = g;
   aPixels[ offset2 + 3 ] = b;
   offset2 += 4;
   }
   }


   }
   }

   var bmpPixelizedImage:BitmapData = new BitmapData(
m_bmpOriginalImage.width, m_bmpOriginalImage.height);
   bmpPixelizedImage.setPixels(m_rcImageArea, aPixels);

   m_sprScreen.graphics.beginBitmapFill(bmpPixelizedImage);

   m_sprScreen.graphics.moveTo(0, 0);
   m_sprScreen.graphics.lineTo(bmpPixelizedImage.width, 0);
   m_sprScreen.graphics.lineTo(bmpPixelizedImage.width,
bmpPixelizedImage.height);
   

Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Muzak

Also have a look at some of these:
http://www.zeropointnine.com/blog/actionscript-halftone-effect
http://www.zeropointnine.com/blog/bitmap-pixel-dissolve

regards,
Muzak

- Original Message - 
From: Andrei Thomaz [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, March 07, 2008 2:31 PM
Subject: [Flashcoders] pixelizing a bitmap



hello list,

I am making some tests to discover if it is possibile to pixelize a bitmap
with AS3, with a reasonable speed. I wrote the code below, but it works only
with images until 50x50 (in a quadcore). You can see the effect
http://www.andreithomaz.com/labs/files/pixel/teste1.html.

I would like to ask you for advices about how I could optimize it. Or if I
just should try Java/C++.


thank you,
andrei


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


RE: [Flashcoders] LoaderContext question

2008-03-07 Thread Dave Segal
I am getting a type Coercion error. TypeError: Error #1034: Type Coercion
failed

Really the whole goal here is to be able to load swfs (from a different
server) that implement some public api. Then have the loading swf cast the
loaded swf to that api, so code hints and type checking are available. Are
there any solutions for this type of thing?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrei
Thomaz
Sent: Thursday, March 06, 2008 7:05 PM
To: Flash Coders List
Subject: Re: [Flashcoders] LoaderContext question

what is the error?

[]'s
andrei


On Thu, Mar 6, 2008 at 8:41 PM, Dave Segal [EMAIL PROTECTED] wrote:

 I need to load an swf from one server that is a member of some class.
For
 example:



 http://server1.mydomain.com/load_me.swf that uses the Document class
 com.mydomain.componet.LoadMe.as.



 I want to be able to load this swf from different server, say
 http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when
 it is done loading. Should this work? I keep getting errors when trying
to
 cast in the init handler.





 import com.mydomain.componet.LoadMe;



 var _req:URLRequest = new
 URLRequest(http://server1.mydomain.com/load_me.swf;);

 var _ldr:Loader = new Loader();

 var _context:LoaderContext = new LoaderContext();

 _context.securityDomain = SecurityDomain.currentDomain;

 _context.applicationDomain = ApplicationDomain.currentDomain;

 _ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false,
0,
 true);

 _ldr.load(_req, _context);





 private function initHandler($event:Event) () {

var _lm:LoadMe = LoadMe(_ldr.content);

 }

 ___
 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] visible area of content in V2 ScrollPane

2008-03-07 Thread Mendelsohn, Michael
Hi list...

Within a V2 ScrollPane, I'm trying to figure out what the top edge and
bottom edge of the content's visible area are.  Anyone have an idea?

Thanks,
- Michael M.

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


Re: [Flashcoders] visible area of content in V2 ScrollPane

2008-03-07 Thread Piers Cowburn

Hi Michael,

The top value is ScrollPane.vPosition, the bottom will be  
ScrollPane.vPosition + ScrollPane.height


HTH,
Piers


On 7 Mar 2008, at 20:29, Mendelsohn, Michael wrote:


Hi list...

Within a V2 ScrollPane, I'm trying to figure out what the top edge and
bottom edge of the content's visible area are.  Anyone have an idea?

Thanks,
- 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


[Flashcoders] Using States, MXML, Events, O' My

2008-03-07 Thread Anthony Cintron
I have a question about MXML and ActionScript and how they communicate with
each other.  I'm working with the State tage to change views. I have a Class
called SpacePorter; it has 4 buttons that dispatchEvents(
MyButton.BUTTON_CLICKED). Space Porter is instantiated into my Home Class.
Home class is than created using mxml in my root Application. Now, I want to
be able with AS3 or MXML to subscribe to that Broadcast so my State can
change, depending on the button that was clicked. I can't quite wrap my head
around this with my lack of MXML and ActionScript relations - especially
with the CDATA tags. I tried getting the button object through AS, by doing:
homeView.button, but it seems as though i can't get to the properties of an
mxml (instantiated object) from a AS script inside the script tag.

I hope this makes some sense, if need be I can explain some more. Could
really use the help on this. This is great real world attempt of me using
Flex.

Anthony C.

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


RE: [Flashcoders] Using States, MXML, Events, O' My

2008-03-07 Thread Merrill, Jason
If your button in the custom class is broadcasting an event, say for an
example, and event called changed, you can add an event listener in a
script tag in the main MXML.  A snippet would be:

private function addListeners():void
{

myCustomClassInstance.addEventListener(changed, onChanged);
}

private function onChanged():void
{
currentState = myOtherState; 
}

However, if you class creates buttons, why not have those buttons
created with MXML instead of Actionscript?

There is a great Flex list on Yahoo! called Flexcoders which would be
more capable to answer this than this list.

Jason Merrill
Bank of America  
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GTO Innovative Learning Blog  subscribe.




 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Anthony Cintron
Sent: Friday, March 07, 2008 6:14 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Using States, MXML, Events, O' My

I have a question about MXML and ActionScript and how they 
communicate with each other.  I'm working with the State tage 
to change views. I have a Class called SpacePorter; it has 4 
buttons that dispatchEvents( MyButton.BUTTON_CLICKED). Space 
Porter is instantiated into my Home Class.
Home class is than created using mxml in my root Application. 
Now, I want to be able with AS3 or MXML to subscribe to that 
Broadcast so my State can change, depending on the button 
that was clicked. I can't quite wrap my head around this with 
my lack of MXML and ActionScript relations - especially with 
the CDATA tags. I tried getting the button object through AS, 
by doing:
homeView.button, but it seems as though i can't get to the 
properties of an mxml (instantiated object) from a AS script 
inside the script tag.

I hope this makes some sense, if need be I can explain some 
more. Could really use the help on this. This is great real 
world attempt of me using Flex.

Anthony C.

--
___
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] Using States, MXML, Events, O' My

2008-03-07 Thread Merrill, Jason
In addition, your custom class can take a reference to the main Flex
MXML class and use that to change the state right within the class
(though this is not good encapsulation practice!)

To do that, (and I don't know why I'm recommending it bad idea
architecturally...but oh well)  you would do:

public class MyClass extends UIComponent
{
public function MyClass(app:UIComponent)
{
var b:Button = new Button();
b.label = Click me
b.addEventListener(MouseEvent.CLICK, onClick);
addChild(b);
}

private function onClick():void
{
app.currentState = myOtherState;
}   
}

Jason Merrill
Bank of America  
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GTO Innovative Learning Blog  subscribe.




 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Merrill, Jason
Sent: Friday, March 07, 2008 9:30 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Using States, MXML, Events, O' My

If your button in the custom class is broadcasting an event, 
say for an example, and event called changed, you can add 
an event listener in a script tag in the main MXML.  A 
snippet would be:

  private function addListeners():void
  {
  
myCustomClassInstance.addEventListener(changed, onChanged);
  }

  private function onChanged():void
  {
  currentState = myOtherState; 
  }

However, if you class creates buttons, why not have those 
buttons created with MXML instead of Actionscript?

There is a great Flex list on Yahoo! called Flexcoders which 
would be more capable to answer this than this list.

Jason Merrill
Bank of America
GTO LLD Solutions Design  Development eTools  Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative 
learning ideas and technologies? 
Check out our internal  GTO Innovative Learning Blog  subscribe.




 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of 
Anthony Cintron
Sent: Friday, March 07, 2008 6:14 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Using States, MXML, Events, O' My

I have a question about MXML and ActionScript and how they 
communicate 
with each other.  I'm working with the State tage to change 
views. I 
have a Class called SpacePorter; it has 4 buttons that 
dispatchEvents( 
MyButton.BUTTON_CLICKED). Space Porter is instantiated into my Home 
Class.
Home class is than created using mxml in my root Application. 
Now, I want to be able with AS3 or MXML to subscribe to 
that Broadcast 
so my State can change, depending on the button that was clicked. I 
can't quite wrap my head around this with my lack of MXML and 
ActionScript relations - especially with the CDATA tags. I tried 
getting the button object through AS, by doing:
homeView.button, but it seems as though i can't get to the 
properties 
of an mxml (instantiated object) from a AS script inside the script 
tag.

I hope this makes some sense, if need be I can explain some more. 
Could really use the help on this. This is great real world 
attempt of 
me using Flex.

Anthony C.

--
___
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] Debugging as3

2008-03-07 Thread Helmut Granda
Would there be any reason why some code would work on one server and the
same code would not work on another server? I have an application that is
working properly in flash IDE, testing local html and testing server. but
once it goes live to a different server some things do not function
properly.

For once is the alignment of Bitmaps.

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


Re: [Flashcoders] Debugging as3

2008-03-07 Thread Steven Sacks

Helmut Granda wrote:

some things do not function properly.
  


Can you be more specific?  What things?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Debugging as3

2008-03-07 Thread Merrill, Jason
Elaborate on what the code looks like that has the problem.  Without
seeing what you're trying to do, the only reasons I can think of are all
external to the Flash player - Actionscript that calls external stuff
and therefore you can have problems with case (Unix for example, is very
case-sensitive) or with security

Jason Merrill
Bank of America  
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GTO Innovative Learning Blog  subscribe.




 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Helmut Granda
Sent: Friday, March 07, 2008 9:39 PM
To: Flash Coders List
Subject: [Flashcoders] Debugging as3

Would there be any reason why some code would work on one 
server and the same code would not work on another server? I 
have an application that is working properly in flash IDE, 
testing local html and testing server. but once it goes live 
to a different server some things do not function properly.

For once is the alignment of Bitmaps.

TIA
___
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] Debugging as3

2008-03-07 Thread Helmut Granda
thanks guys this is the code in question:

--
private function alignBases ( ) : void

{

for ( var i : uint = 0 ; i  numButtons ; i ++ )

{
var btn: Object ;
var optionBtn: String ;
var sceneToUse : Number ;
var normalTemp : Object ;
var grayTemp: Object ;
var textTemp: Object ;
var mainGapSize : Number ;
var mainSquareHeight: Number ;
var smallGapSize : Number ;
var pad: XMLList ;
var option: Number ;

option = i + 1 ;
sceneToUse = USERDATA.sceneToUse ;
pad= SELECTXML [ scene + sceneToUse ][
option + option ].attribute( padY ) ;
normalTemp= getChildByName(square + (i+1)) ;
grayTemp= getChildByName(graySquare + (i+1)) ;
textTemp= getChildByName(text + (i+1)) ;
mainGapSize = (mainBase.height -
(normalTemp.height* numButtons)) / (numButtons + 1) ;
mainSquareHeight = mainBase.height - mainGapSize * 2 ;
smallGapSize = (mainSquareHeight - ( (
normalTemp.height * numButtons))) / 2 ;
normalTemp.x= (((mainBase.width / 2 -
normalTemp.width / 2) + i * 6) + mainBase.x)-4 ;
//normalTemp.y = (mainBase.y + mainGapSize +
((mainGapSize + normalTemp.height )*i) + normalTemp.height / 2) ;
normalTemp.y= pad ;
grayTemp.x= normalTemp.x ;
grayTemp.y= normalTemp.y ;
textTemp.x = (normalTemp.width / 2 -
textTemp.width / 2 ) + ( normalTemp.x + 12 ) ;
textTemp.y= normalTemp.y + 7 ;
trace(NORMAL TEMP Y =  + normalTemp.y )

if (i == 3) textTemp.y = normalTemp.y + 17 ;
objCords[square +(i+1)+X] = normalTemp.x ;
objCords[square +(i+1)+Y] = normalTemp.y ;

}
};




Basically what happens is that this loop runs through a number of images and
aligns them on the screen. Unfortunatelly due to the privacy of the project
I cant share images but imagine 3 images and they have to be aligned on top
of each other. I tried one more different server and everything works fine
in testing and my personal server but the server where this is going live is
the one that Im having the issues.

One thing that I can say is that i make some javascript calls before this
rutine so I am going to make sure that everything is written properly,
specially with being case sensitive. I just never had this type of issue
before so it is really frustrating.

Thanks again

On 3/7/08, Merrill, Jason [EMAIL PROTECTED] wrote:

 Elaborate on what the code looks like that has the problem.  Without
 seeing what you're trying to do, the only reasons I can think of are all
 external to the Flash player - Actionscript that calls external stuff
 and therefore you can have problems with case (Unix for example, is very
 case-sensitive) or with security

 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community


 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.







 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Helmut Granda
 Sent: Friday, March 07, 2008 9:39 PM
 To: Flash Coders List
 Subject: [Flashcoders] Debugging as3
 
 Would there be any reason why some code would work on one
 server and the same code would not work on another server? I
 have an application that is working properly in flash IDE,
 testing local html and testing server. but once it goes live
 to a different server some things do not function properly.
 
 For once is the alignment of Bitmaps.
 
 TIA

 ___
 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




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


Re: [Flashcoders] pixelizing a bitmap

2008-03-07 Thread Andrei Thomaz
hello Muzak,

thanks for the links. They made me think that what makes the pixelize effect
so slow are the division need to get the middle value of r, g and b
components of the color. I guess I will stay with the scaling bitmaps
solution.

best regards,
andrei



On Fri, Mar 7, 2008 at 12:23 PM, Muzak [EMAIL PROTECTED] wrote:

 Also have a look at some of these:
 http://www.zeropointnine.com/blog/actionscript-halftone-effect
 http://www.zeropointnine.com/blog/bitmap-pixel-dissolve

 regards,
 Muzak

 - Original Message -
 From: Andrei Thomaz [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Friday, March 07, 2008 2:31 PM
 Subject: [Flashcoders] pixelizing a bitmap


  hello list,
 
  I am making some tests to discover if it is possibile to pixelize a
 bitmap
  with AS3, with a reasonable speed. I wrote the code below, but it works
 only
  with images until 50x50 (in a quadcore). You can see the effect
  http://www.andreithomaz.com/labs/files/pixel/teste1.html.
 
  I would like to ask you for advices about how I could optimize it. Or if
 I
  just should try Java/C++.
 
 
  thank you,
  andrei

 ___
 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] Using States, MXML, Events, O' My

2008-03-07 Thread Anthony Cintron
The custom class that has the button event is a composite class inside
another class (we'll call that MainInterActive class). MainInterActive is
than instantiated in a main mxml application inside a state node. I could
try what you mentioned but the composite classes' buttons are not really
available  to the main application. Unless there is a way I could subscribe
to that button, although it is a child of the child class in
MainInterActive.
The reason why I'm not creating the buttons using mxml is because they are
doing some funky animations.

thanks for your help on this, any ideas for a resolution on accessing the
button or buttons event?

Anthony

On Fri, Mar 7, 2008 at 9:30 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 If your button in the custom class is broadcasting an event, say for an
 example, and event called changed, you can add an event listener in a
 script tag in the main MXML.  A snippet would be:

private function addListeners():void
{

 myCustomClassInstance.addEventListener(changed, onChanged);
}

private function onChanged():void
{
currentState = myOtherState;
}

 However, if you class creates buttons, why not have those buttons
 created with MXML instead of Actionscript?

 There is a great Flex list on Yahoo! called Flexcoders which would be
 more capable to answer this than this list.

 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community


 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.






 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Anthony Cintron
 Sent: Friday, March 07, 2008 6:14 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Using States, MXML, Events, O' My
 
 I have a question about MXML and ActionScript and how they
 communicate with each other.  I'm working with the State tage
 to change views. I have a Class called SpacePorter; it has 4
 buttons that dispatchEvents( MyButton.BUTTON_CLICKED). Space
 Porter is instantiated into my Home Class.
 Home class is than created using mxml in my root Application.
 Now, I want to be able with AS3 or MXML to subscribe to that
 Broadcast so my State can change, depending on the button
 that was clicked. I can't quite wrap my head around this with
 my lack of MXML and ActionScript relations - especially with
 the CDATA tags. I tried getting the button object through AS,
 by doing:
 homeView.button, but it seems as though i can't get to the
 properties of an mxml (instantiated object) from a AS script
 inside the script tag.
 
 I hope this makes some sense, if need be I can explain some
 more. Could really use the help on this. This is great real
 world attempt of me using Flex.
 
 Anthony C.
 
 --
 ___
 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




-- 
Anthony Cintron
Flash || Flash Developer
www.sweetiesandgangsters.com
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Access Amazons Simple storage S3

2008-03-07 Thread Jason Van Cleave
you probably have to use a LoadVars.sendAndLoad



On Fri, Mar 7, 2008 at 4:28 AM, Barry Duggan [EMAIL PROTECTED]
wrote:

 Hi

 Has anyone got experience with using flash and Amazons S3?

 What I have to do is send this key to amazon

 http://webdeploy/r/mixes/mixreq.aspx?username=
 +username+mixname=+mixname,
 _parent;

 Amazon then returns a unique key to me.

 I've been trying to use getURL method but all that does is open a web page
 with the key I need to get printed on it?
 ___
 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] Debugging as3

2008-03-07 Thread Helmut Granda
Well after hours and hours and hours the problem was the server, so it
is all fixed now and the code works properly.

Thanks again.

On 3/7/08, Helmut Granda [EMAIL PROTECTED] wrote:

 thanks guys this is the code in question:

 --
 private function alignBases ( ) : void

 {

 for ( var i : uint = 0 ; i  numButtons ; i ++ )

 {
 var btn: Object ;
 var optionBtn: String ;
 var sceneToUse : Number ;
 var normalTemp : Object ;
 var grayTemp: Object ;
 var textTemp: Object ;
 var mainGapSize : Number ;
 var mainSquareHeight: Number ;
 var smallGapSize : Number ;
 var pad: XMLList ;
 var option: Number ;

 option = i + 1 ;
 sceneToUse = USERDATA.sceneToUse ;
 pad= SELECTXML [ scene + sceneToUse
 ][ option + option ].attribute( padY ) ;
 normalTemp= getChildByName(square + (i+1)) ;
 grayTemp= getChildByName(graySquare + (i+1))
 ;
 textTemp= getChildByName(text + (i+1)) ;
 mainGapSize = (mainBase.height - (
 normalTemp.height * numButtons)) / (numButtons + 1) ;
 mainSquareHeight = mainBase.height - mainGapSize * 2 ;
 smallGapSize = (mainSquareHeight - ( (
 normalTemp.height * numButtons))) / 2 ;
 normalTemp.x= (((mainBase.width / 2 -
 normalTemp.width / 2) + i * 6) + mainBase.x)-4 ;
 //normalTemp.y = (mainBase.y + mainGapSize +
 ((mainGapSize + normalTemp.height )*i) + normalTemp.height / 2) ;
 normalTemp.y= pad ;
 grayTemp.x= normalTemp.x ;
 grayTemp.y= normalTemp.y ;
 textTemp.x = (normalTemp.width / 2 -
 textTemp.width / 2 ) + ( normalTemp.x + 12 ) ;
 textTemp.y= normalTemp.y + 7 ;
 trace(NORMAL TEMP Y =  + normalTemp.y )

 if (i == 3) textTemp.y = normalTemp.y + 17 ;
 objCords[square +(i+1)+X] = normalTemp.x ;
 objCords[square +(i+1)+Y] = normalTemp.y ;

 }
 };


 

 Basically what happens is that this loop runs through a number of images
 and aligns them on the screen. Unfortunatelly due to the privacy of the
 project I cant share images but imagine 3 images and they have to be aligned
 on top of each other. I tried one more different server and everything works
 fine in testing and my personal server but the server where this is going
 live is the one that Im having the issues.

 One thing that I can say is that i make some javascript calls before this
 rutine so I am going to make sure that everything is written properly,
 specially with being case sensitive. I just never had this type of issue
 before so it is really frustrating.

 Thanks again

 On 3/7/08, Merrill, Jason [EMAIL PROTECTED] wrote:
 
  Elaborate on what the code looks like that has the problem.  Without
  seeing what you're trying to do, the only reasons I can think of are all
  external to the Flash player - Actionscript that calls external stuff
  and therefore you can have problems with case (Unix for example, is very
  case-sensitive) or with security
 
  Jason Merrill
  Bank of America
  GTO LLD Solutions Design  Development
  eTools  Multimedia
 
  Bank of America Flash Platform Developer Community
 
 
  Are you a Bank of America associate interested in innovative learning
  ideas and technologies?
  Check out our internal  GTO Innovative Learning Blog  subscribe.
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Helmut Granda
  Sent: Friday, March 07, 2008 9:39 PM
  To: Flash Coders List
  Subject: [Flashcoders] Debugging as3
  
  Would there be any reason why some code would work on one
  server and the same code would not work on another server? I
  have an application that is working properly in flash IDE,
  testing local html and testing server. but once it goes live
  to a different server some things do not function properly.
  
  For once is the alignment of Bitmaps.
  
  TIA
 
  ___
  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
 



 --
 ...helmut




-- 
...helmut
___