RE: [Flashcoders] connecting excel spread sheet to Flash
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 delivery mechanism, but could work that way. Proto does have really good integration with other stuff like Excel, databases, csvs, and has a built in Db. We use flash to extend Proto's user interface and there's a pretty sophisticated proto-flash execution and data bridge, so you can use SWF files in Proto apps. Proto isn't exactly designed to be the business logic for Flash apps, but you could certainly use it that way. Anyway - hth. If you have questions that are more appropriate off-list, feel free to use the forum at protosw.com too. Cheers, Byron -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of nik crosina Sent: Wednesday, November 22, 2006 7:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] connecting excel spread sheet to Flash HI Nick, I havcen't fully spec'ed the app yet, but as it is a re-work of an existing rather cumbersome thing, we are thinking of having a 'zinc'ed' swf, that accesses various excel files for information as and when this is needed for display in the app (the data will consist of prices, model numbers, are images possible here? I know Excel too little to know if you can store images in teh cells as well theses days ... must look it up). I am planning to use the same excel files to be printed out as a brochure sheets of the products. In other words if the user clicks on a print button, the swf sends the respective .xls to the printer. In teh past we had 2 documents for each product: one for display on screen (powerpoint), and the same - with slightly differnet design - as a PDF that could be printed. Pretty ambitous rject I am beginning to realise! Thaks, Nik On 11/22/06, Nick Weekes <[EMAIL PROTECTED]> wrote: > Just out of interest, whats the architecture of your Excel/Flash app? Is > it Excel for data and Flash for reporting? Do you need the Excel file to be > an Excel file (i.e. xls) or can it be 'dumb' xml (i.e. an xml file with > Excel attributes)? Are all the files stored in the same folder (i.e. xls + > swf)? > > Is your app code stored in the swf or swf + xls? > > Easier to point you in the right direction if you answer some of these > questions! > > Cheers, > > Nick > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, > Jason > Sent: 22 November 2006 16:26 > To: Flashcoders mailing list > Subject: RE: [Flashcoders] connecting excel spread sheet to Flash > > 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 and then load that XML into flash (not sure about what security > restrictions you would encounter with a third party and loading XML in the > project at that point). If you also need help loading and getting data from > XML, that's another topic altogether. Hope that helps. > > Jason Merrill > Bank of America > Learning & Organizational Effectiveness > > > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] [mailto:flashcoders- > >>[EMAIL PROTECTED] On Behalf Of nik crosina > >>Sent: Wednesday, November 22, 2006 11:18 AM > >>To: Flashcoders mailing list > >>Subject: Re: [Flashcoders] connecting excel spread sheet to Flash > >> > >>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 requrie > >>NO special saving of the spread shets frmo the sales peoples point of > >>view (to explain to them even the most basic of XML will be futile... > >>;) > >> > >>Thanks, > >>Nik > >> > >>On 11/22/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > >>> 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 > >>> Bank of America > >>> Learning & Organizational Effectiveness > >>> > >>> > >>> > >>> > >>> > >>> >>-Original Message- > >>> >>From: [EMAIL PROTECTED] > [mailto:flashcoders- > >>> >>[EMAIL PROTECTED] On Behalf Of Nick Weekes > >>> >>Sent: Wednesday, November 22, 2006 11:09 AM > >>> >>To: 'Flashcoders mailing list' > >>> >>Subject: RE: [Flashcoders] connecting
Re: [Flashcoders] connecting excel spread sheet to Flash
I have just done something like that. I used excel save as xml method. One thing you need to notice is that, this line gives some problem. use this code to solve it, http://www.daniweb.com/techtalkforums/thread37915.html Hope this helps. On 11/22/06, nik crosina <[EMAIL PROTECTED]> wrote: 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 barking up the wrong ttree so to speak? Thanks for your help!! -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- /* bored */ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] connecting excel spread sheet to Flash
HI Nick, I havcen't fully spec'ed the app yet, but as it is a re-work of an existing rather cumbersome thing, we are thinking of having a 'zinc'ed' swf, that accesses various excel files for information as and when this is needed for display in the app (the data will consist of prices, model numbers, are images possible here? I know Excel too little to know if you can store images in teh cells as well theses days ... must look it up). I am planning to use the same excel files to be printed out as a brochure sheets of the products. In other words if the user clicks on a print button, the swf sends the respective .xls to the printer. In teh past we had 2 documents for each product: one for display on screen (powerpoint), and the same - with slightly differnet design - as a PDF that could be printed. Pretty ambitous rject I am beginning to realise! Thaks, Nik On 11/22/06, Nick Weekes <[EMAIL PROTECTED]> wrote: Just out of interest, whats the architecture of your Excel/Flash app? Is it Excel for data and Flash for reporting? Do you need the Excel file to be an Excel file (i.e. xls) or can it be 'dumb' xml (i.e. an xml file with Excel attributes)? Are all the files stored in the same folder (i.e. xls + swf)? Is your app code stored in the swf or swf + xls? Easier to point you in the right direction if you answer some of these questions! Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 22 November 2006 16:26 To: Flashcoders mailing list Subject: RE: [Flashcoders] connecting excel spread sheet to Flash 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 and then load that XML into flash (not sure about what security restrictions you would encounter with a third party and loading XML in the project at that point). If you also need help loading and getting data from XML, that's another topic altogether. Hope that helps. Jason Merrill Bank of America Learning & Organizational Effectiveness >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of nik crosina >>Sent: Wednesday, November 22, 2006 11:18 AM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] connecting excel spread sheet to Flash >> >>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 requrie >>NO special saving of the spread shets frmo the sales peoples point of >>view (to explain to them even the most basic of XML will be futile... >>;) >> >>Thanks, >>Nik >> >>On 11/22/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>> 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 >>> Bank of America >>> Learning & Organizational Effectiveness >>> >>> >>> >>> >>> >>> >>-Original Message- >>> >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>> >>[EMAIL PROTECTED] On Behalf Of Nick Weekes >>> >>Sent: Wednesday, November 22, 2006 11:09 AM >>> >>To: 'Flashcoders mailing list' >>> >>Subject: RE: [Flashcoders] connecting excel spread sheet to Flash >>> >> >>> >>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 2006 15:56 >>> >>To: Flashcoders mailing list >>> >>Subject: [Flashcoders] connecting excel spread sheet to Flash >>> >> >>> >>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 barking up the wrong ttree so to speak? >>> >> >>> >>Thanks for your help!! >>> >> >>> >>-- >>> >>Nik C >>> >>___ >>> >>Flashcoders@chattyfig.figleaf.com >>> >>To change your subscription options or search the archive: >>> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >>> >>Brought to you by Fig Leaf Software Premier A
Re: [Flashcoders] looking for win app to parse SWF header
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: 327.25 [HEADER]Movie height: 400.00 On 11/22/06, Boon Chew <[EMAIL PROTECTED]> wrote: 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 $1,698/mo - Calculate new house payment ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] looking for win app to parse SWF header
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 $1,698/mo - Calculate new house payment ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LoadMovie adds style to UIComponents?
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 Wade Arnold wrote: I have one swf file that has a couple textinputs and textareas. When I run the swf alone it does not draw the green default boarder on focusIn. However if I load that same SWF via another swf into a symbol holder.loadMovie("test.swf"); then I get the green boarder when I click on the textinput and textarea. Is there a way to disable this? It does not seem as though using setStyle allows me to keep the boarder from showing under focusIn. Thanks! Wade Arnold ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] changing a MovieClip instance class at runtime inAS2 ?
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: Flashcoders mailing list Subject: Re: [Flashcoders] changing a MovieClip instance class at runtime inAS2 ? 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 i would be able to set up those symbols functionality via external code. i wouldnt mind linking classes to MCs using the symbols properties panel, but FlashDevelop ignores those links. so using registerClass in Main i can link linkageIDs to classes but that only works for dynamic attachments of MC instances. any ideas ? [snip..] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] changing a MovieClip instance class at runtime in AS2 ?
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 i would be able to set up those symbols functionality via external code. i wouldnt mind linking classes to MCs using the symbols properties panel, but FlashDevelop ignores those links. so using registerClass in Main i can link linkageIDs to classes but that only works for dynamic attachments of MC instances. any ideas ? im moved to working with FlashDevelop and mtasc and im looking for a way to be able to compile my code solely via FlashDeveop, while i let the design team On 11/22/06, T. Michael Keesey <[EMAIL PROTECTED]> wrote: 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 > attached MCs but all symbol instances that where already on stage did > register with the new class. > > the code- > > class Main > { > > static function main() > { > _root.stop(); > > Object.registerClass("idTest", classes.someClass); > _root.attachMovie("idTest", "testname", > _root.getNextHighestDepth()); > > } > > } > > this works and generates MC named "testname" registered to the class " > classes.someClass". but any instance of MC with linkage id "idTest" that was > already on stage doesnt register with "classes.someClass". so how do i get > them to register ? > > TIA ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] connecting excel spread sheet to Flash
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 if it was a database. Derek Vadneau Northcode Inc. http://www.northcode.com - Original Message - From: "nik crosina" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Wednesday, November 22, 2006 11:17 AM Subject: Re: [Flashcoders] connecting excel spread sheet to Flash 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 requrie NO special saving of the spread shets frmo the sales peoples point of view (to explain to them even the most basic of XML will be futile... ;) Thanks, Nik ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] connecting excel spread sheet to Flash
Just out of interest, whats the architecture of your Excel/Flash app? Is it Excel for data and Flash for reporting? Do you need the Excel file to be an Excel file (i.e. xls) or can it be 'dumb' xml (i.e. an xml file with Excel attributes)? Are all the files stored in the same folder (i.e. xls + swf)? Is your app code stored in the swf or swf + xls? Easier to point you in the right direction if you answer some of these questions! Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 22 November 2006 16:26 To: Flashcoders mailing list Subject: RE: [Flashcoders] connecting excel spread sheet to Flash 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 and then load that XML into flash (not sure about what security restrictions you would encounter with a third party and loading XML in the project at that point). If you also need help loading and getting data from XML, that's another topic altogether. Hope that helps. Jason Merrill Bank of America Learning & Organizational Effectiveness >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of nik crosina >>Sent: Wednesday, November 22, 2006 11:18 AM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] connecting excel spread sheet to Flash >> >>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 requrie >>NO special saving of the spread shets frmo the sales peoples point of >>view (to explain to them even the most basic of XML will be futile... >>;) >> >>Thanks, >>Nik >> >>On 11/22/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>> 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 >>> Bank of America >>> Learning & Organizational Effectiveness >>> >>> >>> >>> >>> >>> >>-Original Message- >>> >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>> >>[EMAIL PROTECTED] On Behalf Of Nick Weekes >>> >>Sent: Wednesday, November 22, 2006 11:09 AM >>> >>To: 'Flashcoders mailing list' >>> >>Subject: RE: [Flashcoders] connecting excel spread sheet to Flash >>> >> >>> >>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 2006 15:56 >>> >>To: Flashcoders mailing list >>> >>Subject: [Flashcoders] connecting excel spread sheet to Flash >>> >> >>> >>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 barking up the wrong ttree so to speak? >>> >> >>> >>Thanks for your help!! >>> >> >>> >>-- >>> >>Nik C >>> >>___ >>> >>Flashcoders@chattyfig.figleaf.com >>> >>To change your subscription options or search the archive: >>> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >>> >>Brought to you by Fig Leaf Software Premier Authorized Adobe >>> >>Consulting and Training >>> http://www.figleaf.com >>> >>http://training.figleaf.com >>> >> >>> >> >>> >>___ >>> >>Flashcoders@chattyfig.figleaf.com >>> >>To change your subscription options or search the archive: >>> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >>> >>Brought to you by Fig Leaf Software Premier Authorized Adobe >>> >>Consulting and Training http://www.figleaf.com >>> >>http://training.figleaf.com >>> ___ >>> Flashcoders@chattyfig.figleaf.com >>> To change your subscription options or search the archive: >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> Brought to you by Fig Leaf Software >>> Premier Authorized Adobe Consulting and Training >>> http://www.figleaf.com http://training.figleaf.com >>> >> >> >>-- >>Nik C >>___
Re: [Flashcoders] Q;Pass an array as event object?
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 anything.) On 11/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 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 bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Problem: Safari and dynamic loading?
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 somethings occurs when loading HTML pages. From what I can tell it's completely random. I'm using Safari 1.3.1 so maybe an update to 1.3.2 would fix the problem? Haydn. On 21/11/2006, at 9:08 PM, Daniel Forslund|Lists wrote: > > > Hi everyone! > > I've researched this - apologies if I've missed the answer somewhere. > Anyways: > I have a flash application that reads an XML-file and then proceeds to > load lots of content dynamically - a common situation. > Everything works very well, except now and then in Safari. Safari will > then "miss" loading an element and my preload bar for that object will > hang indefinitely. A simple reload of the page solves the problem. > This happens regardless of whether I've cleared Safari's cache etc. > > The problem *never* occurs in other browsers (Firefox for example) or > offline. So I'm starting to suspect Safari as the culprit rather than > my code. > - Has anyone experienced the same problem? > - Any idea what may be causing it? > - Any pitfalls in using Moviecliploader that may cause this? > > I would be very thankful for advice as I want to pin down the problem > before it causes problems for the client. Thanks in advance! > > Regards, > Dan > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry & Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] changing a MovieClip instance class at runtime in AS2 ?
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 attached MCs but all symbol instances that where already on stage did register with the new class. the code- class Main { static function main() { _root.stop(); Object.registerClass("idTest", classes.someClass); _root.attachMovie("idTest", "testname", _root.getNextHighestDepth()); } } this works and generates MC named "testname" registered to the class " classes.someClass". but any instance of MC with linkage id "idTest" that was already on stage doesnt register with "classes.someClass". so how do i get them to register ? TIA ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] connecting excel spread sheet to Flash
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 and then load that XML into flash (not sure about what security restrictions you would encounter with a third party and loading XML in the project at that point). If you also need help loading and getting data from XML, that's another topic altogether. Hope that helps. Jason Merrill Bank of America Learning & Organizational Effectiveness >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of nik crosina >>Sent: Wednesday, November 22, 2006 11:18 AM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] connecting excel spread sheet to Flash >> >>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 requrie >>NO special saving of the spread shets frmo the sales peoples point of >>view (to explain to them even the most basic of XML will be futile... >>;) >> >>Thanks, >>Nik >> >>On 11/22/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>> 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 >>> Bank of America >>> Learning & Organizational Effectiveness >>> >>> >>> >>> >>> >>> >>-Original Message- >>> >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>> >>[EMAIL PROTECTED] On Behalf Of Nick Weekes >>> >>Sent: Wednesday, November 22, 2006 11:09 AM >>> >>To: 'Flashcoders mailing list' >>> >>Subject: RE: [Flashcoders] connecting excel spread sheet to Flash >>> >> >>> >>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 2006 15:56 >>> >>To: Flashcoders mailing list >>> >>Subject: [Flashcoders] connecting excel spread sheet to Flash >>> >> >>> >>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 barking up the wrong ttree so to speak? >>> >> >>> >>Thanks for your help!! >>> >> >>> >>-- >>> >>Nik C >>> >>___ >>> >>Flashcoders@chattyfig.figleaf.com >>> >>To change your subscription options or search the archive: >>> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >>> >>Brought to you by Fig Leaf Software >>> >>Premier Authorized Adobe Consulting and Training >>> http://www.figleaf.com >>> >>http://training.figleaf.com >>> >> >>> >> >>> >>___ >>> >>Flashcoders@chattyfig.figleaf.com >>> >>To change your subscription options or search the archive: >>> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >>> >>Brought to you by Fig Leaf Software >>> >>Premier Authorized Adobe Consulting and Training >>> >>http://www.figleaf.com >>> >>http://training.figleaf.com >>> ___ >>> Flashcoders@chattyfig.figleaf.com >>> To change your subscription options or search the archive: >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> Brought to you by Fig Leaf Software >>> Premier Authorized Adobe Consulting and Training >>> http://www.figleaf.com >>> http://training.figleaf.com >>> >> >> >>-- >>Nik C >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash 8: Code editors
For the record, I've been using Textmate on OSX for AS and it's really sped up my coding several times over. Everything that a text editor should be. I used to use SEPY on PC, but found it a wee bit buggy. Mark Micky Hulse wrote: Muzak wrote: If you're looking for an IDE that can handle multiple languages, including server side languages, check out Eclipse and its various plugins: Great list! Thanks for sharing. :) I am definitely looking for a good code editor. I regularly code in CSS/PHP/HTML/JS... and I am now just getting back into Flash coding (been a while -- spent some time away from Flash honing my skills at other langs/apps.) I just picked-up Foundation Actionscript Animation... so far so good. Going to try a few different AS/other editors... looks like there are many available. It will be nice to ditch DW for something more specific to hand coding. :) Thanks again, Cheers, Micky ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] [ JOB ] Copenhagen, Denmark : Flash + GIS : 30-40days
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 access to terabytes of live data. Required Skills: Fluent AS 2.0 Experience with GIS Experience with OOP design patterns Experience with version control (Subversion/CVS) Experience with Flash <-> Webservice communication Experience with repackaging / reuse of components, both code based and SWC Please send applications to [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] connecting excel spread sheet to Flash
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 requrie NO special saving of the spread shets frmo the sales peoples point of view (to explain to them even the most basic of XML will be futile... ;) Thanks, Nik On 11/22/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: 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 Bank of America Learning & Organizational Effectiveness >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Nick Weekes >>Sent: Wednesday, November 22, 2006 11:09 AM >>To: 'Flashcoders mailing list' >>Subject: RE: [Flashcoders] connecting excel spread sheet to Flash >> >>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 2006 15:56 >>To: Flashcoders mailing list >>Subject: [Flashcoders] connecting excel spread sheet to Flash >> >>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 barking up the wrong ttree so to speak? >> >>Thanks for your help!! >> >>-- >>Nik C >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training http://www.figleaf.com >>http://training.figleaf.com >> >> >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flashpaper - removing a flashpaper mc properly seems impossible
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 with my single pages I've managed to keep it from taking more than 500ms in subsequent loads. If this scales to your 90 pages (maybe) you could shave off a good portion of those 30 extra seconds if you just load the clip over the existing one. hope that helps, Jon On 11/22/06, Tom Shaw <[EMAIL PROTECTED]> wrote: Im on flash 8 Pro creating a projector to view Flashpaper documents. I have tried various methods to remove a Flashpaper instance from memory. Sure the document goes off screen and gets deleted from the mc tree but the memory is still occupied by the flash player. The problem gets worse the next time you try to load up a Flashpaper document. You take a massive performance hit loading a document up after removing a previous one. The documents I am talking about here are 90 or so pages, one document is about 4mb. When loading these documents the first time round it only takes a few seconds for them to load. thesecond time round it can take as much as 30 seconds to load up the document introducing the warning about scripts running slowly. Can anyone suggest a better way to entirely get rid of a Flashpaper document once its been loaded into the stage? Cheers, Tom ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] connecting excel spread sheet to Flash
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 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 2006 15:56 To: Flashcoders mailing list Subject: [Flashcoders] connecting excel spread sheet to Flash 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 barking up the wrong ttree so to speak? Thanks for your help!! -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] connecting excel spread sheet to Flash
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 Bank of America Learning & Organizational Effectiveness >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Nick Weekes >>Sent: Wednesday, November 22, 2006 11:09 AM >>To: 'Flashcoders mailing list' >>Subject: RE: [Flashcoders] connecting excel spread sheet to Flash >> >>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 2006 15:56 >>To: Flashcoders mailing list >>Subject: [Flashcoders] connecting excel spread sheet to Flash >> >>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 barking up the wrong ttree so to speak? >> >>Thanks for your help!! >> >>-- >>Nik C >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training http://www.figleaf.com >>http://training.figleaf.com >> >> >>___ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] connecting excel spread sheet to Flash
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 2006 15:56 To: Flashcoders mailing list Subject: [Flashcoders] connecting excel spread sheet to Flash 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 barking up the wrong ttree so to speak? Thanks for your help!! -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] changing a MovieClip instance class at runtime in AS2 ?
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 class. the code- class Main { static function main() { _root.stop(); Object.registerClass("idTest", classes.someClass); _root.attachMovie("idTest", "testname", _root.getNextHighestDepth()); } } this works and generates MC named "testname" registered to the class " classes.someClass". but any instance of MC with linkage id "idTest" that was already on stage doesnt register with "classes.someClass". so how do i get them to register ? TIA ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] connecting excel spread sheet to Flash
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 barking up the wrong ttree so to speak? Thanks for your help!! -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Developers Needed
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 you are interested. Thanks. Six Red Marbles (http://www.sixredmarbles.com) has been developing CD-ROM and Internet products for educational publishing clients for 10+ years. We're currently seeking a Senior Flash Developer to join our team. We're looking for someone with a track record developing complex Flash applications, with integration with Director shells, JSP, or PHP backends. This is a programming job, not a design job. Experience in working with offshore vendors is a plus. SKILLS - Solid knowledge of Macromedia Flash MX2004/ Flash 8.0, including demonstrated use of the following: - Actionscript 2.0 - XML parsing within Flash or experience with projects that used Flash/XML integration - familiarity with 508 compliance and coding that meets accessibility guidelines RESPONSIBILITIES - 3+ years of experience developing large-scale online and CD-ROM applications in Flash (and experience with Director shells) - Team oriented, energetic attitude and willingness to help wherever needed. - Ability and willingness to work under tight deadlines while maintaining a positive attitude. - Excellent written and verbal communication skills; ability to present solutions to a variety of external and internal audiences. - Ability to facilitate collaboration within and among project and technical team(s), including formal experience working with project managers, designers, and developers - A strong desire to work in the K-12 educational market - Exceptional organizational skills, attention to detail, and ability to manage multiple priorities at same time. - Working on-site preferred. Note: we are looking for a staff position as well as freelance positions To apply please contact [EMAIL PROTECTED] or [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Problem: Safari and dynamic loading?
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 the only way I was able to put the problem to bed for sure was to build a load manager class that would make sure everything loaded up one at a time. So all of the stuff that needed to be loaded would be put into a queue and the class would go through and load stuff, making sure not to load the next thing in the queue until the previous thing had finished. It did slow things down a little bit, but better that then having unpredictable results. Since I saw the problem in multiple browsers, I suspect it was more of a bug in the Flash Player. But it's clear that loading in tons of stuff at once can cause problems. Email me if you want me to send the load manager class. Best, Jamie On 11/22/06, Seb L <[EMAIL PROTECTED]> wrote: 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 PROTECTED]> wrote: > Hi, > > I'm pretty sure this is an issue with Safari as a similar problem > somethings occurs when loading HTML pages. From what I can tell it's > completely random. I'm using Safari 1.3.1 so maybe an update to 1.3.2 > would fix the problem? > > Haydn. > > On 21/11/2006, at 9:08 PM, Daniel Forslund|Lists wrote: > > > > > > > Hi everyone! > > > > I've researched this - apologies if I've missed the answer somewhere. > > Anyways: > > I have a flash application that reads an XML-file and then proceeds to > > load lots of content dynamically - a common situation. > > Everything works very well, except now and then in Safari. Safari will > > then "miss" loading an element and my preload bar for that object will > > hang indefinitely. A simple reload of the page solves the problem. > > This happens regardless of whether I've cleared Safari's cache etc. > > > > The problem *never* occurs in other browsers (Firefox for example) or > > offline. So I'm starting to suspect Safari as the culprit rather than > > my code. > > - Has anyone experienced the same problem? > > - Any idea what may be causing it? > > - Any pitfalls in using Moviecliploader that may cause this? > > > > I would be very thankful for advice as I want to pin down the problem > > before it causes problems for the client. Thanks in advance! > > > > Regards, > > Dan > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Q;Pass an array as event object?
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: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Q;Pass an array as event object? 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 bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Q;Pass an array as event object?
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", 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 bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Julien Vignali ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Q;Pass an array as event object?
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 bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca "...all improvisation is life in search of a style." - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Dynamic Pie Chart
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 and drag edges of slices around to allow a user to manually change the % data for slices? - e. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Dynamic Pie Chart
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. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 dolecki" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Wednesday, November 22, 2006 2:52 PM Subject: Re: [Flashcoders] Tween color of dynamic text > 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 > > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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" Sent: Wednesday, November 22, 2006 2:52 PM Subject: Re: [Flashcoders] Tween color of dynamic text > 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 > > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flashpaper - removing a flashpaper mc properly seems impossible
Im on flash 8 Pro creating a projector to view Flashpaper documents. I have tried various methods to remove a Flashpaper instance from memory. Sure the document goes off screen and gets deleted from the mc tree but the memory is still occupied by the flash player. The problem gets worse the next time you try to load up a Flashpaper document. You take a massive performance hit loading a document up after removing a previous one. The documents I am talking about here are 90 or so pages, one document is about 4mb. When loading these documents the first time round it only takes a few seconds for them to load. thesecond time round it can take as much as 30 seconds to load up the document introducing the warning about scripts running slowly. Can anyone suggest a better way to entirely get rid of a Flashpaper document once its been loaded into the stage? Cheers, Tom ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Drawing pie charts?? (using Flash MX)
http://www.flash-db.com/Components/?swfID=12&sComType=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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 soon as it receives 0xFF it's automacaly converted to 16777215 anyways 2006/11/22, eric dolecki <[EMAIL PROTECTED]>: > > 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 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: > > > > > > > > > > > > 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 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 color change within setInterval calls. > > > > > > > > 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>: > > > > > > > > > > I meant 'movieclip tween coloring' (code) > > > > > > > > > > > the low profile way: > > > > > > I put my textfield in a movieclip (text_mc) and set my > textfield's > > > > > > color to '0xFF' (text_mc.text_txt.textColor) > > > > > > then I simply use movieclips tweens , you know the old ones > :)... > > > > > > > > > > > >> I am looking for a small routine to tween the color of some > > > > > >> dynamic text. > > > > > >> I've found lots of large packages, but really only need to > affect > > a > > > > > >> textfield, and to be able to do 2 things: > > > > > >> > > > > > >> 1. tween a field to a specified 0x color > > > > > >> 2. tween a field back to its original set color (un-tween so to > > > > > >> speak) > > > > > >> > > > > > >> does anyone have anything handy? Is going into a class > > > > > >> > > > > > >> - e. > > > > > >> ___ > > > > > >> Flashcoders@chattyfig.figleaf.com > > > > > >> To change your subscription options or search the archive: > > > > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > >> > > > > > >> Brought to you by Fig Leaf Software > > > > > >> Premier Authorized Adobe Consulting and Training > > > > > >> http://www.figleaf.com > > > > > >> http://training.figleaf.com > > > > > > > > > > > > ___ > > > > > > Flashcoders@chattyfig.figleaf.com > > > > > > To change your subscription options or search the archive: > > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > > > > Brought to you by Fig Leaf Software > > > > > > Premier Authorized Adobe Consulting and Training > > > > > > http://www.figleaf.com > > > > > > http://training.figleaf.com > > > > > > > > > > ___ > > > > > Flashcoders@chattyfig.figleaf.com > > > > > To change your subscription options or search the archive: > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > > Brought to you by Fig Leaf Software > > > > > Premier Authorized Adobe Consulting and Training > > > > > http://www.figleaf.com > > > > > http://training.figleaf.com > > > > > > > > > ___ > > > > Flashcoders@chattyfig.figleaf.com > > > > To change your subscription options or search the archive: > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > Brought to you by Fig Leaf Software > > > > Premier Authorized Adobe Consulting and Training > > > > http://www.figleaf.com > > > > http://training.figleaf.com > > > > > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Ado
[Flashcoders] Drawing pie charts?? (using Flash MX)
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 archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 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 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: > > > > > > > 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 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 color change within setInterval calls. > > > > > > 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>: > > > > > > > > I meant 'movieclip tween coloring' (code) > > > > > > > > > the low profile way: > > > > > I put my textfield in a movieclip (text_mc) and set my textfield's > > > > > color to '0xFF' (text_mc.text_txt.textColor) > > > > > then I simply use movieclips tweens , you know the old ones :)... > > > > > > > > > >> I am looking for a small routine to tween the color of some > > > > >> dynamic text. > > > > >> I've found lots of large packages, but really only need to affect > a > > > > >> textfield, and to be able to do 2 things: > > > > >> > > > > >> 1. tween a field to a specified 0x color > > > > >> 2. tween a field back to its original set color (un-tween so to > > > > >> speak) > > > > >> > > > > >> does anyone have anything handy? Is going into a class > > > > >> > > > > >> - e. > > > > >> ___ > > > > >> Flashcoders@chattyfig.figleaf.com > > > > >> To change your subscription options or search the archive: > > > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > >> > > > > >> Brought to you by Fig Leaf Software > > > > >> Premier Authorized Adobe Consulting and Training > > > > >> http://www.figleaf.com > > > > >> http://training.figleaf.com > > > > > > > > > > ___ > > > > > Flashcoders@chattyfig.figleaf.com > > > > > To change your subscription options or search the archive: > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > > Brought to you by Fig Leaf Software > > > > > Premier Authorized Adobe Consulting and Training > > > > > http://www.figleaf.com > > > > > http://training.figleaf.com > > > > > > > > ___ > > > > Flashcoders@chattyfig.figleaf.com > > > > To change your subscription options or search the archive: > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > Brought to you by Fig Leaf Software > > > > Premier Authorized Adobe Consulting and Training > > > > http://www.figleaf.com > > > > http://training.figleaf.com > > > > > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Trainin
[Flashcoders] ComboBox issue with attached movieclip
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 filled out and checking on the length of it says it contains the elements that it should, but it just won't open What is wrong? Simple Code ex: // cbAlder.addItem("< 18", "< 18"); for (i=18 ; i<=50 ; i++) { cbAlder.addItem(i, i); } //. Thanks a lot in advance Martin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Any resources for Flash on the PSP?
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 related.) Thank you. :) - - - - - - - - - -[andrew murphy]- flash developer [EMAIL PROTECTED] delvinia interactive inc. 214 king street west, suite 214 toronto canada M5H 3S6 voice 416.364.1455 ext. 232 cell 416.820.8723 fax 416.364.9830 www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.14.11/543 - Release Date: 20/11/2006 9:20 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 Wood-Mitrovski <[EMAIL PROTECTED]>: 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 guessing you missed of some of the end values as 0xFF = 16777215 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 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: > > > 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 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 color change within setInterval calls. > > > > 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>: > > > > > > I meant 'movieclip tween coloring' (code) > > > > > > > the low profile way: > > > > I put my textfield in a movieclip (text_mc) and set my textfield's > > > > color to '0xFF' (text_mc.text_txt.textColor) > > > > then I simply use movieclips tweens , you know the old ones :)... > > > > > > > >> I am looking for a small routine to tween the color of some > > > >> dynamic text. > > > >> I've found lots of large packages, but really only need to affect a > > > >> textfield, and to be able to do 2 things: > > > >> > > > >> 1. tween a field to a specified 0x color > > > >> 2. tween a field back to its original set color (un-tween so to > > > >> speak) > > > >> > > > >> does anyone have anything handy? Is going into a class > > > >> > > > >> - e. > > > >> ___ > > > >> Flashcoders@chattyfig.figleaf.com > > > >> To change your subscription options or search the archive: > > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > >> > > > >> Brought to you by Fig Leaf Software > > > >> Premier Authorized Adobe Consulting and Training > > > >> http://www.figleaf.com > > > >> http://training.figleaf.com > > > > > > > > ___ > > > > Flashcoders@chattyfig.figleaf.com > > > > To change your subscription options or search the archive: > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > Brought to you by Fig Leaf Software > > > > Premier Authorized Adobe Consulting and Training > > > > http://www.figleaf.com > > > > http://training.figleaf.com > > > > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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: 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 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 color change within setInterval calls. > > 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>: > > > > I meant 'movieclip tween coloring' (code) > > > > > the low profile way: > > > I put my textfield in a movieclip (text_mc) and set my textfield's > > > color to '0xFF' (text_mc.text_txt.textColor) > > > then I simply use movieclips tweens , you know the old ones :)... > > > > > >> I am looking for a small routine to tween the color of some > > >> dynamic text. > > >> I've found lots of large packages, but really only need to affect a > > >> textfield, and to be able to do 2 things: > > >> > > >> 1. tween a field to a specified 0x color > > >> 2. tween a field back to its original set color (un-tween so to > > >> speak) > > >> > > >> does anyone have anything handy? Is going into a class > > >> > > >> - e. > > >> ___ > > >> Flashcoders@chattyfig.figleaf.com > > >> To change your subscription options or search the archive: > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > >> > > >> Brought to you by Fig Leaf Software > > >> Premier Authorized Adobe Consulting and Training > > >> http://www.figleaf.com > > >> http://training.figleaf.com > > > > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 guessing you missed of some of the end values as 0xFF = 16777215 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 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 color change within setInterval calls. 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>: > > I meant 'movieclip tween coloring' (code) > > > the low profile way: > > I put my textfield in a movieclip (text_mc) and set my textfield's > > color to '0xFF' (text_mc.text_txt.textColor) > > then I simply use movieclips tweens , you know the old ones :)... > > > >> I am looking for a small routine to tween the color of some > >> dynamic text. > >> I've found lots of large packages, but really only need to affect a > >> textfield, and to be able to do 2 things: > >> > >> 1. tween a field to a specified 0x color > >> 2. tween a field back to its original set color (un-tween so to > >> speak) > >> > >> does anyone have anything handy? Is going into a class > >> > >> - e. > >> ___ > >> Flashcoders@chattyfig.figleaf.com > >> To change your subscription options or search the archive: > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >> > >> Brought to you by Fig Leaf Software > >> Premier Authorized Adobe Consulting and Training > >> http://www.figleaf.com > >> http://training.figleaf.com > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Tween color of dynamic text
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 color change within setInterval calls. 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>: I meant 'movieclip tween coloring' (code) > the low profile way: > I put my textfield in a movieclip (text_mc) and set my textfield's > color to '0xFF' (text_mc.text_txt.textColor) > then I simply use movieclips tweens , you know the old ones :)... > >> I am looking for a small routine to tween the color of some >> dynamic text. >> I've found lots of large packages, but really only need to affect a >> textfield, and to be able to do 2 things: >> >> 1. tween a field to a specified 0x color >> 2. tween a field back to its original set color (un-tween so to >> speak) >> >> does anyone have anything handy? Is going into a class >> >> - e. >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Writing code for big teams
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 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 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: > > > > > > > Do you think is a good idea to give them this 2 files, or should I > pass > > > them just an intrinsic class for them to extend, thus not allowin > their main > > > class to extend anything else. > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Writing code for big teams
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 you... Cheers, Ian 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 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Writing code for big teams
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 '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 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: > > > > Do you think is a good idea to give them this 2 files, or should I pass > > them just an intrinsic class for them to extend, thus not allowin their main > > class to extend anything else. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Writing code for big teams
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 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: > > Do you think is a good idea to give them this 2 files, or should I pass > them just an intrinsic class for them to extend, thus not allowin their main > class to extend anything else. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Writing code for big teams
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, 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 implement. So I give them 2 files: - an intrinsic copy of my main class only with the definition of register and getInstance methods. - an interface with the methods i'll call from my main class So in their class they do something like this import lib.MainClass; import lib.interface.InterfaceClass class ThirdPartyClass implements InterfaceClass { ... public function ThirdPartyClass () { MainClass.getInstance().register(this); } ... implement interface methods } Do you think is a good idea to give them this 2 files, or should I pass them just an intrinsic class for them to extend, thus not allowin their main class to extend anything else. Again thakyou all, this is being of great help. On 11/22/06, Michael Nisi <[EMAIL PROTECTED] > wrote: > > 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 container_mc. > > > > In shell.fla on _root you do: > > Application.main(container_mc); > > > > In section.fla on _root you do: > > var section:Section = new Section(container_mc); > > > > Here are the classes: > > - Application > > - ViewLocator > > - Playable (Interface) > > - Section > > > > import ViewLocator; > > import Section; > > > > class Application > > { > > function Application() > > { > > var loader:MovieClipLoader = new MovieClipLoader(); > > loader.loadClip("section.swf", _root.container_mc); > > } > > > > public static function main():Void > > { > > var application:Application = new Application(); > > } > > } > > > > import Playable; > > import Application; > > > > class ViewLocator > > { > > public static function register(section:Playable):Void > > { > > // Store section or whatever... > > section.start(); > > } > > } > > > > interface Playable > > { > > function start(); > > } > > > > import Playable; > > import ViewLocator; > > > > class Section implements Playable > > { > > function Section(target:MovieClip) > > { > > ViewLocator.register(this); > > } > > > > public function start() > > { > > trace("Section.start "); > > } > > } > > > > Regards > > Michael > > > > On 11/22/06, Wade Arnold <[EMAIL PROTECTED]> wrote: > > > 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 available for proper instantiation. > > > > > > > > > I have always wanted to have a config file, then a worker class that > just > > > handles all the get setters. However I have never been able to pull > this off > > > in order for the application class to wait for the variables to be > > > populated. Any ideas? I assume I will try again in AS3. > > > > > > Wade > > > > > > > > > > > > On 11/22/06 1:56 AM, "Miguel Angel Sánchez" <[EMAIL PROTECTED]> > wrote: > > > > > > > There is another approach to communicate those swfs: > > > > - At your side: > > > > 1. Class Application (singleton) > > > > 2. Class LoadedSWF (or whatever), abstract class that every swf of > the > > > > team development will have to extend. This class could implement > any > > > > interface you like, and will have a constructor like this: > > > > > > > > public function LoadedSWF() { > > > > Application.getInstance().register(this); > > > > } > > > > > > > > 3. Your Application class will have a method register where you > can > > > > subscribe to LoadedSWF events, or even store a reference to the > object > > > > to call any of his methods. > > > > > > > > public function register(obj:LoadedSWF):Void { > > > > obj.addEventListener("event", Delegate.create(this, onEvent)); > > > > } > > > > > > > > - At the team development side: > > > > 1. intrinsic class Application > > > > 2. intrinsic class LoadedSWF > > > > 3. The class that controls the swf will have to extend LoadedSWF, > and > > > > call super() in its constructor > > > > class Whatever extends LoadedSWF { > > > > public function Whatever() { > > > > super(); > > > >
Re: [Flashcoders] Writing code for big teams
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 implement. So I give them 2 files: - an intrinsic copy of my main class only with the definition of register and getInstance methods. - an interface with the methods i'll call from my main class So in their class they do something like this import lib.MainClass; import lib.interface.InterfaceClass class ThirdPartyClass implements InterfaceClass { ... public function ThirdPartyClass () { MainClass.getInstance().register(this); } ... implement interface methods } Do you think is a good idea to give them this 2 files, or should I pass them just an intrinsic class for them to extend, thus not allowin their main class to extend anything else. Again thakyou all, this is being of great help. On 11/22/06, Michael Nisi <[EMAIL PROTECTED]> wrote: 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 container_mc. > > In shell.fla on _root you do: > Application.main(container_mc); > > In section.fla on _root you do: > var section:Section = new Section(container_mc); > > Here are the classes: > - Application > - ViewLocator > - Playable (Interface) > - Section > > import ViewLocator; > import Section; > > class Application > { > function Application() > { > var loader:MovieClipLoader = new MovieClipLoader(); > loader.loadClip("section.swf", _root.container_mc); > } > > public static function main():Void > { > var application:Application = new Application(); > } > } > > import Playable; > import Application; > > class ViewLocator > { > public static function register(section:Playable):Void > { > // Store section or whatever... > section.start(); > } > } > > interface Playable > { > function start(); > } > > import Playable; > import ViewLocator; > > class Section implements Playable > { > function Section(target:MovieClip) > { > ViewLocator.register(this); > } > > public function start() > { > trace("Section.start"); > } > } > > Regards > Michael > > On 11/22/06, Wade Arnold <[EMAIL PROTECTED]> wrote: > > 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 available for proper instantiation. > > > > > > I have always wanted to have a config file, then a worker class that just > > handles all the get setters. However I have never been able to pull this off > > in order for the application class to wait for the variables to be > > populated. Any ideas? I assume I will try again in AS3. > > > > Wade > > > > > > > > On 11/22/06 1:56 AM, "Miguel Angel Sánchez" <[EMAIL PROTECTED]> wrote: > > > > > There is another approach to communicate those swfs: > > > - At your side: > > > 1. Class Application (singleton) > > > 2. Class LoadedSWF (or whatever), abstract class that every swf of the > > > team development will have to extend. This class could implement any > > > interface you like, and will have a constructor like this: > > > > > > public function LoadedSWF() { > > > Application.getInstance().register(this); > > > } > > > > > > 3. Your Application class will have a method register where you can > > > subscribe to LoadedSWF events, or even store a reference to the object > > > to call any of his methods. > > > > > > public function register(obj:LoadedSWF):Void { > > > obj.addEventListener("event", Delegate.create(this, onEvent)); > > > } > > > > > > - At the team development side: > > > 1. intrinsic class Application > > > 2. intrinsic class LoadedSWF > > > 3. The class that controls the swf will have to extend LoadedSWF, and > > > call super() in its constructor > > > class Whatever extends LoadedSWF { > > > public function Whatever() { > > > super(); > > > ... > > > } > > > } > > > > > > This way everytime you load an external swf of your team development it > > > automatically notifies your Application class. > > > > > > PS: so many people from DMSTK around here these days :-) > > > > > > Ricardo Sánchez escribió: > > >> Man! I must be very dumb, but I don't know how to refer to the class that > > >> implements the interface from the main swf. > > >> > > >> > > >> > > >> On 11/21/06, Ricardo Sánchez <[EMAIL PRO
Re: [Flashcoders] Problem: Safari and dynamic loading?
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 PROTECTED]> wrote: Hi, I'm pretty sure this is an issue with Safari as a similar problem somethings occurs when loading HTML pages. From what I can tell it's completely random. I'm using Safari 1.3.1 so maybe an update to 1.3.2 would fix the problem? Haydn. On 21/11/2006, at 9:08 PM, Daniel Forslund|Lists wrote: > > > Hi everyone! > > I've researched this - apologies if I've missed the answer somewhere. > Anyways: > I have a flash application that reads an XML-file and then proceeds to > load lots of content dynamically - a common situation. > Everything works very well, except now and then in Safari. Safari will > then "miss" loading an element and my preload bar for that object will > hang indefinitely. A simple reload of the page solves the problem. > This happens regardless of whether I've cleared Safari's cache etc. > > The problem *never* occurs in other browsers (Firefox for example) or > offline. So I'm starting to suspect Safari as the culprit rather than > my code. > - Has anyone experienced the same problem? > - Any idea what may be causing it? > - Any pitfalls in using Moviecliploader that may cause this? > > I would be very thankful for advice as I want to pin down the problem > before it causes problems for the client. Thanks in advance! > > Regards, > Dan > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Writing code for big teams
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 container_mc. In shell.fla on _root you do: Application.main(container_mc); In section.fla on _root you do: var section:Section = new Section(container_mc); Here are the classes: - Application - ViewLocator - Playable (Interface) - Section import ViewLocator; import Section; class Application { function Application() { var loader:MovieClipLoader = new MovieClipLoader(); loader.loadClip("section.swf", _root.container_mc); } public static function main():Void { var application:Application = new Application(); } } import Playable; import Application; class ViewLocator { public static function register(section:Playable):Void { // Store section or whatever... section.start(); } } interface Playable { function start(); } import Playable; import ViewLocator; class Section implements Playable { function Section(target:MovieClip) { ViewLocator.register(this); } public function start() { trace("Section.start"); } } Regards Michael On 11/22/06, Wade Arnold <[EMAIL PROTECTED]> wrote: > 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 available for proper instantiation. > > > I have always wanted to have a config file, then a worker class that just > handles all the get setters. However I have never been able to pull this off > in order for the application class to wait for the variables to be > populated. Any ideas? I assume I will try again in AS3. > > Wade > > > > On 11/22/06 1:56 AM, "Miguel Angel Sánchez" <[EMAIL PROTECTED]> wrote: > > > There is another approach to communicate those swfs: > > - At your side: > > 1. Class Application (singleton) > > 2. Class LoadedSWF (or whatever), abstract class that every swf of the > > team development will have to extend. This class could implement any > > interface you like, and will have a constructor like this: > > > > public function LoadedSWF() { > > Application.getInstance().register(this); > > } > > > > 3. Your Application class will have a method register where you can > > subscribe to LoadedSWF events, or even store a reference to the object > > to call any of his methods. > > > > public function register(obj:LoadedSWF):Void { > > obj.addEventListener("event", Delegate.create(this, onEvent)); > > } > > > > - At the team development side: > > 1. intrinsic class Application > > 2. intrinsic class LoadedSWF > > 3. The class that controls the swf will have to extend LoadedSWF, and > > call super() in its constructor > > class Whatever extends LoadedSWF { > > public function Whatever() { > > super(); > > ... > > } > > } > > > > This way everytime you load an external swf of your team development it > > automatically notifies your Application class. > > > > PS: so many people from DMSTK around here these days :-) > > > > Ricardo Sánchez escribió: > >> Man! I must be very dumb, but I don't know how to refer to the class that > >> implements the interface from the main swf. > >> > >> > >> > >> On 11/21/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: > >>> > >>> So, back to what you said earlier, this should be: > >>> > >>> container.loadMovie("externalMovie"); > >>> [after fully load] > >>> container.section.config() > >>> container.section.start(); > >>> > >>> wouldn't it? > >>> > >>> On 11/21/06, Zárate <[EMAIL PROTECTED]> wrote: > > No man, that's not my point. > > You cannot make a swf implement an interface, but you can make the > content of that swf implement it. Say you have in the _root of every > section swf something like this: > > --- > > var section:SectionClass = new SectionClass(this); > > > > "SectionClass" implements the interface, so you know which methods and > properties are going to be available in the "section" variable. > > You cannot "force" external developers in the strict mean of the word, > you'll need to _ask_ them to do so. Simply refuse any external swf not > implementing the interface. > > Makes more sense now? > > Cheers > > On 11/21/06, Ian Thomas <[EMAIL PROTECTED]> wrote: > >> For example, ensure that the container can do something like: > > Doh! I mean, of course, ensure that the _contained_ movie can do > something like: > > > > On 11/21/06, Ian Thomas <[EMAIL PROTECTED]> w
Re: [Flashcoders] Writing code for big teams
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 of classes could access to its properties via getInstance().getSomeProperty() or static properties/methods. PS: sorry if you get this message twice, but it seems that the previous message was rejected by the server for beeing so long. Wade Arnold escribió: 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 available for proper instantiation. I have always wanted to have a config file, then a worker class that just handles all the get setters. However I have never been able to pull this off in order for the application class to wait for the variables to be populated. Any ideas? I assume I will try again in AS3. Wade On 11/22/06 1:56 AM, "Miguel Angel Sánchez" <[EMAIL PROTECTED]> wrote: There is another approach to communicate those swfs: - At your side: 1. Class Application (singleton) 2. Class LoadedSWF (or whatever), abstract class that every swf of the team development will have to extend. This class could implement any interface you like, and will have a constructor like this: public function LoadedSWF() { Application.getInstance().register(this); } 3. Your Application class will have a method register where you can subscribe to LoadedSWF events, or even store a reference to the object to call any of his methods. public function register(obj:LoadedSWF):Void { obj.addEventListener("event", Delegate.create(this, onEvent)); } - At the team development side: 1. intrinsic class Application 2. intrinsic class LoadedSWF 3. The class that controls the swf will have to extend LoadedSWF, and call super() in its constructor class Whatever extends LoadedSWF { public function Whatever() { super(); ... } } This way everytime you load an external swf of your team development it automatically notifies your Application class. PS: so many people from DMSTK around here these days :-) Ricardo Sánchez escribió: Man! I must be very dumb, but I don't know how to refer to the class that implements the interface from the main swf. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Writing code for big teams
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 section:Section = new Section(container_mc); Here are the classes: - Application - ViewLocator - Playable (Interface) - Section import ViewLocator; import Section; class Application { function Application() { var loader:MovieClipLoader = new MovieClipLoader(); loader.loadClip("section.swf", _root.container_mc); } public static function main():Void { var application:Application = new Application(); } } import Playable; import Application; class ViewLocator { public static function register(section:Playable):Void { // Store section or whatever... section.start(); } } interface Playable { function start(); } import Playable; import ViewLocator; class Section implements Playable { function Section(target:MovieClip) { ViewLocator.register(this); } public function start() { trace("Section.start"); } } Regards Michael On 11/22/06, Wade Arnold <[EMAIL PROTECTED]> wrote: 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 available for proper instantiation. I have always wanted to have a config file, then a worker class that just handles all the get setters. However I have never been able to pull this off in order for the application class to wait for the variables to be populated. Any ideas? I assume I will try again in AS3. Wade On 11/22/06 1:56 AM, "Miguel Angel Sánchez" <[EMAIL PROTECTED]> wrote: > There is another approach to communicate those swfs: > - At your side: > 1. Class Application (singleton) > 2. Class LoadedSWF (or whatever), abstract class that every swf of the > team development will have to extend. This class could implement any > interface you like, and will have a constructor like this: > > public function LoadedSWF() { > Application.getInstance().register(this); > } > > 3. Your Application class will have a method register where you can > subscribe to LoadedSWF events, or even store a reference to the object > to call any of his methods. > > public function register(obj:LoadedSWF):Void { > obj.addEventListener("event", Delegate.create(this, onEvent)); > } > > - At the team development side: > 1. intrinsic class Application > 2. intrinsic class LoadedSWF > 3. The class that controls the swf will have to extend LoadedSWF, and > call super() in its constructor > class Whatever extends LoadedSWF { > public function Whatever() { > super(); > ... > } > } > > This way everytime you load an external swf of your team development it > automatically notifies your Application class. > > PS: so many people from DMSTK around here these days :-) > > Ricardo Sánchez escribió: >> Man! I must be very dumb, but I don't know how to refer to the class that >> implements the interface from the main swf. >> >> >> >> On 11/21/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: >>> >>> So, back to what you said earlier, this should be: >>> >>> container.loadMovie("externalMovie"); >>> [after fully load] >>> container.section.config() >>> container.section.start(); >>> >>> wouldn't it? >>> >>> On 11/21/06, Zárate <[EMAIL PROTECTED]> wrote: No man, that's not my point. You cannot make a swf implement an interface, but you can make the content of that swf implement it. Say you have in the _root of every section swf something like this: --- var section:SectionClass = new SectionClass(this); "SectionClass" implements the interface, so you know which methods and properties are going to be available in the "section" variable. You cannot "force" external developers in the strict mean of the word, you'll need to _ask_ them to do so. Simply refuse any external swf not implementing the interface. Makes more sense now? Cheers On 11/21/06, Ian Thomas <[EMAIL PROTECTED]> wrote: >> For example, ensure that the container can do something like: > Doh! I mean, of course, ensure that the _contained_ movie can do something like: > > On 11/21/06, Ian Thomas <[EMAIL PROTECTED]> wrote: >> The alternative (one I use a lot) is to do it backwards. >> >> Make the contained movie register its 'main' class with a known point >> in the container. >> >> For example, ensure that the container can do something like: >> >> _parent.registerMe(MyControllingClass); >> >> where MyControllingC
Re: [Flashcoders] Writing code for big teams
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 available for proper instantiation. I have always wanted to have a config file, then a worker class that just handles all the get setters. However I have never been able to pull this off in order for the application class to wait for the variables to be populated. Any ideas? I assume I will try again in AS3. Wade On 11/22/06 1:56 AM, "Miguel Angel Sánchez" <[EMAIL PROTECTED]> wrote: > There is another approach to communicate those swfs: > - At your side: > 1. Class Application (singleton) > 2. Class LoadedSWF (or whatever), abstract class that every swf of the > team development will have to extend. This class could implement any > interface you like, and will have a constructor like this: > > public function LoadedSWF() { > Application.getInstance().register(this); > } > > 3. Your Application class will have a method register where you can > subscribe to LoadedSWF events, or even store a reference to the object > to call any of his methods. > > public function register(obj:LoadedSWF):Void { > obj.addEventListener("event", Delegate.create(this, onEvent)); > } > > - At the team development side: > 1. intrinsic class Application > 2. intrinsic class LoadedSWF > 3. The class that controls the swf will have to extend LoadedSWF, and > call super() in its constructor > class Whatever extends LoadedSWF { > public function Whatever() { > super(); > ... > } > } > > This way everytime you load an external swf of your team development it > automatically notifies your Application class. > > PS: so many people from DMSTK around here these days :-) > > Ricardo Sánchez escribió: >> Man! I must be very dumb, but I don't know how to refer to the class that >> implements the interface from the main swf. >> >> >> >> On 11/21/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: >>> >>> So, back to what you said earlier, this should be: >>> >>> container.loadMovie("externalMovie"); >>> [after fully load] >>> container.section.config() >>> container.section.start(); >>> >>> wouldn't it? >>> >>> On 11/21/06, Zárate <[EMAIL PROTECTED]> wrote: No man, that's not my point. You cannot make a swf implement an interface, but you can make the content of that swf implement it. Say you have in the _root of every section swf something like this: --- var section:SectionClass = new SectionClass(this); "SectionClass" implements the interface, so you know which methods and properties are going to be available in the "section" variable. You cannot "force" external developers in the strict mean of the word, you'll need to _ask_ them to do so. Simply refuse any external swf not implementing the interface. Makes more sense now? Cheers On 11/21/06, Ian Thomas <[EMAIL PROTECTED]> wrote: >> For example, ensure that the container can do something like: > Doh! I mean, of course, ensure that the _contained_ movie can do something like: > > On 11/21/06, Ian Thomas <[EMAIL PROTECTED]> wrote: >> The alternative (one I use a lot) is to do it backwards. >> >> Make the contained movie register its 'main' class with a known point >> in the container. >> >> For example, ensure that the container can do something like: >> >> _parent.registerMe(MyControllingClass); >> >> where MyControllingClass implements the PluginMovie interface (or >> whatever your interface is called) and you've set up >> _parent.registerMe() as something like: >> >> public function registerMe(movie:PluginMovie):Void; >> >> Does that make sense? The other advantage of doing it 'backwards' like >> this is that you could put off registering until all your >>> assets are >> loaded or some other action has happened; your child movie has >> complete control of when it's ready to talk to the container. >> >> Hope that helps, >> Ian > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- Juan Delgado - Zárate http://zarate.tv http://dandolachapa.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http:/