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
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 li
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
Re: [Flashcoders] Writing code for big teams
They have to extend the MovieClip class in order to be able to do that, am I wrong? I mean, If I load an swf with loadMovie (instead of creating an instance with new) nothing assures me they are going to implement that class. I'm a little lost in the relationship between movies and classes because I always do composition, so I don't know how to load a movie and pass that movie an interface. On 11/9/06, Zárate <[EMAIL PROTECTED]> wrote: My 0.2, Basically it really depends on what are they doing. Say you have a player or main movie. You're tipically going to load different movies or sections on it. And you want all sections to have a common list of public properties and methods. Define that list and make it an interface. Then, you can tell anyone: "do whatever you want BUT you have to implement this interface" If they compile against that interface you know that _at least_ some properties and methods are going to be there for your calls. So within your main movie you can do something like: container.loadMovie("externalMovie"); [after fully load] container.config() container.start(); Of course if you have defined those methods in your interface. You won't need to recompile anything. Makes sense? Cheers, On 11/8/06, Glen Pike <[EMAIL PROTECTED]> wrote: > Hi, > > Whilst this suggestion is not good practice if you can get in at the > start of a project - I would recommend doing things the way others have > said, by using interfaces, I was given a very nice workaround for a > situation I got stuck in recently. > > I was given about 20 SWF & FLA files, where all the animation was > done on the root timeline - not in a movieclip. These were to be loaded > into a shell application and I needed to have some control over the > playback of the animations, know when they finished or hit certain > frames etc. It would have been perfect if the animations were each > contained within a MovieClip that was linked to a class of my choosing, > but I did not get to speak to the animators as I was lower down in the > food chain for this job. As I did not wish to copy and paste thousands > of frames of animation into child clips with the correct class linkage, > I asked for some help and was told, I could "recast" the loaded SWF > movieclips into a class of my choosing. This worked beautifully and > saved me hours of extra work, > > Credit to [EMAIL PROTECTED] for his solution below -thanks a million! > > "Hi, > > I think adding to the prototype would be the easiest way of recasting an > external swf into a class. It's like setting up a class linkage in the > library except you can't do that with external swfs (as you already > know). > > Once you got the swf loaded into external_mc you can: > > // recast it as NewClass > external_mc.__proto__ = NewClass.prototype; > external_mc.__constructor__ = NewClass; > external_mc.__constructor__.apply(external_mc); > > If you wanted to pass arguments into the constructor you can change last > line to: > external_mc.__constructor__.apply(external_mc, arg1, arg2, ..., argN); > > It might not look nice, but it works nice. The external swf functions > and behaves just like a symbol would be if you loaded it from your > library and the class linkage was setup. > > Hope this helps. > > Matthew Jacobi > " > Adobe Consulting - EMEA - MAD > > ___ > 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://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
I'm sorry, I'll explain mysel. If I make an interface that I want their movies to implement... How do I load an external movie? To load it instanciating the class I'll have to compile it... am I wrong? Can you show some code? I'm pretty lost. Thanks all. On 11/8/06, Michael Nisi <[EMAIL PROTECTED]> wrote: Hi Ricardo, why do you think using Interface or Interfaces will force you to compile the collaborators code. I don't get the point. They can compile your Interfaces into their swfs and you can compile them into yours. That's what interfaces are for. No? Regards Michael On 11/8/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: > By registration code you mean register to a class? As in Object.registerClass() > ? > > On 11/8/06, Janis Radins <[EMAIL PROTECTED]> wrote: > > > > just force them to execute some registration code on first frame of theyr > > movie and pass instance which will accept all those calls according to > > predefined communication interface > > > > 2006/11/8, Ricardo Sánchez <[EMAIL PROTECTED]>: > > > > > > Hi! > > > > > > Where I work we are about to begin a pretty big project collaborating > > with > > > some other agencies. > > > > > > The thing is we are going to develop the main movie with the menus and > > > other > > > stuff where every other movie any agency develops is going to be loaded. > > > > > > I was thinking about writing an interface class and give it to our > > > collaborators so their main class would have to implement some specific > > > methods (like start, finish, resize...) > > > > > > But then I thought that doing it this way will probably force us to > > > compile > > > their fla ourselves, and that's something we want to avoid. Every movie > > > has > > > to be independent and compile on itself, and then the swf should fit in > > > our > > > proyect. > > > > > > Does this make any sense? Can anyone help? > > > > > > Thanks. > > > ___ > > > 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] Writing code for big teams
By registration code you mean register to a class? As in Object.registerClass() ? On 11/8/06, Janis Radins <[EMAIL PROTECTED]> wrote: just force them to execute some registration code on first frame of theyr movie and pass instance which will accept all those calls according to predefined communication interface 2006/11/8, Ricardo Sánchez <[EMAIL PROTECTED]>: > > Hi! > > Where I work we are about to begin a pretty big project collaborating with > some other agencies. > > The thing is we are going to develop the main movie with the menus and > other > stuff where every other movie any agency develops is going to be loaded. > > I was thinking about writing an interface class and give it to our > collaborators so their main class would have to implement some specific > methods (like start, finish, resize...) > > But then I thought that doing it this way will probably force us to > compile > their fla ourselves, and that's something we want to avoid. Every movie > has > to be independent and compile on itself, and then the swf should fit in > our > proyect. > > Does this make any sense? Can anyone help? > > Thanks. > ___ > 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] Writing code for big teams
Hi! Where I work we are about to begin a pretty big project collaborating with some other agencies. The thing is we are going to develop the main movie with the menus and other stuff where every other movie any agency develops is going to be loaded. I was thinking about writing an interface class and give it to our collaborators so their main class would have to implement some specific methods (like start, finish, resize...) But then I thought that doing it this way will probably force us to compile their fla ourselves, and that's something we want to avoid. Every movie has to be independent and compile on itself, and then the swf should fit in our proyect. Does this make any sense? Can anyone help? Thanks. ___ 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] Playing video backwards kills my CPU
Thanks, If I do that it works, but weight goes from 560Kbs to 7Mbs!!! I can't do that :( On 10/10/06, David Buff <[EMAIL PROTECTED]> wrote: Hello again Another way: When you import your video, when you are on the "Encoding" page, select "Show Advanced Settings", then "Key frame placement" to "custom", and write "1" in "Key frame Interval". So each frame will be a key frame, and each frame will be all described. But your swf will be more eavy. I have no time to try it, may be it works... David Buff - Original Message - From: "David Buff" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, October 10, 2006 10:48 AM Subject: Re: [Flashcoders] Playing video backwards kills my CPU sorry for my bad english... There is two kinds of movie codec for the compression, first using spacial compression only (like mjpeg...), and second using spatial compression in association with key frame (like mpeg, sorenson...). The key frame describe the entire picture only once each 15 frames or 8 frames for exemple. The other frames describe only what has changed in the picture, with a threshold. It describe for exemple only the arm of a people who's moving, but not the background witch do not move. So when you want to read a movie forward, the codec read the key frame witch is the reference to fill the "holes" not described in the other frames. Each 15 frames, a new key frame describe the entire picture (so also the background) and define a new reference for the next frames. The problem is that when you want to play backward, like frame-1, the CPU need to go 15 frames before to find the previous key frame, load the entire description of the picture, and build frame by frame, fill the different holes of each frames, to be able to display the frame you want. If you are lucky, your index (frame-1) is the index of a key frame. Then the CPU work quickly. But if you are not lucky, your index is (key frame - 14), then the CPU need to rebuild 14 frames to be able to display the one you want. There is no solution to your problem, because Flash don't offer the possibility to use a "only spatial" codec compression. And this kind of compression take a lot of Mo because all frames are described. I thaught to an alternative but never tried it, you can try to draw each frame of your movie in so many BitmapData you need. It will take a lot of memory space, and a preload time, but after that, you index the BitmapData you need, and it will work faster. I don't know if it is possible to draw a .mov frame in a BitmapData. If it's possible, tell us. David Buff - Original Message - From: "Ricardo Sánchez" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, October 10, 2006 10:07 AM Subject: [Flashcoders] Playing video backwards kills my CPU >I have a .mov embebbed in the timeline as a movieclip. I have setted a stop > to it so I play it with a codeline like this video.gotoAndStop > (video._currentframe+1); > > It works perfectly, my problem comes when I want to play it backwards, I > follow a similar procedure doing: > video.gotoAndStop(video._currentframe-1); > > It seems to work but it kills my CPU making everyother thing in the site > not > working and making the video running slowlier. When I go back to fordward > playing everything goes back to normality. > > Any clues? Do I have to look for some flaws in my code or is there > something > wrong with embbebed video? > > Thanks > ___ > 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] Playing video backwards kills my CPU
I have a .mov embebbed in the timeline as a movieclip. I have setted a stop to it so I play it with a codeline like this video.gotoAndStop (video._currentframe+1); It works perfectly, my problem comes when I want to play it backwards, I follow a similar procedure doing: video.gotoAndStop(video._currentframe-1); It seems to work but it kills my CPU making everyother thing in the site not working and making the video running slowlier. When I go back to fordward playing everything goes back to normality. Any clues? Do I have to look for some flaws in my code or is there something wrong with embbebed video? Thanks ___ 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 & upload problems
I knew about that, and that was the first thing I told the backend guy, but he told me that wasn't the problem. :S On 9/15/06, Muzak <[EMAIL PROTECTED]> wrote: http://www.osflash.org/pipermail/osflash_osflash.org/2006-February/007266.html This has nothing to do with Struts by the way. Struts is just a framework. http://struts.apache.org/ Muzak - Original Message ----- From: "Ricardo Sánchez" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursday, September 14, 2006 10:32 AM Subject: [Flashcoders] Flash & upload problems > Ok, I supposed this has been talked over and over a thousand times but I > can't find a solution. > > We are trying to implement an upload for large files in flash. > > Our first approach was to use FileReference in Flash 8. But the backend guys > said we should use something called "struts" for Java (no idea what this > is), which seems to be the best option for large files. But they say flash > doesn't send the file 100% correct regarding the RFC. So it fails (while > some other thing called "cos" works... you see my backend knowledge its > pretty limited) > > So then we tryed making it with the old fashioned "hidden-frame" technique. > But that doesn't seem to work with Firefox. When I hit the "browse" button > nothing happens. > > Can anyone point me out in the right direction. Is there a way to fix the > "struts" problem? Or maybe I can make "hidden frame" work with Firefox? > > Thanks. ___ 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] Flash & upload problems
Ok, I supposed this has been talked over and over a thousand times but I can't find a solution. We are trying to implement an upload for large files in flash. Our first approach was to use FileReference in Flash 8. But the backend guys said we should use something called "struts" for Java (no idea what this is), which seems to be the best option for large files. But they say flash doesn't send the file 100% correct regarding the RFC. So it fails (while some other thing called "cos" works... you see my backend knowledge its pretty limited) So then we tryed making it with the old fashioned "hidden-frame" technique. But that doesn't seem to work with Firefox. When I hit the "browse" button nothing happens. Can anyone point me out in the right direction. Is there a way to fix the "struts" problem? Or maybe I can make "hidden frame" work with Firefox? Thanks. ___ 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] Re: Insert elements into an area dinamically
No one? :P On 8/9/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: Ok, I'll try to explain myself as best as possible. First take a look at this: http://www.pillandpillow .com/msfCongo/mainEng.html As you can see the main interface is a map of Congo composed of pictures and comments distributed to form the shape of the country. What I want to do is something simillar (just with different sized pictures and no comments) but with the underlaying shape changing to what I want everytime the user enters the site. And the size and position of the picture changing accordingly. But the size of the pictures change too depending on the importance of that picture in time. It all should be calculated dinamically so I can change the underlaying shape and also the pictures and each picture importance. I dont know how to approach the problem, If I should be thinking about areas and formulas or whatever or to try I different way to accomplish what I want. Thanks for any hint you can give me. ___ 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] OOP methodology and flash. I'm loosing my faith...
That's really not what polymorphism is. Polymorphism is where an Object can be used anywhere where an instance its class's parent is supposed to be used. And it has a lot of applications. On 8/25/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote: well, I get Interfaces, but thanks for explaining :). I just don't think actionscript, or java, has any polymorphism, since the definition of that is, in my opinion, a class having more than one parent class (ie, can extend 2 or more classes), which isn't the case. So I don't understand why people who are explaining oop in actionscript talk about polymorphism, because it just isn't there :), but perhaps I'm wrong. cheers, -Meinte On 8/25/06, James <[EMAIL PROTECTED]> wrote: > > they are different, as far as I know > > an interface, as in 'Interface' type does not itself have an > implementation, whereas a subclass which displays polymorphism does, the > difference comes from your design needs, for example: > > (polymorphism) > class animal - can be a implemented class with it's own methods > class dog - is a subclass of animal which alters/extends animal > class cat - is a subclass of animal which alters/extands animal in a > different way to dog > > so in certain circumstances you may only need to instance and call methods > in 'animal', when you don't care what it is but just need an animal type. > > with Interfaces the 'interface' type is not a implemented object, it does > not have it's own implemented methods > > so an example might be if you owned a sports shop that sold coats and > bicycles, coat and bicycle are not the same type but if you get them to > use > the 'stock control item' interface they are both 'stock control item' > objects if you need them to be, providing you follow the rules for that > particular interface you can make any object a 'stock control item' but > there is no generic 'stock control item' type. > > see it is different. you have to see things 'arse-ways-backwards' > sometimes > - at first I did not understand the point of interfaces, since the objects > implementing them have to implement the actual working methods anyway but > OOP is about creating a long-term collection of reusable objects which may > be used by teams of coders, structures like interfaces make for a clean > and > clear architecture that other coders can quikly understand, and give a > well > defined way to extend a system. > > James > > > At 12:23 25/08/2006, you wrote: > >going a bit offtopic here, but isnt polymorphism a non-issue in both > flash > >and java? People talk about like there can be such a thing in these > >languages, > >which isn't really true. It seems a bit silly to call something > polymorphism > >just because its implementing some interfaces. > > > >oh well, that probably didn't make any sense i suppose, > >im not getting any decent sleep lately :) > > > >greets, > >Meinte > > > >On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: > >> > >>Ok, I see its not so easy for everyone. Can anyone point out some > >>tutorial-like examples on internet or books. I know a lot of theory > >>(inheritance, polymorphism...) but I would like to see more applications > >>for > >>it so I can be more confident when I use it. > >> > >> > >> > >>On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote: > >> > > >> > My main motivation for this stuff in Flash is so that my code > actually > >> > gets > >> > checked by the compiler, vs. Flash's crappy built-in code-checking > for > >>the > >> > stage. That is, it will tell me if I've mis-spelled something, > created > >> > duplicate variables, the list goes on... > >> > > >> > In addition, I write my classes in FlashDevelop, which gives you code > >> > completion. Which means when I start to type: > >> > > >> > > import mx. > >> > > >> > I get a listing of all packages that Macromedia's written, instead of > >> > looking for stuff in the help (that's fun). > >> > > >> > And best yet, when I type: > >> > > >> > var sBigD:ScottsSuperHugeOne = new SuperHuge(); //just a little > >> > poly-morphism thrown in there (huck-huck) ;) > >> > > >> > and I type: > >> > > >> > > sBigD. > >> > > >> > I get a list of every fu
Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...
Ok, I see its not so easy for everyone. Can anyone point out some tutorial-like examples on internet or books. I know a lot of theory (inheritance, polymorphism...) but I would like to see more applications for it so I can be more confident when I use it. On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote: My main motivation for this stuff in Flash is so that my code actually gets checked by the compiler, vs. Flash's crappy built-in code-checking for the stage. That is, it will tell me if I've mis-spelled something, created duplicate variables, the list goes on... In addition, I write my classes in FlashDevelop, which gives you code completion. Which means when I start to type: > import mx. I get a listing of all packages that Macromedia's written, instead of looking for stuff in the help (that's fun). And best yet, when I type: var sBigD:ScottsSuperHugeOne = new SuperHuge(); //just a little poly-morphism thrown in there (huck-huck) ;) and I type: > sBigD. I get a list of every function in my class, as well as its signature (params & types). I'm only talking about FlashDevelop here. Guess I'm spoiled by Java & .NET which have instance access to API's at your finger tips (when in the right IDE's). I'm just trying to find a better and efficient way to go. Way open to suggestions! -Scott On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > > OOP and Flash is indeed tricky to fully grasp. It has become easier and > more > natural to implement OOP techniques on AS3 though. > > @Neo: Completely agree with you. > > On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote: > > > > I'll tell you a little secret about OOP. > > > > Don't sweat it. > > > > Sometimes the model jumps out at you but other times you > > have to find it. How to find it? Write something that does > > what you want. Then refactor it once you have a better idea > > of how it works. The more you do that the more certain patterns > > and approaches crystalise for you. > > > > I think there's too much over-engineering going on in general > > as some people seem to think implementing all the latest patterns > > on even the smallest project makes them good developers. > > > > I've been guilty of it myself a couple of times, writing frameworks > > where a couply of focused classes would have sufficed. > > > > OOP should be fun if you do it right and don't sweat it when > > it turns into a dick swinging contest, just make up pattern names. > > > > I quite like the Absolver pattern ;p > > > > cheers > > ~neo > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo > > Sánchez > > Sent: 23 August 2006 06:34 PM > > To: Flashcoders mailing list > > Subject: [Flashcoders] OOP methodology and flash. I'm loosing my > faith... > > > > ... well, not really but I thought it was good as I title > > > > I always use OOP for my flash projects but, even if I find it easier > than > > timeline coding, I dont know if I'm taking all the advantage of OOP. I'm > > not > > even sure if I am aplying the correct patterns for every problem. > > > > My insecurity probably has to do with the lack of normal work OOP flash > > examples. For example the typicall top menu/content web. How can OOP be > > applied to that? > > > > I guess I find a gap in the theory of knowing how to link the symbols, > > movieclips, timeline and graphics in flash with the code in external > > files. > > > > Am I opening a can of worms? > > > > Thanks. > > ___ > > 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
Re: [Flashcoders] Re: OOP methodology and flash. I'm loosing my faith...
Can you share some hints? Is it OOP? If you tell me that book is good I'll probably buy it but it would be nice if you share a little of what you are talking about. Thanks! On 8/24/06, Wouter <[EMAIL PROTECTED]> wrote: For the system you are describing I use one from this book (chapter 3) http://www.amazon.com/gp/product/1590595947 It is a nice system formenus, doing exactly what you want and it is easy to customize Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: Thursday, August 24, 2006 2:53 PM To: Flashcoders mailing list Subject: [Flashcoders] Re: OOP methodology and flash. I'm loosing my faith... Maybe I'm not explaining my self clear. What I want to know is what is the best approach to make a site with a menu with some buttons with rollOvers, rollOuts... When you click a button it stays selected until you click another one. Clicking any button will load content on a specific place on the web, making it appear with some animation and making also the last one desapear... I ask this because 80% of the projects I make have that structure or very similar. And I think it can be helpfull to other people too. On 8/23/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: > > ... well, not really but I thought it was good as I title > > I always use OOP for my flash projects but, even if I find it easier > than timeline coding, I dont know if I'm taking all the advantage of > OOP. I'm not even sure if I am aplying the correct patterns for every problem. > > My insecurity probably has to do with the lack of normal work OOP > flash examples. For example the typicall top menu/content web. How can > OOP be applied to that? > > I guess I find a gap in the theory of knowing how to link the symbols, > movieclips, timeline and graphics in flash with the code in external files. > > Am I opening a can of worms? > > Thanks. > ___ 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] Re: OOP methodology and flash. I'm loosing my faith...
Maybe I'm not explaining my self clear. What I want to know is what is the best approach to make a site with a menu with some buttons with rollOvers, rollOuts... When you click a button it stays selected until you click another one. Clicking any button will load content on a specific place on the web, making it appear with some animation and making also the last one desapear... I ask this because 80% of the projects I make have that structure or very similar. And I think it can be helpfull to other people too. On 8/23/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ 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] OOP methodology and flash. I'm loosing my faith...
... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ 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] Insert elements into an area dinamically
Ok, I'll try to explain myself as best as possible. First take a look at this: http://www.pillandpillow.com/msfCongo/mainEng.html As you can see the main interface is a map of Congo composed of pictures and comments distributed to form the shape of the country. What I want to do is something simillar (just with different sized pictures and no comments) but with the underlaying shape changing to what I want everytime the user enters the site. And the size and position of the picture changing accordingly. But the size of the pictures change too depending on the importance of that picture in time. It all should be calculated dinamically so I can change the underlaying shape and also the pictures and each picture importance. I dont know how to approach the problem, If I should be thinking about areas and formulas or whatever or to try I different way to accomplish what I want. Thanks for any hint you can give me. ___ 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] About OOP metodology
Still not sure what to do. My doubt is more related to the change in the appearenace, number and type of fields in a form from one project to another. Should I make a different swf with a form for each project and change the class every time? (whatever pattern I use, mvc...) Should I make a swf for each field and attach by code the ones I need for each project...? Do my questions make sense? On 6/30/06, Bernard Visscher <[EMAIL PROTECTED]> wrote: I think you could do this the MVC way (http://en.wikipedia.org/wiki/Model_view_controller) The only thing that really changes is your view, the model and the controller are almost the same. You could even write a model, controller and view which holds all fields and logic that returns in all the forms. Then you extend those to meet the needs for this particular form. This is the same way edibol as wrote I see now... Quote: "You could even abstract the technical logic from the UI completely and write communicators/controllers that respond to events fired from the ui (movieclips)." Greetz, Bernard > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Namens elibol > Verzonden: vrijdag 30 juni 2006 17:06 > Aan: Flashcoders mailing list > Onderwerp: Re: [Flashcoders] About OOP metodology > > Try a compositional approach. You might design a set of > classes that reference movieclips and delegate events to the > class; this would be contrary to extending movieclips. This > way you can design movieclips specific to the site and design > the code specific to the logic. > > You could even abstract the technical logic from the UI > completely and write communicators/controllers that respond > to events fired from the ui (movieclips). > > M. > > On 6/30/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote: > > > > I've just started to work in a big internet communication > agency. We > > have to make 2 or 3 microsites every week. Each of which > uses a very > > similar form to get user data. > > > > All that changes from one to another is a couple of fields and the > > look of it. > > > > My question is: What's the best way to implement a > re-usable class for > > this kind of work? Should I make a movieclip with all the > fields and a > > class binded to it and modify the clip everytime I re-use it? Or > > should I make a class that loads different clips from the library? > > > > Do I explain myself? > > > > Thanks. > > ___ > > 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] Back from html to specific point in flash
Thanks to all of you. On 7/21/06, John Dowdell <[EMAIL PROTECTED]> wrote: Ricardo Sánchez wrote: > So our second option is open the link in the same window but giving the > user > the chance to hit the back button of the browser (once in the html) and go > back to the specific situation where he was on the flash. Is this possible? It could be, but a lot depends on the presentation, and how you determine where "here" is. For a slideshow you can just do local Shared Object Storage of the last slide viewed, and jump to the last viewpoint whenever starting, for instance. For an application you may need to represent a stack of prior user actions. Kevin Lynch had an example awhile ago which also deals with state-representation in SWF... he put the state into the URL itself, as query terms, but the same issue of "How do you know where 'here' is?" remains. (Most window-blocking extensions for browsers permit new windows in response to user clicks in the HTML part, but many have blocked all window requests from plugins, because of abuses from spammers. I don't know of a current listing of which window-blockers, and their audience sizes, will block a getURL with _blank from SWF.) jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ 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] From getPixel to colorMatrix
Ok, what I'm trying to do is getting the color of some pixels of an image and attachMovieClips tinted as those pixels. I can read the color and attach the clips with that color. But I would like the mcs not to be in that plain color but being a little tinted in that color so they keep the original image underneath the color. I think I'll have to use colorMatrixFilter, but I don't know how to get the values from getPixel to the colorMatrix. Thanks for your help. ___ 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] Back from html to specific point in flash
Hi, I need to know if this is possible and if it is some guidelines on how to accomplish it. I have a flash application running in a full browser window. At a certain moment the user may click in some link to a html page. We were thinking in open it in a new window but there's the problem of the pop-up blocker if the link comes from flash (any work around that?) So our second option is open the link in the same window but giving the user the chance to hit the back button of the browser (once in the html) and go back to the specific situation where he was on the flash. Is this possible? Does my english make sense? Thanks. ___ 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] About OOP metodology
I've just started to work in a big internet communication agency. We have to make 2 or 3 microsites every week. Each of which uses a very similar form to get user data. All that changes from one to another is a couple of fields and the look of it. My question is: What's the best way to implement a re-usable class for this kind of work? Should I make a movieclip with all the fields and a class binded to it and modify the clip everytime I re-use it? Or should I make a class that loads different clips from the library? Do I explain myself? Thanks. ___ 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