Re: [Flashcoders] How do I create a CDATA node using AS2?
What I want to do is something like:class one { var x:XML; function addNode(parent:xmlNode) { var child:XMLNode=new XMLNode(3,"]]>"); parent.appendChild(child); } function go():String { return x.toString();} But what happens is the child node toString() produces "<..."So when go() runs I get something like "<..." What I want to do is have an XML object output a string that contains a CDATA node. The above example is greatly simplified. I actually have a class hierarchy, where the classes extend what is stored in the XML, and one of the derived classes needs to store CDATA. Thanks. --- On Wed, 5/11/11, Karl DeSaulniers wrote: From: Karl DeSaulniers Subject: Re: [Flashcoders] How do I create a CDATA node using AS2? To: "Flash Coders List" Date: Wednesday, May 11, 2011, 10:25 PM In the xml node itself, the nodes content wrapped CDATA in the XML or the result of that node wrapped in CDATA in flash? or or var result = ""; HTH, Karl On May 11, 2011, at 9:08 PM, jimlaf...@yahoo.com wrote: > I am using an xml object and need to have a cdata node written out when I use > toString() on the XML object > > On May 11, 2011, at 7:50 PM, Karl DeSaulniers wrote: > > > > > 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@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 > > ___ > 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How do I create a CDATA node using AS2?
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 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] regExp
In hexadecimal representation: A = 0x41, a = 0x61 ... All lowercase letters = uppercase + 0x20 0x20 = 32. From: Karl DeSaulniers To: Flash Coders List Sent: Thu, June 17, 2010 3:56:17 AM Subject: Re: [Flashcoders] regExp Nice! Thank you. On Jun 17, 2010, at 2:49 AM, Steven Sacks wrote: > http://www.asciitable.com/ > > a-z = 97-122 > A-Z = 65-90 > > 97 - 65 = 32 > > a-z = 26 letters > A-Z = 26 letters > 0-9 = 10 numbers > > 26 + 26 + 10 = 62 > > > On 6/16/2010 11:15 PM, Karl DeSaulniers wrote: >> Ah thanks Steve. >> So is 97 to 123 the placement of upper and lowercase letters and the >> numbers on the CharCode chart? >> and are the upper and lowercase letters 32 letters apart on the chart? >> Trying to understand where you got these values. Your solution is very >> good and interesting to me. >> Also, why random off of 62? Is that the total characters in the array >> alphaNumeric? >> Thank you for this. >> >> Karl > ___ > 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] omit trace statements from SWCs
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 what happens when I use "export to SWC". I still see trace statements from the component when testing in my test FLA. I'm using Flash CS4 and AS2 (required for the project I'm working on). Any ideas? Thanks Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
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 (or more) views generate identical UI events that have the identical effect upon the state of the application (change to the model), then I would use one controller. If one controller generates extra events, then I would use two controllers, with the more complex controller derived from the other controller. It would be possible to use conditional logic within one controller to handle multiple views, but this typically indicates the need for polymorphism (same message, different results), which is generally best implemented by having different classes. In my implementations, I have an class that represents the application that is the "chicken" or Main. The Main class has class variables for the model and each of the views. The model is created first, then I create a controller and a view, the controller is passed as a parameter to the view's constructor. The view is then registered as a listener with the model. I repeat the controller and view process as many times as needed. In the constructor method of the view class, the view class registers itself with the given model. Moock provides a good example of the MVC pattern in Essential AS 2.0. The example has the view classes create a default controller if one has not been provided, but I felt it easier to just require a controller to be provided in the constructor. As Moock indicates, "there is no single "right" way to implement MVC". I think he provides an excellent discussion of the pattern and choices that a developer can make in implementing the pattern. Jim From: Karina Steffens To: Flash Coders List Sent: Tue, March 30, 2010 9:53:34 AM Subject: RE: [Flashcoders] What good is a Controller? In your framework, would the one controller for each view also mean that can be only one view per controller? I tend to use a single model for multiple views (the model could consist of a number of classes, but it's still one "model layer"), it might make sense to do the same with the controller. To clarify, I don't mean only one controller for all the views, more like clusters of views with a single controller in their middle. Or does that break the pattern? Another question about your implementation - who's the chicken and who's the egg? Does the view instantiate its controller, the controller the view, or a Main class that creates all? In my current implementation, I have a Main application class (linked to the stage) that creates the Model, the (limited) Controller, and passes the View (which is a symbol on the stage with Class Linkage) to the controller. The Controller's only function is to link them all together as Broadcaster listeners (all Views listen/broadcast to all Models. The Controller is the third part of the equation, because it can listen/broadcast to both Views and Models, but it sort of stops there. I also have some parts of the View interacting with each other via Broadcaster, but I'm beginning to think that this should really be the Controller's function - to intercept messages from one View to another: for example, from a PageView to the MainView, or from a ComponentView (eg the menu or breadcrumbs) to a PageView if necessity arises. Then on the smaller scale of Page or Component, I suppose each could have their own Controller class that's still linked to the main MVC structure, so that it can talk to the Model, but doesn't handle communications with other Views. Does that make sense to you guys, or am I overcomplicating here? Karina Hi Jim, Thanks for the comprehensive examples, especially the clock face. I guess another advantage then would be the ability to swap the view instead of the controller, and (for example) have text-only console like view for testing & debugging? You might also say that Xray is another View. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Strange Problem
Sounds like you might need to do a "clean" build. Delete the ASO files and then build your SWF. From: Rohit Sharma To: Flash Coders List Sent: Tue, March 30, 2010 9:04:14 AM Subject: [Flashcoders] Re: Strange Problem Also, when I am trying to debug the swf or decompile the swf using HP swfscan, I am getting this info that the swf contains no actionscript code. On Tue, Mar 30, 2010 at 6:03 PM, Rohit Sharma wrote: > Hello everyone, > > I am trying to put my application on facebook. For that I am using the > AS3 API. > I created a class to handle all the FB related stuff and what I found was > that my swf compilation was taking huge time > and nothing was getting added to stage and compiler was reporting no > errors. > When I started debugging the cause what I found was that as soon as I > declare a private var, this error happens. > > Everything works fine in this case :- > > package teenpattiBase > { > import com.facebook.utils.FacebookSessionUtil; > > public class Fb_test1 > { > //private var session:FacebookSessionUtil; > > public function Fb_test1() > { > trace("the argument is getting called"); > } > } > } > > as soon as I remove the comments from the variable declaration the > compilation is taking too much time and nothing is getting added on stage. > > package teenpattiBase > { > import com.facebook.utils.FacebookSessionUtil; > > public class Fb_test1 > { > private var session:FacebookSessionUtil; > > public function Fb_test1() > { > trace("the argument is getting called"); > } > } > } > > I tried to debug it but am getting nowhere. > Please help. > > Thanks, > Rohit > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What good is a Controller?
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. * Each controller translates a "generic call" in itself into a specific call to the model that may or may not cause a state change. * In response to state changes, the model notifies all views. * The notification can include the state change information, OR * The view can request the state change information from the model. * The view changes updates what is presented to the user as needed based on the change in state. The reason to implement the listener in the controller is to separate the implementation of the business logic from the display logic. This makes the implementation of the specific function on the model independent of the generic function on the view. Example: an application has several views that each have a "next" and "previous" button. Each view registers the next button with its controllers next function. Each controller provides next and previous functions that invoke one or more methods on the model that may cause a state change. This provides a decoupling of the business logic from the display logic. If I want to change what is displayed, or how it is displayed, I change the view. If I want to change the response to user input, I change the controller. An example of why this is nice: I've got a clock face that I want to use as a stop watch (elapsed time) and as a timer (count-down timer). View could be identical, and just change the controller to change the functionality. Start, Stop and Reset would all have different meanings that are handled by the controller. I know that a bug in the timer code is independent of the stop watch code. In certain situations, it may be beneficial to implement a view as another instance of the MVC pattern. An example of this would be where a user is making choices in a configuration, and those choices don't get saved into the application state until the "OK" or "Apply" button is clicked. While the choices are being made, the views internal state is stored in the views model, and when OK is clicked the choices get stored into the application's model. Whether or not it's worthwhile to implement a view as another internal MVC pattern depends upon the complexity of the view vs. the added complexity of the overall system. IMHO, the choice should be to go with what makes the overall system the easiest to support. Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] bubbling listening
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). Each controller implements the "business logic" of the application. For example, on a calendar application, clicking the "next" button means go to the next day, week, month, year depending upon the screen. A click on the previous button means similar. There could be 4 controllers (day, week, month, year) each having a "next" and a "previous" function. The controller then invokes a method on the model to cause a state change - Day controller next function could invoke updateDay(+1) on model while the Week controller next function could invoke updateDay(+7) on model. The previous method on same controllers could invoke updateDay(-1) or updateDay(-7). After a change in state, the model informs all views of the change in state. The model can include the state change in the notification (model pushes the data out) or the model can require that the view ask for the information (views must pull the data out). The view responds to the notification by updating the presentation to the user (if needed). HTH Jim From: "Mattheis, Erik (MIN - WSW)" To: Flash Coders List Sent: Thu, March 18, 2010 5:42:42 PM Subject: RE: [Flashcoders] bubbling listening I've been thinking about the below message from Jason and tried rearranging a simple project into a MVC for a while this afternoon, but couldn't figure out how to do it without breaking encapsulation. I think I'm not getting the MVC advantage because I don't understand one of two things - or maybe something else: The controller listens to an event from the model, how does the controller inform the view to react without a) breaking encapsulation or b)dispatching another event the view is listening for. In b it would seem better to me to have the view listen to the model directly. I tried it both with the controller being the document class and not. Help? Is there a simple example someone can point me to? _ _ _ 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 Merrill, Jason Sent: Thursday, March 18, 2010 9:51 AM To: Flash Coders List Subject: RE: [Flashcoders] bubbling listening Well, that's OK and you don't even have to get fancy yet - just write a class that has references to all the display objects, and listens to your custom events. It also has the handlers in it to respond to the events. This in effect, is a "controller" class. Jason Merrill ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Passing Call To Child
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 wrote: From: Susan Day Subject: Re: [Flashcoders] Passing Call To Child To: "Flash Coders List" Date: Thursday, March 11, 2010, 12:57 PM On Thu, Mar 11, 2010 at 1:23 PM, Paul Andrews wrote: > Well it shows that it has nothing to do with the ".html" being missing and > nowhere have you shown where you assigned the string with ".html" added. > I believe I made it clear before that I assign the ".html" to the url. I believe most urls end in html, py, php, asp, etc., and that most variables with a url would be written like a url. I have mentioned previously that this var prints out correctly in the fn in which it is defined and incorrectly--specifying without the html--in the onClick fn. Yes, I believe I've made this clear before. And I'm making it clear again. Why is it that the assigning fn traces this var with the extension and that the onClick fn doesn't?? > > We are going around in circles. > I don't think that's my fault, sorry. Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DataGrid - Height - Scrollbar
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 wrote: From: Lehr, Theodore Subject: [Flashcoders] DataGrid - Height - Scrollbar To: "Flash Coders List" Date: Thursday, March 11, 2010, 1:36 PM I can not seem to get a vertical scrollbar - my datagrid sets it's height to the content... I would like a height I set and have scrolling if neccessary... what am I doing wrong? ___ 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
[Flashcoders] components
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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DoubleClick AS2 swc/library
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 (thefieldcomic.com) wrote: From: allandt bik-elliott (thefieldcomic.com) Subject: [Flashcoders] DoubleClick AS2 swc/library To: "Flash Coders List" Date: Monday, March 1, 2010, 9:36 AM hey guys does anyone know if DoubleClick have an AS2 library so that I can use it to write a class in flashdevelop? thanks a ___ 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
[Flashcoders] Is Object.registerClass still needed with attachMovie?
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 mistaken when I used CS3 or has this been "fixed"? Thanks, Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS2 SWFs with pageFlipper component
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 wrote: From: Alan Neilsen Subject: [Flashcoders] AS2 SWFs with pageFlipper component To: "'flashcoders@chattyfig.figleaf.com'" Date: Thursday, February 4, 2010, 9:09 PM I have 12 x AS2 SWFs (build in CS4 Pro) that each use a purchased flipbook component called pageFlipper. These SWFs are AS2 because this component doesn't work in AS3. The 12 SWF using this component are loaded at various places into a main interface that is AS3, also built in CS4 Pro. When I run the interface and go to a screen where one of the AS2 SWFs is loaded it works fine, but when I go to any of the other screens where another of the AS2 SWFs is loaded, the flipbook does not appear. It does not matter which order I try this; whichever of the 12 AS2 SWFs that loads first is the only one that works. In each case the loaded AS2 SWF is removed from the main program with loader_clip.removeChild(ldr) when I navigate away from the screen where it was loadd. It seems to me that I also need to do something to remove the component as well so it will work again when a subsequent SWF using it is loaded. Can anyone shed any light on why it only works on the first SWF loaded, and what I might do to make it work when subsequent SWFs are loaded? Alan Neilsen This message is for the named person’s use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or; lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. # This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal # ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] making a repeating effect
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 instead of "timer". --- On Thu, 2/4/10, Gustavo Duenas wrote: From: Gustavo Duenas Subject: Re: [Flashcoders] making a repeating effect To: "Flash Coders List" Date: Thursday, February 4, 2010, 4:14 PM I've downloaded thanks on other matters, when you say using a timer, you mean something like this ( I've have this from a tutorial, mixing with my idea); something like this? import flash.utils.*; var timer:Timer = new Timer(5000); timer.addEventListener("timer",TimedFunction); timer.start(); function timedFuntion(e:TimerEvent):void{ var heart:MovieClip = new Heart(); heart.x = Math.random * stage.stageWidth; heart.y = Math.random * stage.stageHeight; } the question is , how can I stop this? Gus On Feb 4, 2010, at 3:40 PM, Jer Brand wrote: > Completely un-helpful for your code, but you could also give HYPE a > whirl. Have been having a blast playing with it lately. I think the > above task is one of the examples. > > http://hype.joshuadavis.com/ > ___ > 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] making a repeating effect
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 wrote: From: Nathan Mynarcik Subject: Re: [Flashcoders] making a repeating effect To: "Flash Coders List" Date: Thursday, February 4, 2010, 3:16 PM Add each heart to the stage with alpha at 0. Then use a tween engine to fade the heart in with a delay. Use your "i" variable as the delay in seconds. --Original Message-- From: Gustavo Duenas Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] making a repeating effect Sent: Feb 4, 2010 2:00 PM Hi Guys, I'm trying to accomplish this: so far I a mac named heart which is hence a heart, so I'm trying to make a repetition of it along the screen until it reach the number of 1000 or less, but so far I don't have the effect of its repeating one to one, instead I have all of them at the same time, there is a way to do this, maybe I'm losing something if anyone of you knows a site where that effects is explained for not left brainers as me, let me know. Gus. here is my code stop() import flash.display.*; for(var i:Number=0; i<5000; i++){ var heart:MovieClip = new Heart(); heart.width= Math.random()*i *2; heart.height=Math.random()*i * 2; heart.x=Math.random()*i *2; heart.y=Math.random()*i *2; addChild(heart); trace(heart); } //true is I have a lot of hearts on the screen but I would like those to start appearing one to one. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Known memory leaks in FP10
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 Boer wrote: From: W.R. de Boer Subject: [Flashcoders] Known memory leaks in FP10 To: "Flash Coders" Date: Saturday, January 30, 2010, 3:02 PM Hello, I am currently working on an interesting project that has to be able to run as long as possible. But at the moment I can't get it running more two hours after that the FlashPlayer.exe has 100% CPU usages and crawls down the system in such manner the player has to be killed. Now I am trying to use the Flex Builder's Profiler to find any memory leaks but I don't have much luck yet because the Flash Player keeps crashing when being run via the profiler. Now my questions are: (a) Are their any known memory leaks in the FP10 when using: (1) secondary or client SWFs files (main swf > client.swf) (2) playback of video (3) use of client swfs with only timeline-based animations/assets (b) Are their any lists with all the open memory leaks in FP10? (c) Anyone been able to use the listed techniques/features listed in (a) for more then 300+ hours? (d) Would the use of FP10.1 might improve the situation? P.S. If anyone know some people at Adobe who could give me tips or help me, I would love to get introduced. A desperate Flash user, Thanks in advance, Weyert de Boer ___ 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
[Flashcoders] need help with mask layers with CS4 publishing for flash player 8
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 into the text field. If I publish for FP 8, I can't see any text - FP 8 is a requirement for work. If I put the text field into a seperate MC and then create an instance of the MC, still doesn't work. If I put graphics on layer 1 (beneath the mask) they appear when test. Is there something I am missing or is this just broken? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How to change the String Settings using JSFL?
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@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How do I create a device profile for CS4? Or where can I find some docs?
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 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] can I get some recommendations for development tools?
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 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [MEMORY LEAK]
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 XML file has nodes with an attribute of id. --- On Thu, 10/1/09, Ian Thomas wrote: From: Ian Thomas Subject: Re: [Flashcoders] [MEMORY LEAK] To: "Flash Coders List" Date: Thursday, October 1, 2009, 4:17 AM Just out of interest - why are you recreating the Loader() and re-adding the listeners each time? It should work if you just create the Loader once, add the listeners once - then every time you call load() with a new URLRequest, you'll get new progress and complete events. Might help with your leaks. HTH, Ian On Thu, Oct 1, 2009 at 2:28 AM, TS wrote: > Thanks for the info. Still reading it but, fme, it seems silly there's not > an ExitRestart() method or something. > > Thanks, T > > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Chris Foster > Sent: Wednesday, September 30, 2009 7:08 PM > To: Flash Coders List > Subject: RE: [Flashcoders] [MEMORY LEAK] > > Hi T, > > No solution here, but this might relate to your current problem: > http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html > > > C: > > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of TS > Sent: Thursday, 1 October 2009 10:53 AM > To: 'Flash Coders List' > Subject: [Flashcoders] [MEMORY LEAK] > > Hello, this issue is killing me. I had a swf that loaded an xml file > then loaded images from the xml file and then killed the display list, > xml, images etc... then restarted based on a timer. Every time it > reloads however, I watch firefox take away memory consistently and when > I refresh that page memory use drops back to normal. So, I said screw > this, I'm going to create an empty swf and load the swf with all the > magic in it and add it to the empty swf. I figured if I add the swf to > the main stage and kill that one reference to the swf when I was done > with it, I should have fixed my problem. Here's my code. Can someone > please tell me what is going on? > > > stop(); > > var mLoader:Loader = new Loader(); > function startLoad() > { > var mRequest:URLRequest = new > URLRequest("hasch_flash/currently_watched_videos.swf"); > //var mRequest:URLRequest = new > URLRequest("currently_watched_videos.swf"); > mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, > onCompleteHandler, false, 0, true); > > mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, > onProgressHandler, false, 0, true); > mLoader.load(mRequest); > } > > function onCompleteHandler(loadEvent:Event) > { > trace("load " + loadEvent.currentTarget.content); > trace("loadTarget " + loadEvent.target); > addChild(loadEvent.currentTarget.content); > } > function onProgressHandler(mProgress:ProgressEvent) > { > var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal; > trace(percent); > } > startLoad(); > > > TimerExample(); > > // Set off timer to kill carousel and restart movie function > TimerExample() { > var myTimer:Timer = new Timer(3, 0); > myTimer.addEventListener("timer", timerHandler); > myTimer.start(); > } > > function timerHandler(event:TimerEvent):void { > trace(this.removeChildAt(0)); // remove from display list > mLoader = null; > mLoader = new Loader(); // clear from memory > startLoad(); > trace("timerHandler: " + event); > } > > > Thanks for any advice. T > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > This e-mail, including any attached files, may contain confidential and > privileged information for the sole use of the intended recipient. Any > review, use, distribution, or disclosure by others is strictly prohibited. > If you are not the intended recipient (or authorized to receive information > for the intended recipient), please contact the sender by reply e-mail and > delete all copies of this message. > > ___ > 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 > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders
Re: [Flashcoders] Problem understanding Class heirarchy issue
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 wrote: From: Steven Sacks Subject: Re: [Flashcoders] Problem understanding Class heirarchy issue To: "Flash Coders List" Date: Tuesday, September 1, 2009, 9:11 AM You're not calling super() in the ClassA constructor. On Aug 31, 2009, at 11:12 PM, Sajid Saiyed wrote: > Ok, Here is a bit more information. > > ClassA (works pefrectly fine): > --- > package com.folder.subfolder > { > import flash.display.*; > import flash.events.*; > import flash.filters.*; > import flash.utils.Timer; > import com.folder.subfolder.*; > > public class ClassA extends ClassC > { > public var myMenu: ClassB; > > public function ClassA (){ > addEventListener(ClassC.moveUP, someFunction); > } > public function someFunction(){ > myMenu = new ClassB(); > myMenu.name = "mymenu"; > this.addChild(myMenu); > } > > } > } > > ClassB > --- > package com.folder.subfolder > { > import flash.display.*; > import flash.events.*; > import flash.filters.*; > import flash.utils.Timer; > import com.folder.subfolder.*; > > public class ClassB extends ClassC > { > public function ClassB (){ > // This is not getting called. > } > } > } > > > Does this explanation help a bit?? > Am I looking at the right place for the problem or the problem could > be somewhere else? > > Thanks > Sajid ___ 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
[Flashcoders] Memory leaks using XML in Flash Lite 3
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] (no subject)
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 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeMovieClip, Flashlite3, AS2
When I list out the properties of "this" I am seeing something along the lines of _level0.movie1.aMovie0 Where movie1 is another movie clip that was also loaded. Shouldn't aMovie0 be "removed" since the movie clip was removed when I did: my_mc.removeMovieClip(); Or is this the mysterious second reference that I need to delete? --- On Wed, 8/5/09, Juan Delgado wrote: From: Juan Delgado Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2 To: "Flash Coders List" Date: Wednesday, August 5, 2009, 7:19 AM Assuming you have no listeners attached to it or other external references to the object, try this: mc.removeMovieClip(); mc = null; delete mc; Yes, it's a pain in the ass, but you need it to keep footprint low on mobile devices. HTH, Juan On Tue, Aug 4, 2009 at 10:15 PM, Jim Lafser wrote: > Tried that. Have also verified that the depth is in valid range. > > --- On Tue, 8/4/09, Karl DeSaulniers wrote: > > > From: Karl DeSaulniers > Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2 > To: "Flash Coders List" > Date: 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 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 >> my_mc.removeMovieClip(); >> >> If I list the properties of "this" using for(var i in this) >> >> I can see that aMovieX still exists. >> I've tried doing a removeMovie on aMovieX, but that doesn't work either. >> The movie clip has an onUnload method and I can see that it gets called. >> Any suggestions? >> >> >> >> >> >> ___ >> 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 > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Juan Delgado - Zárate http://zarate.tv http://blog.zarate.tv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeMovieClip, Flashlite3, AS2
Tried that. Have also verified that the depth is in valid range. --- On Tue, 8/4/09, Karl DeSaulniers wrote: From: Karl DeSaulniers Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2 To: "Flash Coders List" Date: 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 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 > my_mc.removeMovieClip(); > > If I list the properties of "this" using for(var i in this) > > I can see that aMovieX still exists. > I've tried doing a removeMovie on aMovieX, but that doesn't work either. > The movie clip has an onUnload method and I can see that it gets called. > Any suggestions? > > > > > > ___ > 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] removeMovieClip, Flashlite3, AS2
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 my_mc.removeMovieClip(); If I list the properties of "this" using for(var i in this) I can see that aMovieX still exists. I've tried doing a removeMovie on aMovieX, but that doesn't work either. The movie clip has an onUnload method and I can see that it gets called. Any suggestions? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders