Re: [Flashcoders] MVC style

2012-02-16 Thread Taka Kojima
Not really relevant to the thread, but I saw your CodeJS project Ross, you should take a look at my solution to Classical Inheritance in JavaScript; https://github.com/gigafied/minion Comes with dependency management and a build tool for building out different classes (and their dependencies)

Re: [Flashcoders] Simplify XML Call

2011-08-14 Thread Taka Kojima
I don't even know why I'm responding to this, but. Ktu gave you the answer yet you seemed to ignore it? You don't need an eval at all. function getNumItems(level:int, xml:XML):int{ var levelXML:XML = xml.menu; for(var i:int = 0; i level; i ++){ levelXML = levelXML.item[whichItems[level]]; }

Re: [Flashcoders] Simplify XML Call

2011-08-14 Thread Taka Kojima
errr... function getNumItems(level:int, xml:XML):int{ var levelXML:XML = xml.menu; for(var i:int = 0; i level; i ++){ levelXML = levelXML.item[whichItems[i]]; } return levelXML.length(); } On Sun, Aug 14, 2011 at 1:24 AM, Taka Kojima t...@gigafied.com wrote: I don't even know why I'm

Re: [Flashcoders] XML Question

2010-11-04 Thread Taka Kojima
You would do xml..product.(@prodCode == id); Yep, that simple. Taka On Thu, Nov 4, 2010 at 11:17 AM, Matt S. mattsp...@gmail.com wrote: I know this is easy, but I'm having trouble finding the answer: if I'm iterating through XML like so: return xml.category.(@name ==

Re: [Flashcoders] NOOBed - wtf basic procedural tween skipping

2010-09-29 Thread Taka Kojima
This is going to sound abrupt but have you ever heard of a tweening engine? http://www.greensock.com/tweenlite/ On Wed, Sep 29, 2010 at 10:02 AM, Bob Wohl bob.w...@gmail.com wrote: Up the frame rate and lower the x position update or use a tweening class. For the most part I don't really see

Re: [Flashcoders] Saving MC as image

2010-08-16 Thread Taka Kojima
Like Henrik says, just use FileReference. http://www.quietless.com/kitchen/dynamically-create-an-image-in-flash-and-save-it-to-the-desktop-or-server/ On Mon, Aug 16, 2010 at 10:01 AM, Henrik Andersson he...@henke37.cjb.netwrote: Lehr, Theodore wrote: server-side code ... save the image

Re: [Flashcoders] Photo-realistic 3d in as3

2010-08-16 Thread Taka Kojima
I would like to point out that photo realistic 3d in Flash is not exactly possible. Especially, seeing as this is your first 3D project, I feel obligated to inform you of this. Most of the better looking 3D sites done with Flash, use a mix of PaperVision and optical illusions of rendered

Re: [Flashcoders] Querying XML

2010-08-06 Thread Taka Kojima
First of all: Henrik, why rewrite core functionality? E4X is a standard, telling him to write his own loop for data is something that I strongly disagree with. The only case where I can see writing your own loops for XML would be beneficial would be if you really had a performance issue and

Re: [Flashcoders] Querying XML

2010-08-05 Thread Taka Kojima
Look into e4x To only show items with value=a it would be aXML.item.(@value == a) On Thu, Aug 5, 2010 at 11:18 AM, Lehr, Theodore ted_l...@federal.dell.comwrote: Is there a way to only show certain xml based on a value - for instance - say I have: var aXML:XML = root item title=1

Re: [Flashcoders] Querying XML

2010-08-05 Thread Taka Kojima
E4X is a much better approach than looping through an XML object and adding items to an XMLList. An E4x command automatically returns an XMLList type object. On Thu, Aug 5, 2010 at 11:47 AM, Nathan Mynarcik nat...@mynarcik.comwrote: You would need to make a var that is an XMLList that pulls

Re: [Flashcoders] Create your own t-shirt

2010-08-04 Thread Taka Kojima
And you need to find out how to send a ByteArray back to a backend service to save said t-shirt as an image file. With that and Jack's TransformManager, those are the two main building blocks. On Wed, Aug 4, 2010 at 10:10 AM, Jack Doyle j...@greensock.com wrote: This may be helpful for

Re: [Flashcoders] Question on variable init in a for loop

2010-08-04 Thread Taka Kojima
Public variables, static or otherwise do NOT classify as global variables. http://en.wikipedia.org/wiki/Global_variable A global variable is something that is accessible everywhere without any scope whatsoever. By having to call MyClass.variable or myClassInstance.variable, it is quite apparent

Re: [Flashcoders] Question on variable init in a for loop

2010-08-04 Thread Taka Kojima
It's not a global because if you have a MovieClip called testMC on the stage and are inside testMC and try to do trace(greeting), you will get an error. To access that property you have to do parent.greeting, therefore because you have to be aware of the scope to access it, it is not global. On

Re: [Flashcoders] % glyph not displaying

2010-08-02 Thread Taka Kojima
Try explicitly adding the % to the Include these characters field. On Mon, Aug 2, 2010 at 12:30 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: How exactly did you embed the font in the .swf and what glyph sets did you select when you did? Jason Merrill Instructional Technology

Re: [Flashcoders] SCORM Q - Strategies for saving large suspend data strings

2010-07-28 Thread Taka Kojima
There isn't really anything such as learning JSON, JSON is basically just an object, and is your best bet. You can convert an XML string to JSON, store it, and then when you need it reconvert it to XML if you really need to, but unless you're doing things with E4X that is probably unnecessary.

Re: [Flashcoders] SCORM Q - Strategies for saving large suspend data strings

2010-07-28 Thread Taka Kojima
the XML to JSON with AS3? -- Matt Perkins - http://www.nudoru.com On Jul 28, 2010, at 6:12 PM, Taka Kojima t...@gigafied.com wrote: There isn't really anything such as learning JSON, JSON is basically just an object, and is your best bet. You can convert an XML

Re: [Flashcoders] Listeners (was no subject)

2010-07-27 Thread Taka Kojima
Here's the deal: If you had googled your error message 1046: Type was not found or was not a compile-time constant: Event, you would have found the answer to your first question in the first 3 results. A 1046 error is a very common error message, seasoned developers already know what's wrong

Re: [Flashcoders] Listeners (was no subject)

2010-07-27 Thread Taka Kojima
and you can also do... function onSomeEvent(e:Event = null):void{ } and then just call the function directly, without creating a new Event instance. i.e.: onSomeEvent(); On Tue, Jul 27, 2010 at 12:20 PM, Paul Andrews p...@ipauland.com wrote: On 27/07/2010 19:37, Henrik Andersson wrote:

Re: [Flashcoders] Listeners (was no subject)

2010-07-26 Thread Taka Kojima
John, This is going to come across as harsh, however you really should maybe go and get a book on AS3. These problems, forgetting an import, trying to pass arguments to a listener, etc. are pretty rudimentary, and not really the purpose of this list. Taka On Mon, Jul 26, 2010 at 10:58 AM, John

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Taka Kojima
Seeing as you have specific abbreviations, I don't understand why Regular Expressions are entering into this. You should have the abbreviations and their actual words stored in a database (maybe an XML doc somewhere), then just compare each one, one a word to abbreviation basis. Regular

Re: [Flashcoders] Seamless e-commerce for AS3? Noob question

2010-04-20 Thread Taka Kojima
This isn't really a Flash/ActionScript related question. There are tons of payment gateways, e.g. authroize.net. All of the ones I know require backend code to work. Taka On Tue, Apr 20, 2010 at 9:40 AM, Steve Klein s.kl...@steveklein.cc wrote: Hello, All- I don't want to bomb the

Re: [Flashcoders] Getting the line index at the caretIndex

2010-04-09 Thread Taka Kojima
You have to do something like caret-1, and do some logic to detect if the current line contains at least one character, and if it doesn't do a line++, something along those lines. My suspicion (which I just confirmed) was that the caret isn't actually counted as a character in the textField,

Re: [Flashcoders] Getting the line index at the caretIndex

2010-04-09 Thread Taka Kojima
during the process. Taka On Fri, Apr 9, 2010 at 3:58 PM, Taka Kojima t...@gigafied.com wrote: You have to do something like caret-1, and do some logic to detect if the current line contains at least one character, and if it doesn't do a line++, something along those lines. My suspicion (which

Re: [Flashcoders] What good is a Controller?

2010-03-31 Thread Taka Kojima
Hey, if you're doing well with AS2, there's nothing wrong with that. It's not going away for a long time. Jason is right, and to his point: The interactive industry is probably one of the the fastest changing industries in the world. If you aren't willing to change (and I am not saying you are

Re: [Flashcoders] RE: Recursive and e:Event

2010-03-29 Thread Taka Kojima
Aside from the typos, anonymous functions are the devil. On Mon, Mar 29, 2010 at 8:09 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod { var xml:XML = new XML)e.target.data); function(xml); }); Wow, that's

