Re: [Flashcoders] How to solve SSS triangle?

2005-11-22 Thread ryanm
I am having 3 movie Clips named point1_mc, point2_mc, point3_mc in the stage. They are arranged in such a way to form a triangle... Now how can i get those 3 angles and sides formed by these points.? With a high school geometry textbook? ;-) Law of cosines: c^2 = a^2 + b^2 - 2ab*Cos(q)

Re: [Flashcoders] How to solve SSS triangle?

2005-11-22 Thread Pandian
Thank u... :-P ryanm wrote: I am having 3 movie Clips named point1_mc, point2_mc, point3_mc in the stage. They are arranged in such a way to form a triangle... Now how can i get those 3 angles and sides formed by these points.? With a high school geometry textbook? ;-) Law of cosines:

Re: [Flashcoders] How to solve SSS triangle?

2005-11-22 Thread Rahul
Hi Ryanm, Here is a function which I wrote a long time back. It calculates included angle it uses cosine rule to calculate the angle. The other function calculates shortest distance between two points. function getAngle(vertex1,vertex2,vertex3){ var a =

RE: [Flashcoders] flex 2 for games?

2005-11-22 Thread Hans Wichman
Hi, first off: thanks charles, johan and ted for your input on this, it is very much appreciated. Having seen flex at spark I agree that would I use flex/as3 I would probably go down the actionscript-only-project line (so not using the flex framework), but i'd still need a lot of assets

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread franto
It's hard to say, what is the best, but I'm really enjoy new AS3. I've started develop FlashLife engine in AS3 as open source project with my friends to learn AS3. I think this is the best way to learn it as Ted say. My experiences are, that is not hard to write AS3 projects when you know AS2,

[Flashcoders] FP8: file upload and server response

2005-11-22 Thread Claus Wahlers
hi folks, i'm currently playing with the flash player 8 FileReference stuff. i'm uploading a file to a server script (works fine). the server script returns an xml with info about the uploaded file. is there any way i can access the server response? tia, cheers, claus.

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread Hans Wichman
Hi, yeah well, im sure the display list things arent too hard, in my own AS2 projects I developed Control like classes which work like: var tab = new TabPane (_root); tab.addChild (new Tab()); etc (well to be honest the main control would listen to a TabModel and create tabs itself

Re: [Flashcoders] emoticons in a chat component

2005-11-22 Thread Rajat Paharia
Simon - that's a brilliant solution/hack. I'll be using it :) best, - rajat On 11/21/05, Simon Lord [EMAIL PROTECTED] wrote: Anyone can use the solution and font any way they like, so feel free to do whatever you want with the font Karina. The Mac and PC font should be in the archive. A

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread franto
Well, i'm think that AS3 + lot of graphics assets is for Flash 9 :) Flex Builder 2 is not Flash 9 :) this is just tool for FLEX coders, and AS3 projects (but as well there is way to include graphics to swf) so you can make games there... Franto ___

Re: [flashcoders] Q for the Pro's: How did you learn flash?

2005-11-22 Thread Lowen Fan
Wow such great responses! thanks a lot! Thanks for sending the docu Wade! I have a few questions.. what is a RIA? then I was drawn into using it for data display. Data display.. The only thing I can think of is php/actionscript for sites? I'm sure there is more then what i can think of. I've

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread Theodore E Patrick
Ted, why was it a total mistake that you waited to jump on the bandwagon? Because after learning Flex: 1. My salary has tripled. 2. Clients are bigger and Projects are better. 3. PowerSDK was purchased by Cynergy Systems 1 month ago. 4. Working with some of the best developers in the world.

Re: [flashcoders] Q for the Pro's: How did you learn flash?

2005-11-22 Thread Wade Arnold
Rich Internet Application What you say you do when your wife says you build websites. On Nov 22, 2005, at 4:22 AM, Lowen Fan wrote: Wow such great responses! thanks a lot! Thanks for sending the docu Wade! I have a few questions.. what is a RIA? then I was drawn into using it for data

Re: [Flashcoders] embedFonts oddity (SOLVED)

2005-11-22 Thread Ian Thomas
Hi Judah, I'm afraid your solution wasn't really addressing my problem - although the tutorial looks fine, I'd already successfully embedded fonts. My problem was that when embedFonts=true was turned on using ActionScript, the last line of a TextField would stop wrapping for no apparent

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread Johan Lopes
Johan, just to get a little confusion out of the way, you said Yes, with Flex2 this would be a nightmare. Not impossible but just awkward way of going about things. and a little further along in the mail, develop your game in AS3, than yes it is totally feasible and in fact you gain more from

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread Alias
Hi Charles, On 11/21/05, Charles Parcell [EMAIL PROTECTED] wrote: ... what I don't get is why people are so quick to jump from AS 1.0 to 3.0. It really isn't like 3.0 is too much different from 2.0 as far as the basic language goes. Where is does differ greatly is in the class structures and

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread franto
just curios :) are we talking about some specific game? :) or just any game... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread Alias
Hi Hans/Charles/To Whom It May Concern who is complaining? No-one yet - wait until it's finished and released, only then will the complaints will start rolling in :) Although I admire all the people who do join public alpha groups etc to make things better, I dont think that this is should

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread Alias
No. HTH, Alias On 11/22/05, Tiago Vale [EMAIL PROTECTED] wrote: Hi list, I've sent a post to osflash and flashcoders(hope its not spamming) list but it seems its too big, can I send the example sources as attachement? -- Cheers Tiago Janz ___

