RE: [Flashcoders] Flash AS3 debugging

2008-12-22 Thread Mendelsohn, Michael
[Windows XP, CS3] I stopped it at a point where everything is rendered
on the screen.  I can see it all fine, then I go back to the debug
console, and click step into, and then I alt+tab back to the swf window,
and everything has vanished from the stage.  Does this situation sound
familiar?  At the end of renderQuatrants() is where I stop it.

- MM 


private function keyListener(k:KeyboardEvent):void {
q = new Quadrants(2880, 864);
addChild(q);
stage.addEventListener(KeyboardEvent.KEY_UP, q.renderQuadrants);
}

public function renderQuadrants(k:KeyboardEvent):void {
if (k.keyCode == 32) {
k.target.stage.removeEventListener(KeyboardEvent.KEY_UP,
renderQuadrants);
getDataFirst();
// focus is setable after it's all been added to the
stage display list.
k.target.stage.focus = fields[0]; <-DEBUG STOP HERE
} 
}

private function getDataFirst():void {
dataInputs = new Sprite();
fields = [];
var locs:Array = [new Point(900,300), new Point(1500,300), new
Point(50,200), new Point(200,200)];
//set up quadrant data inputs
var i_debate:TextField = new TextField();
fields.push(i_debate);
var i_lead:TextField = new TextField();
fields.push(i_lead);
var i_listen:TextField = new TextField();
fields.push(i_listen);
var i_support:TextField = new TextField();
fields.push(i_support);
for (var i:uint = 0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash AS3 debugging

2008-12-22 Thread Paul Andrews
Does what you expect to appear appear when you just run the code? if not 
maybe it's your code. Could you make a small example of adding something to 
the stage and test that?


Paul
- Original Message - 
From: "Mendelsohn, Michael" 

To: "Flash Coders List" 
Sent: Monday, December 22, 2008 4:22 PM
Subject: [Flashcoders] Flash AS3 debugging



Hi list...

I'm getting used to AS3, but debugging isn't updating the stage as I
step through.  Actually, nothing is rendered at all, even though I'm
stopping at a point where things should be on the stage.  Am I doing
something wrong?

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


RE: [Flashcoders] Flash AS3 debugging

2008-12-22 Thread Merrill, Jason
>> I'm getting used to AS3, but debugging isn't updating the stage as I
>>step through.  Actually, nothing is rendered at all, even though I'm
>>stopping at a point where things should be on the stage.  Am I doing
>>something wrong?


Yes.


(please provide more info, you could be doing ANYTHING wrong, how could we 
possibly guess? :) ) 


Jason Merrill
Bank of America Instructional Technology & Media   ·   GCIB & Staff Support 
L&LD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.



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


[Flashcoders] Flash AS3 debugging

2008-12-22 Thread Mendelsohn, Michael
Hi list...

I'm getting used to AS3, but debugging isn't updating the stage as I
step through.  Actually, nothing is rendered at all, even though I'm
stopping at a point where things should be on the stage.  Am I doing
something wrong?

Thanks,
- Michael M.

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