[Flashcoders] Events can be tedious, general thoughts on best practice?

2010-03-24 Thread Taka Kojima
I have an XMLLoader class that I wrote that I've been using to load XML files. -- public class XMLLoader{ /** * Load an XML file * * @param url The

Re: [Flashcoders] Events can be tedious, general thoughts on best practice?

2010-03-24 Thread Taka Kojima
looking into and looks rather promising. On Wed, Mar 24, 2010 at 1:02 PM, Mark Winterhalder mar...@gmail.com wrote: On Wed, Mar 24, 2010 at 7:03 PM, Taka Kojima t...@gigafied.com wrote: I'm curious as to other people's thoughts on this in terms of good/bad practice and what the pros/cons

Re: [Flashcoders] External font loading - No shared libraries

2010-02-18 Thread Taka Kojima
Unlike in AS2, you don't have to use runtime shared libraries for AS3 to load fonts. It's simple, all you do is embed the fonts in a swf and load that swf in using a loader. Once the loader loads the swf, all fonts will be available for use.

Re: [Flashcoders] E4X, it's just not my day.

2010-02-05 Thread Taka Kojima
var artData:XML = new XML(art bios artistBio f=Peter s=Agrafiotisan artist/artistBio artistBio f=Larry s=DenningHe sucks/artistBio artistBio f=Susan s=AgrafiotisShe rocks/artistBio /bios /art); var lastName=Agrafiotis; // undefined var