Re: [Flashcoders] Embedding fonts in component

2005-11-22 Thread Jorge Rego
Hi, Try this way, -- var anArray:Array = new Array(Um,Dois,Três,Quatro,Cinco); comboListener = { change : function(evt){ var type = evt.type; var target = evt.target; trace(_cb.selectedIndex); }

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread David Peek
http://david.peek.ws/spark/ just need an opinion. No. HTH, Alias On 11/22/05, Tiago Vale [EMAIL PROTECTED] wrote: Hi list, I've sent a post to osflash and flashcoders(hope its not spamming) list but it seems its too big, can I send the example sources as attachement? -- Cheers Tiago Janz

RE: [Flashcoders] a:visited link in TextArea - How?

2005-11-22 Thread Merrill, Jason
I don't think you can without a hack like you mentioned. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Miles Thompson Sent: Tuesday, November 22, 2005 8:36 AM To:

RE: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread Pete Hotchkiss
http://david.peek.ws/spark/ just need an opinion. Good start ... Needs a lot of work on the usability. The Browser for example - the images feel like the should be clickable - but on my machine at least - nothing happened. The Google earthh - how do I zoom in ?

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread Tiago Vale
And is there any chance my post go trough? -- Cheers Tiago Janz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread Mike Mountain
Not sure flashcoders is the place to post asking for reviews - but as you asked.. I'd have preloader for all the apps - at the moment you can see them 'build' on screen - a place holder with a load bar would be a better way to hide the fact the images are still loading in, and reassure the user -

SV: [Flashcoders] Embedding fonts in component

2005-11-22 Thread Fredrik Lantz
It works if i have an empty textfield that embeds the font, otherwise it doesent. I have the font embeded in the project for other stuff so thi works thanks //F -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Jorge Rego Skickat: den 22 november 2005 14:56

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread Johan Lopes
Hi Ted, This is a bit OT - don't wanna hijack this thread. But thanks for demystifying the DisplayList API at Spark - Amsterdam. Where can we get the slides/source for your Spark presentations? Thanks, /Johan On 11/22/05, Theodore E Patrick [EMAIL PROTECTED] wrote: Ted, why was it a total

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread David Peek
Well, the cool thing is its all rendered from xml, including the skins. No movie clips. Mike Mountain wrote: Not sure flashcoders is the place to post asking for reviews - but as you asked.. I'd have preloader for all the apps - at the moment you can see them 'build' on screen - a place

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread David Peek
No symbols I mean. David Peek wrote: Well, the cool thing is its all rendered from xml, including the skins. No movie clips. Mike Mountain wrote: Not sure flashcoders is the place to post asking for reviews - but as you asked.. I'd have preloader for all the apps - at the moment you can

RE: [Flashcoders] flex 2 for games?

2005-11-22 Thread Theodore E Patrick
Johan, The magic will come later this week. I am buried in work from all the partying in amsterdam. 2 sessions and 2 panels is 2 much. I am going to record the presentations for everyone's free use. I will post everything then. preso = new spark.ted.Presentation( Managing the DisplayList )

RE: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread Hans Wichman
Hi, pretty cool! Lot of work i guess? Just a dumb question, whats it for and with what did you create it? By the way if i type in test in the browser, i get 10 images, but the last 2 overflow. greetz Hans At 03:15 PM 11/22/2005, Pete Hotchkiss wrote: http://david.peek.ws/spark/ just need

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread Tiago Vale
I dont want to be a a** but isnt the current topic missplaced??? And once again is there any chance that a moderator could enable my post about SHA-1 porting from Java? -- Cheers Tiago Janz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread David Peek
It's an application delivery platform, like FLEX, only you don't have to compile the applications into swfs. You can define your application in an XML markup and load it into one environment on the fly. Rect id=bg_rect Fill Gradient GradientEntry

Re: [Flashcoders] flex 2 for games?

2005-11-22 Thread Charles Parcell
On 11/22/05, Theodore E Patrick [EMAIL PROTECTED] wrote: Charles, Actually the AS3 language and 8.5 player are very mature and stable, and I would actually expect very few changes to the core prior to release. The key is that the Flex Framework development is dependent on AS3/AVM2 being

[Flashcoders] David Peek's Spark Application Server thread

2005-11-22 Thread Karthik
Just opened a new thread for this.. the previous one was hijacked and had an irrelevant subject.. etc. etc. Cheers -K On 22/11/05, David Peek [EMAIL PROTECTED] wrote: It's an application delivery platform, like FLEX, only you don't have to compile the applications into swfs. You can define

Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-22 Thread David Peek
Sorry, I thought it might be of interest. I'll shut up then. Karthik wrote: No. The list will very likely no allow attachments, nor will it very likely allow a 100 pages of code.. Either put up your attachment(s) on a server somewhere, or with rapidshare/similar stuff, or find an AS friendly

Re: [Flashcoders] emoticons in a chat component

2005-11-22 Thread Karthik
Hi, I'm pretty certain Flashchat[1] uses it, and I also recall a textfield component released a couple of years back that supported emoticons. I'm not sure how good their solutions are, but they seemed to work.. Cheers -K [1]: http://www.tufat.com/s_flash_chat_chatroom.htm On 20/11/05, Karina

[Flashcoders] masking hitarea

2005-11-22 Thread Hans Wichman
Hi folks, i have a weird issue here, imagine the following setup. 1- 2 layers a b 2 - a masks b 3- both layers contain one rectangle, visually these overlap 4- so in effect the rectangle mask masks the other rectangle, showing you only a portion of this rectangle Now i do: var mc =

Re: [Flashcoders] masking hitarea

2005-11-22 Thread Hans Wichman
Hi, i reread my own post and its a bit fuzzy i think, what it comes down to is this: masking the hitArea for a dynamically clip only seems possible by masking through code as well masking the hitArea for a clip on stage can be done on stage as well has anyone experienced this before? What i

Re: [Flashcoders] FP8: file upload and server response

2005-11-22 Thread Ryan Matsikas
Sorry to tell you Claus.. but the answer is no. There isn't any way currently to get any kind of return from your upload script (other then the events the FileRef object throws) Most implimentations I've seen have a second script that is called when the upload completes (to fetch a file list or

RE: [Flashcoders] FP8: file upload and server response

2005-11-22 Thread Don Petersen
I haven't been able to test this yet, and it's probably a hack, BUT it might allow at least some kind of feedback: LiveDocs says that the onHTTPError event has an argument for the HTTP Error Code. If the language you're using on the server side allows it, maybe you could throw certain error

RE: [Flashcoders] a:visited link in TextArea - How?

2005-11-22 Thread mailinglists
One possibility might be to create a class for visited, instead of using the pseudo-element :visited. HTML: aunvisited link/a a.visitedI've been here/a Would that work in your application? -Original Message- How does one flag the visited links in a TextArea? (Flash 7) I have had no

Re: [Flashcoders] Using Listeners to instantiate onEnterFrame

2005-11-22 Thread Hans Wichman
Hi, in your example i think it would have to be: public function handlePressedUP(){ this.onEnterFrame = function () { theBall._y -= 5; // Move ball by 5 px. } } greetz Hans At 06:56 PM 11/22/2005, Steven Loe wrote:

Re: [Flashcoders] characters not appearing in dynamically loaded htmlformatted xml text

2005-11-22 Thread Danny Kodicek
My dynamic text area is not displaying . Is your text exported from Word? Has word converted three dots into a 'three dot ellipsis' character? It does this by default. You might need to either embed the ellipsis character or replace it with three separate dots. Best Danny

RE: [Flashcoders] characters not appearing in dynamically loadedhtmlformatted xml text

2005-11-22 Thread Paul Steven
Thanks a million Danny! Typed the dots in to the xml file and wow and behold it works. Phew! Saved me hours of investigation Cheers Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Danny Kodicek Sent: 22 November 2005 18:17 To: Flashcoders mailing

Re: [Flashcoders] reading 'loadedBytes' from MovieClipLoader onLoadProgress

2005-11-22 Thread Matt Ganz
brilliant. it works perfectly. thank you for taking the time to help me out. -- matt. On 11/21/05, David Rorex [EMAIL PROTECTED] wrote: I might do something like: (warning, not tested, but in theory it should work) var mcl:MovieClipLoader = new MovieClipLoader(); var listener:Object = new

Re: [Flashcoders] Using Listeners to instantiate onEnterFrame SOLVED

2005-11-22 Thread JOR
If you didn't want to hard code the paths you could do this: public function handlePressedUP(){ theBall.onEnterFrame = function () { _y -= 5; // Move ball by 5 px. } } JOR ___ === James O'Reilly === === SynergyMedia, Inc. ===

Re: [Flashcoders] FP8: file upload and server response

2005-11-22 Thread Claus Wahlers
thanks ryan and don for your help! i need to upload a binary file from a local flash 8 app to a 3rd party server (webservice, fixed api, takes a mix of post/get data and returns xml) so i guess i'm at a dead end here.. cheers, claus. ___ Flashcoders

Re: [Flashcoders] Xml editor

2005-11-22 Thread Martin Wood
for anything thats part of a project I use Eclipse and the free version of XML Buddy http://xmlbuddy.com/ if i just need a quick edit then i use editplus (for any type of text file) http://www.editplus.com martin Patrick Matte wrote: What software do you people use for editing xml for your

Re: [Flashcoders] Xml editor

2005-11-22 Thread Johannes Nel
eclipse + oxygen. the cool thing about oxygen is that some people have figured out how to get mxml hinting in it as well On 11/22/05, Patrick Matte [EMAIL PROTECTED] wrote: What software do you people use for editing xml for your flash projects ?

RE: [Flashcoders] Xml editor

2005-11-22 Thread Steven Sacks
Dreamweaver MX. Dreamweaver MX 2004 and above are absolute garbage. I will never install a newer version of Dreamweaver because they are bloated and slow. Eventually, I'll end up using a completely different file editor rather than install MM's super slow bloated excuse for one. DW used to be

Re: [Flashcoders] Xml editor

2005-11-22 Thread David Rorex
On 11/22/05, Patrick Matte [EMAIL PROTECTED] wrote: What software do you people use for editing xml for your flash projects ? gVim (graphical version of vim): http://www.vim.org/ -David R ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] Xml editor

2005-11-22 Thread Fruber Malcome
SciTE for both flash and XML, othertimes I use Oxygen. Thanks - fruber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: Tuesday, November 22, 2005 12:46 PM To: Flashcoders mailing list Subject: [Flashcoders] Xml editor What software

Re: [Flashcoders] Xml editor

2005-11-22 Thread Ron Wheeler
XMLBuddy - free plug-in to Eclipse XMLSpy Home version - free and has Eclipse plug-in XMLSpy Pro for serious XSLT work. Ron Patrick Matte wrote: What software do you people use for editing xml for your flash projects ? ___ Flashcoders mailing

RE: [Flashcoders] Xml editor

2005-11-22 Thread Robin Burrer
I use Notepad in combination with Internet explorer :-). I used to use XMLSpy but after the trial expired I switched to Notepad again. Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: Wednesday, 23 November 2005 7:46 AM To:

Re: [Flashcoders] Xml editor

2005-11-22 Thread Chris Allen
I use Oxygen for all of my XML work including XSLT transformations, SOAP services, XSD, straight XML, etc... I use both the stand-alone version and the Eclipse plugin. I find it's much better and much cheaper than XMLSpy. Plus it works on my Mac as well as my Windows machine. -Chris On 11/22/05,

[Flashcoders] scrollPane mc insertion

2005-11-22 Thread eric dolecki
Forgive the lameness of this query, but I used to load up a MC with child MCs and then set that into a scrollPane... I have since forgotten how... anyone ready with a cut paste? ed ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] ScrollPane MC thing...

2005-11-22 Thread eric dolecki
I forgot - I need to set the contentPath as a mc that has linkage, and then just attach stuff to that. sorry for the noise ;) ed ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] ScrollPane MC thing...

2005-11-22 Thread Enrique Chavez
my_scrollPane.contentPath = LibraryMC; var clipToAttach:Movieclip = my_scrollPane.content; clipToAttach.attachMovie(blabla, blabla, depth )//Attach inside ScrollPane eric dolecki wrote: I forgot - I need to set the contentPath as a mc that has linkage, and then just attach stuff to that.

RE: [Flashcoders] Xml editor

2005-11-22 Thread Phil Douglas
I tend to use Sepy http://www.sepy.it Phil Douglas Flash Developer direct: +61 2 9024 2655 mobile: 0423 691 722 email: [EMAIL PROTECTED] phone: +61 2 9211 4344 fax: +61 2 9211 6566 web:

[Flashcoders] Q:Animating a gradient

2005-11-22 Thread bitstreams
Hi Has anyone seen examples of animating a gradient in flash8? Recall seeing something as part of the original maelstrom demo, but having some difficulty reproducing the effect. Thanks in advance Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca

[Flashcoders] Superscripting

2005-11-22 Thread Pandian
I am having an input text field...whenever entering values into it all numbers that are typed into it should be superscripted .. :-( Is there any way...? [i should use only the arial font.] -thanx Pandian ___ Flashcoders mailing list

Re: [Flashcoders] Superscripting

2005-11-22 Thread Michael Bedar
One way is to use unicode, which has chars for all the superscript numbers.. you'll have to include them in the embed though.. many fonts render them in inconsistent sizes as well, so you'll have to try a few. 1¹2²3³4⁴5⁵6⁶7⁷8⁸9⁹0⁰ On Nov 22, 2005, at 11:08 PM, Pandian wrote: I am