[Flashcoders] AS2.0 - Parsing special HTML characters in CDATA - onLoad vs onData

2010-08-16 Thread Greg Ligierko
Hi everyone, It is a bit outdated topic of AS2.0. I just wonder if somebody can explain me why onLoad and (inderectly) onData produces different CDATA node values. I lost a lot of time trying to figure this out, searching the Web did not help much... Let's consider an XML file source:

Re[2]: [Flashcoders] AS3 - Objective-C

2010-03-20 Thread Greg Ligierko
I am learning ObjC for about a month. The purpose is porting and existing AS2 application to iphone/ipad. Having very poor C experence I can say, that knowing C is not something essential to familiarize and then working fore real with apple frameworks. Before I started XCode for good, I bought

Re: [Flashcoders] Registration Point Issue

2010-02-09 Thread Greg Ligierko
All display objects have registration points (their internal 0,0 coordinates). Also bitmaps. By default a loaded image (png) has its registration point in the top-left corner. If you like to get rid of the improperly set registration point then you may place the loaded image into a parent

Re: [Flashcoders] Registration Point Issue

2010-02-09 Thread Greg Ligierko
PM) beno - wrote: On Tue, Feb 9, 2010 at 8:24 AM, Greg Ligierko gre...@l-d5.com wrote: All display objects have registration points (their internal 0,0 coordinates). Also bitmaps. By default a loaded image (png) has its registration point in the top-left corner. If you like to get rid

Re: [Flashcoders] Registration Point Issue

2010-02-09 Thread Greg Ligierko
Thanks. g Tuesday, February 09, 2010 (3:36:30 PM) Henrik Andersson wrote: Allow me to explain why it is bad. It is due to the object only being created once. Not once per instance of the class, but once total. This is clearly going to cause issues for any class that is used more than once.

Re: [Flashcoders] Registration Point Issue

2010-02-09 Thread Greg Ligierko
I tested this: package { public class MyClass { private static var instNum:Number = 0; public var someObj:Object = new Object(); public function MyClass() { someObj.name = Sun + MyClass.instNum++; } } } and tracing later gives: var mc1:MyClass =

Re: [Flashcoders] MouseMove - performance issues

2010-02-01 Thread Greg Ligierko
If the code must be really called for each mouse move, then I have no solutions . However if it is not crucial to execute all code for each event, then perhaps you could add an incremental flag and execute code for some of the events only, eg: events_count = 0 MOUSE MOVE

Re: [Flashcoders] WIRED hates Flash

2010-01-29 Thread Greg Ligierko
So, what about iPhone and CS5 ? Isn't going to be the same path with iPad and just matter of time ? g Friday, January 29, 2010 (2:53:24 PM) artur wrote: i have an agency client who i get a lot of flash work from. however they are not technically saavy and they're EASILY swayed when they

Re: [Flashcoders] Rotation

2010-01-26 Thread Greg Ligierko
Another resource about teewning and Flash animation basics: http://animation.about.com/od/flashbasicstweening/Flash_Basics_Tweening.htm g Tuesday, January 26, 2010 (3:04:21 PM) - beno wrote: On Tue, Jan 26, 2010 at 9:17 AM, Geografiek geograf...@geografiek.nlwrote: Hi Beno, This might help:

Re: [Flashcoders] Design pattern?

2010-01-18 Thread Greg Ligierko
I do not have the feeling how user interacts with the buttons. I am just guessing that each button will be clicked many times in one sequence and after reaching the desired state (a,b,c,...c,d,a,B) user will move the cursor to a next button (or close the window). If this is the scenario, then

Re: [Flashcoders] Design pattern?

2010-01-18 Thread Greg Ligierko
://pro-thoughts.blogspot.com/2006/03/onbeforeunload-event.html g Monday, January 18, 2010 (6:29:08 PM) Paul Andrews wrote: Greg Ligierko wrote: I do not have the feeling how user interacts with the buttons. I am just guessing that each button will be clicked many times in one sequence and after

Re: [Flashcoders] What is your policy on loading files?

2010-01-15 Thread Greg Ligierko
I agree with Glenn... it depends on size, particular example and is often a speculation before the project starts running. If this is going to be a micro-engine, why not add a set of modes and use one depending on site. However this would mean a lot of work and testing. Perhaps a more elastic

[Flashcoders] Declaring Function Variables

2010-01-08 Thread Greg Ligierko
...Or if you like to perform a recursion (particular case of nesting). I do not belive there is a good way to re-declare a variable inside the scope of one function. (?) You could comment out vars, copy/paste them with active code and uncomment when needed; it is more a text editor issue: //var

Re: [Flashcoders] A utility to extract Actionscript from an FLA, and create .as files

2010-01-06 Thread Greg Ligierko
This resource probably appeared on the list some time ago. It is a good start point if you like to recombine a JSFL: http://dynamicflash.com/jsfl/#Library I can see oyFashDoc.jsfl file builds XML tracing results to the output screen, which is finally saved as an XML file. You should probably just

Re: [Flashcoders] Loading and resizing images despite wrong crossdomain.xml

2009-12-28 Thread Greg Ligierko
Alexander, I don't know if your question is still up-to-date. I do not have much experience in AS3 external content loading, but this should be similar to AS2.0 You can load any images without any security grants from any domain you like. The restriction is added to objects that are related

Re: [Flashcoders] Bizarre Issue

2009-12-15 Thread Greg Ligierko
It's hard to say... A few questions: - do you see all contents when you remove fading completely, i.e. when you set 100% alpha at the beginning ? - did you try starting fade with alpha 50% ? - what kind of event do you use for fading, enter frame or a timer/interval ? - are images loaded into

[Flashcoders] What IDE on Mac ?

2009-12-14 Thread Greg Ligierko
I grown up with PC, Windows and in work I am completely happy with FlashDevelop + CS3. For some time I am also a happy MacBook user, but it is hard for me to swap with AS2/AS3 coding to Mac. So far I could not establish a comfortable work environment on Mac. I read about two options: - adapting

Re: [Flashcoders] What IDE on Mac ?

2009-12-14 Thread Greg Ligierko
wrote: FDT is pretty much your best choice. On 12/14/2009 3:53 AM, Greg Ligierko wrote: I grown up with PC, Windows and in work I am completely happy with FlashDevelop + CS3. For some time I am also a happy MacBook user, but it is hard for me to swap with AS2/AS3 coding to Mac. So far I could

Re: [Flashcoders] What IDE on Mac ?

2009-12-14 Thread Greg Ligierko
Thanks a lot. FDT looks impressive. I am testing the trial and seems to be very powerful. Auto creation of props and methods is cool. What is also important, very easy to install and set up. g Monday, December 14, 2009 (3:14:28 PM) Steven Sacks wrote: If you want to see an example of FDT in

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Greg Ligierko
Well... Code without braces may look a bit confusing, but that depends on what somebody is used to and just what you like. An example when I often bypass braces is setting default values for AS2 function arguments: function funName(arg1:Number, arg2:Object):Object { if(isNaN(arg1)) arg1 = 0;

Re: [Flashcoders] Re:Trying to set multiple images to 'export for AS' with JSFL

2009-12-09 Thread Greg Ligierko
If you haven't seen this already: http://code.google.com/p/fueljsfl/ There is a set of interesting JSFL scripts for various purposes. Also manipulation of bitmap items. But I cannot bet there is the exact case. g Wednesday, December 09, 2009 (12:48:52 AM) napisano: Thanks guys. I found a

Re[2]: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Greg Ligierko
PM) Paul Andrews: Greg Ligierko wrote: Well... Code without braces may look a bit confusing, but that depends on what somebody is used to and just what you like. An example when I often bypass braces is setting default values for AS2 function arguments: function funName(arg1:Number, arg2

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Greg Ligierko
Using just a set of functions is not oop. It's rather procedural programming. However it works, it is difficult to reuse or make something really large scale or cooperate with other programmers basing on procedural code. You can write procedural-AS3, but there is not point of doing that. And you

Re: [Flashcoders] Minimizing Code: Logic Issue

2009-12-08 Thread Greg Ligierko
What kind of method do you use in findValue() to compare the movieclips ? If you are using _name then it might be to short string: var mc = createEmptyMovieClip(aaa,0); trace(mc: +mc); trace(mc: +mc._name); trace(mc: +String(mc)); outputs: mc: _level0.aaa mc: aaa mc: _level0.aaa Maybe you

Re: [Flashcoders] Back On Course, Still Problems

2009-12-08 Thread Greg Ligierko
I don't think, because braces are not required when the there is only one statement ended with semicolor: //code if(something) doSomething(); // semicolon ends the scope here... //code ... the second brace was ending the myLeftHand() method. I think that that the problem with this line was

Re[2]: [Flashcoders] Back On Course, Still Problems

2009-12-08 Thread Greg Ligierko
of braces for later :) Greg Tuesday, December 08, 2009 (11:36:17 PM): Greg, I see your point. I am more familiar with AS2, so oops. I will be migrating soon. I promise. Karl On Dec 8, 2009, at 3:50 PM, Greg Ligierko wrote: I don't think, because braces are not required when the there is only

Re: [Flashcoders] Back On Course, Still Problems

2009-12-07 Thread Greg Ligierko
Beno, Jason mentions trace. This one is really essential. You can use trace inside any part for code, it is inside methods or directly in frame code. Add these trace lines to your code and start playing with them: public function Main():void { trace(Who I am ? I must be: + this);

Re[2]: [Flashcoders] Still Infinitely Looping

2009-11-26 Thread Greg Ligierko
Few words defending enterframe... AS1 required manual initialization of broadcaster objects while Movieclip events where simple: on(release), on(enterframe)... AS2 provides EventDispatcher class. Using it may be considered as somehow more advanced technique. But AS2 still allows using such

Re: [Flashcoders] A variable nodemapid= makes embed gone (IE and FF)

2009-11-24 Thread Greg Ligierko
embed, so the issue is probably only PC IE/FF related (assuming it is not my PC and only my PC). g Monday, November 23, 2009 (8:59:58 PM) Greg Ligierko wrote: Thanks, Yes I am aware of the swfObject. We are working on an Flash application that can be embedded from external hosts, by any

Re: [Flashcoders] addChild and Array problem

2009-11-24 Thread Greg Ligierko
I have no answer to the problem, but maybe recreating the shuffled array manually could help. I mean creating a new array and filling its items with a for loop + one extra item. This is not directly related but I experienced onece wrong sorting when using sortOn() method. I do not trust

Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Greg Ligierko
I am not much into this topic, but ... you do not have to drag Library instance to the stage to get into its timeline. If you mark the item (e.g. mcHand) in the library and press right mouse button, there is Edit (the same if you doubleclick the item). As soon as you are in the edit mode of the

Re: [Flashcoders] Still Infinitely Looping

2009-11-24 Thread Greg Ligierko
wrote: Greg Ligierko wrote: I am not much into this topic, but ... you do not have to drag Library instance to the stage to get into its timeline. If you mark the item (e.g. mcHand) in the library and press right mouse button, there is Edit (the same if you doubleclick the item). As soon

Re: [Flashcoders] Mailing List Idea: Teddy Bear

2009-11-23 Thread Greg Ligierko
Exactly. Asking a question requires first formulating the problem. I fight code or related problem very often, like it was a strong bad guy that deserves a punch. Asking myself or the list simply why, why, why... or I can't... may explain my frustration and bad feelings, but not the problem

[Flashcoders] A variable nodemapid= makes embed gone (IE and FF)

2009-11-23 Thread Greg Ligierko
I have a strange issue with a http variable in embed tag and I would appreciate much if you test two links with short HTML code. I prepared two ultra-thin HTMLs. http://www.l-d5.com/sn/embed8.htm its source code is: objectembed src=nodemapid=//object http://www.l-d5.com/sn/embed9.htm its source

Re[2]: [Flashcoders] A variable nodemapid= makes embed gone (IE and FF)

2009-11-23 Thread Greg Ligierko
--Original Message-- From: Greg Ligierko Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flashcoders ReplyTo: Flash Coders List Subject: [Flashcoders] A variable nodemapid= makes embed gone (IE and FF) Sent: Nov 23, 2009 1:29 PM I have a strange issue

Re: [Flashcoders] A variable nodemapid= makes embed gone (IE and FF)

2009-11-23 Thread Greg Ligierko
Continuing... I tested my two links with Mac version of FF. Both work fine - no stripping embed, so the issue is probably only PC IE/FF related (assuming it is not my PC and only my PC). g Monday, November 23, 2009 (8:59:58 PM) Greg Ligierko wrote: Thanks, Yes I am aware of the swfObject

[Flashcoders] Intersecting (or ovelapping) b and i in html text fields

2009-11-17 Thread Greg Ligierko
I noticed a difference in how Flash CS3 and simple HTML page parses b and i tags. For example: var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T; txt.htmlText = test2; Flash produces: A B C D - regular font E F G - bold H I J K - bold+italic

Re: [Flashcoders] Intersecting (or ovelapping) b and i in htmltext fields

2009-11-17 Thread Greg Ligierko
is not correct HTML, right? On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com wrote: I noticed a difference in how Flash CS3 and simple HTML page parses b and i tags. For example: var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T; txt.htmlText = test2; Flash

Re: [Flashcoders] as3 to iphone app

2009-10-09 Thread Greg Ligierko
I wonder if Flash local connection in iPhone's environment could be faked similarly like in this example (using Win32 API): http://osflash.org/localconnection Allowing bidirectional messages between Flash and a native iPhone application could be (a tricky and still limited) overcome to the

Re: [Flashcoders] Using LocalConnection to talk from AS3 file to AS2 in different domain

2009-09-18 Thread Greg Ligierko
Hi, Two days ago I wrote (email 16.Sep [Flashcoders] allowDomain with wildcard in the middle swf) about using System.security.allowDomain(*) inside a file loaded into a base swf. The loaded swf, the one with wildcard would serve as a container for further external files, potentially incoming from