Re: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

2007-07-10 Thread Varun Soundararajan

Hi James,
you are right, I use a lot of EventDispatcher in the code. Most of the
components throw events which are listened by other components in the scene.
I have lot of components, more commonly, Tree, Scrollpanes, list box,etc
etc..

in my XML if I command the object to be deleted, it gets deleted.

If it were a movieclip in a scrollpane.
i do :
scrollpane.content.unloadMovie();
scrollpane.content.removeMovieClip();

and then i unload and remove the scrollpane itself.

if say, the XML commands the object to be created, i would also add
eventHandlers for the object I created.. eg:
object.addActionListener(enter,Delegate.create(this,enterActionHandler));

I dont remember adding a removeActionListener method when the object is
deleted (the deletion command is sent through the XML, which makes the VM to
delete the object)..I will do that ASAP and see how that helps..

This is a good lead.. Are there anything else associated with Action
Listeners/Event Dipatchers that I missed out?

One more thing, New listeners are NOT added to the existing object during 1
minute intervals,
I add listeners only when I create a new object, in other words, if the
server through the XML commands the client to create an object.

Is there some profiler that will help know if any event that was dispatched
has not been caught by any component/object?

Thanks
Varun

On 7/10/07, James Booth [EMAIL PROTECTED] wrote:


Are you using EventDispatcher at all?  If so, are you adding listeners at
each interval?  Make sure they're added and removed properly or they'll
get
lost and mount up. It's hard to help without seeing any code.  Can you
give
a brief example of the code that runs at each interval?

- James

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Varun
Soundararajan
Sent: Monday, July 09, 2007 2:51 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Hi,
can anyone give some hints on how to proceed?

On 7/9/07, Varun Soundararajan [EMAIL PROTECTED] wrote:

 Hi Flash Champs,

   I need help regarding handle leak issue. I have a Flash
 movie that parses XML from the server every 1 minute. The XML file that
the
 SWF parses in every 1 minute interval is around 100- 200 KB. I m seeing
that
 IE starts leaking handles (not sure if that is related to XML parsing,
but
 the XML every one minute can trigger a change in the content of the
movie
 (ie., what objects should be visible or if a new object needs to be
created
 etc) ).

When I profiled IE process, I see a lot of token handle
leaks
 (more than 2000 handles leaks per day) ( My understanding on Token
Handles:
 It is a handle to a security credential. Usually when IE connects to a
 server it tries to send the credentials of the logged in user. These
 credentials are seen as tokens in windows.)

Are there any documented issues regarding this? If I keep IE
 open for a few days (2-3 days), Flash will cause IE to either crash, or
make
 the system unstable.. I have disabled all Toolbars (except Adobe PDF
 toolbar)..

 I use HTTP to request XML data from Server (I think thats the only
 non-remoting way to obtain data from server in Flash). There is JSP
Session
 ID based authentication to connect to server before running the SWF.
Does
 that have something to do with this? When I login to the server with
 credentials, but dont launch the Flash movie, I dont have Handle Leaks,
that
 has led me to the conclusion that something in the flash movie could be
the
 trouble maker. How do I go ahead debugging? Thanks in advance.


 Some details about the Flash Movie:
 There are several Actionscript Verison 2 components in the movie all
 instances of which are created at runtime using actionscript. all of my
code
 is in Actionscript 2 There is quite some XML parsing. There are not much
 animations in the movie (the movie more has to do with parsing the XML
and
 representing it in the screen). Please feel free to ask more details
that
 are needed..


 Regards
 Varun




--
Regards
--Varun S
http://mailvarun.blogspot.com

/* This mail was sent using 100% recycled electrons */
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Regards
--Varun S
http://mailvarun.blogspot.com

/* This mail was sent using 100% recycled electrons */

Re: [Flashcoders] FLVPlayback Component on Limelight

2007-07-10 Thread grimmwerks

Hey Lori - did you figure this out?

I'm now a member of the ex-SMM as well... :P
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML loading and parsing problem

2007-07-10 Thread Steven Sacks

 It's completely wrong to insist that you have to use a delegate in all
 situations.

Delegate is teh bomb dot com.  If u don't use it, ur n00b.

;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] sending mail directly from flash?

2007-07-10 Thread Thomas Nordahl
is it possible to send Mail directly from flash without using and php  
script or such?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] sending mail directly from flash?

2007-07-10 Thread Varun Soundararajan

That would obviate the need for spammers to use any scripting language(s),
and you get the blame for viewing the SWF. God save, it aint there in Flash
:-)..

--
Regards
--Varun S
http://mailvarun.blogspot.com

/* This mail was sent using 100% recycled electrons */
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] sending mail directly from flash?

2007-07-10 Thread Ian Thomas

It's possible in AS3 using sockets.

For example:
http://www.bytearray.org/?p=27

Ian

On 7/10/07, Varun Soundararajan [EMAIL PROTECTED] wrote:

That would obviate the need for spammers to use any scripting language(s),
and you get the blame for viewing the SWF. God save, it aint there in Flash
:-)..

--
Regards
--Varun S
http://mailvarun.blogspot.com

/* This mail was sent using 100% recycled electrons */
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] TileList and dragdrop

2007-07-10 Thread Chmielewski yarek
I am looking for clues to implement  dragdrop features to a TileList (AS3) 
just like in Flex
something like a dynamic basket:

SWF objects are loaded into the a TileList

than you can drop them into a basket

all this in Flash AS3...

Is it a dream ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] sending mail directly from flash?

2007-07-10 Thread Varun Soundararajan

This is interetsing..

Thanks Ian for the link..

-Varun

On 7/10/07, Ian Thomas [EMAIL PROTECTED] wrote:


It's possible in AS3 using sockets.

For example:
http://www.bytearray.org/?p=27

Ian

On 7/10/07, Varun Soundararajan [EMAIL PROTECTED] wrote:
 That would obviate the need for spammers to use any scripting
language(s),
 and you get the blame for viewing the SWF. God save, it aint there in
Flash
 :-)..

 --
 Regards
 --Varun S
 http://mailvarun.blogspot.com

 /* This mail was sent using 100% recycled electrons */
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Regards
--Varun S
http://mailvarun.blogspot.com

/* This mail was sent using 100% recycled electrons */
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] How to dynamically assign onRollOver events

2007-07-10 Thread gluedanny
Hiya, I am dynamically creating movie clips that I load external swfs into and 
want these movie clips to fire onRollOver events though I'm not sure of the 
syntax to do this. As you can see from my code i am loading the info from an 
XML file. 
If anyone knows how to do this I would be really grateful. 
Here's where I am at the mo (which does not work)

var headTarget:MovieClip = 
race_mc[cage_mc][pic+(i+1)+_mc];
race_mc[cage_mc][pic+(i+1)+_mc].myName = 
xml.firstChild.childNodes[(courseNo-1)].firstChild.childNodes[i].nodeName;
race_mc[cage_mc][pic+(i+1)+_mc].onRollOver = function(){
trace(I AM A HEAD:+this.myName)
}

Thanks everyone ! :)
Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] WebServices support in AS3/FLCS3

2007-07-10 Thread Paul B. Hake


-Original Message-
From: Kevin Matzdorf [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: 7/9/2007 7:33 PM
Subject: Re: [Flashcoders] WebServices support in AS3/FLCS3

There's a chapter about remoting and webservices in the Actionscript
3.0Cookbook.
http://www.oreilly.com/catalog/actscpt3ckbk/toc.html
http://www.oreilly.com/catalog/actscpt3ckbk/toc.htmlit chapter 21.
not sure if there's a solution to your problem, I just
remember looking it over.  Hope this helps.  Pretty good book.

Kevin

On 7/9/07, Enrique Chávez [EMAIL PROTECTED] wrote:

 Hi John.

 Well, great news, you know, we are working to offer a API for people who
 want to develop applications in the http://desktoptwo.com base,
 desktoptwo is full flash and we really need the Webservice Support.

 And i dont want use flex. =)

 Thanks.


 John Dowdell escribió:
  Enrique Chávez wrote:
  What happened with the webservices classes in AS3/Flash CS3?  i can't
  believe they are gone.
 
  I asked Product Manager Richard Galvan about this earlier this week,
  and I'll ping him today face-to-face to confirm. Here's where I'd
  expect info to appear first, if it isn't already among the technotes
  somewhere:
  http://blogs.adobe.com/rgalvan/
 
  I suspect that it's something like not all AS2 routines yet adapted
  for the tighter ECMAScript in AS3, but even if so this info should
  still already be available in a FAQ or other searchable resource.
 
  I'm sorry for the hassle in the meantime, but I've got an action item
  to pursue this and get it publicly resolved. (I'll be on vacation next
  week; if it's not addressed by then please feel free to title a thread
  JD Flakes Out! on Flashcoders the week of the 16th to nudge my
  memory, thanks ;-)
 
  jd
 
 
 
 
 
 
 
 


 --
 Enrique Chavez aka Tmeister
 http://www.klr20mg.com
 http://www.tmeister.net
 http://desktoptwo.com


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[truncated by sender]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] TileList and dragdrop

2007-07-10 Thread Amir T Rocker

Hi,
check th eFlex2 Help ;) DragDrop .. %)

Flex2 supports a simple model of drag and drop
all you need to do is to enable the TileList to accept drags and accept drops

code
myTileList.dragEnable = true;
myTileList.dragEnter = myCustomDragEnterMethod;
myTileList.dragDrop = myCustomDragDropMethod;
/code
if you want to have the real deal - use a DragManager, a DragSource, 
a DragProxy and a DragTarget. Best you look it up in the help 
sectioon of Flex -

BUT ITS NOT A DREAM ;)
amir

Am 11:23 AM 7/10/2007 schrieben Sie:
I am looking for clues to implement  dragdrop features to a 
TileList (AS3) just like in Flex

something like a dynamic basket:

SWF objects are loaded into the a TileList

than you can drop them into a basket

all this in Flash AS3...

Is it a dream ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RE: SEO Question

2007-07-10 Thread dave matthews

Google blocks transparent Flash in DIV layers,

 Google skips/blocks pages with DIV layers holding Flash published using an 
invisible background.


 We used a DIV layer for Flash content published with a transparent 
background over a non-scrolling html background for a full Flash site, the 
DIV layer with the transparent Flash scrolled normally using standard HTML 
scrollbars while the background remained stationary...  nice effect...


 It never ever showed up in Google.  Turns out this is the technique used 
for those floating ads that block normal HTML content and Google is setup to 
ignore  those pages.


 Don't remember where it was posted, but there is a serious problem with 
DIV layers holding transparent Flash - Google considers it cloaking/spam.


hth,
Dave_Matthews


[EMAIL PROTECTED] wrote:
On 7/9/07, Gustavo Duenas well Dave, we just did as the information said, 
we place html content

in the div instead of the message for the flash plug-in, the content
was mostly text
with links, like 12 or less, and that was everything we did, so
then , the next day we've just seen how we were from page one 4 place
to nowhere in google.
Assuming we did something wrong, try not to abuse of the links in the
div section of the swf object page.


Regards


gustavo
On Jul 9, 2007, at 1:57 PM, Dave Mennenoh wrote:

 do not use the div section of the page  to put links there and
 content, we did  it and google banned us for like three weeks...

 Well, you must've done something wrong as that is the accepted way
 to do it. Just using metatags are decidedly not the right way.


 Dave -
 Head Developer
 http://www.blurredistinction.com
 Adobe Community Expert
 http://www.adobe.com/communities/experts/


_
Need a brain boost? Recharge with a stimulating game. Play now!  
http://club.live.com/home.aspx?icid=club_hotmailtextlink1


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] OT: Recommendation for new PC

2007-07-10 Thread Paul Steven
I believe it is time to get a new PC as my current one just doesn't seem to
be able to cope with Vista and Flash etc

Anyway I normally buy Dells as I have a pretty good experience with them in
the past however I thought things may have changed so I would appreciate any
suggestions for a reasonable PC to run the latest version of Flash and Vista
etc

Here is what I have at the moment:

Dell Dimension 4600
Intel Pentium 3.6GHZ
2 GB Ram
GeForce 7600
Vista Ultimate

This may seem like a reasonable system but it just can't cope. This may
indeed be a problem with the PC but I have reformatted, and performed every
test possible on the RAM, Hard Drives, etc and I can find no errors. Hence I
have decided an upgrade is required.

My budget is up to £1000 but if I can get something for less than that all
the better!

Any suggestions most appreciated!

Thanks

Paul



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Excel Exponentiation (caret) Notation

2007-07-10 Thread Daniel Cascais

Thanks Gregg!

On 7/9/07, g. wygonik [EMAIL PROTECTED] wrote:

hey daniel

i think that means that you have three arrays of the B1:B7 Math.pow()
series, with each array being a different value in the curly-bracketed list.

That is:

B1:B7^{1,2,3} becomes

var myArray1 = [ Math.pow(B1,1),...,Math.pow(B7,1)];
var myArray2 = [Math.pow(B1,2),...,Math.pow(B7,2)];
var myArray3 = [Math.pow(B1,3),...,Math.pow(B7,3)];

B1:B7^{5,10} becomes

var myArray1 = [Math.pow(B1,5),...,Math.pow (B7,5)];
var myArray2 = [Math.pow(B1,10),...,Math.pow(B7,10)];

and so on

hth
g.





