[Flashcoders] Flash - Hardware Interfacing/Communication
Hi people, I've got a project that requires hardware communication between a Flash kiosk-projector and a few hardwares (eg: scanner, biometric fingerprint reader, smart card reader). What is required is that all this are to be operated seamlessly without any other application dialogs popping up over the Flash interface. After days and weeks of scouring the net, I wasn't able to even stumble upon any clue on this. Is this even possible at all? If yes, can Flash handle all the communication between APIs natively or what other ways is required to go about it? I do hope there'd reply in spite of how busy you all may be. -- Thanks & Best regards, Daniel Boey ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] fast performing as2 pano
Hi folks, I was searching for a fast performing as2 panorama tool, and stumbled into pano2vr. Although it's a great tool, the output seems a bit sluggish, but maybe I'm just spoiled by looking at flash 9 pano's. Does anybody know of a better as2 panorama tool that outputs fast performing panorama's? I did some work myself using displacementmaps, but that didn't quite result in what I was looking for:) regards, JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] :: uploading Fonts into a live site-->possible?
just wondering if anyone achieved this successfully yet? from both a mac and pc. is this doable via Air? basically embed the user's local font into a "shared" swf. then upload and share that swf's embedded font set with the main site swf? ( after recompiling everything on the server of course ) thanks -- *artur :.* - *www.artur.com* - [EMAIL PROTECTED] - *ph:646.797.3320* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] how many coders here actually have a degree related to computer science?
Amen! Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Kerry Thompson >>Sent: Wednesday, August 20, 2008 2:02 PM >>To: 'Flash Coders List' >>Subject: RE: [Flashcoders] how many coders here actually have >>a degree related to computer science? >> >>Jason Merrill wrote: >> >>> Nothing can be[at] experience and self-motivated learning, but an >>education >>> can certainly help a career. >> >>Truer words were never spoken. >> >>I've been a hiring manager for companies such as Sony and >>Disney, and the first thing I look at is experience, then a >>degree--any degree. Though a degree in a relevant field is >>nice, the fact that you have a degree shows that you're >>motivated, and can stick with something and see it through to the end. >> >>If I'm hiring for a junior position, a degree in a relevant >>field is most helpful. But, if you have a music degree, and >>can show me that you have been programming since you were 14, >>I'll probe to see if you really understand computers and >>programming. If you do, a 3.5 GPA (out of 4) in music trumps a >>2.5 GPA in computer science. >> >>If I'm hiring for the long term, I look more at a person's >>overall experience and success than at specific experience. >>If you're a good programmer, you can pick up a new language >>and OS, and in 6 months you will be better than a mediocre >>programmer who happens to have experience specific to the >>job. For a contractor or other short-term gig, I look more at >>specific experience. >> >>Cordially, >> >>Kerry Thompson >> >>___ >>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 many coders here actually have a degree related to computer science?
Jason Merrill wrote: > Nothing can be[at] experience and self-motivated learning, but an education > can certainly help a career. Truer words were never spoken. I've been a hiring manager for companies such as Sony and Disney, and the first thing I look at is experience, then a degree--any degree. Though a degree in a relevant field is nice, the fact that you have a degree shows that you're motivated, and can stick with something and see it through to the end. If I'm hiring for a junior position, a degree in a relevant field is most helpful. But, if you have a music degree, and can show me that you have been programming since you were 14, I'll probe to see if you really understand computers and programming. If you do, a 3.5 GPA (out of 4) in music trumps a 2.5 GPA in computer science. If I'm hiring for the long term, I look more at a person's overall experience and success than at specific experience. If you're a good programmer, you can pick up a new language and OS, and in 6 months you will be better than a mediocre programmer who happens to have experience specific to the job. For a contractor or other short-term gig, I look more at specific experience. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] how many coders here actually have a degree related to computer science?
Nothing can be experience and self-motivated learning, but an education can certainly help a career. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of allandt bik-elliott (thefieldcomic.com) >>Sent: Wednesday, August 20, 2008 12:13 PM >>To: Flash Coders List >>Subject: Re: [Flashcoders] how many coders here actually have >>a degree related to computer science? >> >>i would say that there are lorry-sized holes in my knowledge >>that someone with a programming based degree would not have - >>a lot of higher level trig and physics for instance but i've >>been blessed with just the right contracts to learn while >>doing so it doesn't seem to have slowed me down >> >>On Wed, Aug 20, 2008 at 5:09 PM, allandt bik-elliott >>(thefieldcomic.com) < [EMAIL PROTECTED]> wrote: >> >>> no degree but i'm freelance, self-taught and lucky so it's >>less of an >>> issue >>> >>> >>> >>> >>> On Wed, Aug 20, 2008 at 3:51 PM, Merrill, Jason < >>> [EMAIL PROTECTED]> wrote: >>> I have a Master's in Instructional Technology, which was >>focused on multimedia design and development for training and learning, and while a lot of people in the multimedia field will say you >>don't need a degree to be sucessful, that may be true, but it >>certainly does and can help with: gaining BROAD fundamental knowledge that is hard to get on your own, opportunities to command a higher salary (if two resumes side by side are by all means equal and the same in >>experience, but one guy has a degree and the other doesn't - who do you think they are going to pick?), oppotunities to teach at higher institutions, you look more impressive on paper when you are bidding on >>contracts or whatever. I also had a job during my college days developing multimedia, and that experience was invaluable. A lot of people in this field will say don't waste your >>time with a degree, and a lot of people find sucess without them, but >>to me, it's been worth every penny (and with my higher salary, I was >>able to pay of my student loans! :) . I also have the opportunity to >>persue a PhD someday, which I have considered. Finally, I have the >>piece of mind that when a potential employer compares my resume with another equally experienced person but without a degree, I have the upper hand. Yes, the number one thing employers want is someone >>who can do the job, but the second thing they would want is someone >>who has hit the books to get the general knowledge that comes from a >>degree, and also looks good on paper. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional >>Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in >>innovative learning ideas and technologies? Check out our internal Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On >>Behalf Of Jon >>Bradley >>Sent: Wednesday, August 20, 2008 9:02 AM >>To: Flash Coders List >>Subject: Re: [Flashcoders] how many coders here actually have a >>degree related to computer science? >> >>On Aug 19, 2008, at 5:25 PM, Anthony Pace wrote: >> >>> Do you have a degree related to computer science? if not, how >>> difficult is it getting jobs programming AS3 without one? >> >>I think comp sci is much more geared toward software and >>computer >>engineering, as opposed to programming for rich media. >> >>Personally, I went to school for optical engineering and >>physics. I >>dropped out senior year, second semester, to start my own >>interactive/ web company. Ten years later and I'm now a 3d vfx >>artist - certainly a difference from where I started. >> >>I definitely believe that my education has had a >>profound effect in >>my career choice and overall skill level in my niche. I >>do wish I >>completed my degree, at the very least for the feel-good aspect. >> >>A degree in some field of new media study and course >>work that has >>a fair amount of interactive (programming and design >>included) may get you further than a comp sci degree. >> >>Actionscript development is not just programming. It >>requires both >>sides of the brain to do well because much of
[Flashcoders] Text Input textPadding problem
Hi, I'm having a problem with text padding on the V3 TextInput component. I just want to get my text to appear properly vertically centered in the text field, so I added some text padding: var textFormatTextField:TextFormat = new TextFormat(); textFormatTextField.size = 12; textFormatTextField.color = 0xFF; textFormatTextField.font = "Myriad Pro"; StyleManager.setComponentStyle(TextInput, "textFormat", textFormatTextField); StyleManager.setComponentStyle(TextInput, "textPadding", 4); But I find that it makes the descenders on my text cut off, like the attached screenshot. Has anyone experienced this before, or have any idea of how to fix it? Cheers, Piers [EMAIL PROTECTED]  ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] how many coders here actually have a degree related to computer science?
i would say that there are lorry-sized holes in my knowledge that someone with a programming based degree would not have - a lot of higher level trig and physics for instance but i've been blessed with just the right contracts to learn while doing so it doesn't seem to have slowed me down On Wed, Aug 20, 2008 at 5:09 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > no degree but i'm freelance, self-taught and lucky so it's less of an issue > > > > > On Wed, Aug 20, 2008 at 3:51 PM, Merrill, Jason < > [EMAIL PROTECTED]> wrote: > >> I have a Master's in Instructional Technology, which was focused on >> multimedia design and development for training and learning, and while a >> lot of people in the multimedia field will say you don't need a degree >> to be sucessful, that may be true, but it certainly does and can help >> with: gaining BROAD fundamental knowledge that is hard to get on your >> own, opportunities to command a higher salary (if two resumes side by >> side are by all means equal and the same in experience, but one guy has >> a degree and the other doesn't - who do you think they are going to >> pick?), oppotunities to teach at higher institutions, you look more >> impressive on paper when you are bidding on contracts or whatever. I >> also had a job during my college days developing multimedia, and that >> experience was invaluable. >> >> A lot of people in this field will say don't waste your time with a >> degree, and a lot of people find sucess without them, but to me, it's >> been worth every penny (and with my higher salary, I was able to pay of >> my student loans! :) . I also have the opportunity to persue a PhD >> someday, which I have considered. Finally, I have the piece of mind >> that when a potential employer compares my resume with another equally >> experienced person but without a degree, I have the upper hand. Yes, >> the number one thing employers want is someone who can do the job, but >> the second thing they would want is someone who has hit the books to get >> the general knowledge that comes from a degree, and also looks good on >> paper. >> >> Jason Merrill >> Bank of America >> Enterprise Technology & Global Risk L&LD >> Instructional Technology & Media >> >> Join the Bank of America Flash Platform Developer Community >> >> Are you a Bank of America associate interested in innovative learning >> ideas and technologies? >> Check out our internal Innovative Learning Blog & subscribe. >> >> >> >> >>-Original Message- >> >>From: [EMAIL PROTECTED] >> >>[mailto:[EMAIL PROTECTED] On Behalf >> >>Of Jon Bradley >> >>Sent: Wednesday, August 20, 2008 9:02 AM >> >>To: Flash Coders List >> >>Subject: Re: [Flashcoders] how many coders here actually have >> >>a degree related to computer science? >> >> >> >>On Aug 19, 2008, at 5:25 PM, Anthony Pace wrote: >> >> >> >>> Do you have a degree related to computer science? if not, how >> >>> difficult is it getting jobs programming AS3 without one? >> >> >> >>I think comp sci is much more geared toward software and >> >>computer engineering, as opposed to programming for rich media. >> >> >> >>Personally, I went to school for optical engineering and >> >>physics. I dropped out senior year, second semester, to start >> >>my own interactive/ web company. Ten years later and I'm now >> >>a 3d vfx artist - certainly a difference from where I started. >> >> >> >>I definitely believe that my education has had a profound >> >>effect in my career choice and overall skill level in my >> >>niche. I do wish I completed my degree, at the very least for >> >>the feel-good aspect. >> >> >> >>A degree in some field of new media study and course work >> >>that has a fair amount of interactive (programming and design >> >>included) may get you further than a comp sci degree. >> >> >> >>Actionscript development is not just programming. It requires >> >>both sides of the brain to do well because much of what you >> >>do when programming in Flash has a direct visual effect. >> >> >> >>just my 0.02. >> >> >> >>good luck! >> >> >> >>-jon >> >> >> >> >> >>___ >> >>Flashcoders mailing list >> >>Flashcoders@chattyfig.figleaf.com >> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] how many coders here actually have a degree related to computer science?
no degree but i'm freelance, self-taught and lucky so it's less of an issue On Wed, Aug 20, 2008 at 3:51 PM, Merrill, Jason < [EMAIL PROTECTED]> wrote: > I have a Master's in Instructional Technology, which was focused on > multimedia design and development for training and learning, and while a > lot of people in the multimedia field will say you don't need a degree > to be sucessful, that may be true, but it certainly does and can help > with: gaining BROAD fundamental knowledge that is hard to get on your > own, opportunities to command a higher salary (if two resumes side by > side are by all means equal and the same in experience, but one guy has > a degree and the other doesn't - who do you think they are going to > pick?), oppotunities to teach at higher institutions, you look more > impressive on paper when you are bidding on contracts or whatever. I > also had a job during my college days developing multimedia, and that > experience was invaluable. > > A lot of people in this field will say don't waste your time with a > degree, and a lot of people find sucess without them, but to me, it's > been worth every penny (and with my higher salary, I was able to pay of > my student loans! :) . I also have the opportunity to persue a PhD > someday, which I have considered. Finally, I have the piece of mind > that when a potential employer compares my resume with another equally > experienced person but without a degree, I have the upper hand. Yes, > the number one thing employers want is someone who can do the job, but > the second thing they would want is someone who has hit the books to get > the general knowledge that comes from a degree, and also looks good on > paper. > > Jason Merrill > Bank of America > Enterprise Technology & Global Risk L&LD > Instructional Technology & Media > > Join the Bank of America Flash Platform Developer Community > > Are you a Bank of America associate interested in innovative learning > ideas and technologies? > Check out our internal Innovative Learning Blog & subscribe. > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAIL PROTECTED] On Behalf > >>Of Jon Bradley > >>Sent: Wednesday, August 20, 2008 9:02 AM > >>To: Flash Coders List > >>Subject: Re: [Flashcoders] how many coders here actually have > >>a degree related to computer science? > >> > >>On Aug 19, 2008, at 5:25 PM, Anthony Pace wrote: > >> > >>> Do you have a degree related to computer science? if not, how > >>> difficult is it getting jobs programming AS3 without one? > >> > >>I think comp sci is much more geared toward software and > >>computer engineering, as opposed to programming for rich media. > >> > >>Personally, I went to school for optical engineering and > >>physics. I dropped out senior year, second semester, to start > >>my own interactive/ web company. Ten years later and I'm now > >>a 3d vfx artist - certainly a difference from where I started. > >> > >>I definitely believe that my education has had a profound > >>effect in my career choice and overall skill level in my > >>niche. I do wish I completed my degree, at the very least for > >>the feel-good aspect. > >> > >>A degree in some field of new media study and course work > >>that has a fair amount of interactive (programming and design > >>included) may get you further than a comp sci degree. > >> > >>Actionscript development is not just programming. It requires > >>both sides of the brain to do well because much of what you > >>do when programming in Flash has a direct visual effect. > >> > >>just my 0.02. > >> > >>good luck! > >> > >>-jon > >> > >> > >>___ > >>Flashcoders mailing list > >>Flashcoders@chattyfig.figleaf.com > >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 replacing Textfield Constructor
Hello :) In AS2 or AS1 you can't override the TextField class... if you do that you destroy the native class :) You must use the prototype hack with the keyword __proto__ to change the nature of your instances Example : _global.MyTextField = function() { super(); // }; MyTextField.prototype.__proto__ = TextField.prototype ; MyTextField.prototype.myCustomMethod = function() {} var tf:TextField = createTextField("field", 1, 10,10,250,250) ; // Hack the native instance with your custom class tf.__proto__ = MyTextField.prototype ; // hack the prototype MyTextField.call(tf) ; // launch the constructor Now .. you can create a global function or a class, an helper to simplify this hack :) eKA+ :) 2008/8/20 Dennis - I Sioux <[EMAIL PROTECTED]> > Hey Guys, > > I'm an experienced AS2 coder but i'm finally starting in AS3 and want to > port a piece of code that alters the Textfield constructor. > I've tried many things.. but think i'm overlooking something. > > My original AS2 code was: > > // Alter the constructor of the Textfield > var bfrTextField = TextField; > var bfrStyleSheet = TextField.StyleSheet; > > _global.TextField = function() { > super(); > // Do extra code > }; > // reattach the stylesheet class >_global.TextField.StyleSheet = function() { > super(); > }; > > TextField.prototype = new bfrTextField(); > TextField.StyleSheet.prototype = new bfrStyleSheet(); > delete bfrTextField; > delete bfrStyleSheet; > > > Any help would be appreciated. > > With kind regards, > > Dennis > Isioux > ___ > 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] working out a point on a squiggly line
I've decided that i probably don't need to measure the curves - simply plotting over the top of a drawing will probably be fine a On Wed, Aug 20, 2008 at 3:48 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > Hi > > okay i read that but without the grounding in advanced calculus it meant > very little to me > > do you have something that is a little easier to understand? > > > > > On Wed, Aug 20, 2008 at 3:25 PM, allandt bik-elliott (thefieldcomic.com) < > [EMAIL PROTECTED]> wrote: > >> lol re-read antony's post - ignore my last question >> >> thanks >> >> >> On Wed, Aug 20, 2008 at 3:22 PM, allandt bik-elliott (thefieldcomic.com) >> <[EMAIL PROTECTED]> wrote: >> >>> hi guys >>> >>> thanks for the response. I've come to a similar conclusion myself. >>> >>> as the maps are fairly simple, i'm going to draw them in the api, saving >>> the total length as i go and then follow the route with a quick 'is this >>> closer to the point clicked than the last point i drew' check and save that >>> total and then use the two values to create a percentage of the total >>> length. >>> >>> if i were to adjust this to include rounded corners, how would i find out >>> what the length of the curveTo was? >>> >>> thanks again >>> a >>> >>> >>> On Wed, Aug 20, 2008 at 2:54 PM, Anthony Pace <[EMAIL PROTECTED]>wrote: >>> If anyone else has a better way I would love to hear it. Totally curved lines? or zig-zag with corners? or both? Try breaking the path travelled down to points. If you can calculate the distance between the last point and a new point made, you just need to sum up the values. example map/ path travelled. start .___. .\. |.. .___./ finish just sum up the distances to find the total distance travelled. You will need to know basic the Pythagorean theorem, to find the length of a hypotenuse/distance between to points for straight lines, and if you need to calculate the curves it actually depends on the type of curve, so you will need to know this info. more info on curves...found it on google, if you don't know how to do these calculations it will take you a little time to work your way through the math: http://www.mathwords.com/a/arc_length_of_a_curve.htm hope that helps, Anthony allandt bik-elliott (thefieldcomic.com) wrote: > Hi guys > > I have a bit of maths problem to solve here and I've not found any > answers > on the Googles. > > I have several squiggly lines (they will be maps) and I need to find > out, if > a user clicks somewhere on one of the lines, how far along the line > they've > clicked. I also need to find out how long the line would be. > > How would I go about doing this, please? > > Hope you can help > 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
RE: [Flashcoders] how many coders here actually have a degree related to computer science?
I have a Master's in Instructional Technology, which was focused on multimedia design and development for training and learning, and while a lot of people in the multimedia field will say you don't need a degree to be sucessful, that may be true, but it certainly does and can help with: gaining BROAD fundamental knowledge that is hard to get on your own, opportunities to command a higher salary (if two resumes side by side are by all means equal and the same in experience, but one guy has a degree and the other doesn't - who do you think they are going to pick?), oppotunities to teach at higher institutions, you look more impressive on paper when you are bidding on contracts or whatever. I also had a job during my college days developing multimedia, and that experience was invaluable. A lot of people in this field will say don't waste your time with a degree, and a lot of people find sucess without them, but to me, it's been worth every penny (and with my higher salary, I was able to pay of my student loans! :) . I also have the opportunity to persue a PhD someday, which I have considered. Finally, I have the piece of mind that when a potential employer compares my resume with another equally experienced person but without a degree, I have the upper hand. Yes, the number one thing employers want is someone who can do the job, but the second thing they would want is someone who has hit the books to get the general knowledge that comes from a degree, and also looks good on paper. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Jon Bradley >>Sent: Wednesday, August 20, 2008 9:02 AM >>To: Flash Coders List >>Subject: Re: [Flashcoders] how many coders here actually have >>a degree related to computer science? >> >>On Aug 19, 2008, at 5:25 PM, Anthony Pace wrote: >> >>> Do you have a degree related to computer science? if not, how >>> difficult is it getting jobs programming AS3 without one? >> >>I think comp sci is much more geared toward software and >>computer engineering, as opposed to programming for rich media. >> >>Personally, I went to school for optical engineering and >>physics. I dropped out senior year, second semester, to start >>my own interactive/ web company. Ten years later and I'm now >>a 3d vfx artist - certainly a difference from where I started. >> >>I definitely believe that my education has had a profound >>effect in my career choice and overall skill level in my >>niche. I do wish I completed my degree, at the very least for >>the feel-good aspect. >> >>A degree in some field of new media study and course work >>that has a fair amount of interactive (programming and design >>included) may get you further than a comp sci degree. >> >>Actionscript development is not just programming. It requires >>both sides of the brain to do well because much of what you >>do when programming in Flash has a direct visual effect. >> >>just my 0.02. >> >>good luck! >> >>-jon >> >> >>___ >>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] working out a point on a squiggly line
Hi okay i read that but without the grounding in advanced calculus it meant very little to me do you have something that is a little easier to understand? On Wed, Aug 20, 2008 at 3:25 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > lol re-read antony's post - ignore my last question > > thanks > > > On Wed, Aug 20, 2008 at 3:22 PM, allandt bik-elliott (thefieldcomic.com) < > [EMAIL PROTECTED]> wrote: > >> hi guys >> >> thanks for the response. I've come to a similar conclusion myself. >> >> as the maps are fairly simple, i'm going to draw them in the api, saving >> the total length as i go and then follow the route with a quick 'is this >> closer to the point clicked than the last point i drew' check and save that >> total and then use the two values to create a percentage of the total >> length. >> >> if i were to adjust this to include rounded corners, how would i find out >> what the length of the curveTo was? >> >> thanks again >> a >> >> >> On Wed, Aug 20, 2008 at 2:54 PM, Anthony Pace <[EMAIL PROTECTED]>wrote: >> >>> If anyone else has a better way I would love to hear it. >>> >>> Totally curved lines? or zig-zag with corners? or both? >>> >>> Try breaking the path travelled down to points. If you can calculate the >>> distance between the last point and a new point made, you just need to sum >>> up the values. >>> example map/ path travelled. >>> >>> start >>> .___. >>> .\. >>> |.. >>> .___./ >>> finish >>> >>> just sum up the distances to find the total distance travelled. >>> >>> You will need to know basic the Pythagorean theorem, to find the length >>> of a hypotenuse/distance between to points for straight lines, and if you >>> need to calculate the curves it actually depends on the type of curve, so >>> you will need to know this info. >>> >>> more info on curves...found it on google, if you don't know how to do >>> these calculations it will take you a little time to work your way through >>> the math: >>> http://www.mathwords.com/a/arc_length_of_a_curve.htm >>> >>> hope that helps, >>> Anthony >>> >>> >>> >>> >>> allandt bik-elliott (thefieldcomic.com) wrote: >>> Hi guys I have a bit of maths problem to solve here and I've not found any answers on the Googles. I have several squiggly lines (they will be maps) and I need to find out, if a user clicks somewhere on one of the lines, how far along the line they've clicked. I also need to find out how long the line would be. How would I go about doing this, please? Hope you can help 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] Full screen AS3 linux projector...
Hi, Been having problems running a projector fullscreen in Flash on linux - it does not seem to work. Does anyone know if this is my code, a problem / feature or just Adobe being slack on getting it working? Tried the following in my class after the ADDED_TO_STAGE event, on my timeline, etc. import flash.display.StageDisplayState; import flash.display.StageScaleMode; this.stage.displayState = StageDisplayState.FULL_SCREEN; this.stage.scaleMode = StageScaleMode.NO_SCALE; If I run flashplayer with the SWF and set the display state to fullscreen, this goes completely pear-shaped, so is not an option. The screen itself is custom hardware, but a normal Flash 8 standalone runs okay with fscommand("fullscreen") It's just that setting this.stage.displayState seems to have no effect. Any ideas or pointers as the internet seems to be quite quiet on this one. Please don't tell me I have to go back to AS2 code, I just spent a week getting Binary sockets working. Thx Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 replacing Textfield Constructor
Well, you can't actually "alter" the constructor - maybe some hacks in AS2 that appear to do that, but in AS3, I think maybe you would consider this inheritance approach: package { import flash.text.TextField; public class SuperTextField extends TextField { public function SuperTextField() { super(); styleSheet = whateverStyleSheet; //whatever else here } } } Then use SuperTextField instead of TextField in your code. Jason Merrill Bank of America Enterprise Technology & Global Risk L&LD Instructional Technology & Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog & subscribe. >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Dennis - I Sioux >>Sent: Wednesday, August 20, 2008 4:11 AM >>To: Flash Coders List >>Subject: [Flashcoders] AS3 replacing Textfield Constructor >> >>Hey Guys, >> >>I'm an experienced AS2 coder but i'm finally starting in AS3 >>and want to port a piece of code that alters the Textfield >>constructor. >>I've tried many things.. but think i'm overlooking something. >> >>My original AS2 code was: >> >>// Alter the constructor of the Textfield var bfrTextField = >>TextField; var bfrStyleSheet = TextField.StyleSheet; >> >>_global.TextField = function() { >> super(); >> // Do extra code >>}; >>// reattach the stylesheet class >>_global.TextField.StyleSheet = function() { >> super(); >>}; >> >>TextField.prototype = new bfrTextField(); >>TextField.StyleSheet.prototype = new bfrStyleSheet(); delete >>bfrTextField; delete bfrStyleSheet; >> >> >>Any help would be appreciated. >> >>With kind regards, >> >>Dennis >>Isioux >>___ >>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] working out a point on a squiggly line
lol re-read antony's post - ignore my last question thanks On Wed, Aug 20, 2008 at 3:22 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > hi guys > > thanks for the response. I've come to a similar conclusion myself. > > as the maps are fairly simple, i'm going to draw them in the api, saving > the total length as i go and then follow the route with a quick 'is this > closer to the point clicked than the last point i drew' check and save that > total and then use the two values to create a percentage of the total > length. > > if i were to adjust this to include rounded corners, how would i find out > what the length of the curveTo was? > > thanks again > a > > > On Wed, Aug 20, 2008 at 2:54 PM, Anthony Pace <[EMAIL PROTECTED]>wrote: > >> If anyone else has a better way I would love to hear it. >> >> Totally curved lines? or zig-zag with corners? or both? >> >> Try breaking the path travelled down to points. If you can calculate the >> distance between the last point and a new point made, you just need to sum >> up the values. >> example map/ path travelled. >> >> start >> .___. >> .\. >> |.. >> .___./ >> finish >> >> just sum up the distances to find the total distance travelled. >> >> You will need to know basic the Pythagorean theorem, to find the length of >> a hypotenuse/distance between to points for straight lines, and if you need >> to calculate the curves it actually depends on the type of curve, so you >> will need to know this info. >> >> more info on curves...found it on google, if you don't know how to do >> these calculations it will take you a little time to work your way through >> the math: >> http://www.mathwords.com/a/arc_length_of_a_curve.htm >> >> hope that helps, >> Anthony >> >> >> >> >> allandt bik-elliott (thefieldcomic.com) wrote: >> >>> Hi guys >>> >>> I have a bit of maths problem to solve here and I've not found any >>> answers >>> on the Googles. >>> >>> I have several squiggly lines (they will be maps) and I need to find out, >>> if >>> a user clicks somewhere on one of the lines, how far along the line >>> they've >>> clicked. I also need to find out how long the line would be. >>> >>> How would I go about doing this, please? >>> >>> Hope you can help >>> 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
Re: [Flashcoders] working out a point on a squiggly line
hi guys thanks for the response. I've come to a similar conclusion myself. as the maps are fairly simple, i'm going to draw them in the api, saving the total length as i go and then follow the route with a quick 'is this closer to the point clicked than the last point i drew' check and save that total and then use the two values to create a percentage of the total length. if i were to adjust this to include rounded corners, how would i find out what the length of the curveTo was? thanks again a On Wed, Aug 20, 2008 at 2:54 PM, Anthony Pace <[EMAIL PROTECTED]>wrote: > If anyone else has a better way I would love to hear it. > > Totally curved lines? or zig-zag with corners? or both? > > Try breaking the path travelled down to points. If you can calculate the > distance between the last point and a new point made, you just need to sum > up the values. > example map/ path travelled. > > start > .___. > .\. > |.. > .___./ > finish > > just sum up the distances to find the total distance travelled. > > You will need to know basic the Pythagorean theorem, to find the length of > a hypotenuse/distance between to points for straight lines, and if you need > to calculate the curves it actually depends on the type of curve, so you > will need to know this info. > > more info on curves...found it on google, if you don't know how to do these > calculations it will take you a little time to work your way through the > math: > http://www.mathwords.com/a/arc_length_of_a_curve.htm > > hope that helps, > Anthony > > > > > allandt bik-elliott (thefieldcomic.com) wrote: > >> Hi guys >> >> I have a bit of maths problem to solve here and I've not found any answers >> on the Googles. >> >> I have several squiggly lines (they will be maps) and I need to find out, >> if >> a user clicks somewhere on one of the lines, how far along the line >> they've >> clicked. I also need to find out how long the line would be. >> >> How would I go about doing this, please? >> >> Hope you can help >> 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
Re: [Flashcoders] working out a point on a squiggly line
If anyone else has a better way I would love to hear it. Totally curved lines? or zig-zag with corners? or both? Try breaking the path travelled down to points. If you can calculate the distance between the last point and a new point made, you just need to sum up the values. example map/ path travelled. start .___. .\. |.. .___./ finish just sum up the distances to find the total distance travelled. You will need to know basic the Pythagorean theorem, to find the length of a hypotenuse/distance between to points for straight lines, and if you need to calculate the curves it actually depends on the type of curve, so you will need to know this info. more info on curves...found it on google, if you don't know how to do these calculations it will take you a little time to work your way through the math: http://www.mathwords.com/a/arc_length_of_a_curve.htm hope that helps, Anthony allandt bik-elliott (thefieldcomic.com) wrote: Hi guys I have a bit of maths problem to solve here and I've not found any answers on the Googles. I have several squiggly lines (they will be maps) and I need to find out, if a user clicks somewhere on one of the lines, how far along the line they've clicked. I also need to find out how long the line would be. How would I go about doing this, please? Hope you can help 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
Re: [Flashcoders] working out a point on a squiggly line
Hello allandt, http://bezier.googlecode.com and especially http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=3 -- iv http://www.bezier.ru http://bezier.googlecode.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] how many coders here actually have a degree related to computer science?
On Aug 19, 2008, at 5:25 PM, Anthony Pace wrote: Do you have a degree related to computer science? if not, how difficult is it getting jobs programming AS3 without one? I think comp sci is much more geared toward software and computer engineering, as opposed to programming for rich media. Personally, I went to school for optical engineering and physics. I dropped out senior year, second semester, to start my own interactive/ web company. Ten years later and I'm now a 3d vfx artist - certainly a difference from where I started. I definitely believe that my education has had a profound effect in my career choice and overall skill level in my niche. I do wish I completed my degree, at the very least for the feel-good aspect. A degree in some field of new media study and course work that has a fair amount of interactive (programming and design included) may get you further than a comp sci degree. Actionscript development is not just programming. It requires both sides of the brain to do well because much of what you do when programming in Flash has a direct visual effect. just my 0.02. good luck! -jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] working out a point on a squiggly line
Hi guys I have a bit of maths problem to solve here and I've not found any answers on the Googles. I have several squiggly lines (they will be maps) and I need to find out, if a user clicks somewhere on one of the lines, how far along the line they've clicked. I also need to find out how long the line would be. How would I go about doing this, please? Hope you can help A ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 replacing Textfield Constructor
Hey Guys, I'm an experienced AS2 coder but i'm finally starting in AS3 and want to port a piece of code that alters the Textfield constructor. I've tried many things.. but think i'm overlooking something. My original AS2 code was: // Alter the constructor of the Textfield var bfrTextField = TextField; var bfrStyleSheet = TextField.StyleSheet; _global.TextField = function() { super(); // Do extra code }; // reattach the stylesheet class _global.TextField.StyleSheet = function() { super(); }; TextField.prototype = new bfrTextField(); TextField.StyleSheet.prototype = new bfrStyleSheet(); delete bfrTextField; delete bfrStyleSheet; Any help would be appreciated. With kind regards, Dennis Isioux ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders