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 typing of the array.
Not completely sure why that worked, was just glad it worked finally
after staring at it for many hrs. :)
I did not test your code though, sry. Merely a suggestion to try.
Karl
On Jul 16, 2010, at 5:15 PM, J.C. Berry wrote:
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.com>wrote:
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, at 4:49 PM, J.C. Berry wrote:
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 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 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 Message-----
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of J.C. Berry
Sent: Friday, July 16, 2010 3:14 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Help with addChild
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';
popInstance.alpha = 1;
addChild(popInstance);//no error or result
Yes, the last line in my "other class" (addChild(popInstance);)
adds the
Tba instance, but it only works if I use one of the buttons on
stage. How
do
I add a class (myPopout) to the stage?
On Fri, Jul 16, 2010 at 1:03 PM, Mattheis, Erik (MIN-WSW) <
ematth...@webershandwick.com> wrote:
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 Global Agency of the Year
PR News Agency of the Year
-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of J.C. Berry
Sent: Friday, July 16, 2010 2:40 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Help with addChild
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 = stageBtn;
initPopout(stageBtn,btnNum,cityList);
}
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';
popInstance.alpha = 1;
addChild(popInstance);//no error or result
So here it only works if I use stageBtn.addChild(popInstance)
On Fri, Jul 16, 2010 at 12:33 PM, Mattheis, Erik (MIN-WSW) <
ematth...@webershandwick.com> wrote:
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 Message-----
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of J.C.
Berry
Sent: Friday, July 16, 2010 2:08 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Help with addChild
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.net
wrote:
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.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
J.C. Berry, M.A.
UI Developer
619.306.1712(m)
jcharlesbe...@gmail.com
portfolio: http://Client:maz...@www.mindarc.com
------------------------------------------------------------------
------------------------------------------------------------------
------------
This E-mail is covered by the Electronic Communications
Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged. This
information is
confidential information and is intended only for the use of the
individual
or entity named above. If the reader of this message is not the
intended
recipient, you are hereby notified that any dissemination,
distribution
or
copying of this communication is strictly prohibited.
------------------------------------------------------------------
------------------------------------------------------------------
------------
_______________________________________________
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
--
J.C. Berry, M.A.
UI Developer
619.306.1712(m)
jcharlesbe...@gmail.com
portfolio: http://Client:maz...@www.mindarc.com
------------------------------------------------------------------
------------------------------------------------------------------
------------
This E-mail is covered by the Electronic Communications Privacy
Act, 18
U.S.C. ?? 2510-2521 and is legally privileged. This information is
confidential information and is intended only for the use of the
individual
or entity named above. If the reader of this message is not the
intended
recipient, you are hereby notified that any dissemination,
distribution
or
copying of this communication is strictly prohibited.
------------------------------------------------------------------
------------------------------------------------------------------
------------
_______________________________________________
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
--
J.C. Berry, M.A.
UI Developer
619.306.1712(m)
jcharlesbe...@gmail.com
portfolio: http://Client:maz...@www.mindarc.com
-------------------------------------------------------------------
-------------------------------------------------------------------
----------
This E-mail is covered by the Electronic Communications Privacy
Act, 18
U.S.C. ?? 2510-2521 and is legally privileged. This information is
confidential information and is intended only for the use of the
individual
or entity named above. If the reader of this message is not the
intended
recipient, you are hereby notified that any dissemination,
distribution
or
copying of this communication is strictly prohibited.
-------------------------------------------------------------------
-------------------------------------------------------------------
----------
_______________________________________________
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
--
J.C. Berry, M.A.
UI Developer
619.306.1712(m)
jcharlesbe...@gmail.com
portfolio: http://Client:maz...@www.mindarc.com
--------------------------------------------------------------------
--------------------------------------------------------------------
--------
This E-mail is covered by the Electronic Communications Privacy
Act, 18
U.S.C. ?? 2510-2521 and is legally privileged. This information is
confidential information and is intended only for the use of the
individual
or entity named above. If the reader of this message is not the
intended
recipient, you are hereby notified that any dissemination,
distribution or
copying of this communication is strictly prohibited.
--------------------------------------------------------------------
--------------------------------------------------------------------
--------
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
J.C. Berry, M.A.
UI Developer
619.306.1712(m)
jcharlesbe...@gmail.com
portfolio: http://Client:maz...@www.mindarc.com
----------------------------------------------------------------------
----------------------------------------------------------------------
----
This E-mail is covered by the Electronic Communications Privacy
Act, 18
U.S.C. ?? 2510-2521 and is legally privileged. This information is
confidential information and is intended only for the use of the
individual
or entity named above. If the reader of this message is not the
intended
recipient, you are hereby notified that any dissemination,
distribution or
copying of this communication is strictly prohibited.
----------------------------------------------------------------------
----------------------------------------------------------------------
----
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders