Re: [Flashcoders] How do I create a CDATA node using AS2?

2011-05-12 Thread Jim Lafser
]] On May 11, 2011, at 6:45 PM, Jim Lafser wrote: Anyone know how to create a CDATA node when writing XML in AS2?I tried Google. I looked in the books I've got.I tried extending XMLNode.I've had no success. ___ Flashcoders mailing list

[Flashcoders] How do I create a CDATA node using AS2?

2011-05-11 Thread Jim Lafser
Anyone know how to create a CDATA node when writing XML in AS2?I tried Google. I looked in the books I've got.I tried extending XMLNode.I've had no success. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] regExp

2010-06-17 Thread Jim Lafser
In hexadecimal representation: A = 0x41, a = 0x61 ... All lowercase letters = uppercase + 0x20 0x20 = 32. From: Karl DeSaulniers k...@designdrumm.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thu, June 17, 2010 3:56:17 AM Subject: Re:

[Flashcoders] omit trace statements from SWCs

2010-05-04 Thread Jim Lafser
I've been working on a component and while developing have been using trace statements. Now I want to publish the component for others to use and want to omit the trace statements. I've changed the setting in the FLA that I've used for the component development, but it doesn't seem to affect

Re: [Flashcoders] What good is a Controller?

2010-03-31 Thread Jim Lafser
Assuming that all the UI events created by one clock face (view) are included in the events on the other clock face (another view) and the events are defined by the business rules to have identical effects on the state of the application, then the same controller could be used for both. If two

Re: [Flashcoders] Re: Strange Problem

2010-03-30 Thread Jim Lafser
Sounds like you might need to do a clean build. Delete the ASO files and then build your SWF. From: Rohit Sharma rohit.sharma1...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, March 30, 2010 9:04:14 AM Subject: [Flashcoders] Re:

Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread Jim Lafser
When I've implemented MVC: * I have one controller for each view * Each view knows about it's controller, but only as a generic controller (either as an interface or a base class) * Each View registers it's controller as the event listener for each of it's buttons.

Re: [Flashcoders] bubbling listening

2010-03-19 Thread Jim Lafser
Essential AS 2.0 has a MVC example (in AS 2, of course). In MVC, the model essentially encapsulates the state of the application. The model provides methods that the controller(s) invoke to change the state. The model also handles system events that cause a state change (i.e. timer event).

Re: [Flashcoders] DataGrid - Height - Scrollbar

2010-03-11 Thread Jim Lafser
You are using setSize() right? That's how components figure out the space they have to work in. --- On Thu, 3/11/10, Lehr, Theodore ted_l...@federal.dell.com wrote: From: Lehr, Theodore ted_l...@federal.dell.com Subject: [Flashcoders] DataGrid - Height - Scrollbar To: Flash Coders List

Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Jim Lafser
You are holding onto the string reference created after addding the .html and not the reference to the object that doesn't have the .html, right? --- On Thu, 3/11/10, Susan Day suzieprogram...@gmail.com wrote: From: Susan Day suzieprogram...@gmail.com Subject: Re: [Flashcoders] Passing Call To

[Flashcoders] components

2010-03-05 Thread Jim Lafser
I've been doing some component development and have seen some posts for MXI creators / editors. I can't seem to find the right words for Google to actually locate one. Any help?   If this is off-topic and there's a better place to ask. let me know.   tia

Re: [Flashcoders] DoubleClick AS2 swc/library

2010-03-01 Thread Jim Lafser
If you have a SWC, you should have the file. Open the SWC using something that can look at pkzip format files. Extract the .ASI file that is the class you are interfacing. Assume you know where the file needs to be located for use by FlashDevelop. Jim --- On Mon, 3/1/10, allandt bik-elliott

[Flashcoders] Is Object.registerClass still needed with attachMovie?

2010-02-23 Thread Jim Lafser
I was using Flash CS3 and it seemed like I needed to use Object.registerClass to get a movie clip that I attached wrapped in my class. Seemed like the class identifier in the library did not work. Now I'm using CS4 and it looks like the class identifier in the library does work. Was I just

Re: [Flashcoders] AS2 SWFs with pageFlipper component

2010-02-05 Thread Jim Lafser
Might be a problem with flash player caching classes. If you use the same class in your AS2 SWFs and have a static variables it can cause this type of problem. --- On Thu, 2/4/10, Alan Neilsen aneil...@gotafe.vic.edu.au wrote: From: Alan Neilsen aneil...@gotafe.vic.edu.au Subject:

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Jim Lafser
If you want to see the hearts to appear one at a time you need to add them at a rate slower than your frame rate (give the stage a chance to update). Might want to use setInterval to add the hearts.   hth --- On Thu, 2/4/10, Nathan Mynarcik nat...@mynarcik.com wrote: From: Nathan Mynarcik

Re: [Flashcoders] making a repeating effect

2010-02-04 Thread Jim Lafser
Add second param when instantiate Timer which indicates how many times it should repeat. If don't specify, then defaults to 0 which means run forever. Add an event listener for the Timer.timerComplete event. I think the listener you've already got should be registering for the Timer.timer event

Re: [Flashcoders] Known memory leaks in FP10

2010-01-30 Thread Jim Lafser
Only memory leak I encountered was with use of XML class. The idMap property needed to be deleted explicitly to fix the leak. This was using Flashlite 3.1. (BTW tracing idMap would show undefined - if use ObjectDumper would get a different trace result.)   HTH Jim --- On Sat, 1/30/10, W.R. de

[Flashcoders] need help with mask layers with CS4 publishing for flash player 8

2010-01-22 Thread Jim Lafser
I've been trying to create a scrollable text field as an exercise. I create a multi-line text field on layer 1, then I right click layer 2 and select mask I then unlock layer 2 and draw a filled rectangle that covers the entire text field. If I publish for FP 10, I can see any text I entered

[Flashcoders] How to change the String Settings using JSFL?

2010-01-15 Thread Jim Lafser
I'm writing some JSFL and I can't find a way to change how strings are handled by Flash. Anyone know how to get to the data that shows up in the settings dialog of the Strings Panel?   Jim ___ Flashcoders mailing list

[Flashcoders] How do I create a device profile for CS4? Or where can I find some docs?

2010-01-05 Thread Jim Lafser
I've been looking for some documentation on how to create a device profile for CS4 and can't find any. So, how do they get created? How can I create one?   Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] can I get some recommendations for development tools?

2009-12-16 Thread Jim Lafser
I'm trying to figure out what are some good tools to use for developing flash apps and could use some recommendations. Thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] [MEMORY LEAK]

2009-10-01 Thread Jim Lafser
Problem might be with the XML class. I've seen problems in Flash Lite 3 where the idMap property of the XML class had to be deleted to prevent a memory leak. Tracing idMap will say undefined, must use ObjectDumper to see what it's actually pointing at. It appears that it will leak only if the

Re: [Flashcoders] Problem understanding Class heirarchy issue

2009-09-01 Thread Jim Lafser
Have you verified that someFunciton is getting called? Is someFunction getting called in the scope that you expect? May need to use:     addEventListener(ClassC.moveUP, Delegate.create(this, someFunction); to get someFunciton to run in the scope that you expect. --- On Tue, 9/1/09, Steven Sacks

[Flashcoders] (no subject)

2009-08-13 Thread Jim Lafser
I'm fighting memory leaks in Flash Lite 3. I've determined one of my problems is XML class. Any idea what's causing the leak. It leaks only if I parse the data.   Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Memory leaks using XML in Flash Lite 3

2009-08-13 Thread Jim Lafser
I've been fighting memory leaks. I've narrowed it down to use of XML class, but only if I actually parse the data. Using onData doesn't leak, onLoad leaks, parseXML leaks and new XML(str) leaks.   Any Ideas?   Thanks ___ Flashcoders mailing list

Re: [Flashcoders] removeMovieClip, Flashlite3, AS2

2009-08-05 Thread Jim Lafser
, Jim Lafser wrote: I'm having some trouble with removeMovieClip - it doesn't appear to be working I have code that does an attachMovie that looks like: var my_mt_mc:MovieClip = createEmptyMovieClip( ... ); var my_mc:MovieClip = attachMovie(linkageId, aMovie+depth, depth, init); and later I

[Flashcoders] removeMovieClip, Flashlite3, AS2

2009-08-04 Thread Jim Lafser
I'm having some trouble with removeMovieClip - it doesn't appear to be working I have code that does an attachMovie that looks like: var my_mt_mc:MovieClip = createEmptyMovieClip( ... ); var my_mc:MovieClip = attachMovie(linkageId, aMovie+depth, depth, init);   and later I do

Re: [Flashcoders] removeMovieClip, Flashlite3, AS2

2009-08-04 Thread Jim Lafser
: Tuesday, August 4, 2009, 4:32 PM Hi, I have a suggestion, but someone may have a more in-depth answer. Have you tried just using: removeMovieClip(my_mc); ? Best, Karl DeSaulniers Design Drumm k...@designdrumm.com http://designdrumm.com On Aug 4, 2009, at 3:15 PM, Jim Lafser wrote: I'm