On 7/1/07, Daniel Cascais [EMAIL PROTECTED] wrote:

 Hi,

 Hi, I've stumbled upon this function call in Excel:
 =LINEST(A1:A7,B1:B7^{1,2,3})

 And I'm having issues with this last bit:
 B1:B7^{1,2,3}


 Let's say B1:B7 is an array from 1 to 7 considering this Excel notation:
 B1:B7

 It would look like this in ActionScript:

 var n1:Number = 1;
 var n2:Number = 2;
 var n3:Number = 3;
 var n4:Number = 4;
 var n5:Number = 5;
 var n6:Number = 6;
 var n7:Number = 7;

 var myArray:Array = [n1, n2, n3, n4, n5, n6, n7];


 Now, if I change this, considering the following Excel notation:
 B1:B7^2

 It would look like this ActionScript:

 var n1:Number = Math.pow(1, 2);
 var n2:Number = Math.pow(2, 2);
 var n3:Number = Math.pow(3, 2);
 var n4:Number = Math.pow(4, 2);
 var n5:Number = Math.pow(5, 2);
 var n6:Number = Math.pow(6, 2);
 var n7:Number = Math.pow(7, 2);

 var myArray:Array = [n1, n2, n3, n4, n5, n6, n7];


 But what on earth happens to the array with this Excel notation???
 B1:B7^{1,2,3}

 --Daniel


--
weblog: broadcast.artificialcolors.com
blazePDF: www.blazepdf.com
band: www.cutratebox.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Recommendation for new PC

2007-07-10 Thread Paul Andrews
- Original Message - 
From: Paul Steven [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 10, 2007 12:11 PM
Subject: [Flashcoders] OT: Recommendation for new PC


I believe it is time to get a new PC as my current one just doesn't seem 
to

be able to cope with Vista and Flash etc


Quite honestly your PC should easily cope with Vista.
snip


My budget is up to £1000 but if I can get something for less than that all
the better!



Any suggestions most appreciated!


Be more specific about the problems you are having, but I really don't think 
this is the right place for this.


uk.comp.homebuilt
uk.adverts.computer

are often helpful in diagnosing problems. For £1,000 someone will snatch 
your arm off..


Paul


Thanks

Paul




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

2007-07-10 Thread David Ngo
Removing the MovieClips or objects does not remove the listeners to that
object. You would have to explicitly remove the listeners first then remove
your MovieClip/object. Otherwise, the reference to the listener will still
exist, thus not get picked up by garbage collection. This could be another
cause of your leak issue.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Varun
Soundararajan
Sent: Tuesday, July 10, 2007 2:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Hi James,
you are right, I use a lot of EventDispatcher in the code. Most of the
components throw events which are listened by other components in the scene.
I have lot of components, more commonly, Tree, Scrollpanes, list box,etc
etc..

in my XML if I command the object to be deleted, it gets deleted.

If it were a movieclip in a scrollpane.
i do :
scrollpane.content.unloadMovie();
scrollpane.content.removeMovieClip();

and then i unload and remove the scrollpane itself.

if say, the XML commands the object to be created, i would also add
eventHandlers for the object I created.. eg:
object.addActionListener(enter,Delegate.create(this,enterActionHandler));

I dont remember adding a removeActionListener method when the object is
deleted (the deletion command is sent through the XML, which makes the VM to
delete the object)..I will do that ASAP and see how that helps..

This is a good lead.. Are there anything else associated with Action
Listeners/Event Dipatchers that I missed out?

One more thing, New listeners are NOT added to the existing object during 1
minute intervals,
I add listeners only when I create a new object, in other words, if the
server through the XML commands the client to create an object.

Is there some profiler that will help know if any event that was dispatched
has not been caught by any component/object?

Thanks
Varun

On 7/10/07, James Booth [EMAIL PROTECTED] wrote:

 Are you using EventDispatcher at all?  If so, are you adding listeners at
 each interval?  Make sure they're added and removed properly or they'll
 get
 lost and mount up. It's hard to help without seeing any code.  Can you
 give
 a brief example of the code that runs at each interval?

 - James

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Varun
 Soundararajan
 Sent: Monday, July 09, 2007 2:51 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

 Hi,
 can anyone give some hints on how to proceed?

 On 7/9/07, Varun Soundararajan [EMAIL PROTECTED] wrote:
 
  Hi Flash Champs,
 
I need help regarding handle leak issue. I have a Flash
  movie that parses XML from the server every 1 minute. The XML file that
 the
  SWF parses in every 1 minute interval is around 100- 200 KB. I m seeing
 that
  IE starts leaking handles (not sure if that is related to XML parsing,
 but
  the XML every one minute can trigger a change in the content of the
 movie
  (ie., what objects should be visible or if a new object needs to be
 created
  etc) ).
 
 When I profiled IE process, I see a lot of token handle
 leaks
  (more than 2000 handles leaks per day) ( My understanding on Token
 Handles:
  It is a handle to a security credential. Usually when IE connects to a
  server it tries to send the credentials of the logged in user. These
  credentials are seen as tokens in windows.)
 
 Are there any documented issues regarding this? If I keep IE
  open for a few days (2-3 days), Flash will cause IE to either crash, or
 make
  the system unstable.. I have disabled all Toolbars (except Adobe PDF
  toolbar)..
 
  I use HTTP to request XML data from Server (I think thats the only
  non-remoting way to obtain data from server in Flash). There is JSP
 Session
  ID based authentication to connect to server before running the SWF.
 Does
  that have something to do with this? When I login to the server with
  credentials, but dont launch the Flash movie, I dont have Handle Leaks,
 that
  has led me to the conclusion that something in the flash movie could be
 the
  trouble maker. How do I go ahead debugging? Thanks in advance.
 
 
  Some details about the Flash Movie:
  There are several Actionscript Verison 2 components in the movie all
  instances of which are created at runtime using actionscript. all of my
 code
  is in Actionscript 2 There is quite some XML parsing. There are not much
  animations in the movie (the movie more has to do with parsing the XML
 and
  representing it in the screen). Please feel free to ask more details
 that
  are needed..
 
 
  Regards
  Varun
 



 --
 Regards
 --Varun S
 http://mailvarun.blogspot.com

 /* This mail was sent using 100% recycled electrons */
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 

Re: [Flashcoders] OT: Recommendation for new PC

2007-07-10 Thread Guy McLoughlin


At 07:11 AM 10/07/2007, Paul Steven wrote:

I believe it is time to get a new PC as my current one just doesn't seem to
be able to cope with Vista and Flash etc

Here is what I have at the moment:

Dell Dimension 4600
Intel Pentium 3.6GHZ
2 GB Ram
GeForce 7600
Vista Ultimate


Hmmm... It sounds like you upgraded from Win XP to Vista, and now find that
your once great PC has developed the flu under Vista.

The specs you list should run Vista really well, however the biggest problem
when installing Vista on older hardware is drivers. If you haven't already done
so, I would try installing Vista with the latest Vista drivers for 
your hardware.


I would also check the Dell support forums to see if other people with the same
PC as you are having the same problems.

There is a Vista service pack due out in the second half of 2007, but you
could be waiting awhile before it's out.

Myself, I am sticking with Win XP Pro because:

  1- My current computers run great under XP Pro

  2- I don't want to get into the whole Vista driver problem right now
 ( with time all of the driver stuff should be sorted out )

  3- I have no reason to use Vista, as none of my clients are using it,
  and I think it will be a couple of years before they do.

  4- The longer I wait, the better Vista should be, via service packs, etc...


- Guy


--
Guy McLoughlin
New Media Developer
Toronto Ontario Canada
E: [EMAIL PROTECTED]
--- 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Marcelo Wolfgang

Hi all,

I have the type of problem I hate the most when developing flash. My swf 
works fine locally, but it doesn't work at all on the web. And I'm about 
as clueless one can be about debuggin this kind of problem.

So... can anyone spare some advices?

TIA
Marcelo Wolfgang
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Hans Wichman

Hi,

use:
* xray - osflash.org/xray
* a logger - also in xray or one of the other available loggers
* assertions (detect and throw errors at runtime)
* visible runtime exception handling

With respect to the last part, see http://objectpainters.com/blog/?p=32

The main idea behind that last point is something I find very useful,
normally when you use Flash's exception mechanism, as in throw new Error
(Boe); nothing shows up if you don't handle and catch it. We use a custom
error class which prints messages on the screen if the errors are not
caught. Kinda like how the new flash player does it, but then for as2.

In addition the assertions are something I use very often. Eg, If you are
sure that loading of that specific xml file cannot go wrong and should parse
without any problems, why not assert it?

greetz
JC








On 7/10/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote:


Hi all,

I have the type of problem I hate the most when developing flash. My swf
works fine locally, but it doesn't work at all on the web. And I'm about
as clueless one can be about debuggin this kind of problem.
So... can anyone spare some advices?

TIA
Marcelo Wolfgang
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] RE: SEO Question

2007-07-10 Thread Dave Mennenoh

Don't remember where it was posted, but there is a serious problem with

DIV layers holding transparent Flash - Google considers it cloaking/spam.

I can see that. We have no transparency though - ie wmode is not set. We're 
just using the div to hold plain html content that matches the Flash 
content - minus the pretty graphics and images. From my research thus far, 
this technique has been fine by Google on thousands of sites, and is 
recommended by Geoff Stearns -creator of SWFObject. Since it allows for 
accessibility as well, I can't see why it would be an issue.



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

2007-07-10 Thread James Booth
Varun,

To make sure that any listener are properly removed and the way I usually
handle EventDispatcher, is to first create a private variable for the
delegate.

private var onStatus_func : Function;

Then in an init function or elsewhere prior to adding the listeners:

onStatus_func = Delegate.create (this, updateStatus);

then, adding the listener:

myClass.addEventListener (onStatus, onStatus_func);

you would then remove it as:

myClass.removeEventListener (onStatus, onStatus_func);

This is one of the few ways that will properly remove the eventListener.  I
tend to keep them in a destroy function to make it easy.

If you are throwing the delegate in as such:

myClass.addEventListener (onStatus, Delegate.create (this, updateStatus));

myClass.removeEventListener (onStatus, Delegate.create (this,
updateStatus));

This will not work. It's how the function is referenced.  I've done simple
tests with components to verify that it doesn't work.

Hope that helps.

- James

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Ngo
Sent: Tuesday, July 10, 2007 7:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Removing the MovieClips or objects does not remove the listeners to that
object. You would have to explicitly remove the listeners first then remove
your MovieClip/object. Otherwise, the reference to the listener will still
exist, thus not get picked up by garbage collection. This could be another
cause of your leak issue.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Varun
Soundararajan
Sent: Tuesday, July 10, 2007 2:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Hi James,
you are right, I use a lot of EventDispatcher in the code. Most of the
components throw events which are listened by other components in the scene.
I have lot of components, more commonly, Tree, Scrollpanes, list box,etc
etc..

in my XML if I command the object to be deleted, it gets deleted.

If it were a movieclip in a scrollpane.
i do :
scrollpane.content.unloadMovie();
scrollpane.content.removeMovieClip();

and then i unload and remove the scrollpane itself.

if say, the XML commands the object to be created, i would also add
eventHandlers for the object I created.. eg:
object.addActionListener(enter,Delegate.create(this,enterActionHandler));

I dont remember adding a removeActionListener method when the object is
deleted (the deletion command is sent through the XML, which makes the VM to
delete the object)..I will do that ASAP and see how that helps..

This is a good lead.. Are there anything else associated with Action
Listeners/Event Dipatchers that I missed out?

One more thing, New listeners are NOT added to the existing object during 1
minute intervals,
I add listeners only when I create a new object, in other words, if the
server through the XML commands the client to create an object.

Is there some profiler that will help know if any event that was dispatched
has not been caught by any component/object?

Thanks
Varun

On 7/10/07, James Booth [EMAIL PROTECTED] wrote:

 Are you using EventDispatcher at all?  If so, are you adding listeners at
 each interval?  Make sure they're added and removed properly or they'll
 get
 lost and mount up. It's hard to help without seeing any code.  Can you
 give
 a brief example of the code that runs at each interval?

 - James

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Varun
 Soundararajan
 Sent: Monday, July 09, 2007 2:51 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

 Hi,
 can anyone give some hints on how to proceed?

 On 7/9/07, Varun Soundararajan [EMAIL PROTECTED] wrote:
 
  Hi Flash Champs,
 
I need help regarding handle leak issue. I have a Flash
  movie that parses XML from the server every 1 minute. The XML file that
 the
  SWF parses in every 1 minute interval is around 100- 200 KB. I m seeing
 that
  IE starts leaking handles (not sure if that is related to XML parsing,
 but
  the XML every one minute can trigger a change in the content of the
 movie
  (ie., what objects should be visible or if a new object needs to be
 created
  etc) ).
 
 When I profiled IE process, I see a lot of token handle
 leaks
  (more than 2000 handles leaks per day) ( My understanding on Token
 Handles:
  It is a handle to a security credential. Usually when IE connects to a
  server it tries to send the credentials of the logged in user. These
  credentials are seen as tokens in windows.)
 
 Are there any documented issues regarding this? If I keep IE
  open for a few days (2-3 days), Flash will cause IE to either crash, or
 make
  the system unstable.. I have disabled all Toolbars (except Adobe PDF
  toolbar)..
 
  I use 

Re: [Flashcoders] RE: SEO Question

2007-07-10 Thread Gustavo Duenas
That's it!, my swf object movie has the param transparent setted so  
that was the problem, for that reason, we  just use the metatags and  
I'm using an index page in coldfusion with metatags for the SEO. Do  
you know how we can avoid this blocking thing.



Regards

Gustavo

On Jul 10, 2007, at 9:39 AM, Dave Mennenoh wrote:

Don't remember where it was posted, but there is a serious  
problem with
DIV layers holding transparent Flash - Google considers it cloaking/ 
spam.


I can see that. We have no transparency though - ie wmode is not  
set. We're just using the div to hold plain html content that  
matches the Flash content - minus the pretty graphics and images.  
From my research thus far, this technique has been fine by Google  
on thousands of sites, and is recommended by Geoff Stearns -creator  
of SWFObject. Since it allows for accessibility as well, I can't  
see why it would be an issue.



Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






GUSTAVO A. DUENAS
Creative Director
LEFT AND RIGHT SOLUTIONS
904.  265 0330 - 904. 386 7958
www.leftandrightsolutions.com
Jacksonville - Florida




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Mike Lyda

another option..   flashtracer for firefox (from Alessandro Crugnola)
https://addons.mozilla.org/en-US/firefox/addon/3469
you need the flash player debug version installed, but flashtracer can be very
handy and entertaining.. (browse the web and see what others are tracing out of
their SWFs..)


--- Marcelo Wolfgang [EMAIL PROTECTED] wrote:

 Hi all,
 
 I have the type of problem I hate the most when developing flash. My swf 
 works fine locally, but it doesn't work at all on the web. And I'm about 
 as clueless one can be about debuggin this kind of problem.
 So... can anyone spare some advices?
 
 TIA
 Marcelo Wolfgang


   

Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Strange class scoping problem?

2007-07-10 Thread eric e. dolecki

Have a scoping issue of some kind within a Class itself, seems strange.
Flash 9 AS2 SWF.

I have a class that handles some XML-RPC calls. Works great from the _root
proper, but fails when i call it from within a function... (without getting
into all the little specifics of the code, below is enough I think to
explain it)...

some Conduit Class code:

function Conduit()
   {
   owner = this;
   mx.events.EventDispatcher.initialize( owner );
   replyXML = new XML();
   send_lv = new LoadVars();
   };
...
// This won't get called by interval timeline code below in this email
private function doGetAuto( sSubstring:String, sZipcode:String, sMax:String
):Void
   {
   trace(  doGetAuto );
   replyXML = new XML();
   replyXML.ignoreWhite = true;
   replyXML.onLoad = Delegate.create( owner, autoResponse );

   send_lv = new LoadVars();
   send_lv.q = sSubstring;
   send_lv.zip = sZipcode;
   send_lv.max = sMax;
   send_lv.sendAndLoad( sAutoCompleteURL, replyXML, GET );
   };
   private function autoResponse( success:Boolean ):Void
   {
   if( success )
   {
   dispatchEvent( {target:owner, type:autoCompleteResponse,
data:replyXML} );
   } else
   {
   dispatchEvent( {target:owner, type:genericError } );
   }
   };

   public function getAutoCompleteMatches( sSubstring:String,
sZipcode:String, sMax:String ):Void
   {
   trace( getAutoCompleteMatches );
   doGetAuto( sSubstring, sZipcode, sMax );
   };
...

now an example of some implementing timeline code:

// Works, see the  doGetAuto traced
var myConduit:Conduit = new Conduit();
myConduit.getAutoCompleteMatches( iron, 01701, 6 );

// Doesn't work, stops at the first trace within the class (
getAutoCompleteMatches ) (in place of code above)
var myConduit:Conduit = new Conduit();
function createFirst():Void
{
   login_dialogBox_mc.entry_txt.onChanged = entryChange;
};
function entryChange():Void
{
  clearTimeout( nAutoTimer );
  nAutoTimer = setTimeout( myConduit.getAutoCompleteMatches, 500,
login_dialogBox_mc.entry_txt.text, user.zipcode, 6 );
}


???
- Eric
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Marcelo Wolfgang

Mike Lyda wrote:

another option..   flashtracer for firefox (from Alessandro Crugnola)
https://addons.mozilla.org/en-US/firefox/addon/3469
you need the flash player debug version installed, but flashtracer can be very
handy and entertaining.. (browse the web and see what others are tracing out of
their SWFs..)
  
I have this installed but I can't make it work ( just lost about an hour 
in the morning trying to make this work again with no success ) ...


I've tried the debbugers Hans told, but none worked ( or it didn't 
install on CS 3, or my dumbness can't make them work since I'm a low to 
mid level actionscripter )...


I still can't figure out what's happening on the browser that make the 
movie do not work ( it is calling a moviecliploader.onloadinit() but 
it's not displaying the the loaded movieclip ... )


Thanks again
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: Strange class scoping problem?

2007-07-10 Thread eric e. dolecki

I just made the setTimeout call another function, and made the class method
call in that. fixed the scope.

--
eric


On 7/10/07, eric e. dolecki [EMAIL PROTECTED] wrote:


Have a scoping issue of some kind within a Class itself, seems strange.
Flash 9 AS2 SWF.

I have a class that handles some XML-RPC calls. Works great from the _root
proper, but fails when i call it from within a function... (without getting
into all the little specifics of the code, below is enough I think to
explain it)...

some Conduit Class code:

function Conduit()
{
owner = this;
mx.events.EventDispatcher.initialize( owner );
replyXML = new XML();
send_lv = new LoadVars();
};
...
// This won't get called by interval timeline code below in this email
private function doGetAuto( sSubstring:String, sZipcode:String,
sMax:String ):Void
{
trace(  doGetAuto );
replyXML = new XML();
replyXML.ignoreWhite = true;
replyXML.onLoad = Delegate.create( owner, autoResponse );

send_lv = new LoadVars();
send_lv.q = sSubstring;
send_lv.zip = sZipcode;
send_lv.max = sMax;
send_lv.sendAndLoad( sAutoCompleteURL, replyXML, GET );
};
private function autoResponse( success:Boolean ):Void
{
if( success )
{
dispatchEvent( {target:owner, type:autoCompleteResponse,
data:replyXML} );
} else
{
dispatchEvent( {target:owner, type:genericError } );
}
};

public function getAutoCompleteMatches( sSubstring:String,
sZipcode:String, sMax:String ):Void
{
trace( getAutoCompleteMatches );
doGetAuto( sSubstring, sZipcode, sMax );
};
...

now an example of some implementing timeline code:

// Works, see the  doGetAuto traced
var myConduit:Conduit = new Conduit();
myConduit.getAutoCompleteMatches ( iron, 01701, 6 );

// Doesn't work, stops at the first trace within the class (
getAutoCompleteMatches ) (in place of code above)
var myConduit:Conduit = new Conduit();
function createFirst():Void
{
login_dialogBox_mc.entry_txt.onChanged = entryChange;
};
function entryChange():Void
{
   clearTimeout( nAutoTimer );
   nAutoTimer = setTimeout( myConduit.getAutoCompleteMatches , 500,
login_dialogBox_mc.entry_txt.text, user.zipcode, 6 );
}


???
- Eric



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Remove double-click from IE

