[Flashcoders] Moving cursor to end of textfield
I have a fill-in-the-gaps exercise and I have added a hint button which checks to see which part of the word a student has entered is correct and then adds the next (correct) letter to the end of the string. My problem is that the cursor stays just in front of the added letter instead of going to the end of the string. I've tried selecting the letter that has just been added and for a second the last letter is highlighted but then the cursor goes back to its original place. Here's the code I'm using: function showLetter() { //get the text the student has entered currentWord = eval(gap+currentGap).gap_txt.text; currentLength = currentWord.length; newText = ; correctText = gWords[currentGap]; lastLetter = 0; //compare it one letter at a time to the correct answer for (j=0; jcurrentWord.length; j++) { if (currentWord.charAt(j) == correctText.charAt(j)) { newText += correctText.charAt(j); lastLetter = j; } else { break; } } currentLength = newText.length; //show the correct portion of the text plus the next (correct) letter eval(gap+currentGap).gap_txt.text = gWords[currentGap].substr(0, currentLength+1); eval(gap+currentGap).gap_txt.setTextFormat(numFormat); //select the last letter - this does not move the cursor Selection.setSelection(currentLength,currentLength+1); } I would appreciate any ideas on how this could be done. Thanks, Birgit ___ 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] How efficiently is the flash player
It's not really a question of how strong the flash player is, but how strong a developer you are. Plenty of people are doing amazing things with Flash/Flex. It's certainly up to your task. Paul - Original Message - From: dr.ache [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, March 18, 2007 10:59 PM Subject: [Flashcoders] How efficiently is the flash player hi there. for my bachelor in media design i want to develop an interface for accessing massive data, more precisely stories people have entered in a database. My question is, how strong is the newest flash player? How many symbols can be shown at the same time before the performance goes down? When you have other limitations in mind, please note as well! greetings, dr.ache ___ 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] apollo is in macromedia labs
Too bad its onely for Flex :) I need it for flash ___ 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] Text blurry when behind a mask
Hej Johan, It's hard to give straight advice when there could be so many factors messing it up for you Obvious question, but did you try forcing the text to whole pixels when moving it? I have also noticed that flash draws things differently when effects are used. Try putting a blur with 0 distance on the text and see if that helps. /Fred On Mar 15, 2007, at 11:06, Johan Nyberg wrote: Anybody know how to solve this annoying problem? Whenever I put text behind a mask, and then move the text - like for example if you want to make a simple scroller - the text gets blurry. Even when I use bitmap text. On the odd pixel the text is blurry, on the other sharp. -- Johan Nyberg Web Guide Partner Sergels Torg 12, 8 tr 111 57 Stockholm 070 - 407 83 00 ___ 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] Super and this
Just to make your life simpler. You do not instantiate a class; you instantiate an instance(object) of a class. Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. 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] Super and this
- Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 9:38 AM Subject: RE: [Flashcoders] Super and this Just to make your life simpler. You do not instantiate a class; you instantiate an instance(object) of a class. Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. I'm with you Danny! Paul 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] 3D Text Flythrough
Have a look at Sandy Google for Flash Sandy it's quite a big class. There is a blog with examples. You could use the distort image class if you want to just distort stuff bitmaps in fake 3D So you'd need - sandy.util.DistortImage; flash.display.BitmapData; ( Flash 8 ) On 14 Mar 2007, at 16:29, eric e. dolecki wrote: I am looking for example AS2 code that allows for a perspective text flythrough - items in back blurred until brought up closer in perspective. Don't need anything like Papervision3D... this is kinda simple that I could probably code something that looked okay, but there might be a system out there already to save time. I remember seeing a series of 3D prototype stuff on a site, but cant remember the link - had items as blocks and a simple scrollbar on the right side to adjust the position of a 3D camera... - eric ___ 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] Create an object by name
If I have a string, how can I make an object from the class it represents? Eg: I have class MyBigClass the string className contains the text Big I want to do something like obj:Object = new(My + className + Class)() And on the subject: The docs say that when importing a package, only those classes that are actually used are included with the swf, but in my case the classes that are used are going to be dynamic and dependent on the data read by the movie at runtime. Do I need to instantiate a dummy version of each class to ensure it is included? Sorry for the rash of questions - I'm trying for once to do things in an up-to-date kind of way rather than in my usual bastardised hybrid of Flash's 4,5 and 6. Any generalised help on these kinds of subjects would be good (I know there are books, and I will be looking at them, but I'm trying to do things reasonably quickly at the moment) 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] Create an object by name
- Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 10:08 AM Subject: [Flashcoders] Create an object by name If I have a string, how can I make an object from the class it represents? Eg: I have class MyBigClass the string className contains the text Big I want to do something like obj:Object = new(My + className + Class)() Might be interesting to know why you need to do this at all. Paul snip 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] shared local object, or XML export? or other?
For an upcoming project, I have to investigate whether to use a shared localobject for storing user data, or exporting XML. This is for a cd based app, not a website. A shared localobject would be my first choice, except that we want to be able to access the saved data from a second release of the cd. My understanding of the security of local objects is that they are only accessible from the app that created them. Is that correct? Or is it possible to work around that? If the second release would not be able to retrieve the data, I thought maybe exporting XML would be an option. But from my searches, all the ways of doing that involve sending to a server, and we wont be able rely on net access being available. Are there any other ways of exporting xml? Or is there a method I haven't thought of? The basic requirement is that user data can be saved to the local machine, and then read in again by the same app, and any other subsequent apps. Ideally we don't want to have to do a local install, but would consider it if there is no other way. Thanks for your time. ___ 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] Create an object by name
Hello Danny, This short snippet should return you the constructor: /** Returns the class constructor from a dotted path. * e.g. [EMAIL PROTECTED] var cons:Function=getConstructorFromPath(com.pkg.fred.Bucket); } */ public static function getConstructorFromPath(classPath:String):Function { var arr:Array=classPath.split(.); var obj:Object=_global; for(var i:Number=0;iarr.length;i++) { obj=obj[arr[i]]; } return Function(obj); } Then just do var obj:Object=new cons(); Bear in mind that you must have referred to the class elsewhere in your code, or it won't be compiled into the .swf. A simple import won't do - you need to have a proper reference. Something as simple as: var imports:Array=[com.pkg.fred.Bucket,com.pkg.fred.Bucket2]; will do the job. HTH, Ian On 3/19/07, Danny Kodicek [EMAIL PROTECTED] wrote: If I have a string, how can I make an object from the class it represents? Eg: I have class MyBigClass the string className contains the text Big I want to do something like obj:Object = new(My + className + Class)() And on the subject: The docs say that when importing a package, only those classes that are actually used are included with the swf, but in my case the classes that are used are going to be dynamic and dependent on the data read by the movie at runtime. Do I need to instantiate a dummy version of each class to ensure it is included? ___ 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] shared local object, or XML export? or other?
You could always use one of the flash wrappers that give you access to the filesystem, which would allow you to write files to the users drive, somehting like zinc. I think, although someone can confirm this that the shared object can be accessed by a second app if the name of the app is the same. Might need to a quick test to confirm this. On 3/19/07, kent humphrey [EMAIL PROTECTED] wrote: For an upcoming project, I have to investigate whether to use a shared localobject for storing user data, or exporting XML. This is for a cd based app, not a website. A shared localobject would be my first choice, except that we want to be able to access the saved data from a second release of the cd. My understanding of the security of local objects is that they are only accessible from the app that created them. Is that correct? Or is it possible to work around that? If the second release would not be able to retrieve the data, I thought maybe exporting XML would be an option. But from my searches, all the ways of doing that involve sending to a server, and we wont be able rely on net access being available. Are there any other ways of exporting xml? Or is there a method I haven't thought of? The basic requirement is that user data can be saved to the local machine, and then read in again by the same app, and any other subsequent apps. Ideally we don't want to have to do a local install, but would consider it if there is no other way. Thanks for your time. ___ 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] shared local object, or XML export? or other?
forgot the link to zinc.. http://www.multidmedia.com/ On 3/19/07, Chris Tague [EMAIL PROTECTED] wrote: You could always use one of the flash wrappers that give you access to the filesystem, which would allow you to write files to the users drive, somehting like zinc. I think, although someone can confirm this that the shared object can be accessed by a second app if the name of the app is the same. Might need to a quick test to confirm this. On 3/19/07, kent humphrey [EMAIL PROTECTED] wrote: For an upcoming project, I have to investigate whether to use a shared localobject for storing user data, or exporting XML. This is for a cd based app, not a website. A shared localobject would be my first choice, except that we want to be able to access the saved data from a second release of the cd. My understanding of the security of local objects is that they are only accessible from the app that created them. Is that correct? Or is it possible to work around that? If the second release would not be able to retrieve the data, I thought maybe exporting XML would be an option. But from my searches, all the ways of doing that involve sending to a server, and we wont be able rely on net access being available. Are there any other ways of exporting xml? Or is there a method I haven't thought of? The basic requirement is that user data can be saved to the local machine, and then read in again by the same app, and any other subsequent apps. Ideally we don't want to have to do a local install, but would consider it if there is no other way. Thanks for your time. ___ 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] Create an object by name
Hello Danny, This short snippet should return you the constructor: /** Returns the class constructor from a dotted path. * e.g. [EMAIL PROTECTED] var cons:Function=getConstructorFromPath(com.pkg.fred.Bucket); } */ public static function getConstructorFromPath(classPath:String):Function { var arr:Array=classPath.split(.); var obj:Object=_global; for(var i:Number=0;iarr.length;i++) { obj=obj[arr[i]]; } return Function(obj); } Then just do var obj:Object=new cons(); Thanks, Ian. So constructor functions are actually located in _global space? That makes sense - is it always true, or do I need to ensure it in some way? After all, if I do an import somewhere, that class is only available in the scope of the import statement, not everywhere in the movie (I think?). Again, sorry to be pushing these questions so much - I just find that once I understand what's going on 'behind the scenes', I get much clearer about what my side of things is. I'm still not entirely sure what import actually *does* :) 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] Moving cursor to end of textfield
Hey Birgit, I haven't read the code yet.. but sounds like a problem i had aswell.. i fixed it with an delay(onEnterframe) of a frame.. then it worked fine. Goodluck! With Kinds regards, Dennis - Original Message - From: Birgit Ferran [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 9:08 AM Subject: [Flashcoders] Moving cursor to end of textfield I have a fill-in-the-gaps exercise and I have added a hint button which checks to see which part of the word a student has entered is correct and then adds the next (correct) letter to the end of the string. My problem is that the cursor stays just in front of the added letter instead of going to the end of the string. I've tried selecting the letter that has just been added and for a second the last letter is highlighted but then the cursor goes back to its original place. Here's the code I'm using: function showLetter() { //get the text the student has entered currentWord = eval(gap+currentGap).gap_txt.text; currentLength = currentWord.length; newText = ; correctText = gWords[currentGap]; lastLetter = 0; //compare it one letter at a time to the correct answer for (j=0; jcurrentWord.length; j++) { if (currentWord.charAt(j) == correctText.charAt(j)) { newText += correctText.charAt(j); lastLetter = j; } else { break; } } currentLength = newText.length; //show the correct portion of the text plus the next (correct) letter eval(gap+currentGap).gap_txt.text = gWords[currentGap].substr(0, currentLength+1); eval(gap+currentGap).gap_txt.setTextFormat(numFormat); //select the last letter - this does not move the cursor Selection.setSelection(currentLength,currentLength+1); } I would appreciate any ideas on how this could be done. Thanks, Birgit ___ 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] shared local object, or XML export? or other?
Hi Kent, The other way to export XML would be to use a SWF wrapper such as mProjector, SWFStudio or (open-source) SWHX: http://www.haxe.org/swhx. (Zinc is another alternative, but I can't recommend it - I've had all sorts of stability issues with it.) Alternatively, Apollo (from Adobe) will be out sometime this year. Basically all these tools provide a container for a Flash app that lets Flash request writing/reading of external local files (amongst many other features). Hope that's helpful, Ian On 3/19/07, kent humphrey [EMAIL PROTECTED] wrote: For an upcoming project, I have to investigate whether to use a shared localobject for storing user data, or exporting XML. This is for a cd based app, not a website. A shared localobject would be my first choice, except that we want to be able to access the saved data from a second release of the cd. My understanding of the security of local objects is that they are only accessible from the app that created them. Is that correct? Or is it possible to work around that? If the second release would not be able to retrieve the data, I thought maybe exporting XML would be an option. But from my searches, all the ways of doing that involve sending to a server, and we wont be able rely on net access being available. Are there any other ways of exporting xml? Or is there a method I haven't thought of? The basic requirement is that user data can be saved to the local machine, and then read in again by the same app, and any other subsequent apps. Ideally we don't want to have to do a local install, but would consider it if there is no other way. Thanks for your time. ___ 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] Super and this
Danny, I think what Ron means is, you don't instantiate the class _and_ the super class, as you would with Director. As you know (and for anyone that isn't familiar with it), in Director the ancestor property is an instance of the superclass, residing within an instance of the subclass (a bit like a Russian Doll!) - but in Flash you don't get two instances within each other, but just a single hybrid of all the classes in the inheritance chain. To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. Actually if you go back to the metaphor, the Chrysler PT Cruiser in Director would come with a little Chrysler Neon sitting inside it ;) Karina -Original Message- From: Danny Kodicek [mailto:[EMAIL PROTECTED] Sent: 19 March 2007 09:39 To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Super and this Just to make your life simpler. You do not instantiate a class; you instantiate an instance(object) of a class. Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. 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] shared local object, or XML export? or other?
I would definitely go with shared object. You can access it from whatever app you like if you pass a local path parameter, like this: so = SharedObject.getLocal (mySharedObject, /) so = SharedObject.getLocal (mySharedObject, /myProject) Etc... If you don't pass the path, it generates a local path for you, which is indeed different for each application, to avoid naming conflicts. But by specifying the path you bypass that and can call it from anywhere you like. Karina -Original Message- From: kent humphrey [mailto:[EMAIL PROTECTED] Sent: 19 March 2007 10:50 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] shared local object, or XML export? or other? For an upcoming project, I have to investigate whether to use a shared localobject for storing user data, or exporting XML. This is for a cd based app, not a website. A shared localobject would be my first choice, except that we want to be able to access the saved data from a second release of the cd. My understanding of the security of local objects is that they are only accessible from the app that created them. Is that correct? Or is it possible to work around that? If the second release would not be able to retrieve the data, I thought maybe exporting XML would be an option. But from my searches, all the ways of doing that involve sending to a server, and we wont be able rely on net access being available. Are there any other ways of exporting xml? Or is there a method I haven't thought of? The basic requirement is that user data can be saved to the local machine, and then read in again by the same app, and any other subsequent apps. Ideally we don't want to have to do a local install, but would consider it if there is no other way. Thanks for your time. ___ 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] Create an object by name
If I have a string, how can I make an object from the class it represents? Eg: I have class MyBigClass the string className contains the text Big I want to do something like obj:Object = new(My + className + Class)() Paul: Might be interesting to know why you need to do this at all. I'm using an XML document to create a file. Without going into details, each node of the XML is to be turned into an object, based on the kind of node. So for example: xmlitem type='Big' size='3' /item type='Small' size='2'/xml This would become two objects, one an instance of MyBigClass, one an instance of MySmallClass. In an old version of this, each one was a MovieClip with the appropriate linkage name. Now I'm trying to do it more flexibly with objects (so that in particular, each object type can inherit a standard class, and so that I don't have to have a separate movieClip for each object type). 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] Video directly in mail?
Hey guys, We would like to send a video(stream) in a news e-mail to affiliates. Does anybody know if this is possible in mail? As far as i could see there weren't any active-x possibilities.. so FMS is probably not done? With kind regards, Dennis I Sioux B.V. ___ 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] stopDrag question
Hi, I'm trying to stop the drag of a movie click when its x value equals the x value of other movie clip. The code is in the other object not in the drag-object. stop(); var movieClip1Pos: Number = this._x; var movieClip2Pos: Number = this._parent.MC2._x; ///here start the drag. this.OnRelease = function(){ this._parent.MC2.startDrag(true); this.control(); } var control = function(){ if( movieClip1Pos == movieClip2Pos){ this._parent.MC2.stopDrag(); } } so far it doesn't work, but I don't know why? looks good in paper but when I'm trying to use it on the flash I don't get it... the code is in the frame one of the movieClip MC1. I hope you guys can help me out. Gustavo Duenas ___ 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] Create an object by name
Hi Danny, An import statement is just a compiler-friendly shortcut. It has no effect whatsoever on the final code. Saying: import com.pkg.fred.Bucket; // later var bucket:Bucket=new Bucket(); is identical to saying just: var bucket:com.pkg.fred.Bucket=new com.pkg.fred.Bucket(); That's all it is. A convent bit of syntactic sugar. It's exactly the same in Java. Simply using the import line by itself will have no effect on the compilation (try importing 300 classes and compiling your app - the filesize will not increase. :-) ) As soon as you refer to the class in some way that ensures it is compiled in (i.e. an import will not do, but any concrete reference such as the line above will do) then that class is available to any other piece of code within that same Flash VM, with the following exception: IIRC SWFs compiled for Flash 6 and Flash 7 don't share thair global namespace (so I'd imagine that you'd have issues there). Obviously the globals/classes won't be shared between AVM1 and AVM2 (but then, AS3 has a totally different class locating/loading mechanism anyway). For AS2, yes, class constructors are always located in the _global space as soon as that class is loaded. (In fact, you can load a _different version_ of a class at runtime if you delete the existing class from the global space). I hope that clears it up. Of course, I could just be babbling. :-) Cheers, Ian P.S. How're the interactive storytelling things going..? On 3/19/07, Danny Kodicek [EMAIL PROTECTED] wrote: Hello Danny, Thanks, Ian. So constructor functions are actually located in _global space? That makes sense - is it always true, or do I need to ensure it in some way? After all, if I do an import somewhere, that class is only available in the scope of the import statement, not everywhere in the movie (I think?). Again, sorry to be pushing these questions so much - I just find that once I understand what's going on 'behind the scenes', I get much clearer about what my side of things is. I'm still not entirely sure what import actually *does* :) 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] Moving cursor to end of textfield
A few suggestions: I have a fill-in-the-gaps exercise and I have added a hint button which checks to see which part of the word a student has entered is correct and then adds the next (correct) letter to the end of the string. My problem is that the cursor stays just in front of the added letter instead of going to the end of the string. I've tried selecting the letter that has just been added and for a second the last letter is highlighted but then the cursor goes back to its original place. Here's the code I'm using: function showLetter() { //get the text the student has entered currentWord = eval(gap+currentGap).gap_txt.text; using Eval here is a bit out of date - try currentWord = this[gap+currentGap].gap_txt.text currentLength = currentWord.length; newText = ; correctText = gWords[currentGap]; lastLetter = 0; //compare it one letter at a time to the correct answer for (j=0; jcurrentWord.length; j++) { make sure you use 'var j=0' here, otherwise you could cause problems elsewhere in your code (in fact, you may need to do this with several other variables here, including lastLetter, newText and correctText) if (currentWord.charAt(j) == correctText.charAt(j)) { newText += correctText.charAt(j); lastLetter = j; } else { break; } } currentLength = newText.length; //show the correct portion of the text plus the next (correct) letter eval(gap+currentGap).gap_txt.text = again, this[gap+currentGap].gap_txt.text = gWords[currentGap].substr(0, currentLength+1); eval(gap+currentGap).gap_txt.setTextFormat(numFormat); //select the last letter - this does not move the cursor Selection.setSelection(currentLength,currentLength+1); Now, when is this happening? If it's on a keyDown, you might want to think about doing it on an onChanged event instead. 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] Create an object by name
- Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com I'm still not entirely sure what import actually *does* :) It tells flash where the class definitions can be found and distinguishes between classes of the same name, but different packages. You seem to be in a mega hurry Danny! Paul 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] Create an object by name
Hi Danny, The idea of the import statement is to specify which class namespaces you want to use. For example, there could be multiple packages that contain a class named Danny: com.kodicek.Danny com.day.lewis.Danny If you wanted to use the first class, you'd need to write all of it every time you wanted to instantiate it, like this: myClass = new com.kodicek.Danny () myClone = new com.kodicek.Danny () But to make it easier, you can import it at the top of the containing class: import com.kodicek.Danny; Having imported it, you let the containing class know which Danny you want to be using, so then you can instantiate it without appending the full package name each time: myClass = new Danny() myClone = new Danny() You can also use: import com.kodicek.*; And that would import all the classes in the specified package, saving you the hassle of importing them one by one - but Flash will only compile the class or classes you end up using in the script, keeping the swf size just as small as if you'd used import com.kodicek.Danny. I hope that wasn't over-explaining: I know you're not exactly a newbie to programming ;) Karina -Original Message- From: Danny Kodicek [mailto:[EMAIL PROTECTED] Sent: 19 March 2007 11:45 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Create an object by name Hello Danny, This short snippet should return you the constructor: /** Returns the class constructor from a dotted path. * e.g. [EMAIL PROTECTED] var cons:Function=getConstructorFromPath(com.pkg.fred.Bucket); } */ public static function getConstructorFromPath(classPath:String):Function { var arr:Array=classPath.split(.); var obj:Object=_global; for(var i:Number=0;iarr.length;i++) { obj=obj[arr[i]]; } return Function(obj); } Then just do var obj:Object=new cons(); Thanks, Ian. So constructor functions are actually located in _global space? That makes sense - is it always true, or do I need to ensure it in some way? After all, if I do an import somewhere, that class is only available in the scope of the import statement, not everywhere in the movie (I think?). Again, sorry to be pushing these questions so much - I just find that once I understand what's going on 'behind the scenes', I get much clearer about what my side of things is. I'm still not entirely sure what import actually *does* :) 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] Create an object by name
Hi, new eval(_global.mypackage.MyClass) does the trick as well I believe. greetz JC On 3/19/07, Danny Kodicek [EMAIL PROTECTED] wrote: If I have a string, how can I make an object from the class it represents? Eg: I have class MyBigClass the string className contains the text Big I want to do something like obj:Object = new(My + className + Class)() Paul: Might be interesting to know why you need to do this at all. I'm using an XML document to create a file. Without going into details, each node of the XML is to be turned into an object, based on the kind of node. So for example: xmlitem type='Big' size='3' /item type='Small' size='2'/xml This would become two objects, one an instance of MyBigClass, one an instance of MySmallClass. In an old version of this, each one was a MovieClip with the appropriate linkage name. Now I'm trying to do it more flexibly with objects (so that in particular, each object type can inherit a standard class, and so that I don't have to have a separate movieClip for each object type). 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] What is deprecated from AS2 in AS3 ...
Anyone have a list of what is deprecated from AS2 when migrating to AS3 (or even whats deprecated from AS1 to AS2).I'm currently skimming every single class available in I like this - it prints out really pretty too: http://actionscriptcheatsheet.com/blog/ Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team ___ 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] Super and this
To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. If you're not using AS3 yet, you can do it. You can set an object's __proto__ property to any object (not just a class prototype!): class Foo { public function greet () : Void { trace( hello ); } } class Bar { public function greet () : Void { trace( g'day ); } } class Foobar extends Foo { // ... } var foo = new Foo(); var bar = new Bar(); var foobar1 = new Foobar(); var foobar2 = new Foobar(); var foobar3 = new Foobar(); foo.greet(); // hello bar.greet(); // g'day foobar1.greet(); // hello foobar2.greet(); // hello foobar3.greet(); // hello // now, let's let foobar1 extend Bar instead... foobar1.__proto__ = Bar.prototype; foobar1.greet(); // g'day foobar2.greet(); // hello foobar3.greet(); // hello // foobar1 now has lost any other methods and properties previously inherited from Foobar // let all instances of Foobar extend Bar Foobar.prototype.__proto__ = Bar.prototype; foobar1.greet(); // g'day foobar2.greet(); // g'day foobar3.greet(); // g'day // foobar2 and foobar3 still inherit methods and properties from Foobar, foobar1 of course doesn't unless you set it's __proto__ back to Foobar.prototype // now, add a generic object to the prototype chain: var baz = { greet: function () { trace( how's it goin'? } }; foobar1.__proto__ = baz; foobar1.greet(); // how's it goin'? // foobar1 now can't do anything else but greet(), let's let baz extend Foobar to give it back the other Foobar methods: baz.__proto__ = Foobar.protoype; Fun stuff, huh? However, I strongly recommend not to use this other than for purely educational purposes. If you feel like you have to mess with the prototype chain at runtime, odds are there is something you're doing wrong, and you should rethink your design. It's also very certain to drive another coder potentially working with your code in the future into insanity... Mark On 3/19/07, Karina Steffens [EMAIL PROTECTED] wrote: Danny, I think what Ron means is, you don't instantiate the class _and_ the super class, as you would with Director. As you know (and for anyone that isn't familiar with it), in Director the ancestor property is an instance of the superclass, residing within an instance of the subclass (a bit like a Russian Doll!) - but in Flash you don't get two instances within each other, but just a single hybrid of all the classes in the inheritance chain. To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. Actually if you go back to the metaphor, the Chrysler PT Cruiser in Director would come with a little Chrysler Neon sitting inside it ;) Karina -Original Message- From: Danny Kodicek [mailto:[EMAIL PROTECTED] Sent: 19 March 2007 09:39 To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Super and this Just to make your life simpler. You do not instantiate a class; you instantiate an instance(object) of a class. Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. 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@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: Previously working SWF fails when reloaded in IE
I've run into that before. The issue seems to be timing-related. When you reload the page the SWF isn't re-downloaded (since it's cached), so it loads much faster, so some initialization stuff might run sooner than they did the first time. Here's how I fixed this (I run into it sometimes even on the first load): Set the size of the canvas to 1x1 pixels in the FLA (at the very beginning Stage.width and Stage.height seem to report this value, then switches to 0, then eventually to the actual size). Then, when the movie loads set up an interval that runs every, say, 500 milliseconds, which checks the size. Once both the width and height are something other than 0 or 1 then you know the Stage has been sized, in which case you stop the interval and start running the rest of your code. I'm using this method in a couple movies and it works really well. -Andy On 3/17/07, Mark Winterhalder [EMAIL PROTECTED] wrote: On 3/17/07, Mark Winterhalder [EMAIL PROTECTED] wrote: While I try to find the origin of the problem to work around it, has anybody seen this before? The SWF works fine when the page is first loaded, but when you hit F5 a NaN propagates through the values, breaking everything. The SWF loads an XML, if that makes a difference, but this part seems to work. For the archives: The layout algorithms depended on the Stage.width/height. When loaded for the first time it had the intended size, but upon reload it was 0x0 initially. 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] stopDrag question
you compare the _x values of the mcs only once when you release mc1. when you want to check it while dragging you have to use onEnterFrame. by the way: as likely as not you will not drag your second mc exactly on the _x value of your first mc, so you should use an proximation (a region around that _x value) example(adopting your hierarchical order of mcs): [AS] this.onRelease = function() { this._parent.MC2.startDrag(true); } this.onEnterFrame = function() { var mc1X = this._x; var mc2X = _parent.MC2._x; if ( (Math.abs(mc1X - mc2X)) = 0.5)) { _parent.mc2.stopDrag(); } } [/AS] Questions ? dr.ache Gustavo Duenas schrieb: Hi, I'm trying to stop the drag of a movie click when its x value equals the x value of other movie clip. The code is in the other object not in the drag-object. stop(); var movieClip1Pos: Number = this._x; var movieClip2Pos: Number = this._parent.MC2._x; ///here start the drag. this.OnRelease = function(){ this._parent.MC2.startDrag(true); this.control(); } var control = function(){ if( movieClip1Pos == movieClip2Pos){ this._parent.MC2.stopDrag(); } } so far it doesn't work, but I don't know why? looks good in paper but when I'm trying to use it on the flash I don't get it... the code is in the frame one of the movieClip MC1. I hope you guys can help me out. Gustavo Duenas ___ 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] Poor video quality problem
Hi, I have dvd video and want to put it in flash. videos are long in duration, Embeding it is resulting in very poor quality and long time to load the output is to on cd-rom. if any one can help me getting good quality video in flash. thanks Abhi On 3/19/07, Dennis - I Sioux [EMAIL PROTECTED] wrote: Hey guys, We would like to send a video(stream) in a news e-mail to affiliates. Does anybody know if this is possible in mail? As far as i could see there weren't any active-x possibilities.. so FMS is probably not done? With kind regards, Dennis I Sioux B.V. ___ 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 -- Abhishek Kumar ___ 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] Super and this
Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. Correct. Instantiate an instance... now that makes no sense. Dave - Head Developer 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
Re: [Flashcoders] Create an object by name
On 3/19/07, Ian Thomas [EMAIL PROTECTED] wrote: That's all it is. A convent bit of syntactic sugar. It's exactly the same in Java. Um... _convenient_, obviously. Although that does conjure up some wacky images... Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Create an object by name
Hi Danny, An import statement is just a compiler-friendly shortcut. It has no effect whatsoever on the final code. Saying: import com.pkg.fred.Bucket; // later var bucket:Bucket=new Bucket(); is identical to saying just: var bucket:com.pkg.fred.Bucket=new com.pkg.fred.Bucket(); That's all it is. A convent bit of syntactic sugar. It's exactly the same in Java. You know something? I actually knew that somewhere in my head, but it had been temporarily squished. Thanks. As soon as you refer to the class in some way that ensures it is compiled in (i.e. an import will not do, but any concrete reference such as the line above will do) then that class is available to any other piece of code within that same Flash VM, with the following exception: IIRC SWFs compiled for Flash 6 and Flash 7 don't share thair global namespace (so I'd imagine that you'd have issues there). Brilliant, that makes a *lot* more sense. In particular, it means I don't have to import all my packages into every blimmin' class. P.S. How're the interactive storytelling things going..? :) Try me again in about a year and a half. We've been head down in a lot of tech-heavy and content-light development recently, but who knows, once this current stuff is done we might go back to something a bit more creative... 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] Create an object by name
I'm still not entirely sure what import actually *does* :) It tells flash where the class definitions can be found and distinguishes between classes of the same name, but different packages. You seem to be in a mega hurry Danny! I've been working on my current task for about nine months and I'm approaching the home stretch. I want the damn thing finished. (I was also hoping to have this bit done before I go on holiday next week!) Plus I never get any work done unless I'm in a hurry... 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] Create an object by name
I'm still not entirely sure what import actually *does* :) It tells flash where the class definitions can be found and distinguishes between classes of the same name, but different packages. You know, it occurs to me that import is an astonishingly bad name for this statement. Poorly named methods and properties can really screw up understanding, and not just in third party code. Sometimes I think properly named variables or methods can do half your coding for you. Why is it not called something else? I can think of three better names immediately: pointTo, locate or classAt 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] Super and this
I was simply suggesting that using the right words would make things clearer. Danny is right in a sense. Ron Karina Steffens wrote: Danny, I think what Ron means is, you don't instantiate the class _and_ the super class, as you would with Director. As you know (and for anyone that isn't familiar with it), in Director the ancestor property is an instance of the superclass, residing within an instance of the subclass (a bit like a Russian Doll!) - but in Flash you don't get two instances within each other, but just a single hybrid of all the classes in the inheritance chain. To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. Actually if you go back to the metaphor, the Chrysler PT Cruiser in Director would come with a little Chrysler Neon sitting inside it ;) Karina -Original Message- From: Danny Kodicek [mailto:[EMAIL PROTECTED] Sent: 19 March 2007 09:39 To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Super and this Just to make your life simpler. You do not instantiate a class; you instantiate an instance(object) of a class. Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. 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@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] Super and this
It's also very certain to drive another coder potentially working with your code in the future into insanity... I don't know. Sometimes that's a valid reason to do things like that. :) As powerful as being able to do that is, it's one of those features of Flash that always scares me. I tend to think in terms of having my code being used by someone else, and I don't like the ability of other people to mess with my stuff at runtime and potentially break my invariants, though maybe I just have trust issues. Then again, that ability is the *only* reason I was able to get code someone else gave me to actually work... -Andy On 3/19/07, Mark Winterhalder [EMAIL PROTECTED] wrote: To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. If you're not using AS3 yet, you can do it. You can set an object's __proto__ property to any object (not just a class prototype!): class Foo { public function greet () : Void { trace( hello ); } } class Bar { public function greet () : Void { trace( g'day ); } } class Foobar extends Foo { // ... } var foo = new Foo(); var bar = new Bar(); var foobar1 = new Foobar(); var foobar2 = new Foobar(); var foobar3 = new Foobar(); foo.greet(); // hello bar.greet(); // g'day foobar1.greet(); // hello foobar2.greet(); // hello foobar3.greet(); // hello // now, let's let foobar1 extend Bar instead... foobar1.__proto__ = Bar.prototype; foobar1.greet(); // g'day foobar2.greet(); // hello foobar3.greet(); // hello // foobar1 now has lost any other methods and properties previously inherited from Foobar // let all instances of Foobar extend Bar Foobar.prototype.__proto__ = Bar.prototype; foobar1.greet(); // g'day foobar2.greet(); // g'day foobar3.greet(); // g'day // foobar2 and foobar3 still inherit methods and properties from Foobar, foobar1 of course doesn't unless you set it's __proto__ back to Foobar.prototype // now, add a generic object to the prototype chain: var baz = { greet: function () { trace( how's it goin'? } }; foobar1.__proto__ = baz; foobar1.greet(); // how's it goin'? // foobar1 now can't do anything else but greet(), let's let baz extend Foobar to give it back the other Foobar methods: baz.__proto__ = Foobar.protoype; Fun stuff, huh? However, I strongly recommend not to use this other than for purely educational purposes. If you feel like you have to mess with the prototype chain at runtime, odds are there is something you're doing wrong, and you should rethink your design. It's also very certain to drive another coder potentially working with your code in the future into insanity... Mark On 3/19/07, Karina Steffens [EMAIL PROTECTED] wrote: Danny, I think what Ron means is, you don't instantiate the class _and_ the super class, as you would with Director. As you know (and for anyone that isn't familiar with it), in Director the ancestor property is an instance of the superclass, residing within an instance of the subclass (a bit like a Russian Doll!) - but in Flash you don't get two instances within each other, but just a single hybrid of all the classes in the inheritance chain. To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. Actually if you go back to the metaphor, the Chrysler PT Cruiser in Director would come with a little Chrysler Neon sitting inside it ;) Karina -Original Message- From: Danny Kodicek [mailto:[EMAIL PROTECTED] Sent: 19 March 2007 09:39 To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Super and this Just to make your life simpler. You do not instantiate a class; you instantiate an instance(object) of a class. Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. 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@chattyfig.figleaf.com To change your subscription options or search the archive:
Re: [Flashcoders] stopDrag question
your function control, just run 1 time, only when you release, you should put it on the mc.onEnterFrame, or start an interval when you startdrag it --Pedro Taranto Gustavo Duenas escreveu: Hi, I'm trying to stop the drag of a movie click when its x value equals the x value of other movie clip. The code is in the other object not in the drag-object. stop(); var movieClip1Pos: Number = this._x; var movieClip2Pos: Number = this._parent.MC2._x; ///here start the drag. this.OnRelease = function(){ this._parent.MC2.startDrag(true); this.control(); } var control = function(){ if( movieClip1Pos == movieClip2Pos){ this._parent.MC2.stopDrag(); } } so far it doesn't work, but I don't know why? looks good in paper but when I'm trying to use it on the flash I don't get it... the code is in the frame one of the movieClip MC1. I hope you guys can help me out. Gustavo Duenas ___ 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] apollo is in macromedia labs
I would imagine you can write in actionscript too, albeit AS3, but still actionscript. Hank On 3/19/07, dan [EMAIL PROTECTED] wrote: Too bad its onely for Flex :) I need it for flash ___ 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] Re: Previously working SWF fails when reloaded in IE
On 3/19/07, Andy Herrman [EMAIL PROTECTED] wrote: I've run into that before. The issue seems to be timing-related. When you reload the page the SWF isn't re-downloaded (since it's cached), so it loads much faster, so some initialization stuff might run sooner than they did the first time. Yeah, that's what I figured after tracing the problem back to the Stage dimensions being 0x0. The solution I came up with was not unlike yours -- I set the SWF's size to 0x0 (using Swfmill to make it) and reset my values to the Stage dimensions onResize. I have set Stage.scaleMode to noScale, so I always have the Stage's origin a the centre (with the 0 by 0 SWF), which is nice in this particular case of mine anyway. Mark Here's how I fixed this (I run into it sometimes even on the first load): Set the size of the canvas to 1x1 pixels in the FLA (at the very beginning Stage.width and Stage.height seem to report this value, then switches to 0, then eventually to the actual size). Then, when the movie loads set up an interval that runs every, say, 500 milliseconds, which checks the size. Once both the width and height are something other than 0 or 1 then you know the Stage has been sized, in which case you stop the interval and start running the rest of your code. I'm using this method in a couple movies and it works really well. -Andy On 3/17/07, Mark Winterhalder [EMAIL PROTECTED] wrote: On 3/17/07, Mark Winterhalder [EMAIL PROTECTED] wrote: While I try to find the origin of the problem to work around it, has anybody seen this before? The SWF works fine when the page is first loaded, but when you hit F5 a NaN propagates through the values, breaking everything. The SWF loads an XML, if that makes a difference, but this part seems to work. For the archives: The layout algorithms depended on the Stage.width/height. When loaded for the first time it had the intended size, but upon reload it was 0x0 initially. 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
[Flashcoders] OT: Joost invite needed
Yes off topic, but I think any developer interested in online distributuiton of video should be checking this out. Anyone have an invite to share? Thanks Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] LocalConnection scope extend to different engine?
Is the scope of a LocalConnection limited to a particular Flash engine, or can, for example, a Flash 9 projector use it to communicate with a Flash 8 projector? ___ 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] Passing vars to htmltext embedded swf
Hi flashers, I am using an html text field to display some .swf s like the example below. img src='colbars/colourbarNas.swf' hspace='0' vspace='8' However I would like to pass the .swf some variables, or a variable that I can decode some vars from. I have tried this img src='colbars/colourbarNas.swf?var=value' hspace='0' vspace='8' and this img src='colbars/colourbarNas.swf?var=value' hspace='0' vspace='8' and img src='colbars/colourbarNas.swf' flashVar='value' hspace='0' vspace='8' But to no avail. If you know how to do it then great. Please let me know. Cheers Steve Matthews gingerman.co.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] stopDrag question
Thanks doctor, I'm going to try this, but a question, why don't use :Number? Someone told me that this might be necessary to use numeric values for x. is that right? this.onRelease = function() { this._parent.MC2.startDrag(true); } this.onEnterFrame = function() { var mc1X: Number = this._x; var mc2X:Number = _parent.MC2._x; if ( (Math.abs(mc1X - mc2X)) = 0.5)) { _parent.mc2.stopDrag(); } } On Mar 19, 2007, at 10:17 AM, dr.ache wrote: you compare the _x values of the mcs only once when you release mc1. when you want to check it while dragging you have to use onEnterFrame. by the way: as likely as not you will not drag your second mc exactly on the _x value of your first mc, so you should use an proximation (a region around that _x value) example(adopting your hierarchical order of mcs): [AS] this.onRelease = function() { this._parent.MC2.startDrag(true); } this.onEnterFrame = function() { var mc1X = this._x; var mc2X = _parent.MC2._x; if ( (Math.abs(mc1X - mc2X)) = 0.5)) { _parent.mc2.stopDrag(); } } [/AS] Questions ? dr.ache Gustavo Duenas schrieb: Hi, I'm trying to stop the drag of a movie click when its x value equals the x value of other movie clip. The code is in the other object not in the drag-object. stop(); var movieClip1Pos: Number = this._x; var movieClip2Pos: Number = this._parent.MC2._x; ///here start the drag. this.OnRelease = function(){ this._parent.MC2.startDrag(true); this.control(); } var control = function(){ if( movieClip1Pos == movieClip2Pos){ this._parent.MC2.stopDrag(); } } so far it doesn't work, but I don't know why? looks good in paper but when I'm trying to use it on the flash I don't get it... the code is in the frame one of the movieClip MC1. I hope you guys can help me out. Gustavo Duenas ___ 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
[Flashcoders] project
hi I have this in mind, a 3d figure, a cube , ok this cube has a diferent image and a button in every one of its faces, so the button should trigger a particular code, but how can I handle this is 3d? and how can tell actionscript about every single face which has a different design and a button. Regards. Gustavo Duenas Creative Director P.s: I've found a tool named 3d cube in the flash tool bar and I don't get it how to use it or what is for. ___ 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] wordpress and flash integration
hi Joe, Im trying to use wordpress as source.. ofcourse some php will run inside to generate the content but i am searching the ways of getting them out from wp. i have used flash remoting before in some other projects with serversiders. I am not much experienced in php personally, so its kind of hard for me to manipulate wp too much but I am trying it out anywas. Im still looking for something to make work amfphp inside wp. i like wp's admin panel and content management looks good and optimized. i will search more on this. and if I can figure out something I will share here. http://tvwonline.net/flash/#page_id=44article=35 is really cool example on my subject. thanx all for answers kerem. Joe Wheeler wrote: Hi Kerem, If you don't use the wordpress php files you're not using wordpress - all you'd have left is a complicated data base structure and a bunch of raw data. If you really want to use flash and wordpress you need to look at ways of getting the wordpress php files to talk to flash - you can't use flash instead of the wordpress php files, you'd need both. You might want to have look at writing a plug-in for wordpress (wp plug-ins are also written in php btw). The alternative is to hack wordpress, but you'll never be able upgrade when a new version of wordpress comes out and, again, other plugins will be a problem. If you go the hacky way, the php files in the admin folder or wordpress\wp-includes\wp-db.php are probably as good a place as any to start with. In theory, you could write a plug-in (in php and actionscript) which enables you to create a Flash admin layer over the top of the php application. It would be quite a big job and very hard to make extensible for other plug-ins (most require html forms and JavaScript on the client). You'd probably be better of by just replacing a small bit of the admin interface - pick the bit that annoys you most. Try a Google search for wordpress admin hooks or wordpress plugin api - it's not very well documented but you might find something useful. Good luck J -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: 17 March 2007 13:54 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] wordpress and flash integration Hi Kerem. It depends what you want to parse. You could use the RSS feed as a way of getting data into Flash as it is XML, which Flash can deal with very easily. If you want to talk to the database more directly, you will have to consider using Flash Remoting - have a look to see if anyone has created an AMFPHP - server side code for Flash Remoting in PHP - plugin for Wordpress. http://amfphp.org/ http://www.google.co.uk/search?hl=enq=flash+remotingbtnG=Google+Searchmet a= http://www.google.co.uk/search?hl=enq=flash+remotingbtnG=Google+Searchme ta= HTH Glen Kerem İşeri wrote: Hi everyone... I am starting a new project, it will be my first trial on the subject.. I thought that I could use wordpress as a database for contents and pictures for my site. It will be so cool if I can make it, because I will get rid of the coding on php and admin panel of this project, wordpress has a very userfriendly admin interface it self built in. Anyways, Anybody tried this before ? or does anybody know how can I parse wordpress pages for the flash? Thanks a lot. Kerem. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] I have small doubt
hi .. yes you can do it but you need a serverside script in order to make it happen. you should use loadVars and your serverside script can take the variables easily and add inside the xml. goodluck. kerem. sirajudeen kamarul jaman wrote: hi toeverybody, this is first time to joining the team.i have small doubt. i have one xml file that file containing two fields,student name and question.how to update the xml file from flash. Is it possible to update the xml node? thanks for ur advacne replay _ Voice your questions and our experts will answer them http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm ___ 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 _ Catch the complete World Cup coverage with MSN http://content.msn.co.in/Sports/Cricket/Default.aspx ___ 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] Does ByteLoaded/bytesTotal work loading from CDROM ?
Does ByteLoaded / bytesTotal work loading from CDROM ? when I try, I get ByeLoaded = byteTotal since the beginning... ___ 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] Create an object by name
- Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 2:36 PM Subject: RE: [Flashcoders] Create an object by name I'm still not entirely sure what import actually *does* :) It tells flash where the class definitions can be found and distinguishes between classes of the same name, but different packages. You know, it occurs to me that import is an astonishingly bad name for this statement. Poorly named methods and properties can really screw up understanding, and not just in third party code. Sometimes I think properly named variables or methods can do half your coding for you. Why is it not called something else? I can think of three better names immediately: pointTo, locate or classAt Sounds like three worse names, I'm afraid. Import is really the industry standard here (in other languages besides Actionscript) and it would be bad to move from it. IMHO it's pretty descriptive - you import these classes into your project. On reflection, my description is a bit superficial. Import is dealing with class namespaces and packages (collections of classes). I'd better stop now. Paul 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] DirectX and standalone
Hi all, A client asked me what the minimum requirement for DirectX are for a Flash 8 standalone running of a DVD? Is there really a need for DirectX? Just flash and some FLVs... Cheers, //Magnus ___ 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] Poor video quality problem
The quality comes from the conversion process, not the embed. What are you using to convert the media? On 3/19/07, creativity [EMAIL PROTECTED] wrote: Hi, I have dvd video and want to put it in flash. videos are long in duration, Embeding it is resulting in very poor quality and long time to load the output is to on cd-rom. if any one can help me getting good quality video in flash. thanks Abhi On 3/19/07, Dennis - I Sioux [EMAIL PROTECTED] wrote: Hey guys, We would like to send a video(stream) in a news e-mail to affiliates. Does anybody know if this is possible in mail? As far as i could see there weren't any active-x possibilities.. so FMS is probably not done? With kind regards, Dennis I Sioux B.V. ___ 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 -- Abhishek Kumar ___ 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] Super and this
I was simply suggesting that using the right words would make things clearer. Danny is right in a sense. Ron Karina Steffens wrote: Danny, I think what Ron means is, you don't instantiate the class _and_ the super class, as you would with Director. As you know (and for anyone that isn't familiar with it), in Director the ancestor property is an instance of the superclass, residing within an instance of the subclass (a bit like a Russian Doll!) - but in Flash you don't get two instances within each other, but just a single hybrid of all the classes in the inheritance chain. To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. What I like about the Lingo model is the simplicity that every object is a clear 'thing' that can be seen and inspected. There's a certain elegance to the ECMA system where *everything* is an object, but you lose the sense of distinction between objects, properties and methods that you have in Lingo. Using this particular issue as an example, what exactly *is* 'super'? It's not an object in the same sense that our instantiated class is, it's a kind of hidden layer of the class. I'm not saying one system is better or the other (I started with Lingo, so I'm more comfortable with it, but I like both). 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] apollo is in macromedia labs
You can compile any SWF + Application XML file into an Apollo application. You have to use the command-line for this if not using Flex. If you want to use the new features that Apollo brings to the table like file I/O, windowing, etc, you need to compile the Apollo SWC files into your SWF. I thought you could do this with the Flash 9 Alpha, although I'm not sure. You can definitely create an AS3 project in FlashDevelop and use the free Flex SDK compiler. ben hank williams wrote: I would imagine you can write in actionscript too, albeit AS3, but still actionscript. Hank On 3/19/07, dan [EMAIL PROTECTED] wrote: Too bad its onely for Flex :) I need it for flash ___ 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] apollo is in macromedia labs
Yes, you can write AS3-only apps that don't use any part of flex at all. You can even do it for free with the Flex 2 SDK. I've heard that you can use AS2 apps in apollo, but that it is a pain because you do not have direct access to the apollo API. On 3/19/07, hank williams [EMAIL PROTECTED] wrote: I would imagine you can write in actionscript too, albeit AS3, but still actionscript. Hank On 3/19/07, dan [EMAIL PROTECTED] wrote: Too bad its onely for Flex :) I need it for flash ___ 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] Poor video quality problem
Not sure you noticed, but this is FlashCoders Try the Flash Media List: http://www.flashcomguru.com/flashmedialist/ regards, Muzak - Original Message - From: creativity [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 3:24 PM Subject: [Flashcoders] Poor video quality problem Hi, I have dvd video and want to put it in flash. videos are long in duration, Embeding it is resulting in very poor quality and long time to load the output is to on cd-rom. if any one can help me getting good quality video in flash. thanks Abhi On 3/19/07, Dennis - I Sioux [EMAIL PROTECTED] wrote: Hey guys, We would like to send a video(stream) in a news e-mail to affiliates. Does anybody know if this is possible in mail? As far as i could see there weren't any active-x possibilities.. so FMS is probably not done? With kind regards, ___ 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] Create an object by name
Most of the time, what I've seen is setting a temporary var to either an instance of the class, or in the case of a static class, setting it to a reference to the class. var myClass:MyClass = new com.client.project.package.MyClass(); or var myClass:MyClass = com.client.project.package.MyClass; I have to wonder, though, if there's not a better way to accomplish what you're trying to achieve. ___ 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] apollo is in macromedia labs
It's not only for Flex. Flex == Flash. That's like saying It's only for Ruby, not Rails. Rails is written in Ruby. Flex 2 is built with Flash. It's simply a bunch of classes and components written in AS3 that provide a framework for developing applications. Currently, the Apollo compiler is a plug-in for Flex Builder 2, but you could make a stub projector that will load any AS3 swf, which there are multiple ways to write. There's the Flash 8 patch to publish Flash 9, the ANT compiler which works with FlashDevelop, and Flex Builder 2. Yes, you can write regular AS3 swfs with Flex Builder. Flex Builder is just Eclipse with a plug-in. I'm not sure what you need Apollo for. It's still in beta, and even after launch, I'm sure that like every single other wrapper out there, it will need time to work the kinks out before it will be ready for mass distribution. If you have a client depending on a Flash wrapper technology, you should look to mProjector or Zinc. ___ 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] LocalConnection scope extend to different engine?
You can communicate with any swf that supports LocalConnection, which means, Flash 6 and up. The mechanism has changed a bit in AS3, but that's about it. regards, Muzak - Original Message - From: Jeff Gomes [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 4:48 PM Subject: [Flashcoders] LocalConnection scope extend to different engine? Is the scope of a LocalConnection limited to a particular Flash engine, or can, for example, a Flash 9 projector use it to communicate with a Flash 8 projector? ___ 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] Passing vars to htmltext embedded swf
You're almost there: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16417 Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Matthews Sent: Monday, March 19, 2007 11:53 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Passing vars to htmltext embedded swf Hi flashers, I am using an html text field to display some .swf s like the example below. img src='colbars/colourbarNas.swf' hspace='0' vspace='8' However I would like to pass the .swf some variables, or a variable that I can decode some vars from. I have tried this img src='colbars/colourbarNas.swf?var=value' hspace='0' vspace='8' and this img src='colbars/colourbarNas.swf?var=value' hspace='0' vspace='8' and img src='colbars/colourbarNas.swf' flashVar='value' hspace='0' vspace='8' But to no avail. If you know how to do it then great. Please let me know. Cheers Steve Matthews gingerman.co.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 ___ 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] stopDrag question
function compareX():Void { if (MC_Drag._x == mc2._x) { endDrag(); } } function beginDrag():Void { MC_Drag.startDrag(false, t, l, b, r); clearInterval(compareInterval); compareInterval = setInterval(this, compareX, 10); } function endDrag():Void { clearInterval(compareInterval): stopDrag(); } MC_Drag.onPress = Delegate.create(this, beginDrag); MC_Drag.onRelease = Delegate.create(this, endDrag); ___ 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] Does ByteLoaded/bytesTotal work loading from CDROM ?
hi, AFAIK not, flash player uses different criteria when http headers are/[n't] availables. :) Jaco - pixeldump - Original Message - From: Fabio Sonnati [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 5:32 PM Subject: [Flashcoders] Does ByteLoaded/bytesTotal work loading from CDROM ? Does ByteLoaded / bytesTotal work loading from CDROM ? when I try, I get ByeLoaded = byteTotal since the beginning... ___ 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 __ Informazione NOD32 2126 (20070319) __ Questo messaggio è stato controllato dal Sistema Antivirus NOD32 http://www.nod32.it ___ 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] Does ByteLoaded/bytesTotal work loading from CDROM ?
Does ByteLoaded / bytesTotal work loading from CDROM ? when I try, I get ByeLoaded = byteTotal since the beginning... When loading local content, bytes loaded/total are either 0 or close values, or the correct number of total bytes. There's no streaming process involved as it happens immediately. You do have to wait until the loaded/total bytes are higher than a certain ammount - say, 20 - because if you just check for loaded==total, you'll get false completions when the loading is still starting (and both are ~0). Also, when loading with local content, it's a good idea to have loading queues in place to avoid issuing too many loading procedures at once -- too many loadings done at once can potentially freeze your movie for a couple of seconds. Zeh ___ 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] I have small doubt
do you have an example of a server side page on cfm? Regards Gustavo Duenas On Mar 19, 2007, at 12:32 PM, Kerem İŞERİ wrote: hi .. yes you can do it but you need a serverside script in order to make it happen. you should use loadVars and your serverside script can take the variables easily and add inside the xml. goodluck. kerem. sirajudeen kamarul jaman wrote: hi toeverybody, this is first time to joining the team.i have small doubt. i have one xml file that file containing two fields,student name and question.how to update the xml file from flash. Is it possible to update the xml node? thanks for ur advacne replay _ Voice your questions and our experts will answer them http:// content.msn.co.in/Lifestyle/AskExpert/Default01.htm ___ 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 _ Catch the complete World Cup coverage with MSN http:// content.msn.co.in/Sports/Cricket/Default.aspx ___ 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] Super and this
Oh, I don't even think of 'super' as any kind of identifier/variable. I think of it the same way I think of '.', '[]' or even '-' (in C), in that I think of it as an operator used to access something, not as a reference. 'super.' is just the way to access the parent implementation of a function, just like '.' is how to access a member property. -Andy On 3/19/07, Danny Kodicek [EMAIL PROTECTED] wrote: I was simply suggesting that using the right words would make things clearer. Danny is right in a sense. Ron Karina Steffens wrote: Danny, I think what Ron means is, you don't instantiate the class _and_ the super class, as you would with Director. As you know (and for anyone that isn't familiar with it), in Director the ancestor property is an instance of the superclass, residing within an instance of the subclass (a bit like a Russian Doll!) - but in Flash you don't get two instances within each other, but just a single hybrid of all the classes in the inheritance chain. To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. What I like about the Lingo model is the simplicity that every object is a clear 'thing' that can be seen and inspected. There's a certain elegance to the ECMA system where *everything* is an object, but you lose the sense of distinction between objects, properties and methods that you have in Lingo. Using this particular issue as an example, what exactly *is* 'super'? It's not an object in the same sense that our instantiated class is, it's a kind of hidden layer of the class. I'm not saying one system is better or the other (I started with Lingo, so I'm more comfortable with it, but I like both). 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] DirectX and standalone
There is no need for DirectX in this case. Not unless you've got a projector wrapper doing something fancy, which I'm guessing you don't (if it's just a standard Flash projector). Ian On 3/19/07, Magnus Askenbäck [EMAIL PROTECTED] wrote: Hi all, A client asked me what the minimum requirement for DirectX are for a Flash 8 standalone running of a DVD? Is there really a need for DirectX? Just flash and some FLVs... Cheers, //Magnus ___ 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] Does ByteLoaded/bytesTotal work loading from CDROM ?
Then it's probably completely loaded. When using local media the load times will be very fast, unless the file is very large (on the order of a few hundred megs). I wouldn't be at all surprised if the bytesLoaded == bytesTotal from the very beginning. Just means it loads really fast. :) -Andy On 3/19/07, Fabio Sonnati [EMAIL PROTECTED] wrote: Does ByteLoaded / bytesTotal work loading from CDROM ? when I try, I get ByeLoaded = byteTotal since the beginning... ___ 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] DirectX and standalone
Makes me think that they believe the DVD will run off a Video DVD Player. Meaning that it would run through Windows Media Player on a PC. You might want to check their expectations. Charles P. On 3/19/07, Magnus Askenbäck [EMAIL PROTECTED] wrote: Hi all, A client asked me what the minimum requirement for DirectX are for a Flash 8 standalone running of a DVD? Is there really a need for DirectX? Just flash and some FLVs... Cheers, //Magnus ___ 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] Does ByteLoaded/bytesTotal work loading from CDROM ?
ok, do you know any workaround? I'm loading big FLVs from CDROM and I cannot know when Flash has completely loaded them hi, AFAIK not, flash player uses different criteria when http headers are/[n't] availables. :) Jaco - pixeldump - Original Message - From: Fabio Sonnati [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 5:32 PM Subject: [Flashcoders] Does ByteLoaded/bytesTotal work loading from CDROM ? Does ByteLoaded / bytesTotal work loading from CDROM ? when I try, I get ByeLoaded = byteTotal since the beginning... ___ 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 __ Informazione NOD32 2126 (20070319) __ Questo messaggio è stato controllato dal Sistema Antivirus NOD32 http://www.nod32.it ___ 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] browser will not quit!!
Hi: My client and his employees have flash player version 7.0.69 I tried with a new movie with only a button and the button has the code: on(release){ getURL(javascript:top.window.close();); } Then I tried with a new javascript funcion and with fscommand as you suggest in all these mails, but It doesn't work. I tested in flash player 7.0.19 and 8 and 9 and it works. But the client needs the movie works on 7.0.69 with IE and I couldn't find the issue. I aprecciate if you can help me. I uplodad the flash player 7.0.69 installer in my server. http://www.pixelgroup.net/carolina/flashplayer7r69_winax.exe Thanks a lot Carolina Avila - Original Message - From: Joey Rivera [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Friday, June 02, 2006 1:10 PM Subject: RE: [Flashcoders] browser will not quit!! Try the following, should close the browser window without a prompt: AS code: // call javascript function closeWindow in html page getURL(javascript:closeWindow()); and add this script in the head of the html page created when you publish your file (same file that loads your swf), JS code: script function closeWindow() { window.open('','_parent',''); window.opener = window; window.close(); } /script This is what I use and works fine for me. Joey ___ 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 __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ 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] Super and this
- Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 4:59 PM Subject: RE: [Flashcoders] Super and this I was simply suggesting that using the right words would make things clearer. Danny is right in a sense. Ron Karina Steffens wrote: Danny, I think what Ron means is, you don't instantiate the class _and_ the super class, as you would with Director. As you know (and for anyone that isn't familiar with it), in Director the ancestor property is an instance of the superclass, residing within an instance of the subclass (a bit like a Russian Doll!) - but in Flash you don't get two instances within each other, but just a single hybrid of all the classes in the inheritance chain. To be honest, I'm not really sure what is better. Certainly the Director way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. What I like about the Lingo model is the simplicity that every object is a clear 'thing' that can be seen and inspected. There's a certain elegance to the ECMA system where *everything* is an object, but you lose the sense of distinction between objects, properties and methods that you have in Lingo. Using this particular issue as an example, what exactly *is* 'super'? It's not an object in the same sense that our instantiated class is, it's a kind of hidden layer of the class. I'm not saying one system is better or the other (I started with Lingo, so I'm more comfortable with it, but I like both). Think of 'Super' as opening a Russian Doll. When you call a given method, it's at the current outermost level. When you use Super you remove a layer and work with what is nested inside. I don't know if that helps or not. I don't know lingo, but Flash behaves more or less as most OO languages do. Paul 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] Super and this
On 3/19/07, Andy Herrman [EMAIL PROTECTED] wrote: Oh, I don't even think of 'super' as any kind of identifier/variable. I think of it the same way I think of '.', '[]' or even '-' (in C), in that I think of it as an operator used to access something, not as a reference. 'super.' is just the way to access the parent implementation of a function, just like '.' is how to access a member property. -Andy Yup. 'super' isn't an object, it's a bit of syntax. Totally different from Director. :-) Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Does ByteLoaded/bytesTotal work loading from CDROM ?
hi, I think one of the best approach is to use NetConnection/NetStream with metadata companion, you'll find good examples on documentation or just googling a bit. :) Jaco - pixeldump - Segue Messaggio Originale - Da : Fabio Sonnati [EMAIL PROTECTED] A : flashcoders@chattyfig.figleaf.com oggetto : Re: [Flashcoders] Does ByteLoaded/bytesTotal work loading from CDROM ? Data : Mon, 19 Mar 2007 22:37:07 +0100 ok, do you know any workaround? I'm loading big FLVs from CDROM and I cannot know when Flash has completely loaded them hi, AFAIK not, flash player uses different criteria when http headers are/[n't] availables. :) Jaco - pixeldump - Original Message - From: Fabio Sonnati [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 5:32 PM Subject: [Flashcoders] Does ByteLoaded/bytesTotal work loading from CDROM ? Does ByteLoaded / bytesTotal work loading from CDROM ? when I try, I get ByeLoaded = byteTotal since the beginning... ___ 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 __ Informazione NOD32 2126 (20070319) __ Questo messaggio è stato controllato dal Sistema Antivirus NOD32 http://www.nod32.it ___ 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] LocalConnection scope extend to different engine?
Then perhaps what I am trying to do is possible, but I'm just doing something wrong. I need to be able to communicate between a Director Projector (Flash 8 Asset Xtra) and some SWFs authored in Flash 8 but running in the Flash 9 Universal Binary Player (because the target machine is an Intel Mac and the files don't run well enough under the Flash 8 Player). When we are using the Flash 8 player, the LocalConnection communication between Director and Flash works just fine. When the Flash 9 player is used, the messages don't get through. Could someone please point out what I am missing here? Thank you very much! -Jeff At 10:55 3/19/2007, Muzak wrote: You can communicate with any swf that supports LocalConnection, which means, Flash 6 and up. The mechanism has changed a bit in AS3, but that's about it. regards, Muzak - Original Message - From: Jeff Gomes [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, March 19, 2007 4:48 PM Subject: [Flashcoders] LocalConnection scope extend to different engine? Is the scope of a LocalConnection limited to a particular Flash engine, or can, for example, a Flash 9 projector use it to communicate with a Flash 8 projector? ___ 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] window.close() doesn't work in player 7.0.69
Hi: My client and his employees have flash player version 7.0.69 I tried with a new movie with only a button and the button has the code: on(release){ getURL(javascript:top.window.close();); } Then I tried with a new javascript funcion and with fscommand as you suggest in all emails in the list about close window, but It doesn't work. I tested in flash player 7.0.19 and 8 and 9 and it works. But the client needs the movie works on 7.0.69 with IE and I couldn't find the issue. I aprecciate if you can help me. I uplodad the flash player 7.0.69 installer in my server. http://www.pixelgroup.net/carolina/flashplayer7r69_winax.exe Thanks a lot Carolina Avila __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ 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] flv path vs loadmovie path
WWW/INDEX.HTM WWW/SWF/MAIN.SWF WWW/CONTENT/VIDEO.FLV WWW/CONTENT/IMAGE.JPG why is the loadpath (in an online situation) of an image relative to the index.htm file location [ loadmovie(content/image.jpg) ] and is the flv path relative to the swf file location [ netstream url: ../content/video.flv ] where is the logic ? anybody ? Latcho ___ 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] Take me off your list
Quoting Paul Andrews [EMAIL PROTECTED]: I'm sorry unsubscribe isn't working, but if you do like the list, why not just divert it to a folder using a mail rule? You don't have to read every message and can always read them later and it's sitting there as a useful resource to search. If nothing else, it's easy to select all the flashcoders messages and delete them , en-mass. Paul Honestly, it's just too much to read. That, and I am still pretty awful with AS. But that's actually a pretty good idea. Maybe I'll try that. Quoting Duncan Reid [EMAIL PROTECTED]: Hi Blaine, scroll all the way to the bottom of this page, you will see the list owners email address, you can email him directly... http://chattyfig.figleaf.com/mailman/listinfo/flashcoders regards, Dunc Thanks for the link. -- Hydroderm reduces wrinkles lines. Anti-aging that works, try 4 free http://tags.bluebottle.com/fc/CAaCMPJl7kdnPRQ3IJcyF58DomwBmjIo/ ___ 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