flash pro & flash builder : difference in resolution
I have already developed with flash pro for Android (Actionscript 3 - android 2.3.3 - Air 2.6). I'm trying to use Flash Builder (to have more developper's functionnalities).
But with the same code (an example from Véronique Brossier Book) I can't obtain the same result.
With flash pro, my three sprites are at 150, 350 and 550 pixels from the top.
With flash builder, they are at above 350, 550 and 750.
I'have the same result on my device (Galaxy Note) or emulated one.
In flash pro I can specify height & width of the stage. I have not found same parameters in flash builder.
What could be wrong in my process ?
the main code is here :
public function FirstApp() {
// constructor code
var callButton:Sprite=createSprite(0xFF3300,100, 100);
callButton.addEventListener(MouseEvent.CLICK, callMe);
addChild(callButton);
var textButton:Sprite=createSprite(0x0099FF,100, 200);
textButton.addEventListener(MouseEvent.CLICK, textMe);
addChild(textButton);
var mailButton:Sprite=createSprite(0x00FF11,100, 300);
mailButton.addEventListener(MouseEvent.CLICK, mailMe);
addChild(mailButton);
}
function createSprite(hue:int, xPos:int, yPos:int):Sprite {
var tmp:Sprite = new Sprite();
tmp.graphics.beginFill(hue, 1);
tmp.graphics.drawRect(xPos, yPos, 200, 100);
tmp.graphics.endFill();
tmp.x = xPos;
tmp.y = yPos;
return tmp;
}