Re: [Flashcoders] XMLList question

2010-02-05 Thread Taka Kojima
Yep. If you control the output of the attributes and know for a fact that they won't have special characters, then you can use attributes, for instance id's, sequence fields, file paths, etc. but for anything that is user generated where you don't know whether or not there could be special

Re: [Flashcoders] XMLList question

2010-02-02 Thread Taka Kojima
I'm siding with Steven on this one. Beno seems to be the worst offender, but it's not just him. It's quite clear that he doesn't understand the fundamentals and basics -- that's his main problem. He's working off of a very shallow and glib understanding of things, thus it's a recurring issue

Re: [Flashcoders] XMLList question

2010-02-02 Thread Taka Kojima
whoops, sorry wrong thread :) On Tue, Feb 2, 2010 at 5:38 PM, Taka Kojima t...@gigafied.com wrote: I'm siding with Steven on this one. Beno seems to be the worst offender, but it's not just him. It's quite clear that he doesn't understand the fundamentals and basics -- that's his main

Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Taka Kojima
+1 to banning. Although, I am an active AS3 developer, unlike Bill. beno generates way too much garbage to have to sort through when I actually want to look through the topics and see if there is anybody I can help with my knowledge, or if I can learn anything from the things people have been

Re: [Flashcoders] OT: finding where a web site lives

2010-01-11 Thread Taka Kojima
you can also just ping the domain.. ping domain.com it will return the IP On Mon, Jan 11, 2010 at 11:14 AM, Nathan Mynarcik nat...@mynarcik.comwrote: You can search WhoIs to get info on the domain. www.whois.net --Original Message-- From: Lehr, Theodore Sender:

Re: [Flashcoders] detect and remove listeners

2010-01-06 Thread Taka Kojima
Yeah, that is the best way... that way you can also properly make sure you handle removing all of them when you no longer need an object. You can either create a helper class, with static methods or extend MovieClip or Sprite and have all of your classes extend from the new class. Store

Re: [Flashcoders] (x,y) position of selectedItem in a list - AS3

2010-01-04 Thread Taka Kojima
You will have to use localToGlobal, but first things first... You are correct, selectedItem returns an Object, not a DisplayObject, however I am pretty sure you can do list.getChildAt(list.selectedIndex) to get the display object, and then go from there. - Taka On Mon, Jan 4, 2010 at 12:44 PM,

Re: [Flashcoders] (x,y) position of selectedItem in a list - AS3

