Re: [Flashcoders] Apple changes their guidelines

2010-09-10 Thread Juan Delgado
Wondering how this no download code to be executed thing affects HTML developers. Say I create an app based on HTML, and get it to visit a website with some JavaScript files. That looks like external code not part of the original app being executed to me. J On Fri, Sep 10, 2010 at 5:40 AM,

Re: [Flashcoders] Apple backing off. Why?

2010-09-10 Thread allandt bik-elliott (thefieldcomic.com)
there's a bit of a developer exodus from iOS to android at the moment (certainly they're learning to use android alongside it) http://www.techeye.net/mobile/developers-migrate-from-iphone-to-android-in-droves / http://econsultancy.com/uk/blog/5514-here-comes-the-android-gold-rush

[Flashcoders] Get function problem

2010-09-10 Thread natalia Vikhtinskaya
AS3. I have linked mc with name videoPanel in library. This mc has function statVideo() on his own timeline frame; Then on main timeline I have code theVideo=new videoPanel(); panelItem.addChild(theVideo); and I want to play function startVideo, so theVideo.startVideo(); but that gives me error

RE: [Flashcoders] Get function problem

2010-09-10 Thread Merrill, Jason
Maybe because you declared your function as statVideo in the class and you're trying to call startVideo from the timeline. If that was just a typo in your e-mail, and not the case in your project, then be sure your function is declared public. Other than that, you've done it right so must be

RE: [Flashcoders] Apple changes their guidelines

2010-09-10 Thread Merrill, Jason
This refers to building actual iOS applications for the app store, not web sites. You can't develop iOS apps with HTML. But, your site is fine - Javascript is supported in iOS's Safari browser, so building a site with HTML and Javscript and HTML is no problem. Jason Merrill Instructional

[Flashcoders] Math help

2010-09-10 Thread Lehr, Theodore
So if I have to line segments: A: 0-799 B: 66.92 - 124.40 Given a point on B (80.6 for example) how can I find the equivalent point on A? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Get function problem

2010-09-10 Thread natalia Vikhtinskaya
Yes it is just a typo in email. It is not a class. It is mc in library. In AS2 we just attach it to any mc on timeline and can call any function in it. I try convert AS2 file to AS3 without writing classes. But I found this problem. 2010/9/10 Merrill, Jason jason.merr...@bankofamerica.com: Maybe

RE: [Flashcoders] Math help

2010-09-10 Thread Merrill, Jason
I assume you mean those numbers represent X values, and I assume by equivalent you mean the same percentage along the line (since those lines are of two different lengths). Then all you have to do is some simple proportional math. Get the length of each line by subtracting the start point from

Re: [Flashcoders] Math help

2010-09-10 Thread John McCormack
length of B: 124.40 - 66.90 = 57.5 length traversed along B: 80.6 - 66.92 = 13.68 proportion of B traversed: 13.68/57.5 = 0.237913043 length of A = 799 - 0 = 799 proportion of A traversed: 0.237913043 length traversed along A: 0.237913043 * 799 = 190.0925217 If your screen width is 800 pixels

Re: [Flashcoders] Math help

2010-09-10 Thread John McCormack
Correction: In some cases you might want to round it up with int(0 +190.0925217 + 0.5) - 191 John On 10/09/2010 13:21, John McCormack wrote: length of B: 124.40 - 66.90 = 57.5 length traversed along B: 80.6 - 66.92 = 13.68 proportion of B traversed: 13.68/57.5 = 0.237913043 length of A =

Re: [Flashcoders] Math help

2010-09-10 Thread John McCormack
Further correction: In some cases you might want to round it up with int(0 +190.0925217 + 0.5) = int (190.5925217) = 190 Phew! J On 10/09/2010 13:21, John McCormack wrote: length of B: 124.40 - 66.90 = 57.5 length traversed along B: 80.6 - 66.92 = 13.68 proportion of B traversed:

Re: [Flashcoders] Apple changes their guidelines

2010-09-10 Thread Brian Mays
Random thoughts that may spark some ideas for some here: Something that I've begun looking at recently has been web apps. Using a line of code you can have a web page function like an app, opening from a bookmark on the home screen of an iOS device without the Safari interface. It seems like if

Re: [Flashcoders] Apple changes their guidelines

2010-09-10 Thread Matt S.
I think O'Reilly has a book on this topic: http://building-iphone-apps.labs.oreilly.com/ On Fri, Sep 10, 2010 at 9:10 AM, Brian Mays bm...@newsok.com wrote: Random thoughts that may spark some ideas for some here: Something that I've begun looking at recently has been web apps. Using a line

Re: [Flashcoders] Get function problem

2010-09-10 Thread natalia Vikhtinskaya
I found that AS3 does not allow tocall function from timeline if this function is inside MovieClip placed on the stage. Is there any other way to do that? 2010/9/10 Merrill, Jason jason.merr...@bankofamerica.com: Maybe because you declared your function as statVideo in the class and you're

Re: [Flashcoders] access a mc in stage from a class

2010-09-10 Thread Rodrigo Augusto Guerra
thanks jason. I'll do that. any good (easy to understand) oop book out there? - Original Message - From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, September 09, 2010 7:55 PM Subject: RE: [Flashcoders] access a

RE: [Flashcoders] Get function problem

2010-09-10 Thread Merrill, Jason
Not sure that's true, but never tried. If you're moving to classes, you should consider moving code off the timeline. Add your movie clip to a document class - call the function in there. I think people who try and do a hybrid mix of timeline and class coding are only asking for headaches.

RE: [Flashcoders] Get function problem

