Deepanjan Das wrote:
Hi,
I think the stage has not yet been initiated, hence the addChild is not
working.
Try to get hold of the stage first and then so an addChild.
While that is indeed a common problem, it is not the current problem. He
is adding to the main timeline, not the stage.
Deepak Sahu wrote:
I used to access this way in AS2.0
whats the workaround in AS3.0?
The dynamic property name syntax is the same. They changed nothing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
You are right. But do you know what it could be, Henrik? Do you need to see
some more code?
On Fri, Jul 16, 2010 at 1:34 AM, Henrik Andersson he...@henke37.cjb.netwrote:
Deepanjan Das wrote:
Hi,
I think the stage has not yet been initiated, hence the addChild is not
working.
Try to get
I lost the thread to this, but he is adding it to the document class if I
remember correctly. I think we'd need to see a little code again J.C.
On Fri, Jul 16, 2010 at 3:07 PM, J.C. Berry jcharlesbe...@gmail.com wrote:
You are right. But do you know what it could be, Henrik? Do you need to see
Yes, more code please.
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year
-Original
From separate class:
var myPopout:myPopout = new myPopout(e.target,this.btnNum,this.cityList);
//Calls below
From other class:
public function myPopout(stageBtn,btnNum,cityList){//constructor
this.btnNum = btnNum;
this.cityList = cityList;
this.stageBtn =
I don't think this is enough code... myPopout extends Sprite or MovieClip or
something?
What if in your other class you did this:
var myPopout:myPopout = new myPopout(e.target,this.btnNum,this.cityList);
addChild(myPopout);
?
I don't think we know enough about what you are doing...
On Fri,
MYMAP DOC CLASS-
package{
import fl.controls.TextArea;
import fl.containers.ScrollPane;
import fl.controls.Button;
import flash.display.*;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.URLLoader;
import
I'd guess your other class is not in the display list. Do you say
addChild(OtherClass) anywhere?
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report
public function initPopout(stageBtn,btnNum,
cityList){
if(btnNum 25){
trace(this);
var popInstance:Tba = new Tba();
popInstance.x = 10;
popInstance.y = 10;
popInstance.name = 'cityPopout'+btnNum+'_mc';
Any good flex tutorials online for beginners?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Any good flex tutorials online for beginners?
Sure! Have you looked at the ones on the Adobe Devnet site?
http://www.adobe.com/devnet/flex/
Flex is way easier than regular Flash programming!
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf
I was able to find my way around after watching the days 1 and 2 videos:
http://www.adobe.com/devnet/flex/videotraining/
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency Report Card 2009 - Gold Medal
If you're creating myPopout from within the document class or any other class
that has been added to the stage, you would say
_myPopout = new myPopout();
addChild(_myPopout);
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts
Didn't I try that with
var myPopoutObj:myPopout = new myPopout(e.target,this.btnNum,
this.cityList);
addChild(myPopoutObj);//Does not work either
? Help to be appreciated!
On Fri, Jul 16, 2010 at 2:13 PM, Mattheis, Erik (MIN-WSW)
ematth...@webershandwick.com wrote:
If you're creating
Hi JC,
I think this should be
var myPopoutObj = new myPopout(e.target,this.btnNum,
Per his example. Not positive if it matters, but I have had experience
with strong typing voiding out an array and when I took off
the :Array it worked.
Not sure why. Just a thought.
Karl
On Jul 16, 2010,
Hey thanks, Karl, but did you say you tested that and it worked?
On Fri, Jul 16, 2010 at 2:59 PM, Karl DeSaulniers k...@designdrumm.comwrote:
Hi JC,
I think this should be
var myPopoutObj = new myPopout(e.target,this.btnNum,
Per his example. Not positive if it matters, but I have had
Hi JC,
I was speaking of my code I had a while ago and it was also in AS2,
but I had something like..
var newArray:Array = new Array();
and had to switch it to..
var newArray = new Array();
for it to work at all.
May have been something in my code somewhere else
that didn't like that strong
OK thanks!
On Fri, Jul 16, 2010 at 3:24 PM, Karl DeSaulniers k...@designdrumm.comwrote:
Hi JC,
I was speaking of my code I had a while ago and it was also in AS2,
but I had something like..
var newArray:Array = new Array();
and had to switch it to..
var newArray = new Array();
for it
19 matches
Mail list logo