2010-01-04 Thread Taka Kojima
that protected list property, using list.getChildAt(selectedIndex) - Taka On Mon, Jan 4, 2010 at 2:48 PM, Paul Andrews p...@ipauland.com wrote: Taka Kojima wrote: You will have to use localToGlobal, but first things first... You are correct, selectedItem returns an Object, not a DisplayObject

Re: [Flashcoders] hen's teeth...

2010-01-04 Thread Taka Kojima
Anybody I know that I consider good at programming in a certain language, is proficient in at least 2 other languages as well... kinda goes without saying, but most programmers do know more than one language. After all, it's not necessarily the language that makes a developer, it's the conceptual

Re: [Flashcoders] Loading local files with query strings

2009-09-14 Thread Taka Kojima
Appending arguments to the end of a swf file acts the same as setting FlashVars. So, I take it you are trying to pass an id to the loaded in sub swf? Another way to go about it would be to wait until it loads, and then access the contents of the subloaded swf and set variables that way. Or you

Re: [Flashcoders] Dynamic e4x searches...

2009-09-09 Thread Taka Kojima
Hey Glen, It's quite simple actually, just use [brackets]. Look at the below code: var xml:XML = subscribeable object id1/id namesystem_management/name notifications notification id1/id namestatus/name /notification /notifications /object object

Re: [Flashcoders] accessing a text node inside another node in a XMLList

