Re: [Flashcoders] can Flex classes be used within (Flash CS3) along with ActionScript?
Using a SWC, yes. But it's nasty work IMO. Use Flex Builder if you have it. On Wed, Nov 26, 2008 at 3:47 PM, BOYD SPEER [EMAIL PROTECTED] wrote: can Flex classes be imported and used within (Flash CS3) along with ActionScript? -Boyd ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] can Flex classes be used within (Flash CS3) along with ActionScript?
Oops - I didn't see that CS3 part. CS4 makes it super easy to link to a SWC to use classes in it, but CS3 is even nastier hack land. On Wed, Nov 26, 2008 at 4:06 PM, Anthony Pace [EMAIL PROTECTED]wrote: The editor sucks, still. We need something like Aptana for AS3. Don't use the flash CS3 IDE if you can avoid; however, it is pretty good for animations; yet, if you want to do animations, go to cs4... bones and IK and bears oh my. Eric E. Dolecki wrote: Using a SWC, yes. But it's nasty work IMO. Use Flex Builder if you have it. On Wed, Nov 26, 2008 at 3:47 PM, BOYD SPEER [EMAIL PROTECTED] wrote: can Flex classes be imported and used within (Flash CS3) along with ActionScript? -Boyd ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] structuring singletons in AS3
You could always use a document class and have that suck in a main class kick it off using the document class. On Mon, Dec 1, 2008 at 9:46 AM, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Hi list... Slowly but surely, I'm moving from AS2 to AS3. In my AS2 projects, I usually create a singleton on frame 1 of the _root and everything takes off from there. What's the best practice of doing that in AS3, where I have to have a main class that seems to start everything. I can't imagine how a singleton controlling all logic should extend a Sprite class. Is it OK to still instance a singleton on the root in frame 1 even with a document class automatically instancing too? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Different class instances with socket using same port number?
Wondering if it's possible to have different classes open sockets to the same port number? Going to throw stuff in an if/else and depending on a variable, send to the socket with different values. They all currently open to the same port number. ie. inside each of the class constructors being used: _socket = new Socket( localhost, 5751 ); -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Different class instances with socket using same portnumber?
I have class const values that i was calling up and passing through... so it seemed easier to make an instance of the class, which connects to a socket (all the same), and then based on logic, pull a const out of the class and send it through. On Thu, Dec 4, 2008 at 10:41 AM, Eamonn Faherty [EMAIL PROTECTED]wrote: I don't think that is possible but even if it is, it doesn't sound that graceful. Why not have a single SocketProxy or SocketWrapper class with a single socket connection. You can pass that as a reference to two or more classes. -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki Sent: 04 December 2008 15:24 To: Flash Coders List Subject: [Flashcoders] Different class instances with socket using same portnumber? Wondering if it's possible to have different classes open sockets to the same port number? Going to throw stuff in an if/else and depending on a variable, send to the socket with different values. They all currently open to the same port number. ie. inside each of the class constructors being used: _socket = new Socket( localhost, 5751 ); -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Different class instances with socket using same portnumber?
Actually, thats the best thing for me to do... I'll nail that up. On Thu, Dec 4, 2008 at 10:41 AM, Eamonn Faherty [EMAIL PROTECTED]wrote: I don't think that is possible but even if it is, it doesn't sound that graceful. Why not have a single SocketProxy or SocketWrapper class with a single socket connection. You can pass that as a reference to two or more classes. -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki Sent: 04 December 2008 15:24 To: Flash Coders List Subject: [Flashcoders] Different class instances with socket using same portnumber? Wondering if it's possible to have different classes open sockets to the same port number? Going to throw stuff in an if/else and depending on a variable, send to the socket with different values. They all currently open to the same port number. ie. inside each of the class constructors being used: _socket = new Socket( localhost, 5751 ); -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JavaFX released
On my Mac in Firefox when I scroll the page, that player UI flickers on and off. Pretty lame. On Sat, Dec 6, 2008 at 1:15 PM, Jim Robson [EMAIL PROTECTED] wrote: I checked out the drag-able component sample on javafx.com and it didn't work. If you're interested in the details, I put them in a comment on Sten Andersen's blog here: http://blogs.citytechinc.com/sanderson/?p=49#comment-714 hth Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] use get / set functions or make your own
Since I like FlashDevelop, with a keyboard shortcut and a click I create setters and getters. On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, I'm still in the middle. I used to use getMyVariable setMyVariable for everything, now I usually use public variables for entity/value objects. I still hate not being able to see whether something is a variable or function, so for everything else than very simple objects I prefer setMyVariable getMyVariable instead of get set. I find it way easier to read back my code that way, so it depends on whether I know whether I am going to have to read it back or not ;). greetz JC On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: i would have to agree - i use the built in ones and can't see any benefit from using bespoke ones apart from maybe being able to use the variable name i want rather than adding extra characters to it (although i use a leading underscore for class variables anyway) On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote: I use Actionscript getters and setters. Because I can start off using ordinary public properties, and change them into getters and setters if I need more control/notification without changing any of the code that _uses_ my class. In order to achieve that otherwise, I'd have to make a getValue() and setValue() for every single public property (as is done in Java). And a fair few of those would simply be this._property=value (setter) or return this._property (getter) i.e. essentially just placeholder methods that bloat the code. The beauty of the actionscript get and set functions is that they are indistinguishable from public properties from the outside of the class. It's a huge improvement over Java. Ian On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: hi guys quick poll - Do you use the actionscript getter/setter functions or do you make your own, and why. I've noticed with a lot of the public domain code (like SWFAddress, for instance) that you see a lot of 'public function getVariable()' type getters instead of using the flash 'public function get variable()' adobe recommended getters(and setters) and i was wondering why people do this? 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 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] use get / set functions or make your own
select the variable, ctrl-shift-1 ;) On Tue, Dec 9, 2008 at 9:26 AM, Cor [EMAIL PROTECTED] wrote: Yes I prefer FD also, but what is the shortcut for getters and setters?? -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Eric E. Dolecki Sent: dinsdag 9 december 2008 15:16 To: Flash Coders List Subject: Re: [Flashcoders] use get / set functions or make your own Since I like FlashDevelop, with a keyboard shortcut and a click I create setters and getters. On Tue, Dec 9, 2008 at 9:02 AM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, I'm still in the middle. I used to use getMyVariable setMyVariable for everything, now I usually use public variables for entity/value objects. I still hate not being able to see whether something is a variable or function, so for everything else than very simple objects I prefer setMyVariable getMyVariable instead of get set. I find it way easier to read back my code that way, so it depends on whether I know whether I am going to have to read it back or not ;). greetz JC On Tue, Dec 9, 2008 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: i would have to agree - i use the built in ones and can't see any benefit from using bespoke ones apart from maybe being able to use the variable name i want rather than adding extra characters to it (although i use a leading underscore for class variables anyway) On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote: I use Actionscript getters and setters. Because I can start off using ordinary public properties, and change them into getters and setters if I need more control/notification without changing any of the code that _uses_ my class. In order to achieve that otherwise, I'd have to make a getValue() and setValue() for every single public property (as is done in Java). And a fair few of those would simply be this._property=value (setter) or return this._property (getter) i.e. essentially just placeholder methods that bloat the code. The beauty of the actionscript get and set functions is that they are indistinguishable from public properties from the outside of the class. It's a huge improvement over Java. Ian On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: hi guys quick poll - Do you use the actionscript getter/setter functions or do you make your own, and why. I've noticed with a lot of the public domain code (like SWFAddress, for instance) that you see a lot of 'public function getVariable()' type getters instead of using the flash 'public function get variable()' adobe recommended getters(and setters) and i was wondering why people do this? 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 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.15/1839 - Release Date: 9-12-2008 9:59 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] use get / set functions or make your own
I usually take the private with getters and setters approach - I can check the bounds of the setting of the var. I am thinking more of designers here taking the code and using it than I am other developers. Although I have many times set up public vars that I tweak from outside the class(es) too. Eric On Wed, Dec 10, 2008 at 5:14 AM, Ian Thomas [EMAIL PROTECTED] wrote: I think we're saying the same thing there. :-) Such code amending is needed in languages like Java, because you can't go from a property to a getter/setter _without_ changing the interface. Which is why the Java getters and setters are used almost everywhere - like I said, it's programming in self-defense. Ian On Wed, Dec 10, 2008 at 10:05 AM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: any code amending outside the class can be avoided if you take the (self-imposed) rule that internal/private class vars start with a leading underscore but public ones don't - that way if you need to create getters and setters, you just create the class var with the _ and the get/set without On Wed, Dec 10, 2008 at 9:43 AM, Ian Thomas [EMAIL PROTECTED] wrote: In the programming languages used in the old CS textbooks, you didn't have the option to switch from a public property to a getter/setter pair without breaking the interface. Ian On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks [EMAIL PROTECTED] wrote: Keyword: Old. Hans Wichman wrote: ps we're probably not the first ones discussing this old subject, has n1 found some good sources/references? Most of the old CS textbooks sentence you to hell for using public variables so let's not refer to those ;) ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] referencing sprites within a sprite (AS3 newbie question)
.currentTarget ? On Tue, Dec 16, 2008 at 4:51 PM, Ian Thomas i...@eirias.net wrote: Yes. However, it was the simplest answer to Michael's question. I'm afraid I didn't (and still don't) have time to answer the question with a long 'here's how I'd actually do it and why it's a good idea not to refer to nested clips like this' email, unfortunately. :-) It was a quick fix for Michael, and in the long term, you're right - the wrong answer. Perhaps I shouldn't comment at all when I'm this short of time. :-) But feel free to write your own answer, Anthony... Ian On Tue, Dec 16, 2008 at 9:08 PM, Anthony Pace anthony.p...@utoronto.ca wrote: isn't getting a child by name very slow? Ian Thomas wrote: If each of the columns has .name='column1' etc: e.target.getChildByName(column10).gotoAndStop(5); should do it. But personally I'd at least do some type-checking on all that, and would probably create a method inside an AllColumns class to handle changeChar(). (Obviously I don't know what you're doing, though...) Ian On Tue, Dec 16, 2008 at 7:59 PM, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Wow, AS3 is different, even after reading Moock's book. I'm sure this is an easy question: How do you reference sprites within a sprite in an event listener? I have a child allcolumns within a sprite. Within allcolumns are 50 columns (sprites), each named column1, column2, etc. Allcolumns has an event listener: private function changeChar(e:Event):void { e.target[column10].gotoAndStop(5); } Result: ReferenceError: Error #1069: Property column10 not found on flash.display.Sprite and there is no default value. How to drill into what's in the e.target? Thanks, - Michael M. ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash vs. Flex libraries
are you SURE you can't use embed metadata in Flash CS4? ;) Eric On 12/23/2008, Ian Thomas i...@eirias.net wrote: Taka, That's really interesting - excellent to know! I _suspect_ (having had previous bad experiences) that doing things within the _complete_ Flex framework will be difficult/will cause errors. Flex has a lot of managers/singletons which seem to be very greedy, and assume a lot i.e. assume some Flex startup code is called up front and assume things are initialised in a particular order. Definitely worth trying, though! Cheers, Ian On Tue, Dec 23, 2008 at 11:24 PM, Taka Kojima t...@gigafied.com wrote: Jason, There is actually a way to use Flex classes in Flash CS3 -- I figured it out a couple weeks ago when building a jabber client in AS3 using the XIFF API (I wanted to use Flash, not Flex). It's quite simple actually... I just put up a blog post about it. http://gigafied.blogspot.com/2008/12/using-flex-classes-in-flash-cs3.html Hope that helps!! - Taka ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [AS2] Set the default value of a ComboBox
populate with an array, and then go through the array, and use the matching index. On Thu, Jan 8, 2009 at 11:29 AM, FlashDev fl...@funkdaweb.com wrote: Hi Guys, happy new year to you all! I have a combobox added to the stage in the flash IDE and it is populated via Actionscript 2 from an external XML file. The trouble is I want to automatically select a label in the combobox rather than showing the first label which is the current default. I populate my combobox like this: combobox1.addItem({data:data1, label:lable1}); combobox1.addItem({data:data2, label:lable2}); Now I have a combobox with 2 labels, label1 and label2. I want label2 to display as the default instead of label1, now I understand I could do: combobox1.selectedIndex = 1; but I actually want to loop through the combobox labels and match if label2 = label2 then select that index, so is there any way I can read the labels / data of a combobox? I have tried combobox1.data and combobox1.labels, but it just returns undefined? Thanks in advance SJM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] accessing variables - AS3
I have forgotten how to do this... I'd like to set some variables like this a var exists... zAmt now I'd like to set the value in a method... [ stringValue + Amt] = someValue; How do I compose that? -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] accessing variables - AS3
I apologize, I forgot all about this and remembered it right after sending the email to the list. Thanks all :) On Mon, Jan 12, 2009 at 3:36 PM, Nate Beck n...@tldstudio.com wrote: this[stringValue + Amt] if you're trying to do it within the same class. On Mon, Jan 12, 2009 at 12:28 PM, Manish Jethani manish.jeth...@gmail.comwrote: On Tue, Jan 13, 2009 at 1:51 AM, Eric E. Dolecki edole...@gmail.com wrote: I have forgotten how to do this... I'd like to set some variables like this a var exists... zAmt now I'd like to set the value in a method... [ stringValue + Amt] = someValue; How do I compose that? That would be: obj[stringValue + Amt] = someValue; where obj is the object that holds the property. Manish ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Cheers, Nate http://blog.natebeck.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] accessing variables - AS3
Isn't that for an XML object? On Mon, Jan 12, 2009 at 3:47 PM, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: You might also want to look into using this.hasOwnProperty(stringValue + Amt) to make certain what you're looking for actually exists in the object in the first place. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 Nice Knob(s)
I am looking for an AS3 knob that is close to this: http://keith-hair.net/blog/examples/niceknobs/ yet is something I can use in the Flash CS4 IDE - a SWC would even be nice to link up to. The URL above is just an example. Being able to optionally check + or - movements on 360º revolutions (detents) would be a huge plus. If the code is accessible, that would be super awesome for tweaking. Tried googling, haven't found anything close yet. Any help? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 Nice Knob(s)
Thats nice, but it works like a slider (manipulated). Looking more for a traditional behaving knob. On Fri, Jan 16, 2009 at 3:06 PM, Patrick Matte|BLITZ pma...@blitzagency.com wrote: http://www.bit-101.com/blog/?p=1337 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 11:51 AM To: Flash Coders List Subject: [Flashcoders] AS3 Nice Knob(s) I am looking for an AS3 knob that is close to this: http://keith-hair.net/blog/examples/niceknobs/ yet is something I can use in the Flash CS4 IDE - a SWC would even be nice to link up to. The URL above is just an example. Being able to optionally check + or - movements on 360º revolutions (detents) would be a huge plus. If the code is accessible, that would be super awesome for tweaking. Tried googling, haven't found anything close yet. Any help? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 Nice Knob(s)
I get the slider idea - makes sense, except for when you want a knob to revolve as many times as a real one might. So you don't necessarily always want a min and a max. Operate it like a true spinning dial and perhaps decrement or increment some kind of value per º rotated. On Fri, Jan 16, 2009 at 3:27 PM, Patrick Matte|BLITZ pma...@blitzagency.com wrote: I think in general, knobs always behave like sliders. Take for example Ableton Live, a music software which use a lot of knobs, they all behave like sliders. I think the knobs on the link you were referring to may seem more realistic but are actually harder to use. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 12:17 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Nice Knob(s) Thats nice, but it works like a slider (manipulated). Looking more for a traditional behaving knob. On Fri, Jan 16, 2009 at 3:06 PM, Patrick Matte|BLITZ pma...@blitzagency.com wrote: http://www.bit-101.com/blog/?p=1337 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 11:51 AM To: Flash Coders List Subject: [Flashcoders] AS3 Nice Knob(s) I am looking for an AS3 knob that is close to this: http://keith-hair.net/blog/examples/niceknobs/ yet is something I can use in the Flash CS4 IDE - a SWC would even be nice to link up to. The URL above is just an example. Being able to optionally check + or - movements on 360º revolutions (detents) would be a huge plus. If the code is accessible, that would be super awesome for tweaking. Tried googling, haven't found anything close yet. Any help? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 Nice Knob(s)
They can. I am just going to roll my own and then maybe release it. Concentric ring support as well as some other stuff to make it super flexible. Already wrote the custom events and the base class. Sent from my iPod On Jan 16, 2009, at 3:47 PM, Bob Wohl bob.w...@gmail.com wrote: real knobs spin forever? just work it like a slider but update % and position via max/min distance and maintain the math. 3 rotations is max slider x3. Keeping track of rotation works but you'll have to calculate for negative rotation. B. On Fri, Jan 16, 2009 at 1:42 PM, Eric E. Dolecki edole...@gmail.com wrote: I get the slider idea - makes sense, except for when you want a knob to revolve as many times as a real one might. So you don't necessarily always want a min and a max. Operate it like a true spinning dial and perhaps decrement or increment some kind of value per º rotated. On Fri, Jan 16, 2009 at 3:27 PM, Patrick Matte|BLITZ pma...@blitzagency.com wrote: I think in general, knobs always behave like sliders. Take for example Ableton Live, a music software which use a lot of knobs, they all behave like sliders. I think the knobs on the link you were referring to may seem more realistic but are actually harder to use. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 12:17 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Nice Knob(s) Thats nice, but it works like a slider (manipulated). Looking more for a traditional behaving knob. On Fri, Jan 16, 2009 at 3:06 PM, Patrick Matte|BLITZ pma...@blitzagency.com wrote: http://www.bit-101.com/blog/?p=1337 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 11:51 AM To: Flash Coders List Subject: [Flashcoders] AS3 Nice Knob(s) I am looking for an AS3 knob that is close to this: http://keith-hair.net/blog/examples/niceknobs/ yet is something I can use in the Flash CS4 IDE - a SWC would even be nice to link up to. The URL above is just an example. Being able to optionally check + or - movements on 360º revolu tions (detents) would be a huge plus. If the code is accessible, that would be super awesome for tweaking. Tried googling, haven't found anything close yet. Any help? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ 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] Pixel Bender source for page turn?
Hey all, I am looking for PB source to distort a displayObject like a page turn, only from the top to bottom instead of side to side. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] registering Enter key along with mouse event
Is this in the IDE? If so, you need to turn off keyboard shortcuts On Thu, Jan 22, 2009 at 10:27 AM, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Hi list... I have a sprite that should fire an event either when it's clicked, or when it has focus and the spacebar or the enter key is pressed. The mouse click and the spacebar keyUp events (when the sprite has focus) work fine, but the enter key won't fire the event. Here's my if statement. Am I missing something? private function myEvent(e:*):void { if(e.type ==keyUp){ trace(e.keyCode); // traces 32 for spacebar but nothing for enter key } if ((e.type==mouseUp)||((e.type==keyUp)(e.keyCode==32))||((e.type==k eyUp)(e.keyCode==Keyboard.ENTER))) { thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Does Flash fire any event(s) when...
There is stage.addEventListener( Event.DEACTIVATE, method ); stage.addEventListener( Event.ACTIVATE, method ); - eric 2009/2/4 Andrew Murphy amur...@delvinia.com Hi. :) I was wondering if a .swf embedded in a web page fires and event(s) when... 1) ...the user navigates away from the page. 2) ...the user closes the browser window. I doubt that it does but thought I'd check with the experts here first. Thank you. :) Andrew Murphy Interactive Media Specialist mailto:amur...@delvinia.com amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Does Flash fire any event(s) when...
Ya, too bad there isn't something akin to what AIR has (NativeApplication.nativeApplication.addEventListener( Event.EXITING,... ) On Wed, Feb 4, 2009 at 9:58 AM, Andrew Murphy amur...@delvinia.com wrote: Hi Eric. :) Unfortunately Event.DEACTIVATE also fires if a user clicks on a different tab in their browser or a different application in their desktop. Andrew Murphy Interactive Media Specialist amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Wednesday, February 04, 2009 8:50 AM To: Flash Coders List Subject: Re: [Flashcoders] Does Flash fire any event(s) when... There is stage.addEventListener( Event.DEACTIVATE, method ); stage.addEventListener( Event.ACTIVATE, method ); - eric 2009/2/4 Andrew Murphy amur...@delvinia.com Hi. :) I was wondering if a .swf embedded in a web page fires and event(s) when... 1) ...the user navigates away from the page. 2) ...the user closes the browser window. I doubt that it does but thought I'd check with the experts here first. Thank you. :) Andrew Murphy Interactive Media Specialist mailto:amur...@delvinia.com amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way to access my main class?
Agreed on Option 3. Custom event inclusive of whatever kind of data you want to send to the associated listening method. I think I whip up custom events more than almost anything else. - Eric On Thu, Feb 5, 2009 at 1:30 PM, Nate Beck n...@tldstudio.com wrote: Option 3! Always opt to use event based architecture. It promotes loose coupling of your components. Although it might be a bit more code, you will be able to use BouncingBall within many games, or other applications. On Thu, Feb 5, 2009 at 10:02 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Cheers, Nate http://blog.natebeck.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Getting attributes out of a node with : in it
For example I have a node like so: yweather:condition text=Partly Cloudy code=30 temp=34 date=Mon, 09 Feb 2009 12:56 pm EST/ How can I get into that node to pull attributes out? The : in the node name is screwing my up at the moment. Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Getting attributes out of a node with : in it
Cheers - thanks ;) On Mon, Feb 9, 2009 at 3:17 PM, Robert Leisle b...@headsprout.com wrote: Check out the Namespace class, as it applies to XML, in the Flash docs. There's also a good explanation in this tutorial by Lee Brimelow: http://gotoandlearn.com/play?id=65 hth, Bob -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Monday, February 09, 2009 10:37 AM To: Flash Coders List Subject: [Flashcoders] Getting attributes out of a node with : in it For example I have a node like so: yweather:condition text=Partly Cloudy code=30 temp=34 date=Mon, 09 Feb 2009 12:56 pm EST/ How can I get into that node to pull attributes out? The : in the node name is screwing my up at the moment. Eric ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Getting attributes out of a node with : in it
Ok, so in my XML loaded function I have this: private function loadedXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); var yweather:Namespace = new Namespace( http://weather.yahooapis.com/ns/rss/1.0; ); trace( myXML.channel.item.yweather::conditi...@temp ); } I get nothing. I'm pretty sure my scope is correct. As long as the namespace var name matches the tag I'm after, I should be able to get to it, correct? On Mon, Feb 9, 2009 at 3:27 PM, Taka Kojima t...@gigafied.com wrote: I just realized that the link I sent doesn't mention the namespace operator, which is the main thing you need... The following example uses the :: operator to identify XML properties with specified namespaces: var soap:Namespace = new Namespace(http://schemas.xmlsoap.org/wsdl/soap/ ); var w:Namespace = new Namespace(http://weather.example.org/forecast;); var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; soap:Body w:forecast xmlns:w=http://weather.example.org/forecast; w:cityQuito/w:city w:countryEcuador/w:country date2006-01-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 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 edole...@gmail.com wrote: For example I have a node like so: yweather:condition text=Partly Cloudy code=30 temp=34 date=Mon, 09 Feb 2009 12:56 pm EST/ How can I get into that node to pull attributes out? The : in the node name is screwing my up at the moment. Eric ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Getting attributes out of a node with : in it
Thanks all - I had it correct, but the Yahoo! specs in regards to sample XML fed back was wrong... and thus my namespace URI was wrong - so I never got anything. Thanks for your help - working great now. On Mon, Feb 9, 2009 at 4:19 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: This should work: private function loadedXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); var ywNS:Namespace = myXml.namespace(yweather); trace( myXML.channel.item.ywNS::conditi...@temp ); } Jason Merrill Bank of America Learning Performance Solutions Instructional Technology Media Learn about the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Monday, February 09, 2009 4:10 PM To: Flash Coders List Subject: Re: [Flashcoders] Getting attributes out of a node with : in it Ok, so in my XML loaded function I have this: private function loadedXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); var yweather:Namespace = new Namespace( http://weather.yahooapis.com/ns/rss/1.0; ); trace( myXML.channel.item.yweather::conditi...@temp ); } I get nothing. I'm pretty sure my scope is correct. As long as the namespace var name matches the tag I'm after, I should be able to get to it, correct? On Mon, Feb 9, 2009 at 3:27 PM, Taka Kojima t...@gigafied.com wrote: I just realized that the link I sent doesn't mention the namespace operator, which is the main thing you need... The following example uses the :: operator to identify XML properties with specified namespaces: var soap:Namespace = new Namespace( http://schemas.xmlsoap.org/wsdl/soap/ ); var w:Namespace = new Namespace(http://weather.example.org/forecast;); var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; soap:Body w:forecast xmlns:w=http://weather.example.org/forecast; w:cityQuito/w:city w:countryEcuador/w:country date2006-01-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 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 edole...@gmail.com wrote: For example I have a node like so: yweather:condition text=Partly Cloudy code=30 temp=34 date=Mon, 09 Feb 2009 12:56 pm EST/ How can I get into that node to pull attributes out? The : in the node name is screwing my up at the moment. Eric ___ 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 -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Strange XML parsing thing
Maybe it's Friday and I'm tired, but this just seems so weird. Something I have done 8 billions times before and now things are acting up. Code couldn't be much more simple. var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); function onLoadXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); trace( myXML); } I get this: ExtendedQuote xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns=http://www.xignite.com/services/; OutcomeSuccess/Outcome MessageDelay times are 15 mins for NASDAQ, NYSE and AMEX./Message IdentityCookie/Identity Delay0.515625/Delay NameApple Inc./Name ExchangeNASDAQ/Exchange Quote SymbolAAPL/Symbol Previous_Close99.27/Previous_Close Open99.11/Open High99.80/High ... In a browser I get this (for the URL): ?xml version=1.0 encoding=utf-8? ExtendedQuote xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns=http://www.xignite.com/services/; OutcomeSuccess/Outcome MessageDelay times are 15 mins for NASDAQ, NYSE and AMEX./Message IdentityCookie/Identity Delay0.515625/Delay NameApple Inc./Name ExchangeNASDAQ/Exchange Quote SymbolAAPL/Symbol Previous_Close99.27/Previous_Close Open99.11/Open High99.80/High Note the red definition there. I don't get that in my XML in AS3. Anyway, When I try to trace out myXML.ExtendedQuote, I get nothing. When I trace out myXML.Name, I get nothing. I don't see namespaced nodes anywhere, so what exactly is going on? I just want to get at some of that data sitting in simple nodes. So freaking weird. Thanks for any insight, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strange XML parsing thing
I ended up with this 1. function onLoadXML( e:Event ):void 2. { 3. var ns:Namespace = new Namespace(http://www.xignite.com/services/; ); 4. var myXML:XML = new XML( e.target.data ); 5. 6. trace( Name + myXML.ns::Name ); 7. trace( Last + myXML.ns::Quote.ns::Last ); 8. trace( Price Earnings + myXML.ns::Statistics.ns::Price_Earnings ); 9. trace( myXML.ns::News.ns::StockNews.ns::Headline[0] ); 10. var len:Number = myXML.ns::News.ns::StockNews.ns::Headline.length(); 11. trace( myXML.ns::News.ns::StockNews.ns::Headline[len-1]); 12. } On Fri, Feb 13, 2009 at 5:10 PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote: trace(myXML.children().(localName() == Outcome)); -- Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: Maybe it's Friday and I'm tired, but this just seems so weird. Something I have done 8 billions times before and now things are acting up. Code couldn't be much more simple. var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); function onLoadXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); trace( myXML); } I get this: ExtendedQuote xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns=http://www.xignite.com/services/; OutcomeSuccess/Outcome MessageDelay times are 15 mins for NASDAQ, NYSE and AMEX./Message IdentityCookie/Identity Delay0.515625/Delay NameApple Inc./Name ExchangeNASDAQ/Exchange Quote SymbolAAPL/Symbol Previous_Close99.27/Previous_Close Open99.11/Open High99.80/High ... In a browser I get this (for the URL): ?xml version=1.0 encoding=utf-8? ExtendedQuote xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns=http://www.xignite.com/services/; OutcomeSuccess/Outcome MessageDelay times are 15 mins for NASDAQ, NYSE and AMEX./Message IdentityCookie/Identity Delay0.515625/Delay NameApple Inc./Name ExchangeNASDAQ/Exchange Quote SymbolAAPL/Symbol Previous_Close99.27/Previous_Close Open99.11/Open High99.80/High Note the red definition there. I don't get that in my XML in AS3. Anyway, When I try to trace out myXML.ExtendedQuote, I get nothing. When I trace out myXML.Name, I get nothing. I don't see namespaced nodes anywhere, so what exactly is going on? I just want to get at some of that data sitting in simple nodes. So freaking weird. Thanks for any insight, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strange XML parsing thing
Thanks for all of this!! So this should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); myLoader.dataFormat = XML; //var ns:Namespace = new Namespace( http://www.xignite.com/services/;); function onLoadXML( e:Event ):void { var myXML:XML = new XML(e.target.data); //trace( myXML); var ns:Namespace = myXML.namespace(); default xml namespace = ns; trace(Outcome: , myXML.Outcome); trace(Delay: , myXML.Delay); } On Fri, Feb 13, 2009 at 5:25 PM, Muzak p.ginnebe...@telenet.be wrote: There is a default namespace, namely: http://www.xignite.com/services/ The following should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); myLoader.dataFormat = XML; var ns:Namespace = new Namespace(http://www.xignite.com/services/;); function onLoadXML( e:Event ):void { var myXML:XML = new XML(e.target.data); //trace( myXML); default xml namespace = ns; trace(Outcome: , myXML.Outcome); trace(Delay: , myXML.Delay); } regards, Muzak - Original Message - From: Eric E. Dolecki edole...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, February 13, 2009 10:08 PM Subject: [Flashcoders] Strange XML parsing thing Maybe it's Friday and I'm tired, but this just seems so weird. Something I have done 8 billions times before and now things are acting up. Code couldn't be much more simple. var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); function onLoadXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); trace( myXML); } Anyway, When I try to trace out myXML.ExtendedQuote, I get nothing. When I trace out myXML.Name, I get nothing. I don't see namespaced nodes anywhere, so what exactly is going on? I just want to get at some of that data sitting in simple nodes. So freaking weird. Thanks for any insight, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strange XML parsing thing
rockin' On Fri, Feb 13, 2009 at 6:53 PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote: You can reduce one more line :) default xml namespace = myXML.namespace(); Kenneth Kawamoto http://www.materiaprima.co.uk/ Eric E. Dolecki wrote: Thanks for all of this!! So this should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); myLoader.dataFormat = XML; //var ns:Namespace = new Namespace( http://www.xignite.com/services/;); function onLoadXML( e:Event ):void { var myXML:XML = new XML(e.target.data); //trace( myXML); var ns:Namespace = myXML.namespace(); default xml namespace = ns; trace(Outcome: , myXML.Outcome); trace(Delay: , myXML.Delay); } On Fri, Feb 13, 2009 at 5:25 PM, Muzak p.ginnebe...@telenet.be wrote: There is a default namespace, namely: http://www.xignite.com/services/ The following should work: var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); myLoader.dataFormat = XML; var ns:Namespace = new Namespace(http://www.xignite.com/services/;); function onLoadXML( e:Event ):void { var myXML:XML = new XML(e.target.data); //trace( myXML); default xml namespace = ns; trace(Outcome: , myXML.Outcome); trace(Delay: , myXML.Delay); } regards, Muzak - Original Message - From: Eric E. Dolecki edole...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, February 13, 2009 10:08 PM Subject: [Flashcoders] Strange XML parsing thing Maybe it's Friday and I'm tired, but this just seems so weird. Something I have done 8 billions times before and now things are acting up. Code couldn't be much more simple. var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener( Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest( http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL; )); function onLoadXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); trace( myXML); } Anyway, When I try to trace out myXML.ExtendedQuote, I get nothing. When I trace out myXML.Name, I get nothing. I don't see namespaced nodes anywhere, so what exactly is going on? I just want to get at some of that data sitting in simple nodes. So freaking weird. Thanks for any insight, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
Could you use some temporary HTML to do that and write the HTML internally? On Thu, Feb 26, 2009 at 8:50 AM, Omar Fouad omarfouad@gmail.com wrote: Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance -- Omar M. Fouad - ActionScript Developer www.omar-fouad.net Cellular: (+20) 1011.88.534 Mail: m...@omar-fouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] And another one re: try-catch-finally statements
I *think* that if that array is built up out of a URLRequest or something and the URL to call is down, a finally would catch that and the error wouldn't. But I'm not positive about that. On Tue, Mar 3, 2009 at 10:02 PM, SJF sjf...@gmail.com wrote: I have a head-cold (hence the possibly obvious answer to this question) and a block of code as such: function checkResponder(e:Event = null):void { try { bPollingDatabase = true; updateListArray(); } catch (err:Error) { // } } Now considering there is no code in the 'catch' block, there can be absolutely no benefit whatsoever to using try-catch-finally in the above instance. Is this correct? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem with export linkage definition in a loaded swf
Are you sure the swf is loaded before trying to instantiate the class? On Mon, Mar 9, 2009 at 8:47 AM, laurent laur...@logiquefloue.org wrote: Hi, I have a map.swf containing a linked movie clip named Paris as a exported Class. I load this map from another swf. The problem that occure in different ways is that the loading swf don't recognise the Paris definition: 1046: Type was not found or was not a compile-time constant: Paris. // this is for definition : public var view : Paris; 1180: Call to a possibly undefined method Paris. // this is for instantiation: view = new Paris(); I don't know what to do, except putting that Paris map directly on stage to avoid linkage. thx Laurent ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 - XML Filter by Date
I suppose if the XML has that kind of data in it you could. On Mon, Mar 9, 2009 at 12:02 PM, Doug Coning dcon...@webize.com wrote: Greetings everyone, In AS3, can you filter xml by a date value or range? Thanks, Doug Coning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Playing Flash video in slow-motion
I don't know what the point of keeping the pitch the same would actually be... On Sat, Mar 14, 2009 at 1:11 PM, Paul Andrews p...@ipauland.com wrote: - Original Message - From: Adam Duston a...@langolab.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Cc: Jennifer Ede jenni...@langolab.com Sent: Saturday, March 14, 2009 4:43 PM Subject: Re: [Flashcoders] Playing Flash video in slow-motion Hi Paul, Thank you for your reply. Just how can you play a sound slowly without altering the pitch? Thanks, I overlooked this important implementation detail. Keep a separate swf with the sound recorded slowly but with lowered pitch. The video player loads both the video swf (with regular sound) and the sound-only swf file (with slow sound). Then, when the slow button is clicked, play the video swf slowly with no sound, and simultaneously play the sound-only swf file at a synchronized location. Maybe this would work with the flv solution so long as the sound-only file is kept in swf format or in flv but streamed through a flash media server instance, so that seeking could be done to non-keyframe locations. I would be amazed if it would work. Does anyone on the list know of any site with slow-motion playback where the sound has retained the original pitch? The only way I can imagine it working is to raise the sound pitch of the clip in proportion to the slowdown to try and retain the original pitch. I have no idea if it's possible. Good luck. Thanks again, Adam On Fri, Mar 13, 2009 at 8:59 PM, Paul Andrews p...@ipauland.com wrote: - Original Message - From: Adam Duston a...@langolab.com To: flashcoders@chattyfig.figleaf.com Cc: Jennifer Ede jenni...@langolab.com Sent: Friday, March 13, 2009 10:37 PM Subject: [Flashcoders] Playing Flash video in slow-motion Dear Flashcoders, I must play an FLV in slow motion. After googling around for this for several hours I've found many bad solutions. For example, the one at http://www.flashcomguru.com/index.cfm/2005/8/2/slowmo is extremely choppy, whereas the one at http://richapps.de/?p=36 doesn't also play the sound. I must play the sound slowly as well, without altering its pitch. Just how can you play a sound slowly without altering the pitch? I have a solution in mind: I'm going to store each of my videos in SWF format in one-minute segments. As each segment finishes downloading, my custom player will start downloading the next segment, and will play each of them back-to-back. I have proof that when a video is in SWF format, it can be played in slow motion without noticeable degradation in sound quality. As you can tell, this solution is hacky and is going to take a lot of work to implement. So, before implementing it, I wanted to make a final check with the experts to make sure I'm not wasting my time. Thank you, Adam -- Founder, langolab.com a...@langolab.com Skype: aduston ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Intersection on circle based on angle
I've done this before but can't find my file(s). I am currently googling but haven't found the answer yet (I'm sure it's out there, just need to rediscover it). I have a circle, registration at 0, 0. If I have an angle from it's center, I'd like to get x,y where the angle would intersect with the edge of the circle. I am basically drawing dots around the outside of a circle (think mixing console knobs with a variable number of detents). anyone have something handy? -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Intersection on circle based on angle
Okay this thing may be the coolest thing I've seen in a while. However it's acting funny. If I do this: var coord:Point = Point.polar( _radius, angle ); It works great. But I am after a point further out than _radius. So naturally I pad it a little... var coord:Point = Point.polar( _radius + 10, angle ); and now coord.x and coord.y seems to be rotated AND being determined further out. Since I'm not altering angle, what's going on here? On Tue, Mar 17, 2009 at 10:15 AM, Eric E. Dolecki edole...@gmail.comwrote: Jason, Could you elaborate please? Point.polar( length, angle ); I have the angle (say 0 degrees). The length would then be pixels from the center (ie. radius)? On Tue, Mar 17, 2009 at 9:53 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: In AS3, Point.polar() Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Tuesday, March 17, 2009 9:17 AM To: Flash Coders List Subject: [Flashcoders] Intersection on circle based on angle I've done this before but can't find my file(s). I am currently googling but haven't found the answer yet (I'm sure it's out there, just need to rediscover it). I have a circle, registration at 0, 0. If I have an angle from it's center, I'd like to get x,y where the angle would intersect with the edge of the circle. I am basically drawing dots around the outside of a circle (think mixing console knobs with a variable number of detents). anyone have something handy? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Intersection on circle based on angle
sorry - found my pilot error. this ROCKS - thanks, I never would have found that. LOTS of cool stuff in the Point class. On Tue, Mar 17, 2009 at 10:34 AM, Eric E. Dolecki edole...@gmail.comwrote: Okay this thing may be the coolest thing I've seen in a while. However it's acting funny. If I do this: var coord:Point = Point.polar( _radius, angle ); It works great. But I am after a point further out than _radius. So naturally I pad it a little... var coord:Point = Point.polar( _radius + 10, angle ); and now coord.x and coord.y seems to be rotated AND being determined further out. Since I'm not altering angle, what's going on here? On Tue, Mar 17, 2009 at 10:15 AM, Eric E. Dolecki edole...@gmail.comwrote: Jason, Could you elaborate please? Point.polar( length, angle ); I have the angle (say 0 degrees). The length would then be pixels from the center (ie. radius)? On Tue, Mar 17, 2009 at 9:53 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: In AS3, Point.polar() Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Tuesday, March 17, 2009 9:17 AM To: Flash Coders List Subject: [Flashcoders] Intersection on circle based on angle I've done this before but can't find my file(s). I am currently googling but haven't found the answer yet (I'm sure it's out there, just need to rediscover it). I have a circle, registration at 0, 0. If I have an angle from it's center, I'd like to get x,y where the angle would intersect with the edge of the circle. I am basically drawing dots around the outside of a circle (think mixing console knobs with a variable number of detents). anyone have something handy? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development -- http://ericd.net Interactive design and development -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Intersection on circle based on angle
Thanks man, you just changed my world. On Tue, Mar 17, 2009 at 10:26 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I have the angle (say 0 degrees). The length would then be pixels from the center (ie. radius)? Yes, radius is pixel distance from starting point (in your case, the center point of the circle). Then you just need to convert angle to radians and you're good to go. var cartesianPoint:Point = Point.polar(len, angleInRadians); Here are some handy methods for you from one of my extended math classes: public static function polarToCartesian(distance:Number, degrees:Number):Point { var radians:Number = (degrees * Math.PI) / 180; return Point.polar(distance, radians); } public static function degreesToRadians(degrees:Number):Number { return (degrees * Math.PI)/180; } public static function radiansToDegrees(radians:Number):Number { return (radians*180)/Math.PI; } public static function cartesianAngle(fromPoint:Point, toPoint:Point):Number { var radians:Number = Math.atan2(toPoint.y-fromPoint.y, toPoint.x-fromPoint.x); var backAzimuthDegrees:Number = MathTranslation.radiansToDegrees(radians); return MathTranslation.getBackAzimuth(backAzimuthDegrees); } public static function getBackAzimuth(angle:Number):Number { var backAzimuth:Number; if(angle 180) { var tempNeg:Number = angle-180; backAzimuth = tempNeg + 360; } else { backAzimuth = angle-180; } return backAzimuth; } Also, see this article: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2060.html Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Intersection on circle based on angle
Yup - .polar is working GREAT (and yes, using radians) now lets say I have a position somewhere and I want to see where an angle from it intersects a rectangle (assuming the point is within the rectangle)... is there a similar method to get that x, y? On Tue, Mar 17, 2009 at 11:36 AM, Piers Cowburn m...@pierscowburn.com wrote: Lots of cool stuff in the Rectangle class too, in case you didn't know :) Piers On 17 Mar 2009, at 15:00, Eric E. Dolecki wrote: Thanks man, you just changed my world. On Tue, Mar 17, 2009 at 10:26 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I have the angle (say 0 degrees). The length would then be pixels from the center (ie. radius)? Yes, radius is pixel distance from starting point (in your case, the center point of the circle). Then you just need to convert angle to radians and you're good to go. var cartesianPoint:Point = Point.polar(len, angleInRadians); Here are some handy methods for you from one of my extended math classes: public static function polarToCartesian(distance:Number, degrees:Number):Point { var radians:Number = (degrees * Math.PI) / 180; return Point.polar(distance, radians); } public static function degreesToRadians(degrees:Number):Number { return (degrees * Math.PI)/180; } public static function radiansToDegrees(radians:Number):Number { return (radians*180)/Math.PI; } public static function cartesianAngle(fromPoint:Point, toPoint:Point):Number { var radians:Number = Math.atan2(toPoint.y-fromPoint.y, toPoint.x-fromPoint.x); var backAzimuthDegrees:Number = MathTranslation.radiansToDegrees(radians); return MathTranslation.getBackAzimuth(backAzimuthDegrees); } public static function getBackAzimuth(angle:Number):Number { var backAzimuth:Number; if(angle 180) { var tempNeg:Number = angle-180; backAzimuth = tempNeg + 360; } else { backAzimuth = angle-180; } return backAzimuth; } Also, see this article: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2060.html Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Piers m...@pierscowburn.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Question about AS3 components
I have a component I am building that has a default size set with an avatar clip. When it's placed on stage by hand, it uses that dimension and it removes that clip. Great. I have overriden height and width mutators and accessors. When I resize the component on stage, it works correctly, but I have the blue outline selection box at the default size still, not properly bounding the resized contents of the component. Is there a trick I should use here? -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about AS3 components
This is not for Flex, this is straight AS3 and using the IDE to generate the SWC. I am subclassing Sprite. On Tue, Mar 17, 2009 at 2:33 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I was asking about the required method overrides for AS3 components in Flex to do some similar things, and Muzak posted this here back on Feb 2nd - even if you're not using Flex, much of this is likely still relevant. Unfortunately, Adobe doesn't really have great documentation on this: Flexcoders can be a bit overwhelming and posts get lost in the masses. Try FlexComponents on yahoo instead for component related posts. http://tech.groups.yahoo.com/group/flexcomponents/ Does this have the information you need? http://livedocs.adobe.com/flex/3/html/help.html?content=ascomponents_adv anced_1.html http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_3.html#21410 4 Here's a summary from the docs: http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_2.html#21977 9 quote To implement your component, follow these general steps: 1. If necessary, create any skins for the component. 2. Create an ActionScript class file. 1. Extend one of the base classes, such as UIComponent or another component class. 2. Specify properties that the user can set by using an MXML tag property. 3. Embed any graphic and skin files. 4. Implement the constructor. 5. Implement the UIComponent.createChildren() method. 6. Implement the UIComponent.commitProperties() method. 7. Implement the UIComponent.measure() method. 8. Implement the UIComponent.layoutChrome() method. 9. Implement the UIComponent.updateDisplayList() method. 10. Add properties, methods, styles, events, and metadata. 3. Deploy the component as an ActionScript file or as a SWC file. /quote regards, Muzak Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Particle Playground, Flash 10 General Purpose Comuting with Pixel Bender
Ping us when you release something or have a demo online. Looks cool. E. On Wed, Mar 18, 2009 at 8:03 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: awesome:) On Wed, Mar 18, 2009 at 12:45 PM, mike cann mike.c...@gmail.com wrote: Hey List, I have been playing around with particles again... I have just released my latest little saunter into the world of particles and shaders in flash 10. It started off as and idea to use the new pixel bender shaders of flash 10 as a more efficient method of updating particle simulations. Well after a few struggling evenings I managed to get a little prototype going. I was so amazed at some of the beautiful patterns and effects that the particles were making I thought it may be nice rather than just releasing a tech demo, to add abit more to it and release it for others to enjoy. I will be releasing the source code in the coming weeks along with a blog post which should explain in detail how the technical aspects of updating and rendering tens of thousands of particles per frame works. The tool features a gallery tab which you can use to take screenshots then upload them to my picassa account (proxyed via php). The hope is to get some realy beautiful images in here, perhaps if some are good enough ill get them printed and framed ;) You can see it in action over on my blog: http://www.mikecann.co.uk/?p=384 Let me know what you think! Mike Cann http://www.mikecann.co.uk/ http://www.artificialgames.co.uk/ ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] odd error when I try a rss viewer on internet
Did you put the rss file online? On Wed, Mar 18, 2009 at 10:09 AM, Gustavo Duenas LRS gdue...@leftandrightsolutions.com wrote: Hi I have this odd error using the rssviewer on the as3 samples on the adobe website. The Rssviewer is working fine locally, but when I put it on the internet it gives me this error, anyone knows why? Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: RSSData/mafleFeedAtom.rss at com.example.programmingas3.rssViewer::RSSParser() at RSSViewer_fla::MainTimeline/frame1() I hope you can help me Gustavo ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic Images and the Library
Not in AS2, but you can do it serverside I think. Thanks, E. On May 3, 2009, at 6:24 AM, Karl DeSaulniers k...@designdrumm.com wrote: Well, I am working in AS2. Is there something like that in AS2? Thanks for your input. Karl DeSaulniers Design Drumm http://designdrumm.com On May 3, 2009, at 12:19 AM, Muzak wrote: Google for JPEGEncoder and/or PNGEncoder. - Original Message - From: Karl DeSaulniers k...@designdrumm.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, May 03, 2009 5:30 AM Subject: Re: [Flashcoders] Dynamic Images and the Library Thanks Ashim. I will try that. Sent from losPhone On May 2, 2009, at 10:06 PM, Ashim D'Silva as...@therandomlines.com wrote: If you're dynamically loading an image, it doesn't have to be an mc, it's bitmap data and can be treated so. If you want to save the contents of an mc to an image, use bitmapData.draw(mc) to get bitmapData and write that to a jpeg/ png on your server. You should be able to find a tutorial that runs you through the whole process. Ashim The Random Lines My online portfolio www.therandomlines.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
[Flashcoders] Projector, loaded SWFs and audio files
Quick question. I have a projector that loads SWFs on demand. The SWFs are in a subdirectory called Sections. Each section SWF that loads into the directory loads it's own audio from a folder inside the Sections directory. Works fine on their own, but when loaded into the Projector, the relative path is off as the SWFs loaded into the projector now think they are at the same directory level as the projector and the load audio gets botched. How can I fix this so it works from the SWF themselves as well as within the projector (without embedding the audio anywhere)? E ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Papervision3D - amorphous object with buttons
I must admit I am pretty new still to PV3D - I am looking for a sample that has a non-spherical, non-planar object that can be rotated around that has buttons on it one can click on. Think an extruded oval or something with buttons on various sides. Is there a really good starting point for this particular use-case I should check out or someone has available? Thanks, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] transparency in flash
Google AS3 blendmode On Fri, Jun 19, 2009 at 4:36 PM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi there, in Illustrator and photoshop you can set the transaparency to overlay, normal, soft light, hardlight, multiply, etc, there is away to set this thing also using action script 3? Regards, Gustavo ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Constrain drag to non-rectangular shape
I'd like to constrain a drag to an area that isn't a rectangle, which leads me to hitTest and an enter frame thing. However I am wondering if it could be done with math instead. At the moment: constrain to a multi-point shape (think deformed trapezoid) but could be ellipses, circles, etc. Wondering if my 1st thought is the way to go. E ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 multi-range slider
Before I set out to code one of these up, does anyone have an AS3 range slider that can use more than two thumbs? Like four or five? Not using Flex. Thanks for any pointers in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] for the love of your own personal god... sign up and vote
What do you need this access for, where activityLevel wouldn't serve you? On Mon, Jul 13, 2009 at 5:17 PM, Anthony Pace anthony.p...@utoronto.cawrote: to open the microphone, so we can use computer spectrum, sign up and vote please, please, please, please, please http://bugs.adobe.com/jira/browse/FP-1766 I can't believe there are only 85 votes for this; before Adobe takes the request seriously, they will need at least a few thousand IMHO. Why can their server and voip applications do this and our applications are not allowed to? because Adobe is trying to prevent competition. I would join a class action lawsuit if anyone wants to get one started. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] To Void or not to void?? That is my question..
void is good when you compile - if your method does not return something and you try to return something from the method, your compiler will complain which is good: private function foo():void { return true; } // 1051:Return value must be undefined. Also, if you define something being returned as an expected part of the method but do not return something you'll also get an error private function foo():Boolean { // } // 1170: Function does not return a value. On Tue, Jul 14, 2009 at 2:58 AM, Kerry Thompson al...@cyberiantiger.bizwrote: Karl DeSaulniers wrote: Using AS2. When is it best to use the :Void ? and what is the difference between that and :void ? You use void when a function doesn't return anything. In fact, there are some languages, like Pascal and, I believe, Fortran, that have that built in. In Pascal, a function returns something, while a procedure doesn't. A Pascal programmer would use a function to do something like perform a calculation--let's say, figure the square root of a number. A procedure would do something like drawing a line. Void is AS2, and void is AS3. I have no idea why the spelling change, but ActionScript is, of course, case sensitive. What are the advantages and why use them if say, your function works without them? Clarity, mainly. Also, in AS3, if you have strict type checking on (it's the default), every function must have a type, so you use void when your function won't return anything. If you declare a function as :void, and have a return in it, I believe the compiler throws an error. I know that the Void is a Boolean, but I also know you cant use it when the statement returns something. Does this return include any of the basics like gotoAndPlay? or does it literally mean a return(); Void actually isn't a Boolean. Technically, its value is undefined. AFAIK, :void can only be used as the return type of a function. You can't declare a variable as void. Down on the nuts and bolts level, every function is a subroutine. You call it, and it returns control to the calling object. So every function returns; some pass a value back, and some don't. HTH. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Actionscript Documentators
If you're on a Mac, this completely rocks: http://visiblearea.com/visdoc/ No tree menu, but I love the docs this generates. On Mon, Jul 20, 2009 at 8:19 PM, Álvaro Saraiva alv...@glups.pt wrote: Hi, I need to create documentation for some class files in AS2, and found ZendDoc (http://www.zendoc.org). It's fine, but lacks a tree menu like PHPDocumentator, and it's kind of confusing configurating HTML Templates to render the final files. Any sugestions about Documentation Creators for Actionscript? Thanxs in Advance, Álvaro ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dancing characters...
try rounded values? On Wed, Jul 22, 2009 at 11:31 AM, Sander Schuurman b...@chello.nl wrote: Hi list... I'm trying to make some kind of Dock... http://www.sentoplene.com/dock But sometimes when I stop with the mouse, some characters keep on moving slightly... How can I get rid of that? I'm simply doing on Event .ENTER_FRAME: scaleIcons and then positionIcons. I'v tried to trigger the 2 functions only on MouseMove, but the responsiveness isn't accurate when you suddenly stop your mouse... So anyone any idea with this? thnx! Sander Schuurman sentoplene.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] a real custom cursor
You'll need to use a Sprite. Make sure to use event.updateAfterEvent() on your mouseMove event handler. Should work fine. I've swapped cursors using java and Flash talking to it (and controlled the cursor position that way as well)... but that was for a standalone special-case use. I am sure you're not after that kind of thing. Eric On Tue, Jul 28, 2009 at 3:09 PM, Andrew Sinning and...@learningware.comwrote: Does AS3 support real custom cursors? The only solution that I've found is to hide the cursor and to have a sprite follow the mousex/y around, but it feels like the mouse is sticking when it doesn't refresh a quickly as one would like. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] a real custom cursor
If you are replying to me for the cursor thing and Java, I was controlling the position and I believe I changed the cursor to another type that was already available in the OS. It was so long ago, but I don't think I was able to change the OS cursor to something not already available to it. On Tue, Jul 28, 2009 at 3:49 PM, Karl DeSaulniers k...@designdrumm.comwrote: Does your sprite image have to be converted into an icon to do this? Or what is the max size that image can be? I have had to abandon my custom cursor because it laggs when switching with the mouse. Karl Sent from losPhone On Jul 28, 2009, at 2:35 PM, Eric E. Dolecki edole...@gmail.com wrote: You'll need to use a Sprite. Make sure to use event.updateAfterEvent() on your mouseMove event handler. Should work fine. I've swapped cursors using java and Flash talking to it (and controlled the cursor position that way as well)... but that was for a standalone special-case use. I am sure you're not after that kind of thing. Eric On Tue, Jul 28, 2009 at 3:09 PM, Andrew Sinning and...@learningware.com wrote: Does AS3 support real custom cursors? The only solution that I've found is to hide the cursor and to have a sprite follow the mousex/y around, but it feels like the mouse is sticking when it doesn't refresh a quickly as one would like. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AWS calls with signature... not working
I tried this class out: http://blog.promethe.net/2009/08/24/amazon-web-services-rest-queries-signature-in-actionscript-3/ I compiled a SWC out of FB and hooked up the crypto stuff from as3corelib, and when I provide my key and secret key, I get this returned XML (Error opening URL): ?xml version=1.0? ItemSearchErrorResponse xmlns=http://ecs.amazonaws.com/doc/2009-01-06/;ErrorCodeSignatureDoesNotMatch/CodeMessageThe request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details./Message/ErrorRequestIDeceb7bee-8c4e-4e67-827b-6b5a2c14cf3a/RequestID/ItemSearchErrorResponse My secret key and my key are correct in my call. Has anyone found any problems with the supplied URL's class? -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Catalyst
It needs layouts and stuff so it's flex with as3 Thanks, Eric On Sep 26, 2009, at 6:29 PM, Anthony Pace anthony.p...@utoronto.ca wrote: Anyone try catalyst? Does it only output to flex style code that make babies cry, or does it output do pure AS3 too? ___ 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] as3 to iphone app
I would take those 4 books and get to know them inside and out. While compiling AS3 to iPhone app is neat, there is no substitute for knowing how to make an iPhone app with access to all of the APIs natively. Learning Objective-C is quite useful and will help round out your toolset. If you want to *really* make iPhone apps, use Xcode and the SDK. If you just want to get some stuff up on the store quickly, use CS5 I guess. Just my opinion. On Thu, Oct 8, 2009 at 4:16 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: /sign makes the 4 books on iphone development i bought a bit of a non-starter - i wonder if you can edit the iphone project once it's done and how they're dealing with multitouch / accelerometer data (or is that already built in to FP10.1?) On Thu, Oct 8, 2009 at 7:15 AM, Anthony Pace anthony.p...@utoronto.ca wrote: I will totally be buying Flash professional CS5 http://labs.adobe.com/wiki/index.php/Applications_for_iPhone Compiling for the iphone will work on windows systems too, and still be able to published on the app store. ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 to iphone app
Yes, it is an assumption not based on any fact. My opinion right now as I believe I stated originally. I saw what is supported and I know the vast ocean of iPhone APIs that are available when developing natively. I won't assume that the level of control Adobe will offer in the conversion compile can be nearly as good as when compiling using Xcode. I could be wrong, but having people learn how to drive in a simulator probably won't ever be as good as driving the real thing. That's all. I hope Adobe proves me wrong. But I don't think abandoning learning Obj-C is favor of AS3 is a good idea regardless... it's great to know both or more. Eric On Thu, Oct 8, 2009 at 7:22 PM, Mike Chambers mcham...@adobe.com wrote: I think that is a misguided statement, not based on any fact. Why do you assume / suggest that using Flash will be inferior for building all types of iPhone applications and content? mike chambers m...@adobe.com On Oct 8, 2009, at 5:50 AM, Eric E. Dolecki wrote: If you want to *really* make iPhone apps, use Xcode and the SDK. If you just want to get some stuff up on the store quickly, use CS5 I gues ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 to iphone app
What I meant by simulator is that there is a layer of stuff between you and the final bits when using CS5. That's probably great for some things. However, you are handicapped for obvious reasons. I am not saying CS5 won't be great for some kind of things, but I don't believe that it can approach coding iPhone apps up natively. No Instruments, no threading (as far as I know... and I haven't heard anything about that), specifics about UIImageView and UIImage, and all that. It all depends on what Adobe Engineers have decided how things will be compiled, etc. If you have aspirations to develop iPhone apps, you can use CS5 sure, but knowing how to do it natively will be a big bonus. AND you'll be able to make Mac applications too - since it's so similar in many ways to what you do for the iPhone. One thing I haven't seen yet perhaps you could enlighten... can one call up iPhone controls (ie. lists, toolbars, music picker, etc.) and perform view switching, etc? On Thu, Oct 8, 2009 at 8:22 PM, Mike Chambers mcham...@adobe.com wrote: Well, it is not a simulator. The SWF is compiled using LLVM to native arm code. Is every native iphone available? No. However, for the APIs that are available, there is no reason to expect that you couldn't build as full featured apps / games / content as you could with any other solution (such as Objective-C or Unity3D). mike chambers m...@adobe.com On Oct 8, 2009, at 5:13 PM, Eric E. Dolecki wrote: Yes, it is an assumption not based on any fact. My opinion right now as I believe I stated originally. I saw what is supported and I know the vast ocean of iPhone APIs that are available when developing natively. I won't assume that the level of control Adobe will offer in the conversion compile can be nearly as good as when compiling using Xcode. I could be wrong, but having people learn how to drive in a simulator probably won't ever be as good as driving the real thing. That's all. I hope Adobe proves me wrong. But I don't think abandoning learning Obj-C is favor of AS3 is a good idea regardless... it's great to know both or more. Eric On Thu, Oct 8, 2009 at 7:22 PM, Mike Chambers mcham...@adobe.com wrote: I think that is a misguided statement, not based on any fact. Why do you assume / suggest that using Flash will be inferior for building all types of iPhone applications and content? mike chambers m...@adobe.com On Oct 8, 2009, at 5:50 AM, Eric E. Dolecki wrote: If you want to *really* make iPhone apps, use Xcode and the SDK. If you just want to get some stuff up on the store quickly, use CS5 I gues ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Printing HTML in AIR HTML control?
I have an HTML component in an AIR app. I load a page into it, but how can I print the contents of that page? I've tried this which works, but my page is cropped strangely (I get the top left corner of the page - clipping contents to the right and I don't come close to getting the whole page): function doPrintAir():void { var pjob:PrintJob = new PrintJob(); if ( pjob.start() ){ var poptions:PrintJobOptions = new PrintJobOptions(); poptions.printAsBitmap = true; pjob.addPage(browser.htmlLoader, null, poptions); pjob.send(); } } -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Compare two date ( how many days left )
public static function getDaysBetweenDates(date1:Date,date2:Date):int { var one_day:Number = 1000 * 60 * 60 * 24 var date1_ms:Number = date1.getTime(); var date2_ms:Number = date2.getTime(); var difference_ms:Number = Math.abs(date1_ms - date2_ms) return Math.round(difference_ms/one_day); } On Tue, Oct 13, 2009 at 12:48 PM, ACE Flash acefl...@gmail.com wrote: Hi there, I am using the date class in flash as3, I was wondering how to compare two date and return how may days left. for instance: my target date is 10/18/2009(mm/dd/), I would like to compare with the current date 10/13/2009, the script returns 5. something like var localDate:Date = new Date(); var day:Number = localDate.getDay(); var month:Number = localDate.getMonth(); var year:Number = localDate.getFullYear(); var currentDate:Date = new Date ( year, month , day ) var targetDate:Date = new Date ( 2009 , 10 ,18 ); trace(currentDate - targetDate) Thank You ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flex - accessing dom
In an HTML Browser control, upon loading, I am trying to get the title out of the DOM. var s:Object = browser.htmlLoader.window.document.getElementsByTagName( title); testLabel.text = s.length + , + s[0]; However, how can I get at the string for that title tag? -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flex - accessing dom
I got to it by usingbrowser.htmlLoader.window.document.title It's a String. thanks for that link :) On Fri, Oct 16, 2009 at 10:34 AM, Glen Pike g...@engineeredarts.co.ukwrote: Eric E. Dolecki wrote: In an HTML Browser control, upon loading, I am trying to get the title out of the DOM. var s:Object = browser.htmlLoader.window.document.getElementsByTagName( title); testLabel.text = s.length + , + s[0]; However, how can I get at the string for that title tag? Hi, In HTML DOM, title is in the head. This doc should be helpful, if you can access your dom in an e4x kind of way: http://www.w3schools.com/htmldom/default.asp I am guessing that this applies to Flex too... Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] add properties to Event object
Just to add - I do this all the time and it becomes fun after a while ;) On Tue, Oct 27, 2009 at 12:13 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: You need to create a custom event by extending the Event class - then add whatever properties you want to that. Jason Merrill Bank of America Global Learning Learning Performance Soluions Monthly meetings on making the most of the Adobe Flash Platform - presented by bank associates, Adobe engineers, and outside experts in the broader multimedia community - join the Bank of America Flash Platform Community (note: this is for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Sinning Sent: Tuesday, October 27, 2009 11:58 AM To: Flash Coders Subject: [Flashcoders] add properties to Event object Why can't I add any properties to an AS3 Event object? I get a 1056: cannot create property prop-name on Event Event extends Object, right? ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Website in an application
Just use AIR and an HTML Browser component. Easy-peasy. On Tue, Oct 27, 2009 at 5:12 PM, John R. Sweeney Jr jr.swee...@comcast.netwrote: Thanks, I'll check it out. John on 10/27/09 4:03 PM, Latcho at spamtha...@gmail.com wrote: Google for kiosk browser never tested, just found: http://samanathon.com/firefox-2s-kiosk-mode/ Cheers, Latcho John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Website in an application
You can get headers, tags, etc. not too sure about preventing links from being clicked though - probably can do that. On Tue, Oct 27, 2009 at 6:59 PM, Latcho spamtha...@gmail.com wrote: I did not know that ! Looks good. Is it also possible to catch referer headers / link clicks and prevent them ? Ciao, Latcho Eric E. Dolecki wrote: Just use AIR and an HTML Browser component. Easy-peasy. On Tue, Oct 27, 2009 at 5:12 PM, John R. Sweeney Jr jr.swee...@comcast.netwrote: Thanks, I'll check it out. John on 10/27/09 4:03 PM, Latcho at spamtha...@gmail.com wrote: Google for kiosk browser never tested, just found: http://samanathon.com/firefox-2s-kiosk-mode/ Cheers, Latcho John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] re: alpha for dynamic text without embedding font
You could use bitmapData and do it without embedding the font. Otherwise, just embed it. On Wed, Oct 28, 2009 at 4:10 PM, Kevin McFarland ke...@teracent.com wrote: (or at least that's what I think the subject was) Replying late (I'm in digest mode), but somebody asked about this. A few people replied that it was possible, all you had to do was wrap the text field in a movie clip. This works for static text field, but not for dynamic text fields -- you *do* have to embed the font, was my experience. Since no one said anything to the contrary, I quickly re-tested , and I'm still seeing the same thing: * create new .fla * create dynamic text field inside an mc * place onstage over a shape or another mc where you can verify alpha is working * assign alpha level to the mc * add AS to set text, e.g. my_mc.my_txt.text = hello; result: text field displays hello, but not text is not transparent. Then try the same thing after embedding the font. Now displays transparent. I see same results in both AS2 and AS3. Did I miss something? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Printing a page in Safari with SWF(s) Problem
I've seen pages where printing the HTML page in Safari produces the SWF rendered, and I've seen (ie. Adobe.com homepage) where printing = empty SWFs. Is there some kind of trick in the embedding or some other trick to get a page to print that renders the SWF in the printout for Safari (Mac)? I only care about Safari at the moment. I don't see any rhyme or reason for why some SWFs print and others don't (yet). - Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing a page in Safari with SWF(s) Problem
Okay - what's the trick then? ;) I am almost at the point where I'll need to take my XML data and use XSLT to produce a cruddy HTML table of it instead of relying on Flash to render it the way I want. On Wed, Oct 28, 2009 at 9:58 PM, Karl DeSaulniers k...@designdrumm.comwrote: I think that depends on how the flash is embedded in the HTML. Karl Sent from losPhone On Oct 28, 2009, at 8:42 PM, Eric E. Dolecki edole...@gmail.com wrote: I've seen pages where printing the HTML page in Safari produces the SWF rendered, and I've seen (ie. Adobe.com homepage) where printing = empty SWFs. Is there some kind of trick in the embedding or some other trick to get a page to print that renders the SWF in the printout for Safari (Mac)? I only care about Safari at the moment. I don't see any rhyme or reason for why some SWFs print and others don't (yet). - Eric ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing a page in Safari with SWF(s) Problem
wmode = window and not transparent fixes it all up. it's so stupid. On Wed, Oct 28, 2009 at 11:46 PM, Karl DeSaulniers k...@designdrumm.comwrote: Well for what you were describing, try exporting your flash file with and without flash detection. Try and print from each type of html page and see if that is what does it. I know that when exporting with flash detection, it sets an embed code for non-script browsers. My thought is that this will enable you to print with the flash showing. The other just uses the AC_RunActiveContent to display the flash content and if you have a non-script browser, the flash is blank. The print dialog may be acting the same as a non-script browser. This may be what your running into. HTH Karl On Oct 28, 2009, at 9:13 PM, Eric E. Dolecki wrote: Okay - what's the trick then? ;) I am almost at the point where I'll need to take my XML data and use XSLT to produce a cruddy HTML table of it instead of relying on Flash to render it the way I want. On Wed, Oct 28, 2009 at 9:58 PM, Karl DeSaulniers k...@designdrumm.com wrote: I think that depends on how the flash is embedded in the HTML. Karl Sent from losPhone On Oct 28, 2009, at 8:42 PM, Eric E. Dolecki edole...@gmail.com wrote: I've seen pages where printing the HTML page in Safari produces the SWF rendered, and I've seen (ie. Adobe.com homepage) where printing = empty SWFs. Is there some kind of trick in the embedding or some other trick to get a page to print that renders the SWF in the printout for Safari (Mac)? I only care about Safari at the moment. I don't see any rhyme or reason for why some SWFs print and others don't (yet). - Eric ___ 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 -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] getting text from textfile.txt into a dynamic text field
var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onLoaded); loader.load(new URLRequest(textfile1.txt)); function onLoaded(e:Event):void { someField_txt.text = e.target.data; } On Mon, Nov 23, 2009 at 4:51 PM, Alan Neilsen aneil...@gotafe.vic.edu.auwrote: In CS4 (AS3) I have a simple text file for my client to easily update their text content. I found the method var loader:URLLoader = new URLLoader(new URLRequest(textfile1.txt)); that is supposed to load data from the external text file, but I can't work out what I need to do to then get that text into a dynamic text field. Can anyone please give me a simple example of how to do this. 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Still Infinitely Looping
http://www.adobe.com/devnet/actionscript/getting_started.html http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7fca.html - Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AIR: Application opened by someone else?
I was wondering if there is a framework for determining if an AIR application has been opened by more than one person on a network? I have a data file that the AIR application opens and allows editing for. Works great, however instances of the application all open the same data file. The chances are slim that more than one person will be accessing that single data file at a time, but I think I need to allow for detection and alert a user that someone else is also accessing the data therefore they could stomp on each other's changes. I was going to use a simple XML file and when the app loads, check a value in the XML. Each time someone opens the app, it checks the number and adds 1 to it writes to the XML. Each time the app (instance) is quit, it decrements the number until 0 (no one else is accessing). Not sure if this is a good approach or not since it's based solely on happening when one starts the application up and I was going to avoid polling the XML to see if it changed over time. So looking for an easy to implement solution to this problem. Perhaps my XML file thing is the way to go - not sure. Thanks for any insight, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AIR: Application opened by someone else?
Chris, That's an interesting idea about the hard crash/power loss interval stamping. That's a circumstance I didn't think about. Right now I am displaying the number of running instances (if more than 1) and warning the users in the UI about data stomping... I'm not locking the data at the moment but I could pretty easily. Since local computers could have differing clocks I could put the timestamp part of it in the script on the server. I'm handling all other circumstances to provide clean up with the app quits. event.preventDefault() rocks. Thanks for your reply, Eric On Wed, Dec 2, 2009 at 12:02 PM, Chris zomgfore...@gmail.com wrote: What you are mentioning sounds like the most logical course of action. You're basically implementing a 'lock' file within the application. The only issue with this approach is 'wedging' which can occur. If a user opens the application and their computer crashes, the file will be locked with no way to unlock without prompting the user to unlock. An approach to this is to add a timestamp to the lock and have the app refresh the timestamp every minute or so. Then if a timestamp is older than one minute (and change) you can be assured that the user with the lock is no longer working on the file. Peace C On Wed, Dec 2, 2009 at 7:43 AM, Eric E. Dolecki edole...@gmail.com wrote: I was wondering if there is a framework for determining if an AIR application has been opened by more than one person on a network? I have a data file that the AIR application opens and allows editing for. Works great, however instances of the application all open the same data file. The chances are slim that more than one person will be accessing that single data file at a time, but I think I need to allow for detection and alert a user that someone else is also accessing the data therefore they could stomp on each other's changes. I was going to use a simple XML file and when the app loads, check a value in the XML. Each time someone opens the app, it checks the number and adds 1 to it writes to the XML. Each time the app (instance) is quit, it decrements the number until 0 (no one else is accessing). Not sure if this is a good approach or not since it's based solely on happening when one starts the application up and I was going to avoid polling the XML to see if it changed over time. So looking for an easy to implement solution to this problem. Perhaps my XML file thing is the way to go - not sure. Thanks for any insight, Eric ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AIR: application quit via update mech
I am supplying cleanup for my application when a user quits the application view close button and control-q. Works great. However if there is an update triggered for the application, the updater quits my app and seems to bypass my cleanup mechanism (is there a special event to listen for) - or is this not presently available to us? Thanks, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush
So we'd all feel better activating the toilet handle I guess. I always feel better after a flush(). On Tue, Dec 8, 2009 at 4:37 PM, Steven Sacks flash...@stevensacks.netwrote: Henrik Andersson wrote: Then why was it added in the first place? Great question. Ask Adobe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 to iphone app
You may find this link of interest to you. http://forums.whirlpool.net.au/forum-replies-archive.cfm/1152244.html On Fri, Dec 11, 2009 at 3:22 AM, David Hunter davehunte...@hotmail.comwrote: pretty sure i heard the same thing, otherwise you need to join up to the iphone developer program and pay $99 per year if you want it on the appstore. From: k...@designdrumm.com Subject: Re: [Flashcoders] as3 to iphone app Date: Thu, 10 Dec 2009 19:42:02 -0600 To: flashcoders@chattyfig.figleaf.com Did I hear correctly? Your personally created IPhone app (if exported AdHoc) can only be installed on up to 100 IPhones??? Karl On Dec 10, 2009, at 7:13 PM, David Hunter wrote: bit of an old thread but thought people might like to check out lee brimelow's new video (in case you hadn't seen it) showing you a quick demo on how to make an iphone app in flash CS5:http:// www.gotoandlearn.com/play?id=116 best, david. Date: Thu, 5 Nov 2009 13:13:50 -0500 From: capta...@unfocus.com To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] as3 to iphone app I was actually asking about a lower level implementation detail - dealing with regular non-iphonen swfs - than what that link answers. That link information about product releases - which is great. You did seem to suggest that regular MXML swfs do get run through LLVM in an earlier post on this thread, but I wasn't sure if you meant for iPhones only, or for web swfs too. I guess I'll just wait till the beta is released and find out for myself how it works. :-) I really can't wait for the beta! Thanks! Kevin N. On 11/5/09 11:20 AM, Mike Chambers wrote: This is covered in the FAQ: http://labs.adobe.com/wiki/index.php/ Applications_for_iPhone#Which_Flash_Platform_tools_and_technologies_ can_be_used_to_build_content_for_the_iPhone.3F Which Flash Platform tools and technologies can be used to build content for the iPhone? The primary tool for developing iPhone applications using Flash will be Adobe Flash Professional CS5. We are also looking at adding this feature to other Flash Platform tools and technologies. It is on the road map for Flash Builder, but the release cycles may not line up perfectly initially. mike chambers m...@adobe.com On Nov 5, 2009, at 7:58 AM, Kevin Newman wrote: I'm not sure what No. was answering, but thanks for the clarification on the compile pipeline. This is good info. One more - will the regular swf compiler run MXMLC swfs through LLVM to pick up some possible optimizations from LLVM? That would be MXMLC - SWF / ABC - LLVM - SWF / ABC. Kevin N. On 11/5/09 1:22 AM, Mike Chambers wrote: It is MXMLC - SWF / ABC - LLVM - arm byte code. ___ 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 _ Use Hotmail to send and receive mail from your different email accounts http://clk.atdmt.com/UKM/go/186394592/direct/01/ ___ 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 _ Have more than one Hotmail account? Link them together to easily access both http://clk.atdmt.com/UKM/go/186394591/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Clearing Cache
You can't clear from Flash or Javascript, but you can prevent the cache from happening. http://www.google.com/search?client=safarirls=enq=flash+prevent+cachingie=UTF-8oe=UTF-8 On Thu, Jan 14, 2010 at 12:20 PM, Lehr, Theodore ted_l...@federal.dell.comwrote: Is there a way to clear the browsers cache via Flash? I have a movie that is very dynamic in the data it shows - I want to make sure the users are not getting an old view Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 connecting objects
I'm looking for a class whereby I can visually connect elements (say Sprites) with thin rules... kind of like marching ants but in both directions, dynamically. Animation inside the rules. Has anyone seen anything like that? -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 connecting objects
No - I am after an AS3 implementation of marching path I think. Like marching ants selection (in photoshop), but in rules at any angle. On Mon, Jan 25, 2010 at 9:33 AM, ekameleon ekamel...@gmail.com wrote: Hello :) you want an engine like it ? : http://temp.roxik.com/datas/bone/index.html The problem in the previous link.. NO SOURCE :( For me you must search a framework who implements bones in AS. EKA+ :) 2010/1/25 Eric E. Dolecki edole...@gmail.com I'm looking for a class whereby I can visually connect elements (say Sprites) with thin rules... kind of like marching ants but in both directions, dynamically. Animation inside the rules. Has anyone seen anything like that? -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 connecting objects
Thanks guys. This is sort of what I'm after: http://www.quasimondo.com/archives/000573.php I guess I'll have to translate it and see about trying to make it work for lines thicker than 1pixel, etc. On Mon, Jan 25, 2010 at 10:09 AM, Glen Pike g...@engineeredarts.co.ukwrote: Damn, sent before I posted the link: http://www.quasimondo.com/archives/000571.php Eric E. Dolecki wrote: No - I am after an AS3 implementation of marching path I think. Like marching ants selection (in photoshop), but in rules at any angle. On Mon, Jan 25, 2010 at 9:33 AM, ekameleon ekamel...@gmail.com wrote: Hello :) you want an engine like it ? : http://temp.roxik.com/datas/bone/index.html The problem in the previous link.. NO SOURCE :( For me you must search a framework who implements bones in AS. EKA+ :) 2010/1/25 Eric E. Dolecki edole...@gmail.com I'm looking for a class whereby I can visually connect elements (say Sprites) with thin rules... kind of like marching ants but in both directions, dynamically. Animation inside the rules. Has anyone seen anything like that? -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Sprite alpha
You mean at 0.5 it's fully on? Or are you doing alpha = 50 expecting 50% alpha? On Mon, Jan 25, 2010 at 6:22 PM, Paul Andrews p...@ipauland.com wrote: I have a bit of an oddity with a sprite alpha. At alpha=0.0 - invisible At any other alpha it's full on. Anyone else seen this? Things are a bit frantic just now, so I have little time to experiment to see what the problem is. Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Sprite alpha
huh? Post some code. Everyone is guessing at the vague question at the moment. On Mon, Jan 25, 2010 at 7:17 PM, Paul Andrews p...@ipauland.com wrote: Zeh Fernando wrote: 1. How much is any other alpha? 0.05 - it's not the AS2 alpha 1 error. 2. What is the content of the sprite? A coloured rectangle - it's not a problem with non-embedded text. On Mon, Jan 25, 2010 at 6:33 PM, Eric E. Dolecki edole...@gmail.com wrote: You mean at 0.5 it's fully on? Or are you doing alpha = 50 expecting 50% alpha? On Mon, Jan 25, 2010 at 6:22 PM, Paul Andrews p...@ipauland.com wrote: I have a bit of an oddity with a sprite alpha. At alpha=0.0 - invisible At any other alpha it's full on. Anyone else seen this? Things are a bit frantic just now, so I have little time to experiment to see what the problem is. Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Has everyone seen this yet?
It's how printed media might be transformed if people warm up to the whole concept. It doesn't really matter what platform or device it runs on. We saw some AIR and some Cocoa-touch. Looks pretty juicy but also a little confusing and non-standardized (yet). On Tue, Feb 16, 2010 at 8:45 PM, Jon Bradley shiftedpix...@gmail.comwrote: It's an Adobe AIR application running on an unknown tablet device. It's not an iPad and has nothing to do with it. Someone made a mistake with the copy for the article. FYI, it's not impossible to do this in other languages or environments. There are other, more powerful frameworks that are robust for UI development and multi-touch systems than Flash. - jon On Feb 16, 2010, at 7:55 PM, Ktu wrote: Looks like a great example of how Flash with AIR can create experiences that would otherwise be impossible. Too bad it will be on the iPad. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Multiple AIR apps using localConnection?
I have 2 swfs that when run outside of AIR communicate just fine. In standalone. I am using CS4 to create the AIR files (not using FB, etc.) So when I create AIR files and install and run the 2 apps, they don't seem to talk to one another any more on the same machine. Do I need to do anything special since they are AIR apps now? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash app talking to iPhone app over wifi
I'm curious - has anyone seen a tutorial online or seen source for allowing a Flash app to talk back and forth with an iPhone app running on wifi? Sending simple strings. Eric -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash app talking to iPhone app over wifi
That's what I am after - no clear idea (yet) On Tue, Feb 23, 2010 at 4:13 PM, Karl DeSaulniers k...@designdrumm.comwrote: There is Quickoffice and QuickAccess. I helped them with some product demos in the past. I believe their iphone app can access their system app via wifi. So I am sure you could find some how to do the same. Karl On Feb 23, 2010, at 7:11 AM, Eric E. Dolecki wrote: I'm curious - has anyone seen a tutorial online or seen source for allowing a Flash app to talk back and forth with an iPhone app running on wifi? Sending simple strings. Eric -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash app talking to iPhone app over wifi
I think I need an iphone app that connects to a socket server running on the mac. Then a mac app. ugh. On Tue, Feb 23, 2010 at 4:53 PM, Karl DeSaulniers k...@designdrumm.comwrote: If I was In your position, I would go buy the quickaccess app and deconstruct it. Might give you tips. Plus you may need a jailbroken iPhone as well to fish for the app files. I did something similar with the katra weather lock screen. But I talked one on one with the developer to get tips and he was cool with it. Karl Sent from losPhone On Feb 23, 2010, at 3:38 PM, Eric E. Dolecki edole...@gmail.com wrote: That's what I am after - no clear idea (yet) On Tue, Feb 23, 2010 at 4:13 PM, Karl DeSaulniers k...@designdrumm.com wrote: There is Quickoffice and QuickAccess. I helped them with some product demos in the past. I believe their iphone app can access their system app via wifi. So I am sure you could find some how to do the same. Karl On Feb 23, 2010, at 7:11 AM, Eric E. Dolecki wrote: I'm curious - has anyone seen a tutorial online or seen source for allowing a Flash app to talk back and forth with an iPhone app running on wifi? Sending simple strings. Eric -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ 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 -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Question in regards to NetStream
1. Since there doesn't seem to be an playing event for a NetStream, is it best practice to run an interval and check the time property? Begin on the Play.Start and stop it on the Play.Stop? What about a pause - handle that internally? 2. After seeking, the time property seems wonky (inaccurate) - is there a workaround for this? Thanks for insights, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question in regards to NetStream
I wish NetStream had more events then :) I have to run a timer to update a time placement UI. That's too bad. How is YouTube able to provide such accurate seeking? I'm transferring video from one SWF to another - mainly by transferring the URL to the video to stream and trying to match as closely as possible (buffering not withstanding) the playhead time. It seems like this is next to impossible with video that is out of my control to encode keyframes every second. E On Thu, Feb 25, 2010 at 1:31 PM, Steven Sacks flash...@stevensacks.netwrote: https://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/events/NetStatusEvent.html NetStream.Play.Start NetStream.Play.Stophttp://livedocs.adobe.com/fms/2/docs/0592.html NetStream.Pause.Notify NetStream.Unpause.Notify http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#seek() In normal seek mode, the server starts streaming from the nearest keyframe. For example, if a video has keyframes at 0 and 10 seconds, a seek to 4 seconds causes playback to start at 4 seconds using the keyframe at 0 seconds. In laymen's terms, seek doesn't jump to an exact time, it jumps to the nearest keyframe time prior to the time you told it to seek to. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Netstream time after seek...
I am doing a seek - to the same spot in a streaming video stream.seek( 10 ); trace( stream.time ); I get numbers like this each time it's run: 3.57 15.778 15.882 15.386 16.013 13.923 14.132 14.681 14.576 14.08 ... ?!?!? How can it be off that much? This is a YouTube video. -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] web video
Use cuePoints... Google that. Each triggers an event. Thanks, Eric On Mar 2, 2010, at 7:40 PM, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi coders I know that I can control a flv from as3, but there is a way to do the opposite? I mean I have a video (flv) in one movie clip, when the video reaches the second 45, can I trigger an event? is that possible?, if so there is a tutorial pointing to that in the internet? Regards, Gus ___ 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] how to reduce CPU usage
You could remove from the display tree or do the visible = false thing to help out. On Wed, Mar 3, 2010 at 4:09 PM, Keith Reinfeld keithreinf...@comcast.netwrote: What's odd to me is that all of this CPU is getting used even though these movie clips are completely invisible. Invisible as in visible = false, or alpha = 0? Rendering alpha at anything under 100% is quite cpu intensive. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 - Objective-C
I'll weigh in here - going for AS3 to Obj-C took me about a month to feel comfortable with, and I'm learning new things all the time. There are so many frameworks and methods, you feel overwhelmed when trying to do something and you don't know the proper framework to do it quite yet. I have grown to like Obj-C quite a lot. You can't quite make something as quickly as you can in AS3 (not by a long shot), but it's powerful! And learning memory management is a great thing that might influence what you do in AS3 to a degree. Go for it... don't wait for CS5, learn some Obj-C today if you're interested. The tools are free. On Thu, Mar 11, 2010 at 12:05 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: check out haxe (www.haxe.org), you can write in something almost identical to AS3 and target c++, cpp, php, javascript and neko when you compile. Right, but I thought the question was, how challenging was it to switch to Objective-C from Actionscript 3? - not can I program for other languages like c++ and PHP using a language similar to Actionscript? Seems like a completely different question to me. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 LipSync Engine?
Hey all, I'd like to produce lip syncing for dynamic audio that I have. I could try and roll my own (based on computeSpectrum results) but saw AS3 LipSync mentioned on Google. But I have yet to find it anywhere. Does anyone have a working link I could check out? Or do you have a bit of code I could slap into my computeSpectrum code that would approximate mouth representation? Otherwise I'll just have to roll my own. Thanks, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders