[Flashcoders] jpeg 2000 compression
Hi can anyone tell me if there is a way to use jpeg 2000 compression in flash mx 2004 or flash 8 also if it is used in a movie can jpeg 2000 compression be viewed in flash player 7 Thank you marc ___ 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] AS2: generating new instances dynamically?
Are you sure you're implementing it correctly? You have to assign the class to your library item and it should work. If you're just arbitrarily attaching a MovieClip from the library without assigning that symbol the class, it will give you that error. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte | BLITZ Sent: Wednesday, May 02, 2007 10:20 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS2: generating new instances dynamically? var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); That code will fire an error like this : Type mismatch in assignment statement: found MovieClip where MyClass is required. If you want to typecast your movieclip, I think you need to do : var mc:MovieClip = myClip.attachMovie(linkage, name, depth).init(args); var myClass:MyClass = MyClass(mc); myClass.init(args); BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Wednesday, May 02, 2007 6:17 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS2: generating new instances dynamically? Another way to do this is to have an init() method that you call in-line to your attachMovie(). class MyClass extends MovieClip { public function MyClass() {} public function init(args):MyClass { // do your constructor type stuff here return this } } And this is how you use it: var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); This way, you can also type-cast your instance to your Class without having to re-cast. I forgot who came up with this or where I saw it, but it's been pretty useful for me when extending MovieClip. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Wednesday, May 02, 2007 9:08 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS2: generating new instances dynamically? Hi Sebastian, When extending the MovieClip Class in AS2, there is no way to access the constructor. All initializations should be done, like Matthias Dittgen mentionned with the optional initObject argument of attachMovie(libraryID, instanceName, depth, initObject) That way you set all the properties that you need before the onLoad() of your Class. Don't forget that it's a MovieClip and in AS2 it's instances are not handled the same way as other Classes and has it's own rules :) You should read on the MovieClip Class, it's all there HTH Alain sebastian chedal wrote: >> If it is a movie clip you want to instantiate then you have to use: >> _root.attachMovie(libraryID, instanceName, depth); > >> The class associated with it will construct and the onLoad event will >> trigger if it is being listened to. > > this indeed works, but then i can't pass any values to the constructor. > Is there any way to attachMovie and at the same time pass values to it? > > I supose I can always refer to it afterwards on the time line and call a > custom function... but it would be nice to use the constructor's > functionality. > > I had hoped I could generate new instances just by calling a constructor > instead of attaching it to something; but i guess logically i it needs > to be > attached to be "on the timeline". Correct me if I am wrong. > > Thanks! > > Seb. > > On 5/1/07, O. Fouad <[EMAIL PROTECTED]> wrote: >> >> are u executing the class post view? >> >> On 5/1/07, Andy Herrman <[EMAIL PROTECTED]> wrote: >> > >> > Or have the function return it, which is what it seems like would be >> > the right thing for that method. >> > >> > -Andy >> > >> > On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: >> > > I am not sure if you are showing all the code but in your code >> fragment, >> > > newPost is a local variable that will be destroyed as soon as >> createPost >> > > ends. A short and brutal life. >> > > >> > > It needs to be a class property and you will want to have a >> getter to >> > > access it. >> > > >> > > Ron >> > > >> > > sebastian chedal wrote: >> > > > Hello Flashcoders, >> > > > >> > > > Sorry to bother you with another simple AS2 questions, I'm making >> good >> > > > progress but I am stumped with one simple thing. >> > > > >> > > > I have one class/object that I want to use to generate copies >> > > > [instances] of >> > > > another class. >> > > > >> > > > The second class is an object in the library with an ID and an >> > assosiated >> > > > *.as file [in the linkage panel]. >> > > > >> > > > The code is: >> > > > = >> > > > >> > > > //PostModel.as >> > > > >> > > > import com.blabla.PostView; >> > > > >> > > > class com.blabla.PostModel { >> > > > >> > > > public function createPost (__id) { >> > > >var newPost = new PostView (__id); >> > > > } >> > > > } >> > > > >> > > > = >> > > > >> > > > When I run this code, the class d
RE: [Flashcoders] AS2: generating new instances dynamically?
var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); That code will fire an error like this : Type mismatch in assignment statement: found MovieClip where MyClass is required. If you want to typecast your movieclip, I think you need to do : var mc:MovieClip = myClip.attachMovie(linkage, name, depth).init(args); var myClass:MyClass = MyClass(mc); myClass.init(args); BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Wednesday, May 02, 2007 6:17 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS2: generating new instances dynamically? Another way to do this is to have an init() method that you call in-line to your attachMovie(). class MyClass extends MovieClip { public function MyClass() {} public function init(args):MyClass { // do your constructor type stuff here return this } } And this is how you use it: var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); This way, you can also type-cast your instance to your Class without having to re-cast. I forgot who came up with this or where I saw it, but it's been pretty useful for me when extending MovieClip. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Wednesday, May 02, 2007 9:08 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS2: generating new instances dynamically? Hi Sebastian, When extending the MovieClip Class in AS2, there is no way to access the constructor. All initializations should be done, like Matthias Dittgen mentionned with the optional initObject argument of attachMovie(libraryID, instanceName, depth, initObject) That way you set all the properties that you need before the onLoad() of your Class. Don't forget that it's a MovieClip and in AS2 it's instances are not handled the same way as other Classes and has it's own rules :) You should read on the MovieClip Class, it's all there HTH Alain sebastian chedal wrote: >> If it is a movie clip you want to instantiate then you have to use: >> _root.attachMovie(libraryID, instanceName, depth); > >> The class associated with it will construct and the onLoad event will >> trigger if it is being listened to. > > this indeed works, but then i can't pass any values to the constructor. > Is there any way to attachMovie and at the same time pass values to it? > > I supose I can always refer to it afterwards on the time line and call a > custom function... but it would be nice to use the constructor's > functionality. > > I had hoped I could generate new instances just by calling a constructor > instead of attaching it to something; but i guess logically i it needs > to be > attached to be "on the timeline". Correct me if I am wrong. > > Thanks! > > Seb. > > On 5/1/07, O. Fouad <[EMAIL PROTECTED]> wrote: >> >> are u executing the class post view? >> >> On 5/1/07, Andy Herrman <[EMAIL PROTECTED]> wrote: >> > >> > Or have the function return it, which is what it seems like would be >> > the right thing for that method. >> > >> > -Andy >> > >> > On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: >> > > I am not sure if you are showing all the code but in your code >> fragment, >> > > newPost is a local variable that will be destroyed as soon as >> createPost >> > > ends. A short and brutal life. >> > > >> > > It needs to be a class property and you will want to have a >> getter to >> > > access it. >> > > >> > > Ron >> > > >> > > sebastian chedal wrote: >> > > > Hello Flashcoders, >> > > > >> > > > Sorry to bother you with another simple AS2 questions, I'm making >> good >> > > > progress but I am stumped with one simple thing. >> > > > >> > > > I have one class/object that I want to use to generate copies >> > > > [instances] of >> > > > another class. >> > > > >> > > > The second class is an object in the library with an ID and an >> > assosiated >> > > > *.as file [in the linkage panel]. >> > > > >> > > > The code is: >> > > > = >> > > > >> > > > //PostModel.as >> > > > >> > > > import com.blabla.PostView; >> > > > >> > > > class com.blabla.PostModel { >> > > > >> > > > public function createPost (__id) { >> > > >var newPost = new PostView (__id); >> > > > } >> > > > } >> > > > >> > > > = >> > > > >> > > > When I run this code, the class doesn't construct an instance... >> > > > >> > > > What am I missing? If I need to call the Library Identifyer >> instead, >> > how >> > > > would I do that? >> > > > >> > > > I don't want to attach the PostView to the PostModel class, I just >> > > > want to >> > > > create instances of them and attach them to _root [or some >> other MC >> in >> > > > the >> > > > timeline]. >> > > > >> > > > Thanks!! >> > > > >> > > > Seb. >> > > > ___ >> > > > Flashcoders@chattyf
Re: [Flashcoders] AS2: generating new instances dynamically?
You might want to consider using composition. class Sample { private var self:MovieClip; function Sample(clip:MovieClip) { self = clip; } } Usage: mySample = new Sample(this.attachMovie(id, instance, depth)); Composition has many advantages over extending MovieClip. I'm not saying you should always use it over linked classes, but it definitely comes in handy for stuff like this. ___ 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] AS2: generating new instances dynamically?
Another way to do this is to have an init() method that you call in-line to your attachMovie(). class MyClass extends MovieClip { public function MyClass() {} public function init(args):MyClass { // do your constructor type stuff here return this } } And this is how you use it: var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); This way, you can also type-cast your instance to your Class without having to re-cast. I forgot who came up with this or where I saw it, but it's been pretty useful for me when extending MovieClip. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Wednesday, May 02, 2007 9:08 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS2: generating new instances dynamically? Hi Sebastian, When extending the MovieClip Class in AS2, there is no way to access the constructor. All initializations should be done, like Matthias Dittgen mentionned with the optional initObject argument of attachMovie(libraryID, instanceName, depth, initObject) That way you set all the properties that you need before the onLoad() of your Class. Don't forget that it's a MovieClip and in AS2 it's instances are not handled the same way as other Classes and has it's own rules :) You should read on the MovieClip Class, it's all there HTH Alain sebastian chedal wrote: >> If it is a movie clip you want to instantiate then you have to use: >> _root.attachMovie(libraryID, instanceName, depth); > >> The class associated with it will construct and the onLoad event will >> trigger if it is being listened to. > > this indeed works, but then i can't pass any values to the constructor. > Is there any way to attachMovie and at the same time pass values to it? > > I supose I can always refer to it afterwards on the time line and call a > custom function... but it would be nice to use the constructor's > functionality. > > I had hoped I could generate new instances just by calling a constructor > instead of attaching it to something; but i guess logically i it needs > to be > attached to be "on the timeline". Correct me if I am wrong. > > Thanks! > > Seb. > > On 5/1/07, O. Fouad <[EMAIL PROTECTED]> wrote: >> >> are u executing the class post view? >> >> On 5/1/07, Andy Herrman <[EMAIL PROTECTED]> wrote: >> > >> > Or have the function return it, which is what it seems like would be >> > the right thing for that method. >> > >> > -Andy >> > >> > On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: >> > > I am not sure if you are showing all the code but in your code >> fragment, >> > > newPost is a local variable that will be destroyed as soon as >> createPost >> > > ends. A short and brutal life. >> > > >> > > It needs to be a class property and you will want to have a >> getter to >> > > access it. >> > > >> > > Ron >> > > >> > > sebastian chedal wrote: >> > > > Hello Flashcoders, >> > > > >> > > > Sorry to bother you with another simple AS2 questions, I'm making >> good >> > > > progress but I am stumped with one simple thing. >> > > > >> > > > I have one class/object that I want to use to generate copies >> > > > [instances] of >> > > > another class. >> > > > >> > > > The second class is an object in the library with an ID and an >> > assosiated >> > > > *.as file [in the linkage panel]. >> > > > >> > > > The code is: >> > > > = >> > > > >> > > > //PostModel.as >> > > > >> > > > import com.blabla.PostView; >> > > > >> > > > class com.blabla.PostModel { >> > > > >> > > > public function createPost (__id) { >> > > >var newPost = new PostView (__id); >> > > > } >> > > > } >> > > > >> > > > = >> > > > >> > > > When I run this code, the class doesn't construct an instance... >> > > > >> > > > What am I missing? If I need to call the Library Identifyer >> instead, >> > how >> > > > would I do that? >> > > > >> > > > I don't want to attach the PostView to the PostModel class, I just >> > > > want to >> > > > create instances of them and attach them to _root [or some >> other MC >> in >> > > > the >> > > > timeline]. >> > > > >> > > > Thanks!! >> > > > >> > > > Seb. >> > > > ___ >> > > > 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 >>
Re: [Flashcoders] AS2: generating new instances dynamically?
Hi Sebastian, When extending the MovieClip Class in AS2, there is no way to access the constructor. All initializations should be done, like Matthias Dittgen mentionned with the optional initObject argument of attachMovie(libraryID, instanceName, depth, initObject) That way you set all the properties that you need before the onLoad() of your Class. Don't forget that it's a MovieClip and in AS2 it's instances are not handled the same way as other Classes and has it's own rules :) You should read on the MovieClip Class, it's all there HTH Alain sebastian chedal wrote: If it is a movie clip you want to instantiate then you have to use: _root.attachMovie(libraryID, instanceName, depth); The class associated with it will construct and the onLoad event will trigger if it is being listened to. this indeed works, but then i can't pass any values to the constructor. Is there any way to attachMovie and at the same time pass values to it? I supose I can always refer to it afterwards on the time line and call a custom function... but it would be nice to use the constructor's functionality. I had hoped I could generate new instances just by calling a constructor instead of attaching it to something; but i guess logically i it needs to be attached to be "on the timeline". Correct me if I am wrong. Thanks! Seb. On 5/1/07, O. Fouad <[EMAIL PROTECTED]> wrote: are u executing the class post view? On 5/1/07, Andy Herrman <[EMAIL PROTECTED]> wrote: > > Or have the function return it, which is what it seems like would be > the right thing for that method. > > -Andy > > On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > > I am not sure if you are showing all the code but in your code fragment, > > newPost is a local variable that will be destroyed as soon as createPost > > ends. A short and brutal life. > > > > It needs to be a class property and you will want to have a getter to > > access it. > > > > Ron > > > > sebastian chedal wrote: > > > Hello Flashcoders, > > > > > > Sorry to bother you with another simple AS2 questions, I'm making good > > > progress but I am stumped with one simple thing. > > > > > > I have one class/object that I want to use to generate copies > > > [instances] of > > > another class. > > > > > > The second class is an object in the library with an ID and an > assosiated > > > *.as file [in the linkage panel]. > > > > > > The code is: > > > = > > > > > > //PostModel.as > > > > > > import com.blabla.PostView; > > > > > > class com.blabla.PostModel { > > > > > > public function createPost (__id) { > > >var newPost = new PostView (__id); > > > } > > > } > > > > > > = > > > > > > When I run this code, the class doesn't construct an instance... > > > > > > What am I missing? If I need to call the Library Identifyer instead, > how > > > would I do that? > > > > > > I don't want to attach the PostView to the PostModel class, I just > > > want to > > > create instances of them and attach them to _root [or some other MC in > > > the > > > timeline]. > > > > > > Thanks!! > > > > > > Seb. > > > ___ > > > 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 > -- O.Fouad - Digital Emotions ___ 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 ___ Flas
Re: [Flashcoders] Forms between JSP and Flash
On Wed, May 02, 2007 at 04:48:38PM -0500, Helmut Granda wrote: > Im using to reading variables from PHP like this > echo "form=success"; > ?> > but I'm having some issues trying to read the same variables from JSP. If I > access the file from within the browser I can see the variables but in flash > with loadVars it shows as Undefined. Try checking for newline chars before/after the data line sent to Flash. ta, dave -- http://david.holroyd.me.uk/ ___ 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] Forms between JSP and Flash
If memory serves me right try this: $xml is a variable that holds the data and xml will be the member of the LoadVars instance in flash when the onLoad event is triggered. Quick Example: class Test { var lv:LoadVars = new some method { ... lv.onLoad = Delegate.create(this, response); lv.load(a_php_url, lv, method); ... } response(success:Boolean) { trace(lv.xml); } } That should work. Regards, Rob. Helmut Granda wrote: Hello all, Im using to reading variables from PHP like this but I'm having some issues trying to read the same variables from JSP. If I access the file from within the browser I can see the variables but in flash with loadVars it shows as Undefined. Anyone knows if the information has to be treated different? 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] AS3 Metadata references
Thanks dude! On 5/2/07, Muzak <[EMAIL PROTECTED]> wrote: Try the Flex docs http://livedocs.adobe.com/flex/201/html/metadata_141_04.html [SWF] and [Frame] are not in the docs though, but there's some info in the comments here: http://livedocs.adobe.com/flex/2/docs/1651.html Some stuff here on [Frame] http://www.bit-101.com/blog/?p=946 http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.html So right now I guess you're best bet is to just google, which is how I found all of the above. regards, Muzak - Original Message - From: "Matt Muller" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Wednesday, May 02, 2007 7:24 PM Subject: [Flashcoders] AS3 Metadata references > Hi > > Does anyone know a resource which lists and explains the AS3 metadata api? > > ie > > [SWF(width="800" height="600", backgroundColor="#FF")] > [Frame(Class="com.package.ClassName")] > > Thanks, > > MaTT ___ 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] Forms between JSP and Flash
Hello all, Im using to reading variables from PHP like this but I'm having some issues trying to read the same variables from JSP. If I access the file from within the browser I can see the variables but in flash with loadVars it shows as Undefined. Anyone knows if the information has to be treated different? 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] Implications of using GPL'ed libraries?
Cool. "his position is that he doesn't want to place any restrictions on the way people use his work, short of passing it off as their own" Yeah, understand that. A BSD license would have been better or one of the newer CC licenses. "Permission from the author rules all though, right?" From my interpretation you are correct. "I'm trying to do everything by the book." As we should all do when handling commercial products. R. Henry Cooke wrote: Thanks guys. I emailed the author earlier today and got a nice, positive response - you were right, Mark, his position is that he doesn't want to place any restrictions on the way people use his work, short of passing it off as their own ;) I'm just trying to be super-careful here, because there's some IP issues, and the client are a fairly large, public organisation, so I'm trying to do everything by the book. Permission from the author rules all though, right? Obviously, I'm going to make sure he gets credit and there's a clear line between our work and his etc etc... Thanks again, h. On 02/05/07, Mark Winterhalder <[EMAIL PROTECTED]> wrote: On 5/2/07, Robert Brisita <[EMAIL PROTECTED]> wrote: > If you have to go the GPL route, you can tell your employers that all > the code is in the SWF anyway, making it > available just takes away an extra step from the process of acquiring > the code. Uhm... I really don't think that "can be decompiled" qualifies as "making code publicly available". Local vars and comments aside, the same would be true for Java and lots of other languages. Frankly, I think there is a good possibility the author intended the lib to be used the way you want to, and just chose the GPL as a generic open source license without giving the implications any thought. A short mail should clear things up, and a positive reply could be taken as permission (the author can license his code to anybody any way s/he pleases). So just mail the author, describe what you want to do, and ask nicely if it's OK. Generally, I would like some more clarity on the LGPL in regards to SWFs. The way I interpret it, libraries would have to be loaded as an extra SWF to be on the safe side, but I can't imagine this is the intention of most of the authors. Mark ___ 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] Implications of using GPL'ed libraries?
Does it say anywhere in the GPL that requested code has to be commented and readable? :-) Anyway the link I posted earlier should apply to all languages similar to JAVA considering LGPL: http://www.gnu.org/licenses/lgpl-java.html "The way I interpret it, libraries would have to be loaded as an extra SWF to be on the safe side" I see it the same way. R. Mark Winterhalder wrote: On 5/2/07, Robert Brisita <[EMAIL PROTECTED]> wrote: If you have to go the GPL route, you can tell your employers that all the code is in the SWF anyway, making it available just takes away an extra step from the process of acquiring the code. Uhm... I really don't think that "can be decompiled" qualifies as "making code publicly available". Local vars and comments aside, the same would be true for Java and lots of other languages. Frankly, I think there is a good possibility the author intended the lib to be used the way you want to, and just chose the GPL as a generic open source license without giving the implications any thought. A short mail should clear things up, and a positive reply could be taken as permission (the author can license his code to anybody any way s/he pleases). So just mail the author, describe what you want to do, and ask nicely if it's OK. Generally, I would like some more clarity on the LGPL in regards to SWFs. The way I interpret it, libraries would have to be loaded as an extra SWF to be on the safe side, but I can't imagine this is the intention of most of the authors. Mark ___ 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] Implications of using GPL'ed libraries?
Thanks guys. I emailed the author earlier today and got a nice, positive response - you were right, Mark, his position is that he doesn't want to place any restrictions on the way people use his work, short of passing it off as their own ;) I'm just trying to be super-careful here, because there's some IP issues, and the client are a fairly large, public organisation, so I'm trying to do everything by the book. Permission from the author rules all though, right? Obviously, I'm going to make sure he gets credit and there's a clear line between our work and his etc etc... Thanks again, h. On 02/05/07, Mark Winterhalder <[EMAIL PROTECTED]> wrote: On 5/2/07, Robert Brisita <[EMAIL PROTECTED]> wrote: > If you have to go the GPL route, you can tell your employers that all > the code is in the SWF anyway, making it > available just takes away an extra step from the process of acquiring > the code. Uhm... I really don't think that "can be decompiled" qualifies as "making code publicly available". Local vars and comments aside, the same would be true for Java and lots of other languages. Frankly, I think there is a good possibility the author intended the lib to be used the way you want to, and just chose the GPL as a generic open source license without giving the implications any thought. A short mail should clear things up, and a positive reply could be taken as permission (the author can license his code to anybody any way s/he pleases). So just mail the author, describe what you want to do, and ask nicely if it's OK. Generally, I would like some more clarity on the LGPL in regards to SWFs. The way I interpret it, libraries would have to be loaded as an extra SWF to be on the safe side, but I can't imagine this is the intention of most of the authors. Mark ___ 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] AS3 Metadata references
Try the Flex docs http://livedocs.adobe.com/flex/201/html/metadata_141_04.html [SWF] and [Frame] are not in the docs though, but there's some info in the comments here: http://livedocs.adobe.com/flex/2/docs/1651.html Some stuff here on [Frame] http://www.bit-101.com/blog/?p=946 http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.html So right now I guess you're best bet is to just google, which is how I found all of the above. regards, Muzak - Original Message - From: "Matt Muller" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Wednesday, May 02, 2007 7:24 PM Subject: [Flashcoders] AS3 Metadata references > Hi > > Does anyone know a resource which lists and explains the AS3 metadata api? > > ie > > [SWF(width="800" height="600", backgroundColor="#FF")] > [Frame(Class="com.package.ClassName")] > > Thanks, > > MaTT ___ 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] Implications of using GPL'ed libraries?
On 5/2/07, Robert Brisita <[EMAIL PROTECTED]> wrote: If you have to go the GPL route, you can tell your employers that all the code is in the SWF anyway, making it available just takes away an extra step from the process of acquiring the code. Uhm... I really don't think that "can be decompiled" qualifies as "making code publicly available". Local vars and comments aside, the same would be true for Java and lots of other languages. Frankly, I think there is a good possibility the author intended the lib to be used the way you want to, and just chose the GPL as a generic open source license without giving the implications any thought. A short mail should clear things up, and a positive reply could be taken as permission (the author can license his code to anybody any way s/he pleases). So just mail the author, describe what you want to do, and ask nicely if it's OK. Generally, I would like some more clarity on the LGPL in regards to SWFs. The way I interpret it, libraries would have to be loaded as an extra SWF to be on the safe side, but I can't imagine this is the intention of most of the authors. Mark ___ 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 image loading in mc
Hi I found this quite interesting do you mind to explain this in more detail. Actually I'm looking to create a pictures menu and viewer base on the xml file, a loop to assign this the xml. model1.jpg model2.jpg model3.jpg model1.jpg and in the as2, well I'm not sure about how to do it. but I'll need a loop to read each child in a mc and then add to them an onRelease behaviour in order to have them as buttons, would you help me Seb? Regards Gustavo Duenas On May 1, 2007, at 2:43 AM, sebastian wrote: hi Michael, quick reply here, but you may want to consider assigning the XML data to an Array instead of to variables. This way, you can call positions in the array easily. So instead of: bild = mein_xml.firstChild.childNodes[paktBild].attributes.pic; you would have: pictureArray = new array for i loop with max = XML.children.length pictureArray[i] = mein_xml.firstChild.childNodes[i].attributes.pic; position = 0;//position tracker next/previous just calls 'position' of 'pictureArray[i]' array and loads up. also saves reloading XML EVERY time you call an image [less load on server/flash] cheers, seb. mastro wrote: hello, I'm looking for a solution witch can handle the following problem: i need a mc witch will load several images and text dynamically from a folder into the flash-file. (the number of images change sometimes) also 2 buttons should give the possibility to go from image 1 to image however and back... my xml file looks like this: Bild> Bild> Bild> in flash on my mc the AS looks like: --snip! mein_xml = new XML(); mein_xml.ignoreWhite = true; mein_xml.load("test.xml"); mein_xml.onLoad = function(status) { if (status && this.loaded) { anzahl = mein_xml.firstChild.childNodes.length; geladen = true; aktbild = 0; ladeBild(aktBild); } }; function ladeBild(paktBild) { status_mc._visible = 1; bild = mein_xml.firstChild.childNodes[paktBild].attributes.pic; bildname = mein_xml.firstChild.childNodes[paktBild].attributes.name; loadMovie(bild, "bild_mc"); titel_txt.text = bildname; } weiter_btn.onRelease = function() { if (geladen && aktbild0) { aktbild--; ladeBild(aktBild); } }; ---snip! here is a link to a test file: http://nano.machfeld.net/test/test.zip someone an idea? cheers, michael ___ 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 Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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] printJob, orientation and rotation or scaling issues
Thanks guys Steven, I've played around with your code and got it working on my setup but will need to test later in the day on the computer/printer combination that was causing the problems. I needed to modify it though because your code assumes the clip is scaled at 100% to start with. In my case it's not. You could make your code more generic by adding at the start... var originalScale:Number = mc._xscale; mc._xscale = mc._yscale = 100; ...and then after printing, instead of setting the scale back to 100... mc._xscale = mc._yscale = originalScale; Or there's probably a way of leaving the scale as it is and fiddling around with the maths in the rest of the code - but that's too hard for this time of day! Cheers David On 2/05/2007, at 9:31 PM, Steven Sacks wrote: I cover this topic on my blog. :) http://www.stevensacks.net/2007/03/16/force-landscape-printing-with- printjob/ ___ 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] Implications of using GPL'ed libraries?
Yeah for this instance (Action Script) if you extend a class in the licensed library then that extension must be available to all who ask for it. Robert Sanders wrote: GPL means you have to release source to your game. LGPL - well since it was written or C type langs. there is some (heated) debate about how to define "linking" in the context of dynamic languages; I've seen recently that there seems to be a creative commons license that explicitly says "modification to code must be shared, code that just calls library functions doesn't". Henry Cooke wrote: Hey folks, I'm looking at using some GPL licensed code (Flade, to be specific) in a game I'm building for my employers. However, I can't find a clear answer anywhere as to what that implies for our source: does anyone know if using GPL licensed libraries means that we would have to release the source to our game? Or just the library, if I modify it? Or not at all? I assume compiling a SWF constitutes creating a binary version, but are we technically "distributing" it if it's loaded from a web server? Any insights would be greatly appreciated. Henry Addendum for Free Software people: I'm not trying to circumvent the GPL here, just trying to understand the implications to my employer. Personally, I think open source is a fantastically good thing. I just need to know if I'm going to have to convince my bosses of that ;) ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 269.6.2/781 - Release Date: 4/30/2007 9:14 AM ___ 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] Implications of using GPL'ed libraries?
"It has always been the FSF's position that dynamically linking applications to libraries creates a single work derived from both the library code and the application code. The GPL requires that all derivative works be licensed under the GPL, an effect which can be described as "hereditary." So, if an application links to a library licensed under the GPL, the application too must be licensed under the GPL. By contrast, libraries licensed under the GNU Lesser General Public License (LGPL) may be linked to proprietary applications." Source: http://www.gnu.org/licenses/lgpl-java.html FSF == Free Software Foundation If you have to go the GPL route, you can tell your employers that all the code is in the SWF anyway, making it available just takes away an extra step from the process of acquiring the code. This has some good FAQs: http://www.gnu.org/licenses/gpl-faq.html Good Luck, Rob. Henry Cooke wrote: Hey folks, I'm looking at using some GPL licensed code (Flade, to be specific) in a game I'm building for my employers. However, I can't find a clear answer anywhere as to what that implies for our source: does anyone know if using GPL licensed libraries means that we would have to release the source to our game? Or just the library, if I modify it? Or not at all? I assume compiling a SWF constitutes creating a binary version, but are we technically "distributing" it if it's loaded from a web server? Any insights would be greatly appreciated. Henry Addendum for Free Software people: I'm not trying to circumvent the GPL here, just trying to understand the implications to my employer. Personally, I think open source is a fantastically good thing. I just need to know if I'm going to have to convince my bosses of that ;) ___ 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] Any experience getting print materials to SWF files?
I've started playing with the trial version of print2flash, and tested it on two files. It crashed on the large catalog, with lots of linked pictures (including two with bad links that trigger ID warnings) and did fine with the text only file. I printed the catalog from Acrobat, and it generated a file, albeit one larger than the original PDF. The trial version is sufficiently featured for you to play around and see whether it meets your needs. On 5/2/07, Rick Schmitty <[EMAIL PROTECTED]> wrote: Has anyone done anything with print designs (inDesign, Quark, PDF) being exported to SWF? -- Larry Yudelson Editorial Director Ben Yehuda Press http://www.BenYehudaPress.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] Implications of using GPL'ed libraries?
GPL means you have to release source to your game. LGPL - well since it was written or C type langs. there is some (heated) debate about how to define "linking" in the context of dynamic languages; I've seen recently that there seems to be a creative commons license that explicitly says "modification to code must be shared, code that just calls library functions doesn't". Henry Cooke wrote: Hey folks, I'm looking at using some GPL licensed code (Flade, to be specific) in a game I'm building for my employers. However, I can't find a clear answer anywhere as to what that implies for our source: does anyone know if using GPL licensed libraries means that we would have to release the source to our game? Or just the library, if I modify it? Or not at all? I assume compiling a SWF constitutes creating a binary version, but are we technically "distributing" it if it's loaded from a web server? Any insights would be greatly appreciated. Henry Addendum for Free Software people: I'm not trying to circumvent the GPL here, just trying to understand the implications to my employer. Personally, I think open source is a fantastically good thing. I just need to know if I'm going to have to convince my bosses of that ;) ___ 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] AS3 RegExp (bug?)
Thanks for confirming this. I submitted a bug report with Adobe. I noticed that if the pattern is used with exec command the same thing happens. Aafter the last actual match is found it will not return null for the result so in a while loop (as demonstrated in the Adobe docs for the exec method) you'll get trapped in an endless loop. But with the exec method we at least can come up with a work-around by testing if the new lastindex is > then the previous lastIndex. If not then stop the search. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Andrés González & Aragón Verzonden: woensdag 2 mei 2007 17:39 Aan: flashcoders@chattyfig.figleaf.com Onderwerp: Re: [Flashcoders] AS3 RegExp (bug?) Is not a cs3 bug, is a player bug. I cut n paste your code in cs3 and it freezes, in eclipse with flex builder plugin the same, but eclipse didn't freeze, only the player do. ___ 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] border styles for TextArea component
Thanks! I'm looking into RectBorder now and creating my own RectBorder class. I've got it working following the example below (though I'm using F8, not CS3) but now I have a new issue... http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Parts&file=3504.html The width I want is actually "hairline". Easy enough using the RectBorder example above. Now I need to be able to change the color of that border at runtime. Anyone? Thanks again, John On May 2, 2007, at 1:29 PM, Hairy Dog Digital wrote: There is no "size" or "width" property for the RectBorder, which is what the TextArea component uses for the border. You would have to do a custom skin or theme. If this is only for this one project, you can copy the skin elements into your library. Here is the info from livedocs: http://tinyurl.com/3acnln. Of course, this is just one approach and it is optimized for doing it with a single FLA file. If you are working across multiple FLAs you may want to take a different approach. -Original Message- From: john robinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 11:24 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] border styles for TextArea component Hello all - I'm using the TextArea component in Flash 8. I need to give the component a border that is 1 pixel wide. I've found that using setStyle ("borderStyle", "solid") gives me a solid border but it is wider than I need. Can anyone give me a hint as to how to change the width of the border? Thanks! John ___ 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] border styles for TextArea component
There is no "size" or "width" property for the RectBorder, which is what the TextArea component uses for the border. You would have to do a custom skin or theme. If this is only for this one project, you can copy the skin elements into your library. Here is the info from livedocs: http://tinyurl.com/3acnln. Of course, this is just one approach and it is optimized for doing it with a single FLA file. If you are working across multiple FLAs you may want to take a different approach. -Original Message- From: john robinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 11:24 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] border styles for TextArea component Hello all - I'm using the TextArea component in Flash 8. I need to give the component a border that is 1 pixel wide. I've found that using setStyle("borderStyle", "solid") gives me a solid border but it is wider than I need. Can anyone give me a hint as to how to change the width of the border? Thanks! John ___ 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] AS3 Metadata references
Hi Does anyone know a resource which lists and explains the AS3 metadata api? ie [SWF(width="800" height="600", backgroundColor="#FF")] [Frame(Class="com.package.ClassName")] Thanks, MaTT ___ 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] border styles for TextArea component
Leandro Amano wrote: Hello, Change border width I don't know but try this: myTextArea.label.border = true; myTextArea.label.borderColor = 0x99; However label (textField object) is a private member of the TextArea Component regards. -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/2/07, john robinson <[EMAIL PROTECTED]> wrote: Hello all - I'm using the TextArea component in Flash 8. I need to give the component a border that is 1 pixel wide. I've found that using setStyle("borderStyle", "solid") gives me a solid border but it is wider than I need. Can anyone give me a hint as to how to change the width of the border? Thanks! John ___ 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 To change the thickness of a border set these properties: setStyle('borderStyle', 'solid'); setStyle('borderThickness', 1); setStyle('borderColor', 0x99); Cheers, Nick J ___ 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 experience getting print materials to SWF files?
Has anyone done anything with print designs (inDesign, Quark, PDF) being exported to 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
[Flashcoders] Implications of using GPL'ed libraries?
Hey folks, I'm looking at using some GPL licensed code (Flade, to be specific) in a game I'm building for my employers. However, I can't find a clear answer anywhere as to what that implies for our source: does anyone know if using GPL licensed libraries means that we would have to release the source to our game? Or just the library, if I modify it? Or not at all? I assume compiling a SWF constitutes creating a binary version, but are we technically "distributing" it if it's loaded from a web server? Any insights would be greatly appreciated. Henry Addendum for Free Software people: I'm not trying to circumvent the GPL here, just trying to understand the implications to my employer. Personally, I think open source is a fantastically good thing. I just need to know if I'm going to have to convince my bosses of that ;) ___ 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] building my first Flash CS3 and AS 3.0 Flash component
Hi, I was use to create Flash 8 components and now i'm trying to build my first CS3 component by using AS 3.0 but i'm having a problem that is driving me nuts about[Inspectable] meta tags. I'm adding the meta tags like i did with AS 2.0 : private var _color:Color; [Inspectable(name='Childrens color',type=Color,defaultValue='#0066FF')] public function set color(pcolor:Color):void { this._color=pcolor; } public function get color():Color { return(this._color); } but it does not work cause the Color class has been removed. I tried to add a Boolean Type and it works only if: - i export the SWC - i create the MXP - i install the component and i can see the Boolean parameter with in it but i can't see it during the work so i can't try my implementations. I thank you very much if you can give me an advice. Best Regards __ Filippo Lughi Flash Components Flash Developer www.flepstudio.com www.flepstudio.net www.flepstudio.org [EMAIL PROTECTED] +39 3349713568 P.iva : 03605860406 ___ 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] border styles for TextArea component
Hello, Change border width I don't know but try this: myTextArea.label.border = true; myTextArea.label.borderColor = 0x99; However label (textField object) is a private member of the TextArea Component regards. -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/2/07, john robinson <[EMAIL PROTECTED]> wrote: Hello all - I'm using the TextArea component in Flash 8. I need to give the component a border that is 1 pixel wide. I've found that using setStyle("borderStyle", "solid") gives me a solid border but it is wider than I need. Can anyone give me a hint as to how to change the width of the border? Thanks! John ___ 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] Random Error
In AS2 classes, it's normal... =( Try compiler again. regards. -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/2/07, Petro Bochan <[EMAIL PROTECTED]> wrote: Hi, Which version of Flash are you using? I tried this on Flash CS3 and it worked out seamlessly. package { import flash.display.Sprite; import flash.system.Capabilities; public class Test extends Sprite { public function Test() { } public static function getInfo() { return(Capabilities.version); } } } .fla trace(Test.getInfo()); Cheers, Petro > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Dave Mennenoh > Sent: Friday, April 27, 2007 6:13 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Random Error > > Once in a while, when compiling, I get an error from one of my classes. The > error is something like: 'property System not found', and it is thrown from > this function: > > public static function getPlayerVersion() > { > return(System.capabilities.version); > } > > > I only see the error once out of 20 compiles or so... thoughts? > > > Dave - > Head Developer > http://www.blurredistinction.com > Adobe Community Expert > http://www.adobe.com/communities/experts/ > > ___ > 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] AS2: generating new instances dynamically?
Please Sebastian, show all code in the next post. regards. -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader On 5/2/07, Matthias Dittgen <[EMAIL PROTECTED]> wrote: You can assign values to private and/or public variables of the class using the 4th argument of attachMovie. Just read the API documentation: public attachMovie(id:String, name:String, depth:Number, [initObject:Object]) : MovieClip initObject can be predefined or used on the fly, which looks like: _root.attachMovie(libraryID, instanceName, depth, {myString: "Hello World", _x: 20}); This is not the same as using params in the constructor, but these variables are set before the constructor is called, so you can use the values within the constructor, which is nearly the same and works fine for me. hth, Matthias ___ 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] rotate a cube
The fla source (AS2): www.leandroamano.com.br/files/3d.fla // Perspective ppc = perspective.value; center = {x:0, y:0, z:0}; // Cube: Face 1 v1 = {x:-50, y:-50, z:-50}; v2 = {x:50, y:-50, z:-50}; v3 = {x:50, y:50, z:-50}; v4 = {x:-50, y:50, z:-50}; // Cube: Face 2 v5 = {x:-50, y:-50, z:50}; v6 = {x:50, y:-50, z:50}; v7 = {x:50, y:50, z:50}; v8 = {x:-50, y:50, z:50}; // plan p1 = {x:-300, y:-225, z:-100}; p2 = {x:-275, y:-225, z:-100}; p3 = {x:-300, y:-200, z:-100}; p4 = {x:-300, y:-225, z:-125}; //--- render(p1, plan1); pp1 = point(plan1); var temp:MovieClip = this.createEmptyMovieClip("temp__", 500) screen.onPress = function(Void):Void { this._parent.temp.onEnterFrame = function(Void):Void { alpha = -(this._parent._ymouse-Stage.height/2)/Stage.height/2; beta = (this._parent._xmouse-Stage.width/2)/Stage.width/2; //--- v1 = rotate(v1, center, 0, alpha, beta); v2 = rotate(v2, center, 0, alpha, beta); v3 = rotate(v3, center, 0, alpha, beta); v4 = rotate(v4, center, 0, alpha, beta); //--- v5 = rotate(v5, center, 0, alpha, beta); v6 = rotate(v6, center, 0, alpha, beta); v7 = rotate(v7, center, 0, alpha, beta); v8 = rotate(v8, center, 0, alpha, beta); //--- p2 = rotate(p2, p1, 0, alpha, beta); p3 = rotate(p3, p1, 0, alpha, beta); p4 = rotate(p4, p1, 0, alpha, beta); //--- render(v1, vert1); render(v2, vert2); render(v3, vert3); render(v4, vert4); //--- render(v5, vert5); render(v6, vert6); render(v7, vert7); render(v8, vert8); //--- render(p2, plan2, 300); render(p3, plan3, 300); render(p4, plan4, 300); //--- v1p = point(vert1); v2p = point(vert2); v3p = point(vert3); v4p = point(vert4); //--- v5p = point(vert5); v6p = point(vert6); v7p = point(vert7); v8p = point(vert8); //--- pp2 = point(plan2); pp3 = point(plan3); pp4 = point(plan4); //--- z_index1 = 0; z_index2 = 0; //--- if (v1.z>v5.z) { z_index1 = 1; } else { z_index2 = 1; } //--- quad1 = this._parent.createEmptyMovieClip("quad1", z_index1); quad1.beginFill(0xff, 75); quad1.moveTo(v1p.x, v1p.y); quad1.lineTo(v2p.x, v2p.y); quad1.lineTo(v3p.x, v3p.y); quad1.lineTo(v4p.x, v4p.y); quad1.lineTo(v1p.x, v1p.y); //--- quad2 = this._parent.createEmptyMovieClip("quad2", z_index2); quad2.beginFill(0x00ff00, 75); quad2.moveTo(v5p.x, v5p.y); quad2.lineTo(v6p.x, v6p.y); quad2.lineTo(v7p.x, v7p.y); quad2.lineTo(v8p.x, v8p.y); quad2.lineTo(v5p.x, v5p.y); //--- this._parent.createEmptyMovieClip("line1", 100).drawLine(v1p, v5p); this._parent.createEmptyMovieClip("line2", 101).drawLine(v2p, v6p); this._parent.createEmptyMovieClip("line3", 102).drawLine(v3p, v7p); this._parent.createEmptyMovieClip("line4", 103).drawLine(v4p, v8p); //--- estilo1 = {thick:2, rgb:0xff, alpha:100}; estilo2 = {thick:2, rgb:0xff, alpha:100}; estilo3 = {thick:2, rgb:0x00cc00, alpha:100}; this._parent.createEmptyMovieClip("versor_i", 201).drawLine(pp1, pp2, estilo1); this._parent.createEmptyMovieClip("versor_j", 202).drawLine(pp1, pp3, estilo2); this._parent.createEmptyMovieClip("versor_k", 203).drawLine(pp1, pp4, estilo3); }; }; screen.onRelease = function(Void):Void { delete this._parent.temp.onEnterFrame; }; function rotate(vert, ref, a, b, c) { v = {x:vert.x-ref.x, y:vert.y-ref.y, z:vert.z-ref.z}; // plan XY => girar em Z matrix1 = []; matrix1[0] = [Math.cos(a), Math.sin(a), 0]; matrix1[1] = [-Math.sin(a), Math.cos(a), 0]; matrix1[2] = [0, 0, 1]; //plan YZ => girar em X matrix2 = []; matrix2[0] = [1, 0, 0]; matrix2[1] = [0, Math.cos(b), Math.sin(b)]; matrix2[2] = [0, -Math.sin(b), Math.cos(b)]; //plan ZX => girar em Y matrix3 = []; matrix3[0] = [Math.cos(c), 0, Math.sin(c)]; matrix3[1] = [0, 1, 0]; matrix3[2] = [-Math.sin(c), 0, Math.cos(c)]; //--- matrix = prodMatricial(matrix1, matrix2); matrix = prodMatricial(matrix, matrix3); //--- nx = matrix[0][0]*v.x+matrix[0][1]*v.y+matrix[0][2]*v.z+ref.x; ny = matrix[1][0]*v.x+matrix[1][1]*v.y+matrix[1][2]*v.z+ref.y; nz = matrix[2][0]*v.x+matrix[2][1]*v.y+matrix[2][2]*v.z+ref.z; //--- return {x:nx, y:ny, z:nz}; } function render(v, mc, pers) { p = ppc; if (pers != undefined) { p = pers; } mc._x = v.x*p/(p-v.z)+Stage.width/2; mc._y = -v.y*p/(p-v.z)+Stage.height/2; } function prodMatricial(m1, m2) { prod = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]; for (i=0; i<3; i++) { for (j=0; j<3; j++) { for (k=0; k<3; k++) { prod[i][j] += m1[i][k]*m2[k][j]; } } } return prod; } MovieClip.prototype.drawLine = function(p1, p2, props) { if (props == undefined) { this.lineStyle(0); } else { this.lineStyle(props.thick, props.rgb, props.alpha); } this.moveTo(p1.x, p1.y); this.lineTo(p2.x, p2.y); }; function point(mc) { return {x:mc._x, y:mc._y}; } regards Leandro Amano On 5/1/07, Tom Gooding <[EMAIL PROTECTED]> wrote: I've seen some really good stuff done recently in Papervision3d http://www.papervision3d.org/ , also WireEngine3D I've used before pretty successfully http://osflash.org/we3d . As with any 3D engine, you'll need reasonable maths to get on with either of t
Re: [Flashcoders] AS3 RegExp (bug?)
Is not a cs3 bug, is a player bug. I cut n paste your code in cs3 and it freezes, in eclipse with flex builder plugin the same, but eclipse didn't freeze, only the player do. 2007/5/2, Benny <[EMAIL PROTECTED]>: I have some troubles with RegExp in Flash CS3 (AS3). It seems whenever a pattern ends with .* AND has the Global flag set flash freezes. Simplified sample code: var re:RegExp=/.*/g; var str:String="one two three"; trace(str.match(re)); Why does Flash CS3 (AS3) freeze with this code, is it a bug or am I missing something obvious? - Benny ___ 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 -- Andrés González Aragón Desarrollador Multimedia http://www.quantium.com.mx ___ 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] border styles for TextArea component
Hello all - I'm using the TextArea component in Flash 8. I need to give the component a border that is 1 pixel wide. I've found that using setStyle("borderStyle", "solid") gives me a solid border but it is wider than I need. Can anyone give me a hint as to how to change the width of the border? Thanks! John ___ 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 and Arabic
> Thanks for the help! > > In your professional opinion is "almost the same" good enough > or will I need to tweak the char set? So you know I'm only > displaying short button labels and headings. I don't speak Arabic or know anything about it other than what's in the Unicode data :) I get the impression that Persian is a superset of standard Arabic (like adding accented European characters to standard Roman), so something that works with Persian should display standard Arabic correctly too (I think there are some differences with ligatures, but they're minor). I know nothing about Sorani, but I'd suggest trying it out and seeing how things turn out. By the way: if your text is short and doesn't need line breaks, you *may* find that if you use non-embedded fonts your text will display correctly with no work at all. Try that first if you're willing to sacrifice a little quality. > Also we're getting the copy supplied from a translation > house, the Project Manager said this will be coming over as > pdf. I've got a full copy of Acrobat so hope this shouldn't > be a problem. If it is would you recommend any other format > for them to supply in? AFAIK, Acrobat supports RTL languages fine (although you may need to install the language pack on your machine). > > I can't seem to log into the archives, which is frustrating. You should be able to search them with Google: try 'flashcoders kodicek arabic' as a search string. Best Danny ___ 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 and Arabic
Thanks for the help! In your professional opinion is "almost the same" good enough or will I need to tweak the char set? So you know I'm only displaying short button labels and headings. The languages I'm going to be needing to display are Arabic and Sorani. I think Sorani is as different to Arabic as Persian is to Arabic, but what do I know? Also we're getting the copy supplied from a translation house, the Project Manager said this will be coming over as pdf. I've got a full copy of Acrobat so hope this shouldn't be a problem. If it is would you recommend any other format for them to supply in? I can't seem to log into the archives, which is frustrating. Cheers again. Jolyon On 5/2/07, Danny Kodicek <[EMAIL PROTECTED]> wrote: > Has anyone had any experience of using the Flash RTL classes > from here: > http://www.flashrtl.com/ > > They seem to be good for Persian, but need porting to other > char sets, and a general clean up/re-write. > > To do this I need to get a better idea of what needs to be > converted, the order of words or the order of characters but > not words, or both? I guess this is also dependant on the > source, for me I'm loading in from XML. > > It's still early in the project and I'd like to get this > nailed down before committing 100% to doing RTL. If you look back over the archives you'll find a few posts from me on this subject. For display purposes you may find these classes are enough for you - Persian and standard Arabic are almost the same in terms of the character set, and Hebrew is much simpler (just plain bidirectional). Best Danny ___ 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] AS3 RegExp (bug?)
I have some troubles with RegExp in Flash CS3 (AS3). It seems whenever a pattern ends with .* AND has the Global flag set flash freezes. Simplified sample code: var re:RegExp=/.*/g; var str:String="one two three"; trace(str.match(re)); Why does Flash CS3 (AS3) freeze with this code, is it a bug or am I missing something obvious? - Benny ___ 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] factory with varying numbers of params
Looks like a Decorator Pattern. Danny Kodicek wrote: > Thanks a lot for all the replies. Most helpful. It's a funny situation. I'm using a deserialised XML file to dictate the content and layout of each page. A page might contain 1. A heading, 2. A TextField 3. A link or it might contain 1.A heading 2. A thumbnailMenu or various other permutations. I have written a class for each item that implements an IItem interface, and they all have certain identical methods (setPosition(), setScheme(), close() etc), but they also have unique props that need to be set (The label of the header, the label / path of a link etc.) Also to comlicate things, if the item is a menu, I need to attach an eventListener. I like the idea of using classes to encapsulate the parameters, but where would these be created? I guess it would make sense to do it at deserialisation, but then that gives two places that will be subject to change and that is a bad thing. I could do it in a separate method in the factory I suppose. This sounds like what I'm doing at the moment. What I did was instead of using an interface, to make all my elements inherit the same base Element class, then when running a createElement function, I simply defined it as returning an instance of Element. It sounds to me like you're giving in to a common problem of letting the OO cart pull the design horse - you're trying to force a function to be strongly typed when by design it's creating elements of different types. Danny ___ 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] drawing with mouse / pen
Frustrating a user may not be new but it can be exciting if the customer decides its your fault. Why not suggest something like changing the mouse into a into a hammer or mallet and the answers into nails or gophers. If can make the animation as funny as the client can stand. Ron Hairy Dog Digital wrote: Just throwing my two cents worth in here... As others pointed out, drawing circles around selections is "doable", but isn't user-friendly. As I read through this the thought occurred to me. What about using a drawn oval path as a movie clip for the mouse pointer that the user clicks on a selection? This way you get the drawing selection that the client wants, and you can control the size, spacing, position, hit test, etc. ...Rob -Original Message- From: nik crosina [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 3:51 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] drawing with mouse / pen thx, rich, funnily enuogh this echos many of my concerns. there is really no faster nd more convenient way of making a choice then point the mouse (pen, etc) and click. stil figuring out what th emotivation for this request was from the client - if they aer looking for 'just a exciting new way' of eliciting user interaction they mght be barking up the worng tree with this idea nik c On 5/2/07, Lists <[EMAIL PROTECTED]> wrote: Nik, if it can save you any energy, be sure you show a proof of concept to your client/colleague before you get too hip-deep into this. We've tried to do similar things in the past with little success. The issue is not technical, it's more of a usability issue. If you provide a VISIBLE area in which to draw, the end result will be that you're defeating the purpose of drawing freehand. You might as well just click on the area you've dedicated. (Remember, these are usability opinions, and your mileage may very. The crucial thing is that, in what you've described, your opinion typically doesn't matter. It's the collective opinion of your users and how well they understand, and can complete, the task that matters.) If you want to draw anywhere, you can create an empty movie clip as a canvas that allows you to draw over everything and, as you said, do a stroke with no fill so you don't have to worry about closing the path, and it looks more natural like a marker on a whiteboard. You can just use lineTo and an interval if you want something simple, or smooth out the line using curveTo and an interval. You can then determine the geographical center of the circle and see if that coordinate matches up with a hitTest on the answer clip. You can't use hit test between circle and answer unless the answers are no where near each other. But, you can say: center of circle is at 100,100, and answerMC.hitTest(100,100,false) (No shape flag will be easier, I think.) The problem will be one of user satisfaction. How hard is it to draw a circle with the mouse? How accurately can they get it over the answer? How many times do they have to do it? For example, doing this for a five-question quiz is great. But for a 20 question quiz it is unbearably tedious. You want to just click the answer and move on. Anyway, I suggest that you spend a little time with testers to see how they react before committing. Rich ___ 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] drawing with mouse / pen
Just throwing my two cents worth in here... As others pointed out, drawing circles around selections is "doable", but isn't user-friendly. As I read through this the thought occurred to me. What about using a drawn oval path as a movie clip for the mouse pointer that the user clicks on a selection? This way you get the drawing selection that the client wants, and you can control the size, spacing, position, hit test, etc. ...Rob -Original Message- From: nik crosina [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 3:51 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] drawing with mouse / pen thx, rich, funnily enuogh this echos many of my concerns. there is really no faster nd more convenient way of making a choice then point the mouse (pen, etc) and click. stil figuring out what th emotivation for this request was from the client - if they aer looking for 'just a exciting new way' of eliciting user interaction they mght be barking up the worng tree with this idea nik c On 5/2/07, Lists <[EMAIL PROTECTED]> wrote: > Nik, if it can save you any energy, be sure you show a proof of > concept to your client/colleague before you get too hip-deep into > this. We've tried to do similar things in the past with little > success. The issue is not technical, it's more of a usability issue. > > If you provide a VISIBLE area in which to draw, the end result will be > that you're defeating the purpose of drawing freehand. You might as > well just click on the area you've dedicated. (Remember, these are > usability opinions, and your mileage may very. The crucial thing is > that, in what you've described, your opinion typically doesn't matter. > It's the collective opinion of your users and how well they > understand, and can complete, the task that matters.) > > If you want to draw anywhere, you can create an empty movie clip as a > canvas that allows you to draw over everything and, as you said, do a > stroke with no fill so you don't have to worry about closing the path, > and it looks more natural like a marker on a whiteboard. You can just > use lineTo and an interval if you want something simple, or smooth out > the line using curveTo and an interval. You can then determine the > geographical center of the circle and see if that coordinate matches > up with a hitTest on the answer clip. You can't use hit test between > circle and answer unless the answers are no where near each other. > But, you can say: center of circle is at 100,100, and > answerMC.hitTest(100,100,false) (No shape flag will be easier, I > think.) > > The problem will be one of user satisfaction. How hard is it to draw a > circle with the mouse? How accurately can they get it over the answer? > How many times do they have to do it? For example, doing this for a > five-question quiz is great. But for a 20 question quiz it is > unbearably tedious. You want to just click the answer and move on. > > Anyway, I suggest that you spend a little time with testers to see how > they react before committing. > > Rich > > > > ___ > 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 and Arabic
> Has anyone had any experience of using the Flash RTL classes > from here: > http://www.flashrtl.com/ > > They seem to be good for Persian, but need porting to other > char sets, and a general clean up/re-write. > > To do this I need to get a better idea of what needs to be > converted, the order of words or the order of characters but > not words, or both? I guess this is also dependant on the > source, for me I'm loading in from XML. > > It's still early in the project and I'd like to get this > nailed down before committing 100% to doing RTL. If you look back over the archives you'll find a few posts from me on this subject. For display purposes you may find these classes are enough for you - Persian and standard Arabic are almost the same in terms of the character set, and Hebrew is much simpler (just plain bidirectional). Best Danny ___ 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] RE: The best way to monitor load progress of multiple swfs?
Thanks Jack, this is exactly what i am looking for :) Cheers! Ali On 2 May 2007, at 12:23, Jack Doyle wrote: This AS2 class will handle preloading multiple SWFs and/or FLVs and/or images and report on the total progress: http://www.greensock.com/ActionScript/PreloadAssetManager Documentation & examples are on the site. I think you'll find it pretty easy to implement. Enjoy. Jack Doyle -Original Message- Date: Wed, 2 May 2007 10:09:43 +0100 From: Alistair Colling <[EMAIL PROTECTED]> Subject: [Flashcoders] The best way to monitor load progress of multipleswfs? To: flashcoders@chattyfig.figleaf.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi there, I am trying to figure out the best way to monitor the load progress of swfs that are loading into each other. There are 20 swfs (of different sizes) that load into my main movie and I plan on loading my main movie into a holder so I can monitor the progress of it's download using movie clip loader class. I am fine using the Movie Clip Loader class to monitor the progress of one SWF downloading but I'm not sure how to approach checking the total progress of multiple SWFs. Previously I've created an object that holds all of the movies like this: var loadChecker:Object = new Object(); loadChecker.copyProperties = true; loadChecker.checkServer = false; loadChecker.howToPlay = false; loadChecker.chat_mc = false; each swf has this code that registers with the loadChecker object that it has loaded: _root["loadChecker"][this._name] = true; and then a function that is triggered from a 3 frame looping MC checks if the movies are loaded: function checkLoaded():Boolean { var tmpBoo:Boolean = true; for (var k in _root.loadChecker) { if (!_root.loadChecker[k]) { tmpBoo = false; } } _root.moviesLoaded = true; return tmpBoo; } If someone would suggest the best way so I can monitor the progress of the loading of all SWFs so I can make a preloader that will show the progress of all SWFs that have to load that would be really good. Just a point in the right direction would be great :) Thanks, Ali ___ 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 and Arabic
Has anyone had any experience of using the Flash RTL classes from here: http://www.flashrtl.com/ They seem to be good for Persian, but need porting to other char sets, and a general clean up/re-write. To do this I need to get a better idea of what needs to be converted, the order of words or the order of characters but not words, or both? I guess this is also dependant on the source, for me I'm loading in from XML. It's still early in the project and I'd like to get this nailed down before committing 100% to doing RTL. Help appreciated. Jolyon On 3/29/07, Yehia Shouman <[EMAIL PROTECTED]> wrote: I once emailed Kevin Lynch and the guy generously replied with this: > Hi Yehia- > > Thanks for your note. > > Right-to-left text support in Flash Player is an important feature, > and we know it would be a key addition to the platform. Implementing > this feature to deliver the right quality is a fairly big undertaking > -- and we also need to factor in cross-platform support, maintaining > the stability of the player, and keeping the code size small. All > requests for new features are investigated using these same standards > as we prioritize features for each release. Product Management is > aware of the need for right-to-left text support. Although we cannot > provide an exact date for when it will be supported, it is definitely > under evaluation. > > thanks > > Kevin > Flash supports unicode, it just isn't RTL supportive. Furthermore to this issue, if you try to use arabic, you won't be able to get a proper text wrap. There will be compatibility issues on different Windows versions and between Mac, worth saying backward compatibility with older Flash players that knows not of unicode. I seriously hope Adobe 's involvement will be beneficial. (Wish:Adobe Flash CS3 ME) Regards, Yehia Shouman Senior AS Developer and TL www.santeon.com On 3/29/07, Omar Fouad <[EMAIL PROTECTED]> wrote: > > Well the most thing i used is importing arabic written text from freehand > (converted to vectors) and it is just fine... Regarding writing it in > dynamic text boxes at runtime like this: > > myTextField.text "ولا حاجة" it works but you still have to take care > about text wrapping as in flash doesnt recognize the end of a word, and > so, > in multi line cases, sometimes a single word splits.. i used to solve this > problem by adding some extra spaces before the last word in a single > line... > and the same by parsing text from a metadata in xml... > > Hope this helps > > regards... > > > > On 3/29/07, Shaun Collins <[EMAIL PROTECTED]> wrote: > > > > I've worked with Arabic in Flash and yes those are the > > exact problems I experienced. There is an application > > that will allow you to cut and paste arabic to other > > applications without destroying the format. It won't > > work if you're looking for a dynamic solution - if > > anyone knows of one that would be great. > > > > http://www.layoutltd.com/alrassam.php > > > > There are arabic fonts you can use in flash but that > > still doesn't solve the problem of getting the arabic > > into flash in the right format if you are cutting and > > pasting. > > > > Hope that helps some. > > > > --- Omar Fouad <[EMAIL PROTECTED]> wrote: > > > > > I work A lot using arabic in flash... I used to > > > write arabic text > > > dynamically into dynamic textfields, from xml, or > > > action script in run > > > time... Or by writing the arabic text in Free Hand, > > > Than breaking it into > > > vector and pasting it into flash as Vector... > > > > > > On 3/26/07, James Tu <[EMAIL PROTECTED]> wrote: > > > > > > > > We have an approach to deal with a list of 100 > > > phrases in Arabic. > > > > When you copy and paste a phrase of Arabic into a > > > Flash textbox, > > > > Flash reverses it! So, we first reversed the > > > characters outside of > > > > Flash and then copied and pasted the phrases into > > > Flash. Problem > > > > solved right? > > > > > > > > We'll, when someone that can read Arabic read it, > > > they told us that > > > > the characters look funny. In essence, the > > > characters weren't > > > > connecting to each other correctly! It's as if > > > you took a cursive > > > > font and laid out the characters and the cursive > > > writing was not > > > > continuous. > > > > > > > > Does anyone have any suggestions on handling Flash > > > and Arabic? I did > > > > some extensive searching and there aren't any > > > definitive > > > > solutions...Some suggested using a special Flash > > > Arabic font, which I > > > > couldn't find. > > > > > > > > Help! > > > > -James > > > > > > > > ___ > > > > 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.figl
[Flashcoders] RE: The best way to monitor load progress of multiple swfs?
This AS2 class will handle preloading multiple SWFs and/or FLVs and/or images and report on the total progress: http://www.greensock.com/ActionScript/PreloadAssetManager Documentation & examples are on the site. I think you'll find it pretty easy to implement. Enjoy. Jack Doyle -Original Message- Date: Wed, 2 May 2007 10:09:43 +0100 From: Alistair Colling <[EMAIL PROTECTED]> Subject: [Flashcoders] The best way to monitor load progress of multipleswfs? To: flashcoders@chattyfig.figleaf.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi there, I am trying to figure out the best way to monitor the load progress of swfs that are loading into each other. There are 20 swfs (of different sizes) that load into my main movie and I plan on loading my main movie into a holder so I can monitor the progress of it's download using movie clip loader class. I am fine using the Movie Clip Loader class to monitor the progress of one SWF downloading but I'm not sure how to approach checking the total progress of multiple SWFs. Previously I've created an object that holds all of the movies like this: var loadChecker:Object = new Object(); loadChecker.copyProperties = true; loadChecker.checkServer = false; loadChecker.howToPlay = false; loadChecker.chat_mc = false; each swf has this code that registers with the loadChecker object that it has loaded: _root["loadChecker"][this._name] = true; and then a function that is triggered from a 3 frame looping MC checks if the movies are loaded: function checkLoaded():Boolean { var tmpBoo:Boolean = true; for (var k in _root.loadChecker) { if (!_root.loadChecker[k]) { tmpBoo = false; } } _root.moviesLoaded = true; return tmpBoo; } If someone would suggest the best way so I can monitor the progress of the loading of all SWFs so I can make a preloader that will show the progress of all SWFs that have to load that would be really good. Just a point in the right direction would be great :) Thanks, Ali ___ 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] Random Error
Hi, Which version of Flash are you using? I tried this on Flash CS3 and it worked out seamlessly. package { import flash.display.Sprite; import flash.system.Capabilities; public class Test extends Sprite { public function Test() { } public static function getInfo() { return(Capabilities.version); } } } .fla trace(Test.getInfo()); Cheers, Petro > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Dave Mennenoh > Sent: Friday, April 27, 2007 6:13 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Random Error > > Once in a while, when compiling, I get an error from one of my classes. The > error is something like: 'property System not found', and it is thrown from > this function: > > public static function getPlayerVersion() > { > return(System.capabilities.version); > } > > > I only see the error once out of 20 compiles or so... thoughts? > > > Dave - > Head Developer > http://www.blurredistinction.com > Adobe Community Expert > http://www.adobe.com/communities/experts/ > > ___ > 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] help
> how can we print a variable value in our execution screen..? 'execution screen'? Do you just mean displaying a variable on screen? Try var tField:TextField = _root.createTextField("out", _root.getNextHighestDepth(), 100, 100, 200, 20) tField.text = String(myVariable) Danny ___ 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] factory with varying numbers of params
> Thanks a lot for all the replies. Most helpful. It's a funny > situation. I'm using a deserialised XML file to dictate the > content and layout of each page. A page might contain 1. A > heading, 2. A TextField 3. A link or it might contain 1.A > heading 2. A thumbnailMenu or various other permutations. > I have written a class for each item that implements an IItem > interface, and they all have certain identical methods > (setPosition(), setScheme(), close() etc), but they also have > unique props that need to be set (The label of the header, > the label / path of a link etc.) Also to comlicate things, if > the item is a menu, I need to attach an eventListener. > > I like the idea of using classes to encapsulate the > parameters, but where would these be created? I guess it > would make sense to do it at deserialisation, but then that > gives two places that will be subject to change and that is a > bad thing. I could do it in a separate method in the factory > I suppose. This sounds like what I'm doing at the moment. What I did was instead of using an interface, to make all my elements inherit the same base Element class, then when running a createElement function, I simply defined it as returning an instance of Element. It sounds to me like you're giving in to a common problem of letting the OO cart pull the design horse - you're trying to force a function to be strongly typed when by design it's creating elements of different types. Danny ___ 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] printJob, orientation and rotation or scaling issues
http://objectpainters.com/blog/?p=9 On 5/2/07, Dave Wood <[EMAIL PROTECTED]> wrote: Hi I'm having problems correctly rotating a movieclip to accomodate users printing in either portrait or landscape format. There was a thread about this maybe 4 to 6 weeks ago and I'm unable to locate it in the archives. If anyone recalls that, would they mind pointing me to it? The item to print is a landscape formatted movieClip and I'm wanting to rotate and scale it so that users with print setup to portrait will still print it OK. Here's my code which works OK on some machines but not others. MovieClip to print is postcardClip and it's normal size is much smaller than page size... var myPrintJob:PrintJob = new PrintJob(); var notCancelled:Boolean = myPrintJob.start(); if (notCancelled){ var startScaleX:Number = postcardClip._xscale; var startScaleY:Number = postcardClip._yscale; if (myPrintJob.orientation == "portrait"){ // NEED TO ROTATE postcardClip._rotation = 270; } postcardClip._xscale = 180; postcardClip._yscale = 180; myPrintJob.addPage(postcardClip); myPrintJob.send(); postcardClip._rotation = 0; postcardClip._xscale = startScaleX; postcardClip._yscale = startScaleY; } delete myPrintJob; What's happening is that on some computer/printer combinations, a triangular portion (half the image) is printing correctly with the other triangular half printing as solid triangular block. I suspect something wrong with the scaling part of my code. Any help appreciated. David ___ 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] printJob, orientation and rotation or scaling issues
I cover this topic on my blog. :) http://www.stevensacks.net/2007/03/16/force-landscape-printing-with-printjob/ ___ 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] Curves question for math gurus
Hello, Thank you, I redid my whole thing using your classes! Really super, more flexibility + less code ! Is there any doc online ? http://www.bezier.ru/eng/AS2/ru/bezier/geom/Bezier.html -- iv ___ 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] The best way to monitor load progress of multiple swfs?
Hi there, I am trying to figure out the best way to monitor the load progress of swfs that are loading into each other. There are 20 swfs (of different sizes) that load into my main movie and I plan on loading my main movie into a holder so I can monitor the progress of it's download using movie clip loader class. I am fine using the Movie Clip Loader class to monitor the progress of one SWF downloading but I'm not sure how to approach checking the total progress of multiple SWFs. Previously I've created an object that holds all of the movies like this: var loadChecker:Object = new Object(); loadChecker.copyProperties = true; loadChecker.checkServer = false; loadChecker.howToPlay = false; loadChecker.chat_mc = false; each swf has this code that registers with the loadChecker object that it has loaded: _root["loadChecker"][this._name] = true; and then a function that is triggered from a 3 frame looping MC checks if the movies are loaded: function checkLoaded():Boolean { var tmpBoo:Boolean = true; for (var k in _root.loadChecker) { if (!_root.loadChecker[k]) { tmpBoo = false; } } _root.moviesLoaded = true; return tmpBoo; } If someone would suggest the best way so I can monitor the progress of the loading of all SWFs so I can make a preloader that will show the progress of all SWFs that have to load that would be really good. Just a point in the right direction would be great :) Thanks, Ali ___ 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] help
how can we print a variable value in our execution screen..? - Yahoo! Answers - Got a question? Someone out there knows the answer. Tryit now. ___ 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] AS2: generating new instances dynamically?
You can assign values to private and/or public variables of the class using the 4th argument of attachMovie. Just read the API documentation: public attachMovie(id:String, name:String, depth:Number, [initObject:Object]) : MovieClip initObject can be predefined or used on the fly, which looks like: _root.attachMovie(libraryID, instanceName, depth, {myString: "Hello World", _x: 20}); This is not the same as using params in the constructor, but these variables are set before the constructor is called, so you can use the values within the constructor, which is nearly the same and works fine for me. hth, Matthias 2007/5/2, sebastian chedal <[EMAIL PROTECTED]>: > If it is a movie clip you want to instantiate then you have to use: > _root.attachMovie(libraryID, instanceName, depth); > The class associated with it will construct and the onLoad event will > trigger if it is being listened to. this indeed works, but then i can't pass any values to the constructor. Is there any way to attachMovie and at the same time pass values to it? I supose I can always refer to it afterwards on the time line and call a custom function... but it would be nice to use the constructor's functionality. I had hoped I could generate new instances just by calling a constructor instead of attaching it to something; but i guess logically i it needs to be attached to be "on the timeline". Correct me if I am wrong. Thanks! Seb. On 5/1/07, O. Fouad <[EMAIL PROTECTED]> wrote: > > are u executing the class post view? > > On 5/1/07, Andy Herrman <[EMAIL PROTECTED]> wrote: > > > > Or have the function return it, which is what it seems like would be > > the right thing for that method. > > > > -Andy > > > > On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > > > I am not sure if you are showing all the code but in your code > fragment, > > > newPost is a local variable that will be destroyed as soon as > createPost > > > ends. A short and brutal life. > > > > > > It needs to be a class property and you will want to have a getter to > > > access it. > > > > > > Ron > > > > > > sebastian chedal wrote: > > > > Hello Flashcoders, > > > > > > > > Sorry to bother you with another simple AS2 questions, I'm making > good > > > > progress but I am stumped with one simple thing. > > > > > > > > I have one class/object that I want to use to generate copies > > > > [instances] of > > > > another class. > > > > > > > > The second class is an object in the library with an ID and an > > assosiated > > > > *.as file [in the linkage panel]. > > > > > > > > The code is: > > > > = > > > > > > > > //PostModel.as > > > > > > > > import com.blabla.PostView; > > > > > > > > class com.blabla.PostModel { > > > > > > > > public function createPost (__id) { > > > >var newPost = new PostView (__id); > > > > } > > > > } > > > > > > > > = > > > > > > > > When I run this code, the class doesn't construct an instance... > > > > > > > > What am I missing? If I need to call the Library Identifyer instead, > > how > > > > would I do that? > > > > > > > > I don't want to attach the PostView to the PostModel class, I just > > > > want to > > > > create instances of them and attach them to _root [or some other MC > in > > > > the > > > > timeline]. > > > > > > > > Thanks!! > > > > > > > > Seb. > > > > ___ > > > > 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 > > > > > > -- > O.Fouad - Digital Emotions > ___ > 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
Re: [Flashcoders] printJob, orientation and rotation or scaling issues
Hi David, I'd try to use PrintJob.pageWidth and/or PrintJob.pageHeight instead of .orientation . Also, why not determine needed scale at runtime: postcardClip._xscale = 100 * myPrintJob.pageWidth/postcardClip._width; postcardClip._yscale = postcardClip._xscale; -- -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ 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] XMLSocket connection in flash 8 /AS2.0
Hi Tom, From XMLSocket docs: * Each XML message is a complete XML document, terminated by a zero (0) byte. ... * Each document is terminated with a zero (0) byte. When Flash Player receives the zero byte, it parses all the XML received since the previous zero byte or since the connection was established if this is the first message received. Perhaps your server doesn't set the closing zero byte for "close" messages. I had similar issue several years ago (in 2003) - solved when they set this zero byte for each server's message. On 5/1/07, Tom Gooding wrote: Calling all AS2.0 developers who have experience working with XMLSocket connections.. I've recently been seeing an odd behaviour in an app I've developed which has a continual connection to a socket server. The symptom I've been seeing is the connection becoming inactive, the onClose event does not get fired, it just stops receiving XML. My current workaround is to monitor idle time on this connection and reconnect if a ceiling is reached. The current thinking is that this is due to some network/firewall/environmental issue and investigation is time-consuming, though a bug with flash has not been ruled out. I was wondering if anyone has experienced anything similar and found the root cause of it? Any thoughts would be greatly appreciated. Tom -- -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ 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] factory with varying numbers of params
Hi, Thanks a lot for all the replies. Most helpful. It's a funny situation. I'm using a deserialised XML file to dictate the content and layout of each page. A page might contain 1. A heading, 2. A TextField 3. A link or it might contain 1.A heading 2. A thumbnailMenu or various other permutations. I have written a class for each item that implements an IItem interface, and they all have certain identical methods (setPosition(), setScheme(), close() etc), but they also have unique props that need to be set (The label of the header, the label / path of a link etc.) Also to comlicate things, if the item is a menu, I need to attach an eventListener. I like the idea of using classes to encapsulate the parameters, but where would these be created? I guess it would make sense to do it at deserialisation, but then that gives two places that will be subject to change and that is a bad thing. I could do it in a separate method in the factory I suppose. Thanks Message: 17 Date: Tue, 1 May 2007 09:30:32 -0700 From: "T. Michael Keesey" <[EMAIL PROTECTED]> Subject: Re: [Flashcoders] factory with varying numbers of params To: flashcoders@chattyfig.figleaf.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=UTF-8; format=flowed On 5/1/07, pedr browne <[EMAIL PROTECTED]> wrote: Hi, A have a Factory that needs to instanciate Objects with differing numbers of parameters (1-4). Is there any way to deal with this situation and maintain strong typing. private function createItem(param_ob:Object, key:String):Void{ switch(key){ case "item_1": myItem = new Item_1(param_ob.width, param_ob.y); break case "item2": myItem = new Item_2(param_ob.height, param_ob.color); break etc... } } (Why is the factory method private?) One way is to split it into two functions: public function static createFromWidthY(width:Number, y:Number):Item { return new Item1(width, y); } public function static createFromHeightColor(height :Number, color:Number):Item { return new Item2(height, color); } (Or call them createItem1 and createItem2 or whatever.) Another way is to use classes for parameter types: // Make an "abstract" class for parameters: class myPackage.ItemParams extends Object { private function ItemParams() { super(); } } // Then make "concrete" subclasses for specific types of parameters: class myPackage.WidthYParams extends ItemParams { public function WidthYParams(width:Number, y:Number) { super(); this.width = width; this.y = y; } public function get width():Number { return _width; } public function set width(value:Number):Void { if (isFinite(value)) { _width = value; } } public function get y():Number { return _y; } public function set y(value:Number):Void { if (isFinite(value)) { _y = value; } } private var _width:Number = 0; private var _y:Number = 0; } class myPackage.HeightColorParams extends ItemParams { public function HeightColorParams (height:Number, color:Number) { super(); this.height= height; this.color = color; } public function get color():Number { return _color; } public function set color(value:Number):Void { if (isFinite(value)) { _color = Math.min(0xFF, Math.max(0, Math.floor(value))); } } public function get height():Number { return _height; } public function set height(value:Number):Void { if (isFinite(value)) { _height = value; } } private var _color:Number = 0; private var _height:Number = 0; } // Then, in your factory method: public static function createItem(params:ItemParams):Item { if (!(params instanceof ItemParams)) { throw new Error("Invalid argument in call to MyFactory.createItem: " + params); } if (params instanceof WidthYParams) { return new Item1(WidthYParams(params).width, WidthYParams(params).y); } if (params instanceof HeightColorParams) { return new Item2(HeightColorParams(params).height, HeightColorParams(params).color); } throw new Error("Unrecognized item parameters: " + params); } -- 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.fi
Re: [Flashcoders] drawing with mouse / pen
thx, rich, funnily enuogh this echos many of my concerns. there is really no faster nd more convenient way of making a choice then point the mouse (pen, etc) and click. stil figuring out what th emotivation for this request was from the client - if they aer looking for 'just a exciting new way' of eliciting user interaction they mght be barking up the worng tree with this idea nik c On 5/2/07, Lists <[EMAIL PROTECTED]> wrote: Nik, if it can save you any energy, be sure you show a proof of concept to your client/colleague before you get too hip-deep into this. We've tried to do similar things in the past with little success. The issue is not technical, it's more of a usability issue. If you provide a VISIBLE area in which to draw, the end result will be that you're defeating the purpose of drawing freehand. You might as well just click on the area you've dedicated. (Remember, these are usability opinions, and your mileage may very. The crucial thing is that, in what you've described, your opinion typically doesn't matter. It's the collective opinion of your users and how well they understand, and can complete, the task that matters.) If you want to draw anywhere, you can create an empty movie clip as a canvas that allows you to draw over everything and, as you said, do a stroke with no fill so you don't have to worry about closing the path, and it looks more natural like a marker on a whiteboard. You can just use lineTo and an interval if you want something simple, or smooth out the line using curveTo and an interval. You can then determine the geographical center of the circle and see if that coordinate matches up with a hitTest on the answer clip. You can't use hit test between circle and answer unless the answers are no where near each other. But, you can say: center of circle is at 100,100, and answerMC.hitTest(100,100,false) (No shape flag will be easier, I think.) The problem will be one of user satisfaction. How hard is it to draw a circle with the mouse? How accurately can they get it over the answer? How many times do they have to do it? For example, doing this for a five-question quiz is great. But for a 20 question quiz it is unbearably tedious. You want to just click the answer and move on. Anyway, I suggest that you spend a little time with testers to see how they react before committing. Rich ___ 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] AS2: generating new instances dynamically?
If it is a movie clip you want to instantiate then you have to use: _root.attachMovie(libraryID, instanceName, depth); The class associated with it will construct and the onLoad event will trigger if it is being listened to. this indeed works, but then i can't pass any values to the constructor. Is there any way to attachMovie and at the same time pass values to it? I supose I can always refer to it afterwards on the time line and call a custom function... but it would be nice to use the constructor's functionality. I had hoped I could generate new instances just by calling a constructor instead of attaching it to something; but i guess logically i it needs to be attached to be "on the timeline". Correct me if I am wrong. Thanks! Seb. On 5/1/07, O. Fouad <[EMAIL PROTECTED]> wrote: are u executing the class post view? On 5/1/07, Andy Herrman <[EMAIL PROTECTED]> wrote: > > Or have the function return it, which is what it seems like would be > the right thing for that method. > > -Andy > > On 5/1/07, Ron Wheeler <[EMAIL PROTECTED]> wrote: > > I am not sure if you are showing all the code but in your code fragment, > > newPost is a local variable that will be destroyed as soon as createPost > > ends. A short and brutal life. > > > > It needs to be a class property and you will want to have a getter to > > access it. > > > > Ron > > > > sebastian chedal wrote: > > > Hello Flashcoders, > > > > > > Sorry to bother you with another simple AS2 questions, I'm making good > > > progress but I am stumped with one simple thing. > > > > > > I have one class/object that I want to use to generate copies > > > [instances] of > > > another class. > > > > > > The second class is an object in the library with an ID and an > assosiated > > > *.as file [in the linkage panel]. > > > > > > The code is: > > > = > > > > > > //PostModel.as > > > > > > import com.blabla.PostView; > > > > > > class com.blabla.PostModel { > > > > > > public function createPost (__id) { > > >var newPost = new PostView (__id); > > > } > > > } > > > > > > = > > > > > > When I run this code, the class doesn't construct an instance... > > > > > > What am I missing? If I need to call the Library Identifyer instead, > how > > > would I do that? > > > > > > I don't want to attach the PostView to the PostModel class, I just > > > want to > > > create instances of them and attach them to _root [or some other MC in > > > the > > > timeline]. > > > > > > Thanks!! > > > > > > Seb. > > > ___ > > > 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 > -- O.Fouad - Digital Emotions ___ 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