2009-08-28 Thread Taka Kojima
tabsContentSlideshow.children()[slide].children()[1] 2009/8/28 Isaac Alves isaacal...@gmail.com Hello list, I have the following XML ( i get that by tracing tabsContentSlideshow which is a XMLList. I-d like to use something like tabsContentSlideshow[slide][1] slide is an integer, so for

Re: [Flashcoders] Re: accessing a text node inside another node in a XMLList

2009-08-28 Thread Taka Kojima
First off, XML can only have one root node, thus you're probably getting some weird errors. If you enclose all of your xml within slides/slides, you should be fine. - Taka On Fri, Aug 28, 2009 at 11:53 AM, Isaac Alves isaacal...@gmail.com wrote: I´ve realized actually that flash recognizes

Re: [Flashcoders] RE: Flash speech-to-text

2009-08-27 Thread Taka Kojima
You wouldn't actually do the speech recognition in Flash, but rather have Flash record to a file, have the server process it (using an already developed program of course, as as Steven explains speech to text is not just a simple matter). So essentially the flow would be: Flash Player would

Re: [Flashcoders] empty XML Attributes..

2009-08-26 Thread Taka Kojima
The Top Level XML class actually has a function, called hasOwnProperty that exists for this purpose. However, to answer your question exactly, it returns a value of undefined. This is not null or it is it's own return type, as this relates to XML (which by definition is an object) and objects

Re: [Flashcoders] How to add a DisplayObject into a container witho ut using addChild() method.

2009-08-19 Thread Taka Kojima
to a certain point, I will rewrite it to make it clearer. - Taka On Tue, Aug 18, 2009 at 8:48 PM, Taka Kojima gigaf...@gmail.com wrote: I didn't understand your analogy at all. -- Steven Sacks wrote: Taka, When you're done building your Straw Man, you let me

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Taka Kojima
Writing readable code writing less code. That is what it comes down to. Most coders can understand both of the following: if(myObj){;} and if(myObj != null){;} I would opt for the latter method always, as otherwise you are relying on renderer specific logic to handle the conversion, as

Re: [Flashcoders] mac vs pc

2009-08-10 Thread Taka Kojima
100% PC. I have a PC at home and a Mac at work, but I'm running Vista on an 8 core Mac Pro (no paralleling, I boot up in Windows through base camp). I can and do use Macs, I'm not a PC fanatic per se, but I just find PC's to be a faster workflow for me in terms of development. Also, Macs have

Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-13 Thread Taka Kojima
:Void is AS2, and :void is AS3 The definition of void is nothingness: the state of nonexistence... The syntax of functionName():void{} simply states that the function returns nothing... i.e. there is no return at the end of the function. Although specifying a :void return type is not necessary

Re: [Flashcoders] To Void or not to void?? That is my question..

2009-07-13 Thread Taka Kojima
On Jul 13, 2009, at 11:18 PM, Taka Kojima wrote: :Void is AS2, and :void is AS3 The definition of void is nothingness: the state of nonexistence... The syntax of functionName():void{} simply states that the function returns nothing... i.e. there is no return at the end of the function

Re: [Flashcoders] renaming files with air

2009-06-29 Thread Taka Kojima
Those of us used to low-level programming wouldn't think twice about this, moving === renaming. However, to somebody who has mainly done ActionScript or higher level programming, etc. I can see how this might seem weird. This is the way it's done, almost universally in programming (as far as I

[Flashcoders] Something to appreciate...

2009-06-15 Thread Taka Kojima
http://pastie.org/513192 This is the file I have to traverse through this afternoon, gotta love contractors. p.s. Read the comment at the top to get the full scope. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Problem with links in htmlText

2009-06-05 Thread Taka Kojima
I looked at your stream, and it looks like you are using the wrong response data.

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Taka Kojima
IMO, there are times to use JSON and times to use XML. JSON is very easy to implement and not very hard to grasp... all you're basically doing is running an encode when you send data out and a decode when you bring data in. So you only need two functions. E4X is definitely powerful, however if

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Taka Kojima
, 2009, at 6:17 PM, Steven Sacks wrote: Agreed! On May 20, 2009, at 3:45 PM, Taka Kojima wrote: IMO, there are times to use JSON and times to use XML. JSON is very easy to implement and not very hard to grasp... all you're basically doing is running an encode when you send data out

Re: [Flashcoders] best way to save as pdf from flash?

2009-05-13 Thread Taka Kojima
I believe he is trying to export as a PDF from FlashPlayer, not from Flash itself On Wed, May 13, 2009 at 11:22 AM, Paul Andrews p...@ipauland.com wrote: If you're using Flash as some high end illustration program, do yourself a favour and use Xara Xtreme

Re: [Flashcoders] is imported db text safe from decompilers?

2009-05-13 Thread Taka Kojima
This won't solve the issue, ssl certs do encrypt data, but they are not meant to encrypt the data so that it is unreadable to the end user... they are meant so that if I am conducting a transaction online, it encrypts all the data so that Bob over in Arkansas can't jack the posted fom data. So,

Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Taka Kojima
Hey Tim, I have run into this before as well, with both ActionScript and using alert() in JavaScript. What I concluded was that the trace/alert basically adds a small pause or causes something to happen (i.e. skip a frame or something of the sort) so that the code below it works. I may be

Re: [Flashcoders] id3 runtime error

2009-04-03 Thread Taka Kojima
, but the checkPolicyFile flag was not set when this media was loaded. Thanks for your help. - Original Message - From: Taka Kojima t...@gigafied.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 2, 2009 8:08:05 PM GMT -05:00 US/Canada Eastern Subject: Re

Re: [Flashcoders] Flashplayer positioning

2009-04-03 Thread Taka Kojima
run Flash with a Window Manager / Desktop, e.g. xfce, it aligns fine.  I am guessing something changed in FP10 relating to X11 but what...   Glen Taka Kojima wrote: not sure, maybe FP10 defaults to a different stage alignment. Maybe try explicity stating the stage alignment and see

Re: [Flashcoders] Flashplayer positioning

2009-04-02 Thread Taka Kojima
not sure, maybe FP10 defaults to a different stage alignment. Maybe try explicity stating the stage alignment and see if that fixes it. - Taka On Thu, Apr 2, 2009 at 11:16 AM, Glen Pike postmas...@glenpike.co.uk wrote: Hi,   There is stuff offstage, but I am not sure if it is in a guide layer

Re: [Flashcoders] id3 runtime error

2009-04-02 Thread Taka Kojima
Hey Dave, Can you paste the exact error message? On Thu, Apr 2, 2009 at 4:51 PM, Dave Segal d...@oddcast.com wrote: I have a bug that is driving me nuts. I am loading an mp3 file from the same server as my swf. About 1 in 30 tries when trying to reading the id3 tags after the ID3 event I get

Re: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Taka Kojima
You need to use an event listener, (or if it's as2 assign an onComplete function). Not to be rude, but you should probably go out and buy a book on ActionScript -- this is a very basic question, and where I can answer this in depth, it really won't do you much good in the long run without a good

Re: [Flashcoders] FPS question

2009-04-01 Thread Taka Kojima
I believe the standard way of handling this is to have three different versions of your movie. low, normal and high quality (how you down the file size is totally dependent on you, could be dropping frames, could be lower rez, whatever). Which one gets loaded in can be determined by connection

Re: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Taka Kojima
to achieve. With the Timer option you could trace every position of the tween and interact on values. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Taka Kojima Sent: woensdag 1 april 2009 20:43

Re: [Flashcoders] FPS question

2009-04-01 Thread Taka Kojima
wrote: Hello Taka, I agree with you; as well, with regard to the swf, it would take a ton of in depth knowledge and understanding about its file structure, and how it handles tweens, that I don't have right now, in order for me to say if its even possible. Thanks. Anthony Pace Taka

Re: [Flashcoders] FPS question

2009-04-01 Thread Taka Kojima
, but in AS I guess I am. Thanks for your input on this. Everything helps. Sent from losPhone On Apr 1, 2009, at 3:51 PM, Taka Kojima t...@gigafied.com wrote: Back to the original issue at hand. I think that is is definitely not optimal to be relying upon somebody's connection speed

Re: [Flashcoders] AS3 Object reference

2009-03-30 Thread Taka Kojima
photoStrip_mc[thumbnail + I]_mc._width and photoStrip_mc.thumbnail[I]_mc._width won't work. [] basically serve the purpose of periods they represent heirarchy, they don't perform an eval() (there is no AS3 equivalent of AS2's eval() btw). You were on the right path with:

Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread Taka Kojima
(); addChild(details_ta_overlay); } On Fri, Mar 27, 2009 at 2:38 PM, Taka Kojima t...@gigafied.com wrote: Hey Peter, Hmm... i see the issue, very weird, probably classifies as a bug, here's how I got around it: public function DistributorsForm () :void {   // sets styles ... set size =14 instead

Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread Taka Kojima
Hey Peter, Hmm... i see the issue, very weird, probably classifies as a bug, here's how I got around it: public function DistributorsForm () :void { // sets styles ... set size =14 instead of default 16... StyleFlair.snapOnTextArea(details_ta, {size:14}); details_ta.textField.selectable

Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread Taka Kojima
Yep, Anthony and I came up with the same solution, except I took it one step further and wrote the code for it ;) Note to also take the scrollbars width/height into account (using textarea.verticalScrollBar/textArea.horizontalScrollBar), just so you don't create another issue by solving this one

Re: [Flashcoders] Tween AS3 issue with Firefox

2009-03-26 Thread Taka Kojima
It's especially great when you take the time to respond to somebody and they don't even read your response, or if they do, they don't respond back. On Thu, Mar 26, 2009 at 10:46 AM, Muzak p.ginnebe...@telenet.be wrote: My curiosity was caught, but it's difficult to help when someone is asking

Re: [Flashcoders] timeline methods fail on embedded swf

2009-03-26 Thread Taka Kojima
Not sure if this is the issue, but it sure does sound like it. Does embed.swf have a base class? The issue I ran into caused all of my timeline code to not execute, i.e. fail silently, which seems to be what is happening with you. The problem was that I couldn't import the external.swf's base

Re: [Flashcoders] timeline methods fail on embedded swf

2009-03-26 Thread Taka Kojima
nevermind, i didn't fully read your example, though it might be a related issue, it's probably not the same... Although, seeing as they have similar outcomes, maybe what I said will help you in further debugging the isssue. On Thu, Mar 26, 2009 at 12:05 PM, Taka Kojima t...@gigafied.com wrote

Re: [Flashcoders] AS3, player 9, security problem, flash AS3 project

2009-03-25 Thread Taka Kojima
http://www.adobe.com/devnet/flash/articles/fplayer8_security_07.html In order to enable local-with-filesystem, you have to add a System.security.allowDomain(*) -- although since you are running the swf on a local webserver (i.e. localhost or 127.0.0.1), I don't think it treats it as a local swf,

Re: [Flashcoders] Flash-HTML WYIWYG editor?

2009-03-25 Thread Taka Kojima
I use TinyMCE for a lot of flash based wysiwyg text fields, I only allow simple tags, but bold, italic, underline and links work, as well as line breaks and paragraphs, etc. even ul's work. Work's like a charm and have had no problems. - Taka On Wed, Mar 25, 2009 at 2:35 PM, Ian Thomas

[Flashcoders] AS3 Image Cropper

2009-03-20 Thread Taka Kojima
Hey Everybody, I just finished putting together an image cropper in AS3. http://www.gigafied.com/dev/cropper/ Wanted to get some peer-developer feedback and if you have any suggestions on improving it, notice anything wrong, etc. The window is scalable, i.e. you can resize the window and the

Re: [Flashcoders] Flash Future - Unity3D, iPhone and performance

2009-03-20 Thread Taka Kojima
Unity is pretty kick-ass, but Unity != Flash They serve two different purposes. Unity is a multiplatform game development tool, whereas Flash is more encompassing -- i.e. it is not strictly a gaming platform, in fact though it is used quite a bit for online games, that is not its main purpose.

Re: [Flashcoders] Flash Future - Unity3D, iPhone and performance

2009-03-20 Thread Taka Kojima
 I'm not suggesting Unity is a replacement for flash so much as that it's worth having a viable market. I'd like to be able to tell a client some day who has a banner campaign only capable in Unity that it has a large enough install base. On Fri, Mar 20, 2009 at 3:00 PM, Taka Kojima t

Re: [Flashcoders] problem with a loaded external swf

2009-03-17 Thread Taka Kojima
Gustavo, Unlike AS2, in AS3 loading external clips into MovieClips does not add the MovieClip's children/properties to the root of the containing MC. Also, you are essentially adding a Loader component, instead of a MovieClip, you probably want to do loader.content instead (which isn't populated

Re: [Flashcoders] Looking for a configurable Flash Live Chat Box With Rooms Optional

2009-03-17 Thread Taka Kojima
I built a flash chat room client (using the Flash IDE) about 3 months ago using Jabber (OpenFire) as the chat server and the XIFF API http://www.igniterealtime.org/projects/xiff/ The only real issue I ran into was that the XIFF API uses native Flex classes, so I had to figure out how to get

Re: [Flashcoders] GetDefenitionByName from loaded SWF

2009-03-12 Thread Taka Kojima
add a public static var instance:ParentClass to the ParentClass file... Then in the constructor, do instance = this; Then you should be able to access everything by doing ParentClass.instance.propertyName; - Taka On Thu, Mar 12, 2009 at 10:11 AM, Helmut Granda cont...@helmutgranda.com wrote:

Re: [Flashcoders] how to get all the mc's that have a .onRelease event

2009-03-12 Thread Taka Kojima
Hmm Doesn't sound like the most efficient way to go about solving the issue you are trying to resolve (which I don't know, but I can guess what it is). From what I know, you'd have to manually add those to an array, you can do that by adding a function like registerEventListener(type,

Re: [Flashcoders] include directive ...

2009-03-06 Thread Taka Kojima
Keep it on the timeline, don't switch to external AS files unless you want to give yourself suicide thoughts ;) If you wanted to switch over to using classes, that's a different story, but for only 10-30 lines per movieclip on the timeline, I'd say just keep going with how you're doing it. It is

Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Taka Kojima
what's the exact bug, because I just created two text fields, one with static text, the other dynamic. I embedded the font in the dynamic text field and it worked... On Wed, Mar 4, 2009 at 11:16 AM, Joel Stransky j...@stranskydesign.com wrote: I've finally run into a situation where I really

Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Taka Kojima
PM, Joel Stransky stranskydes...@gmail.com wrote: Sorry I meant exported fonts that are in turn applied to a dynamic textField whose embedFonts property is set to true. On Wed, Mar 4, 2009 at 2:41 PM, Taka Kojima t...@gigafied.com wrote: what's the exact bug, because I just created two text

Re: [Flashcoders] And another one re: try-catch-finally statements

2009-03-03 Thread Taka Kojima
Actually, in some instances that block of code might generate a runtime error, in which case, to prevent Flash from outputting the runtime error, there is a try catch block. On Tue, Mar 3, 2009 at 7:02 PM, SJF sjf...@gmail.com wrote: I have a head-cold (hence the possibly obvious answer to

Re: [Flashcoders] And another one re: try-catch-finally statements

2009-03-03 Thread Taka Kojima
Not saying it's a good thing, just laying out what it's accomplishing. Seeing as Flash generates some pretty ugly looking runtime errors, I usually like to display errors on my own terms, such as catch (err:Error){ ErrorManager.showError(There was a problem communicating with the server,

Re: [Flashcoders] accessing a function from a movieclip

2009-03-02 Thread Taka Kojima
Hey Rein, It's not totally clear what you're trying to do... So, startVideo() is a function of con_video, correct? Where are you trying to call the function from? If con_video is a child of where you are calling the function from, you can use parent.parent (as many levels as you need) to do it.

Re: [Flashcoders] drag along custom path

2009-02-25 Thread Taka Kojima
Mouse.startDrag() Mouse.stopDrag() startDrag() takes boundaries as an argument, just look it up in help, it's pretty straightforward. - Taka On Wed, Feb 25, 2009 at 6:52 PM, Tom Huynen tomhuy...@gmail.com wrote: Hi guys, I'm trying to drag a sprite along a rectangle with rounded corners.

Re: [Flashcoders] component def doesn't pass params to constructor?

2009-02-19 Thread Taka Kojima
As Weyert was getting at, just use default argument values, which would only be applied if you didn't specify an argument... i.e. public function Ball(which:String = soccerball){ gotoAndStop(which); } this way you can do: var b:Ball = new

Re: [Flashcoders] component def doesn't pass params to constructor?

2009-02-19 Thread Taka Kojima
Gregory, A lot of times, I do something like... private var propsSet:Array = new Array(); public function set ballType(_value:String):void{ _ballType= _value; propsSet.push(ballType); checkProps(); }

Re: [Flashcoders] xml and e4x searching question

2009-02-19 Thread Taka Kojima
When you trace out: trace(staff.*.(POSITION == Designer)); You will see that it returns the parent EMPLOYEE element... So, even if your code were to work, all it would do would be to return the root STAFF node, which probably wouldn't help you. If you compare the two examples, you will see that

Re: [Flashcoders] Converting hex colour numbers back and forth

2009-02-10 Thread Taka Kojima
I usually don't use parseInt for this purpose I usually just cast it as a uint. i.e. uint(c); would work as well. glad you figured it out. - Taka On Tue, Feb 10, 2009 at 5:54 AM, ali drongo alidro...@googlemail.com wrote: Thanks everyone, Juan, you solved the final part of the puzzle and

Re: [Flashcoders] Either an incredibly easy or incredibly difficult problem

2009-02-09 Thread Taka Kojima
I'd probably just determine the points ahead of time and recreate it using AS... Most likely, that would be less time consuming. That's my answer if this is a practical question, if it's theoretical and you just want to know if it can be done, I'm sure it can, but I'm not totally sure which

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Taka Kojima
I take it this is from an rss feed? Look into the Namespace class... http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Namespace.html Unfortunately, you didn't paste the entire XML doc so I can't guide you further. - Taka On Mon, Feb 9, 2009 at 10:36 AM, Eric E. Dolecki

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Taka Kojima
-14/date /w:forecast /soap:Body /soap:Envelope; trace(myXML.soap::Body.w::forecast.w::city); // Quito so in your case, try doing... trace(myXML.yweather::conditi...@text); should work. - Taka On Mon, Feb 9, 2009 at 12:20 PM, Taka Kojima t...@gigafied.com wrote: I take

Re: [Flashcoders] OT: Internet Explorer 8

2009-02-03 Thread Taka Kojima
Vayu, I personally have no problem with this message being sent to this list, obviously I can only speak for myself though. I have run into a few similar situations, with IE 8 and Google Chrome, also IE 5 (yes, a client was still using IE 5)... Just educate the client as best as possible, you

Re: [Flashcoders] trace command in .as3 docs

2009-01-30 Thread Taka Kojima
Also, in publish settings make sure that Omit trace actions is not checked. - Taka On Fri, Jan 30, 2009 at 2:24 PM, Joel Stransky stranskydes...@gmail.comwrote: If you're testing in CS3, it should just be: trace(my message); On Fri, Jan 30, 2009 at 5:11 PM, Rebecca Roberts rrobe...@k12.com

Re: [Flashcoders] recursive question?

2009-01-14 Thread Taka Kojima
I would probably just do something like... private function renderAxis(which:String, doRemove:Boolean = true):void if(doRemove){removePrevious();} switch (which) { case (X) : xAxis = new Sprite(); addChild(xAxis);

Re: [Flashcoders] recursive question?

2009-01-14 Thread Taka Kojima
ideas in Learning? Check out the Innovative Learning Blog and subscribe. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Taka Kojima Sent: Wednesday, January 14, 2009 3:09 PM To: Flash Coders

  1   2   >