2010-09-10 Thread Merrill, Jason
Also, you should typecast your variables if you aren't. So instead of: theVideo=new videoPanel(); do: var theVideo:videoPanel = new videoPanel(); perhaps Flash is choking because it doesn't know what type theVideo is. Also, minor unrelated point, but 99.9% of Flash developers start class

Re: [Flashcoders] access a mc in stage from a class

2010-09-10 Thread Eric E. Dolecki
Amazon.com is your friend. Reviews are helpful. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Fri, Sep 10, 2010 at 10:23 AM, Rodrigo Augusto Guerra rodr...@alumni.org.br wrote: thanks jason. I'll do that.

Re: [Flashcoders] Get function problem

2010-09-10 Thread natalia Vikhtinskaya
Sometime project is small. And all I need is attach some movie clip from a library. It was not a problem control it in AS2. It looks AS3 nothing can do with small task. 2010/9/10 Merrill, Jason jason.merr...@bankofamerica.com: Also, you should typecast your variables if you aren't.  So instead

RE: [Flashcoders] Math help

2010-09-10 Thread Lehr, Theodore
Hhmmm I do not think this is working - here is my issue - maybe someone has an idea. I have a mc that is basically a map of the US. I am getting the long and lat of a location I want to be able to put a point on the map based on that long and lat - my thought was that I could find an

RE: [Flashcoders] Math help

2010-09-10 Thread Steve Abaffy
What you need is something called Translation. I am leaving the office so I can't work out the problem for you, but basically pick a point on the map and call it 0,0 and then the lat and long of that same point will represent 0,0 and all you have to do is subtract or add the lat and long of the

RE: [Flashcoders] Math help

2010-09-10 Thread Merrill, Jason
Lattitude and longitude are lines projected onto a sphere (the earth), so therefore curve and won't translate to a 2D map, which could have any variety of projection type. So just using those values won't give you X and Y on any map, unless your map is not something as large as the U.S. A smaller

RE: [Flashcoders] Math help

2010-09-10 Thread Lehr, Theodore
Hhmmm that makes sense... that explains why it is not translating... unfortunately - I can not have something that needs go hit the internet - working on a closed network... the YahooMap API seems like it would not work on a network like that... unless I am totally misunderstanding it

RE: [Flashcoders] Math help

2010-09-10 Thread Merrill, Jason
Right - YahooMaps would require access to Yahoo. Jason Merrill Instructional Technology Architect Bank of America Global Learning Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (Note: these resources are only available for Bank of

Re: [Flashcoders] Apple backing off. Why?

2010-09-10 Thread Carl Welch
I don't believe apple really gives a crap about developers. We can thank the FTC probe for their sudden change of policy. I still feel burnt by Mr. Jobs. On Fri, Sep 10, 2010 at 2:05 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: there's a bit of a developer exodus from iOS

Re: [Flashcoders] Apple backing off. Why?

2010-09-10 Thread allandt bik-elliott (thefieldcomic.com)
agreed On 10 September 2010 17:41, Carl Welch carlwelchdes...@gmail.com wrote: I don't believe apple really gives a crap about developers. We can thank the FTC probe for their sudden change of policy. I still feel burnt by Mr. Jobs. On Fri, Sep 10, 2010 at 2:05 AM, allandt bik-elliott

Re: [Flashcoders] Apple backing off. Why?

2010-09-10 Thread Henrik Andersson
Carl Welch skriver: I don't believe apple really gives a crap about developers. We can thank the FTC probe for their sudden change of policy. I still feel burnt by Mr. Jobs. I must have missed that, what probe? ___ Flashcoders mailing list

Re: [Flashcoders] Apple backing off. Why?

2010-09-10 Thread Glen Pike
A large one :) Henrik Andersson wrote: Carl Welch skriver: I don't believe apple really gives a crap about developers. We can thank the FTC probe for their sudden change of policy. I still feel burnt by Mr. Jobs. I must have missed that, what probe?

Re: [Flashcoders] Apple backing off. Why?

2010-09-10 Thread Carl Welch
Henrick, http://www.wired.com/epicenter/2010/09/ftc-apple/ mwaa-hahahaha. I will enjoy every minute of this. I felt like Steve personally kicked me in the heart when he came out against Flash. His stance has definitely had an impact on my work as a flash developer. My work load when from more

[Flashcoders] Namespaces vs friends

2010-09-10 Thread Henrik Andersson
I have been thinking about namespaces in as and have realized that they can be considered a solution to the same problem that friends solve in c++. I wonder which solution is the best. Namespaces are defined once and can be used by multiple files, while friends needs to be listed fully for

[Flashcoders] Playing With Fire

2010-09-10 Thread George Jones
Hi; I figured out the reason I couldn't successfully mask out the background from my programatiically created bitmap image was because I added it to a sprite and then tried to mask the sprite; however, by then the background was no longer distinguishable from the rest. Someone suggested I mask

Re: [Flashcoders] Playing With Fire

2010-09-10 Thread Henrik Andersson
You don't want a mask. You want a bitmap with alpha values. If you really need two bitmaps, you can use the alpha blend mode to combine them during rendering. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] Playing With Fire

2010-09-10 Thread George Jones
Date: Fri, 10 Sep 2010 21:33:38 +0200 From: he...@henke37.cjb.net To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Playing With Fire You don't want a mask. You want a bitmap with alpha values. Ok. But that's what I have. As you know, I tried every combination to change

Re: [Flashcoders] Playing With Fire

2010-09-10 Thread Henrik Andersson
George Jones skriver: Any other thoughts? Don't try to use the alpha channel on a bitmap that doesn't have one. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Playing With Fire

2010-09-10 Thread Paul Andrews
On 10/09/2010 21:07, George Jones wrote: Any other thoughts? TIA, George Thanks for another protracted thread, Beno. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders