Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Wade Arnold
Where would you place a your global properties? This is a question that has always got me. If the properties such as framerate, gatewayURL, styles, etc need to be in the class application. They have to be there for two reasons. 1. User defined inspectable properties. 2. variables must be

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Michael Nisi
Hey Ricardo, just to give you a ruff idea, there are bazillion ways of doing this. You have two flas, shell.fla and section.fla. In each there's a clip on Stage called container_mc. In shell.fla on _root you do: Application.main(container_mc); In section.fla on _root you do: var

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Miguel Angel Sánchez
Well, I think that there are different ways to accomplish this and every developer will have his own way. You could store the config variables in Application, or you could have a Config class that is set up when Application starts, i.e. getting the configuration from an XML file, and the rest

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Michael Nisi
Forget about: Application.main(container_mc); Application.main(); M On 11/22/06, Michael Nisi [EMAIL PROTECTED] wrote: Hey Ricardo, just to give you a ruff idea, there are bazillion ways of doing this. You have two flas, shell.fla and section.fla. In each there's a clip on Stage called

Re: [Flashcoders] Problem: Safari and dynamic loading?

2006-11-22 Thread Seb L
I've had this problem recently. I found it was an issue when the swf and the html file aren't in the same directory. Either put them both in the same directory, or give the full path in your filename. Let me know how you get along! Seb Lee-Delisle sebleedelisle.com On 22/11/06, Haydn [EMAIL

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Ricardo Sánchez
Argh! Finally got it working! Thanks all. I was missing some concepts in OOP for collaboration with teams, like intrinsic classes and interfaces. Ok, what I did for a try was having a method in my main class to register third party movies' main classes. The I also have an interface they should

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Ricardo Sánchez
I forgot I'm thinking they should also have an intrinsic class for an object with global properties and stuff (not sure about this) On 11/22/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: Argh! Finally got it working! Thanks all. I was missing some concepts in OOP for collaboration with teams,

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Ian Thomas
Personally I'd pass them interfaces rather than intrinsics (mostly because interfaces are a standard OOP concept but intrinsics are a Flash-specific 'hackette'), but that's a matter of personal choice. Ian On 11/22/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: I forgot I'm thinking they should

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Ricardo Sánchez
But I need to pass them at least an intrinsic so they can register their class, wouldn't I? On 11/22/06, Ian Thomas [EMAIL PROTECTED] wrote: Personally I'd pass them interfaces rather than intrinsics (mostly because interfaces are a standard OOP concept but intrinsics are a Flash-specific

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Ian Thomas
Ah - that's because I don't do this with statics/getInstance(). :-) If I did, I'd probably do it with a minimal 'locator' class rather than an intrinsic. e.g. MyAppLocator.getApp() returns IApp IApp defines registerMe() That sort of thing. :-) But, at the end of the day, whatever works for

Re: [Flashcoders] Writing code for big teams

2006-11-22 Thread Michael Nisi
Yes, something like a ViewLocator or a special SectionLocator. Regards Michael On 11/22/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: But I need to pass them at least an intrinsic so they can register their class, wouldn't I? On 11/22/06, Ian Thomas [EMAIL PROTECTED] wrote: Personally I'd

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins
or you could use something like this class of myne http://www.mediaverk.lv/asd/com/jR/Math/ColorTween.as to get all color steps and afterwards apply that color in timed loop. Like var colors:Array = com.jR.Math.ColorTween.getColorArray([StartColor, endColor], numberOfSteps); and applying that

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread eric dolecki
Thats cool - i hooked the class up, but i get an array with values like this: 4951245,6133970,7316439,8499164,9681633,10864358,12046827,13229552,14412021,15594746 from going from a blue to white: [0x4B8CCD,0xFF] ?? On 11/22/06, Janis Radins [EMAIL PROTECTED] wrote: or you could use

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Martin Wood-Mitrovski
eric dolecki wrote: Thats cool - i hooked the class up, but i get an array with values like this: 4951245,6133970,7316439,8499164,9681633,10864358,12046827,13229552,14412021,15594746 from going from a blue to white: [0x4B8CCD,0xFF] ?? looks right to me 0x4B8CCD = 4951245 im

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins
those values are decimal representation of hex color values you can use them as they are for lets say TextFormat.color value 2006/11/22, eric dolecki [EMAIL PROTECTED]: Thats cool - i hooked the class up, but i get an array with values like this:

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread eric dolecki
I'm using setRGB, so I did this: var decToHex = 0x + toWhite[nWhiteCount].toString(16).toUpperCase(); which is basically working instead of tweaking and setting text formats On 11/22/06, Janis Radins [EMAIL PROTECTED] wrote: those values are decimal representation of hex color values you

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins
last value of output is the one before final value hence 0xFF isnt included wrote this calss for quite a while ago and really dont even remember was this something intentional or I just forghot about final value anyways thats bug only if you're not aware of it 2006/11/22, Martin

[Flashcoders] Any resources for Flash on the PSP?

2006-11-22 Thread Andrew Murphy
Hi. Does anyone know of any good, clearly written and thorough guides for building Flash for distribution on the PSP (Playstation Portable)? Preferably with example .fla files that I can poke around with. (This is just for my own abusement, as I just got a PSP, rather than anything work

[Flashcoders] ComboBox issue with attached movieclip

2006-11-22 Thread Martin Baltzer Hennelund
Hi, I attach a movieclip from library which includes a instance of ComboBox. After attachment I wait 3 frames then I populate the Combo in a for loop by calling the addItem() method. Problem is that I can't activate/open the combobox onClick. I can see that the title of the ComboBox is proper

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins
color value is number even if it accepts 0xXXX string, hence you can use simple toWhite[nWhiteCount] without 0x and toString(). flash works with decimal numbers anyways as soon as it receives 0xFF it's automacaly converted to 16777215 anyways 2006/11/22, eric dolecki [EMAIL PROTECTED]: I'm

[Flashcoders] Drawing pie charts?? (using Flash MX)

2006-11-22 Thread BOYD SPEER
Anyone know where to find algorythms or code scraps that would let me draw pie graphs using dynamic data? I am using the older Flash 6. Thanks for any hints -Boyd ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread eric dolecki
ah - right you are ;) thanks for pointing that out. working fino :) On 11/22/06, Janis Radins [EMAIL PROTECTED] wrote: color value is number even if it accepts 0xXXX string, hence you can use simple toWhite[nWhiteCount] without 0x and toString(). flash works with decimal numbers anyways as

Re: [Flashcoders] Drawing pie charts?? (using Flash MX)

2006-11-22 Thread Christopher Whiteford
http://www.flash-db.com/Components/?swfID=12sComType=Pie%20Chart On 11/22/06, BOYD SPEER [EMAIL PROTECTED] wrote: Anyone know where to find algorythms or code scraps that would let me draw pie graphs using dynamic data? I am using the older Flash 6. Thanks for any hints -Boyd

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Muzak
You can use the decimal values just fine with setRGB. var _clr:Color = new Color(_mc); _clr.setRGB(4951245); regards, Muzak - Original Message - From: eric dolecki [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 22, 2006 2:52

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread eric dolecki
yup - doing dynamic stuff so gather arrays of the values is useful. nice stuff. On 11/22/06, Muzak [EMAIL PROTECTED] wrote: You can use the decimal values just fine with setRGB. var _clr:Color = new Color(_mc); _clr.setRGB(4951245); regards, Muzak - Original Message - From: eric

[Flashcoders] Dynamic Pie Chart

2006-11-22 Thread eric dolecki
Q: Has anyone seen a dynamic pie chart component that allows one to add slices with code, remove them with code, and also allows one to click and drag edges of slices around to allow a user to manually change the % data for slices? - e. ___

Re: [Flashcoders] Dynamic Pie Chart

2006-11-22 Thread Janis Radins
seee www.mediaverk.lv/asd thats not ready made solution but it sure provides all API needed to implement it 2006/11/22, eric dolecki [EMAIL PROTECTED]: Q: Has anyone seen a dynamic pie chart component that allows one to add slices with code, remove them with code, and also allows one to click

[Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread moveup
Anyone know why this doesn't work? a_presets1=[5,6,1,6,4,8,5,6]; this.dispatchEvent({target:this, type:Presets, o_presets:a_presets1}); //my listener function: function Presets(evtob){ var a_presets=evtob.o_presets; trace(a_presets); //a_presets traces out undefined } [e] jbach at

Re: [Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread Julien Vignali
I've tried it and it works fine and as expected.. you must have an error somewhere else... Can you post more of your code ? 2006/11/22, [EMAIL PROTECTED] [EMAIL PROTECTED]: Anyone know why this doesn't work? a_presets1=[5,6,1,6,4,8,5,6]; this.dispatchEvent({target:this, type:Presets,

RE: [Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread Ben Smeets
How are you adding the listeners? A.k.a, what is the rest of the code? I believe this should work but can't tell for sure without context. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: woensdag 22 november 2006 16:18 To:

Re: [Flashcoders] Problem: Safari and dynamic loading?

2006-11-22 Thread Jamie S
I had a similar problem a while back with a project that required a lot of stuff (xml, swf's, and jpg's) to load all at once. It worked fine in publishing and in IE on Windows but Firefox (Mac and PC) and Safari (it was the wost with safari) would tend to miss stuff just as you have discribed. I

[Flashcoders] Flash Developers Needed

2006-11-22 Thread dbenman
We have a need for freelancers for an educational product. Development can start now and continue through January. Plus we have other needs over the next several months. A longer description is included below. It's possible to work remotely. Please contact me off-list at [EMAIL PROTECTED] if

[Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread nik crosina
Hi guys, For a flexible sales presenter we need to connect a spread sheet (excel) to Flash and selectively display the content of various cells of it. The spreadsheets themselves will be designed to be printable versions of the corresponding screens in Flash. Is this possible, or are we

[Flashcoders] changing a MovieClip instance class at runtime in AS2 ?

2006-11-22 Thread Dani Bacon
anyone know if i can change the class registration of a MovieClip instance that was placed on stage manually using AS2 code ? ive tried using Object.registerClass which works fine for any dynamically attached MCs but all symbol instances that where already on stage did register with the new

RE: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread Nick Weekes
Look into the possibilities of using xml with Excel (by either saving the file as xml or exporting sheets/ranges as xml). This can then be used as the data source for Flash. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of nik crosina Sent: 22 November

RE: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread Merrill, Jason
You can also use server-side apps to convert an uploaded Excel doc to XML and then do whatever with it - run SQL statements, other server side scripts, or back into Flash - no manual save as XML required, but it does require some savy backend stuff and/or third party components. Jason Merrill

Re: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread nik crosina
thanks Nick, You wouldn't know a good starting point to get into that side of Flash, aswe haven't done this often so far. Any resource or step by step guide that you think is particularly good? Thanks, Nik On 11/22/06, Nick Weekes [EMAIL PROTECTED] wrote: Look into the possibilities of using

Re: [Flashcoders] Flashpaper - removing a flashpaper mc properly seems impossible

2006-11-22 Thread Jonathan Fung
I'm facing exactly the same problem developing a content browser (viewing hundreds of single FP pages) in flash 8... My load times jump from 300ms to 10 seconds if i try to unloadMovie() first. I haven't found a solid fix, but I do have a partial workaround - don't unload the flashpaper. At least

Re: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread nik crosina
Thanks, Jason, I should have explained better, this is going to be for a CD based app, so it'll need to work without any server side scripts or use of database. But what you suggest is certainly something to consider for any future on-line brochures / pricelists - especially since it seem to

[Flashcoders] [ JOB ] Copenhagen, Denmark : Flash + GIS : 30-40days

2006-11-22 Thread Tor.Kristensen
An experienced freelance Flash Developer is required immediately for a 30 day (extendable to 40 day), on-site contract with a major European institution in the centre of Copenhagen, Denmark. You will be working on improvements to a Flash based GIS (Geospatial Information System) system with

RE: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread Merrill, Jason
OK for CD then. So For the XML idea Nick suggested, that's not going to be easy if it's on CD. It would be to have the user save as XML from Excel (File Save As save as XML data) to their local drive, and then use a third party projector like Zinc or mProjector to browse to the file they saved

Re: [Flashcoders] changing a MovieClip instance class at runtime in AS2 ?

2006-11-22 Thread T. Michael Keesey
Just curious--why do you want to do this? On 11/22/06, Dani Bacon [EMAIL PROTECTED] wrote: anyone know if i can change the class registration of a MovieClip instance that was placed on stage manually using AS2 code ? ive tried using Object.registerClass which works fine for any dynamically

Re: [Flashcoders] Problem: Safari and dynamic loading?

2006-11-22 Thread T. Michael Keesey
Safari is a POS. One thing you can do is use MovieClipLoader::onLoadError to check the error code. If it is LoadNeverCompleted (as opposed to URLNotFound), re-attempt the load. On 11/21/06, Haydn [EMAIL PROTECTED] wrote: Hi, I'm pretty sure this is an issue with Safari as a similar problem

Re: [Flashcoders] Q;Pass an array as event object?

2006-11-22 Thread T. Michael Keesey
Out of curiosity, what is presets? If it's a constant array, why not just make it a static var of a class? If it's unique to the dispatcher instance, why not use it as a property and access it in the listener as MyDispatcherClass(event.target).presets? (If neither is the case, forget I said

Re: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread Derek Vadneau
Take a look at some of the 3rd party swf2exe tools. For instance, with SWF Studio you can use Flash and JScript to manipulate an Excel spreadsheet - not just read it. With JScript you have control over the Excel COM object. You could also use SWF Studio's ADO plugin to read the spreadsheet as

Re: [Flashcoders] changing a MovieClip instance class at runtime in AS2 ?

2006-11-22 Thread Dani Bacon
hey TMK. thank you for your interest :) i started working with FlashDevelop + mtasc and would like to compile my projects solely via FlashDevelop. this way i would have the design team i work with set up the symbols and stage with all the visual assets needed, and set up linkageIDs to them. then

RE: [Flashcoders] changing a MovieClip instance class at runtime inAS2 ?

2006-11-22 Thread Marijan Miličević
as far as I know, FD ignores anything on the stage unless you choose inject code compile method, see compiler options within FD, hth -m -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dani Bacon Sent: Wednesday, November 22, 2006 5:50 PM To:

Re: [Flashcoders] LoadMovie adds style to UIComponents?

2006-11-22 Thread Glen Pike
Hi, I had a similar problem with a site that I was trying to load in another small preloader swf and asked the list, but received no answer - sorry. I tried overriding global styles in the preloader swf, but had no joy with this method. Anyone found a solution to this??? Glen

[Flashcoders] looking for win app to parse SWF header

2006-11-22 Thread Boon Chew
Does any of you know of a good simple swf header parser out there that works on Windoze? Looking for a quick way to obtain the swf frame size (height, width), frame rate, etc. Thanks. - Sponsored Link Mortgage rates near 39yr lows. $510,000 Mortgage for

Re: [Flashcoders] looking for win app to parse SWF header

2006-11-22 Thread Jonathan Fung
swfdump from swftools (www.swftools.org) you get output like this [HEADER]File version: 6 [HEADER]File is zlib compressed. Ratio: 85% [HEADER]File size: 6389517 (Depacked) [HEADER]Frame rate: 20.00 [HEADER]Frame count: 52 [HEADER]Movie width:

Re: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread shang liang
I have just done something like that. I used excel save as xml method. One thing you need to notice is that, this line ?mso-application progid=Excel.Sheet? gives some problem. use this code to solve it, http://www.daniweb.com/techtalkforums/thread37915.html Hope this helps. On 11/22/06, nik

RE: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread Byron Binkley
Hey Nik - I work with Proto, and depending on what you're constraints are for delivering the app (there's a free download and install of the Proto viewer, but users would need that), it could work well for you. http://www.protosw.com/products/features/flash It's not exactly designed as a flash