2007-07-10 Thread cpitts
I'm green to this: what is the trick to getting a flash menu to require a
single click from IE browsers rather than two?
 
CBP
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

2007-07-10 Thread Varun Soundararajan

Hi James,
 Thanks a lot for pointing out the pitfall.. :-)..

-Varun

On 7/10/07, James Booth [EMAIL PROTECTED] wrote:


Varun,

To make sure that any listener are properly removed and the way I usually
handle EventDispatcher, is to first create a private variable for the
delegate.

private var onStatus_func : Function;

Then in an init function or elsewhere prior to adding the listeners:

onStatus_func = Delegate.create (this, updateStatus);

then, adding the listener:

myClass.addEventListener (onStatus, onStatus_func);

you would then remove it as:

myClass.removeEventListener (onStatus, onStatus_func);

This is one of the few ways that will properly remove the
eventListener.  I
tend to keep them in a destroy function to make it easy.

If you are throwing the delegate in as such:

myClass.addEventListener (onStatus, Delegate.create (this,
updateStatus));

myClass.removeEventListener (onStatus, Delegate.create (this,
updateStatus));

This will not work. It's how the function is referenced.  I've done simple
tests with components to verify that it doesn't work.

Hope that helps.

- James

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Ngo
Sent: Tuesday, July 10, 2007 7:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Removing the MovieClips or objects does not remove the listeners to that
object. You would have to explicitly remove the listeners first then
remove
your MovieClip/object. Otherwise, the reference to the listener will still
exist, thus not get picked up by garbage collection. This could be another
cause of your leak issue.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Varun
Soundararajan
Sent: Tuesday, July 10, 2007 2:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Hi James,
you are right, I use a lot of EventDispatcher in the code. Most of the
components throw events which are listened by other components in the
scene.
I have lot of components, more commonly, Tree, Scrollpanes, list box,etc
etc..

in my XML if I command the object to be deleted, it gets deleted.

If it were a movieclip in a scrollpane.
i do :
scrollpane.content.unloadMovie();
scrollpane.content.removeMovieClip();

and then i unload and remove the scrollpane itself.

if say, the XML commands the object to be created, i would also add
eventHandlers for the object I created.. eg:
object.addActionListener(enter,Delegate.create
(this,enterActionHandler));

I dont remember adding a removeActionListener method when the object is
deleted (the deletion command is sent through the XML, which makes the VM
to
delete the object)..I will do that ASAP and see how that helps..

This is a good lead.. Are there anything else associated with Action
Listeners/Event Dipatchers that I missed out?

One more thing, New listeners are NOT added to the existing object during
1
minute intervals,
I add listeners only when I create a new object, in other words, if the
server through the XML commands the client to create an object.

Is there some profiler that will help know if any event that was
dispatched
has not been caught by any component/object?

Thanks
Varun

On 7/10/07, James Booth [EMAIL PROTECTED] wrote:

 Are you using EventDispatcher at all?  If so, are you adding listeners
at
 each interval?  Make sure they're added and removed properly or they'll
 get
 lost and mount up. It's hard to help without seeing any code.  Can you
 give
 a brief example of the code that runs at each interval?

 - James

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Varun
 Soundararajan
 Sent: Monday, July 09, 2007 2:51 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

 Hi,
 can anyone give some hints on how to proceed?

 On 7/9/07, Varun Soundararajan [EMAIL PROTECTED] wrote:
 
  Hi Flash Champs,
 
I need help regarding handle leak issue. I have a Flash
  movie that parses XML from the server every 1 minute. The XML file
that
 the
  SWF parses in every 1 minute interval is around 100- 200 KB. I m
seeing
 that
  IE starts leaking handles (not sure if that is related to XML parsing,
 but
  the XML every one minute can trigger a change in the content of the
 movie
  (ie., what objects should be visible or if a new object needs to be
 created
  etc) ).
 
 When I profiled IE process, I see a lot of token handle
 leaks
  (more than 2000 handles leaks per day) ( My understanding on Token
 Handles:
  It is a handle to a security credential. Usually when IE connects to a
  server it tries to send the credentials of the logged in user. These
  credentials are seen as tokens in windows.)
 
 Are there any documented issues regarding this? If I keep
IE
  open for a few days (2-3 days), Flash will cause 

Re: [Flashcoders] Strange class scoping problem?

2007-07-10 Thread Arul Prasad M L

Hi Eric,

try

setTimeout( Delegate.create(myConduit, myConduit.getAutoCompleteMatches,
500, login_dialogBox_mc.entry_txt.text, user.zipcode, 6 );

instead. Should work.

~Arul Prasad


On 7/10/07, eric e. dolecki [EMAIL PROTECTED] wrote:


Have a scoping issue of some kind within a Class itself, seems strange.
Flash 9 AS2 SWF.

I have a class that handles some XML-RPC calls. Works great from the _root
proper, but fails when i call it from within a function... (without
getting
into all the little specifics of the code, below is enough I think to
explain it)...

some Conduit Class code:

function Conduit()
{
owner = this;
mx.events.EventDispatcher.initialize( owner );
replyXML = new XML();
send_lv = new LoadVars();
};
...
// This won't get called by interval timeline code below in this email
private function doGetAuto( sSubstring:String, sZipcode:String,
sMax:String
):Void
{
trace(  doGetAuto );
replyXML = new XML();
replyXML.ignoreWhite = true;
replyXML.onLoad = Delegate.create( owner, autoResponse );

send_lv = new LoadVars();
send_lv.q = sSubstring;
send_lv.zip = sZipcode;
send_lv.max = sMax;
send_lv.sendAndLoad( sAutoCompleteURL, replyXML, GET );
};
private function autoResponse( success:Boolean ):Void
{
if( success )
{
dispatchEvent( {target:owner, type:autoCompleteResponse,
data:replyXML} );
} else
{
dispatchEvent( {target:owner, type:genericError } );
}
};

public function getAutoCompleteMatches( sSubstring:String,
sZipcode:String, sMax:String ):Void
{
trace( getAutoCompleteMatches );
doGetAuto( sSubstring, sZipcode, sMax );
};
...

now an example of some implementing timeline code:

// Works, see the  doGetAuto traced
var myConduit:Conduit = new Conduit();
myConduit.getAutoCompleteMatches( iron, 01701, 6 );

// Doesn't work, stops at the first trace within the class (
getAutoCompleteMatches ) (in place of code above)
var myConduit:Conduit = new Conduit();
function createFirst():Void
{
login_dialogBox_mc.entry_txt.onChanged = entryChange;
};
function entryChange():Void
{
   clearTimeout( nAutoTimer );
   nAutoTimer = setTimeout( myConduit.getAutoCompleteMatches, 500,
login_dialogBox_mc.entry_txt.text, user.zipcode, 6 );
}


???
- Eric
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Arul Prasad
http://arulprasad.blogspot.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Nick Weekes
Flashtracer doesn't work with the latest version of the debug player
(according to the link below).  Shame, as it's a nice idea.

xRay is really the debugging tool you should use, its of such a high
quality.  Did you look at the video tutorials:

http://labs.blitzagency.com/wp-content/xray/videos/tutorials/indexFlash.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcelo
Wolfgang
Sent: 10 July 2007 15:41
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Tips and advice for online bugtracking

Mike Lyda wrote:
 another option..   flashtracer for firefox (from Alessandro Crugnola)
 https://addons.mozilla.org/en-US/firefox/addon/3469
 you need the flash player debug version installed, but flashtracer can 
 be very handy and entertaining.. (browse the web and see what others 
 are tracing out of their SWFs..)
   
I have this installed but I can't make it work ( just lost about an hour in
the morning trying to make this work again with no success ) ...

I've tried the debbugers Hans told, but none worked ( or it didn't install
on CS 3, or my dumbness can't make them work since I'm a low to mid level
actionscripter )...

I still can't figure out what's happening on the browser that make the movie
do not work ( it is calling a moviecliploader.onloadinit() but it's not
displaying the the loaded movieclip ... )

Thanks again
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Cualquier Argentino Flex Reveladores aquí ?

2007-07-10 Thread artur

por favor, contácteme fuera la lista.
tengo un proyecto creador de flexss que necesita su ayuda
gracias

please contact me off-list
i have a creative flex project that needs your help.
thanks


artur
www.design2dev.com
ny : 646.797.3320
ba : 15-6736-2633
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Hans Wichman

Hi,
are you using as2 or as3?

greetz
JC


On 7/10/07, Nick Weekes [EMAIL PROTECTED] wrote:


Flashtracer doesn't work with the latest version of the debug player
(according to the link below).  Shame, as it's a nice idea.

xRay is really the debugging tool you should use, its of such a high
quality.  Did you look at the video tutorials:


http://labs.blitzagency.com/wp-content/xray/videos/tutorials/indexFlash.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcelo
Wolfgang
Sent: 10 July 2007 15:41
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Tips and advice for online bugtracking

Mike Lyda wrote:
 another option..   flashtracer for firefox (from Alessandro Crugnola)
 https://addons.mozilla.org/en-US/firefox/addon/3469
 you need the flash player debug version installed, but flashtracer can
 be very handy and entertaining.. (browse the web and see what others
 are tracing out of their SWFs..)

I have this installed but I can't make it work ( just lost about an hour
in
the morning trying to make this work again with no success ) ...

I've tried the debbugers Hans told, but none worked ( or it didn't install
on CS 3, or my dumbness can't make them work since I'm a low to mid level
actionscripter )...

I still can't figure out what's happening on the browser that make the
movie
do not work ( it is calling a moviecliploader.onloadinit() but it's not
displaying the the loaded movieclip ... )

Thanks again
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RAR Decompress in ActionScript

2007-07-10 Thread Scott Inglis
Hello Everyone;
 
Has anyone seen a package for the decompression of RAR archives for
ActionScript out there? Just wanted to make sure we weren't re-inventing
the wheel.
 
Scott Inglis
Software Development - Planetwide Games

Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically
authorized to receive it. If you are not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
message and/or attachments is strictly prohibited. The company accepts
no liability for any damage caused by any virus transmitted by this
email. Furthermore, the company does not warrant a proper and complete
transmission of this information, nor does it accept liability for any
delays. If you have received this message in error, please contact the
sender and delete the message. Thank you.

 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Cualquier Argentino Flex Reveladores aquí ?

2007-07-10 Thread artur

por favor, contácteme fuera la lista.
tengo un proyecto creador de flexss que necesita su ayuda
gracias

please contact me off-list
i have a creative flex project that needs your help.
thanks


artur
www.design2dev.com
ny : 646.797.3320
ba : 15-6736-2633
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Remove double-click from IE

2007-07-10 Thread Paul Andrews
- Original Message - 
From: [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, July 10, 2007 3:47 PM
Subject: [Flashcoders] Remove double-click from IE



I'm green to this: what is the trick to getting a flash menu to require a
single click from IE browsers rather than two?


http://kb.adobe.com/selfservice/viewContent.do?externalId=7c29e252sliceId=1


CBP
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Marcelo Wolfgang

Hans Wichman wrote:

Hi,
are you using as2 or as3?

greetz
JC


as2
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread John VanHorn

works in IDE, but not on server usually = security/crossdomain issue, or
path issue. look for 404's using servicecapture.

essential debug tools:
flashtracer - links above
servicecapture - http://kevinlangdon.com/serviceCapture/

On 7/10/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote:


Hi all,

I have the type of problem I hate the most when developing flash. My swf
works fine locally, but it doesn't work at all on the web. And I'm about
as clueless one can be about debuggin this kind of problem.
So... can anyone spare some advices?

TIA
Marcelo Wolfgang
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
John Van Horn
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Muzak
You can enable Remote Debugging in the Flash IDE and then start a remote debug 
session (from within the IDE) while browsing the 
site.

File  Publish Settings  Flash tab
Select: Permit debugging (and fill in a password if you want)
Publish the swf (so it has the debug permission baked in).

Debug  Begin Remote Debug Session  ActionScript 2.0
You should then see a message in the Output panel saying: Waiting for Player 
to connect...
Open the flash app in browser, you'll be asked where the debugger is running: 
localhost..
and off you go..

regards,
Muzak

 I have this installed but I can't make it work ( just lost about an hour in 
 the morning trying to make this work again with no 
 success ) ...

 I've tried the debbugers Hans told, but none worked ( or it didn't install on 
 CS 3, or my dumbness can't make them work since I'm 
 a low to mid level actionscripter )...

 I still can't figure out what's happening on the browser that make the movie 
 do not work ( it is calling a 
 moviecliploader.onloadinit() but it's not displaying the the loaded movieclip 
 ... )

 Thanks again


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Marcelo Wolfgang

John VanHorn wrote:

works in IDE, but not on server usually = security/crossdomain issue, or
path issue. look for 404's using servicecapture.

essential debug tools:
flashtracer - links above
servicecapture - http://kevinlangdon.com/serviceCapture/
Thanks for the info about servicecapture, but it wasn't a 404 the 
problem ... as is turned out to be, it was simple and stupid mistake I 
was making of calling the wrong file.


I've coded stuff that I never had did before and I was blaming this for 
the problem when I should look for the simple things first.


After about 8 hours trying to figure out ...

Thanks for all who replied and gave me their opinions .. I've learned a 
lot here today


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread robert

On Jul 10, 2007, at 5:33 AM, Marcelo Wolfgang wrote:


Hi all,

I have the type of problem I hate the most when developing flash.  
My swf works fine locally, but it doesn't work at all on the web.  
And I'm about as clueless one can be about debuggin this kind of  
problem.

So... can anyone spare some advices?




Probably totally old school, but you could put a textarea component  
on the root of your movie. call it debug_tf.


when you want to trace as you might locally, just do:

// trace(xml loaded...);
_level0.debug_tf.text += xml loaded...\n;

fancy it up by adding a tiny button that can show or hide the textbox.

I don't know how well this would work in AS3 but works fine in AS2.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tips and advice for online bugtracking

2007-07-10 Thread Pedro Taranto

using FlashInspector with PixLib is very easy

http://osflash.org/luminicbox.log
http://osflash.org/projects/pixlib

--
Pedro Taranto

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Mixing data types in an array...

2007-07-10 Thread Mendelsohn, Michael
...is it considered acceptable?  Is it ok to mix data types in an array?

function getData(which):Array {
switch (which) {
case (A) :
return [A,{abc:dog}];
case (B) :
return [B,{def:cat}];
}
}

var goofy:String = getData(A)[1][abc];
var felix:String = getData(B)[1][def];
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Mixing data types in an array...

2007-07-10 Thread Hans Wichman

Hi,

well in the end everything is an object, so you are not really mixing
datatypes.

It all depends on the scope of your project I think, but seeing the code
below doesn't make me wanna be the maintainer of that project when its
author goes on vacation or sickleave :).

I think that in asking 'is this acceptable?' you are already answering your
own question. If you think its dubious, others will think its dubious.

greetz
JC


On 7/10/07, Mendelsohn, Michael [EMAIL PROTECTED] wrote:


...is it considered acceptable?  Is it ok to mix data types in an array?

function getData(which):Array {
   switch (which) {
   case (A) :
   return [A,{abc:dog}];
   case (B) :
   return [B,{def:cat}];
   }
}

var goofy:String = getData(A)[1][abc];
var felix:String = getData(B)[1][def];
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML loading and parsing problem

2007-07-10 Thread Omar Fouad

haha i use it :D but never when loading xml...

On 7/10/07, Steven Sacks [EMAIL PROTECTED] wrote:


 It's completely wrong to insist that you have to use a delegate in all
 situations.

Delegate is teh bomb dot com.  If u don't use it, ur n00b.

;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] reposting - Opening links in new window from ListBox component -

2007-07-10 Thread Dan Sherman and Bea Jackson

Hi all,
I'm re-posting hoping one of you will have pity on me!

I'm trying to get the links I have entered in a ListBox component to 
open in a new window.

(think target=_blank)

I used the following code which seemed to work fine on a Mac, but didn't 
work at all on a PC.


function handler() {
 getURL(dropdown.getSelectedItem().data, _blank);
}


Thanks in advance, I'm having trouble accessing the archives, so please 
forgive me if this has been answered before.


--dan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AS3 SWC Component assets not exporting

2007-07-10 Thread webgurl
Just wondering if anyone else has run into this problem... and what solutions
you may have.

I'm creating custom components that aren't extending the built-in UIComponent
class. My component .fla is built using a boundingBox_mc in Frame 1, and the
component assets in Frame 2 (same as AS2 V2 components), however when I export
the .swc none of it's assets get exported along with it.

I have been able to get this to work as an .fla component, but this project
requires that it uses .swc components. sigh :(

Can anyone shed some light on why the assets aren't being compiled into the
component .swc ? Does Flash CS3 just no longer support this, or is there a
crucial new undocumented step I'm missing?

Thanks
*.*   Sherri

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] just a site

2007-07-10 Thread mario gonzalez
I been wanting to put my site together in some form, something simple 
that just parsed my directory and spit out some xml of stuff i randomly 
make usually to test out something...


so finally i put it together, and here's what i got... of the stuff i 
have on the site, since it is what it is... stuff i've made for no 
reason and usually not finished it's not always awesome but there is 
some cool stuff on there.



http://onedayitwillmake.com/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] XML loading and parsing problem

2007-07-10 Thread Merrill, Jason
Delegate is teh bomb dot com.  If u don't use it, ur n00b.

Or you're using the current version of Actionscript, AS3. :) 

Jason Merrill
Bank of America  
GTO Learning  Leadership Development
eTools  Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] +Infinite Loop -Dignity

2007-07-10 Thread daniel

I feel really stupid right now. No, not that stupid. I mean  really stupid.
Take the highest level of stupid you can imagine and double that. Yes, now
you've got it!

I have a class named Game.

Game.start() calls setInterval(this, update, 1000).

Game.update() calls _gameScene.update().

_gameScene.update() has the following loop inside of it:

for (var i:Number = 0; i != elements.length; i++) {
elements[i].animation.update();
}

That FOR loop puts my humble PC into a coma. The variable 'elements' is not
undefined, and when I call trace(elements.length) I get '2'. I tried
clearing ASO cache (whatever that's worth right now) as a silly precaution.

Excuse me whilst I hang myself.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-10 Thread Enrico Tumilisar
Is it possible that the i != elements.length inside the for loop leads to
trouble? Maybe if it's change to ielements.length will be ok

Best Regards,
 
Enrico M Tumilisar
Interactive and Multimedia Developer - www.digi-can.com
+62.815.922.42.63
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of daniel
Sent: Wednesday, July 11, 2007 10:52 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] +Infinite Loop -Dignity

I feel really stupid right now. No, not that stupid. I mean  really stupid.
Take the highest level of stupid you can imagine and double that. Yes, now
you've got it!

I have a class named Game.

Game.start() calls setInterval(this, update, 1000).

Game.update() calls _gameScene.update().

_gameScene.update() has the following loop inside of it:

for (var i:Number = 0; i != elements.length; i++) {
elements[i].animation.update();
}

That FOR loop puts my humble PC into a coma. The variable 'elements' is not
undefined, and when I call trace(elements.length) I get '2'. I tried
clearing ASO cache (whatever that's worth right now) as a silly precaution.

Excuse me whilst I hang myself.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/894 - Release Date: 7/10/2007
5:44 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/894 - Release Date: 7/10/2007
5:44 PM
 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-10 Thread David Ngo
Why do you have so many hoops to jump through?

Try changing your for loop to this:
for (var i:Number = 0; i  elements.length; i++)


David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of daniel
Sent: Tuesday, July 10, 2007 11:52 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] +Infinite Loop -Dignity

I feel really stupid right now. No, not that stupid. I mean  really stupid.
Take the highest level of stupid you can imagine and double that. Yes, now
you've got it!

I have a class named Game.

Game.start() calls setInterval(this, update, 1000).

Game.update() calls _gameScene.update().

_gameScene.update() has the following loop inside of it:

for (var i:Number = 0; i != elements.length; i++) {
elements[i].animation.update();
}

That FOR loop puts my humble PC into a coma. The variable 'elements' is not
undefined, and when I call trace(elements.length) I get '2'. I tried
clearing ASO cache (whatever that's worth right now) as a silly precaution.

Excuse me whilst I hang myself.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com