Re: [Flashcoders] Question about the AIR security model...
Hi John, Where are you loading the SWF from? I think I had this problem early on with AIR, and it turned out I was loading from the wrong place. If you load the .swf files from within the AIR app's installed folder, then they are given full rights and you will be able to cast them etc. If you load them from anywhere else, they are placed into a different security sandbox and you won't be able to cast them. This page should help: http://livedocs.adobe.com/flex/3/html/security_6.html (see under URL schemes) Hope that's helpful, Ian On Wed, Apr 23, 2008 at 6:50 PM, John Axel Eriksson [EMAIL PROTECTED] wrote: I'm trying to develop an application using AIR for internal use at our company. Our company uses very advanced actionscript (3.0) on the web, we load for instance several hundred or maybe more swfs sometimes into a parent swf, some that are animated. Recently we decided that we need control over these loaded animated swfs - they need to adhere to an interface so we can stop the animations from the loading application when needed. The animations can be both timeline based and script based. As long as they adhere to the interface (basically play() stop() reset() and the running getter should return true if playing or false if stopped) we should be just fine. The problem is that we need people who don't really know any scripting (designers) to be able to publish these files properly. And I guess a template goes a long way but still... So I thought: Hey there's AIR which have local filesystem access among other things. I could build an AIR App which loads a swf or even a whole dir of swfs and then casts the loaded swfs to IAnimatedItem and throws an error if it cant. It could also include play stop reset buttons to test every loaded swf manually to be sure it works. Nice indeed and simple enough for most people to use... The problem is though that I can't cast loaded swfs in AIR it seems, though I can from a simple swf loading one of these items (but then I lose filesystem dialogs etc which is why I thought of AIR in the first place). In AIR var aim:IAnimatedItem = loader.content as IAnimatedItem; (or loader.contentLoaderInfo.content as IAnimatedItem doesn't matter). aim becomes null. In simple Flash swf: aim becomes IAnimatedItem. if I do this in AIR: var aim:IAnimatedItem = loader.content as IAnimatedItem; if(aim is IAnimatedItem){ trace('is IAnimatedItem'); } else { trace('is NOT IAnimatedItem'); } this traces 'is NOT IAnimatedItem'; ** in simple Flash swf the same traces: 'is IAnimatedItem'; ** Also, doing a describeType in AIR OR Flash swf actually says it DOES implement IAnimatedItem. But, as I said, only in normal flash swfs is it castable to an IAnimatedItem. Why? Does this have something to do with the AIR security model and does anyone know how I can achieve what I want in AIR? /John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about the AIR security model...
Yes. I have understood this when doing some research on the subject. My problem though is that I don't want theswfs to be installed together with the app (a few thousand swfs altogether). I want my AIR App to load a dir full of them and walk through them all and check if they implement a certain interface. I've done all these things, my only problem now is that I cannot cast them in AIR at all which makes the whole thing pointless. You see my problem here right? I need it to load arbitrary swfs from a harddrive or network share (i.e locally through the filesystem) and try to cast them to an interface - throw up a warning or generate a list of swfs that do not conform to the interface and need to be fixed. I guess this cannot be easily done, or perhaps not at all... Could it be possible through a sandbox bridge or something like that? /John 2008/4/24 Ian Thomas [EMAIL PROTECTED]: Hi John, Where are you loading the SWF from? I think I had this problem early on with AIR, and it turned out I was loading from the wrong place. If you load the .swf files from within the AIR app's installed folder, then they are given full rights and you will be able to cast them etc. If you load them from anywhere else, they are placed into a different security sandbox and you won't be able to cast them. This page should help: http://livedocs.adobe.com/flex/3/html/security_6.html (see under URL schemes) Hope that's helpful, Ian On Wed, Apr 23, 2008 at 6:50 PM, John Axel Eriksson [EMAIL PROTECTED] wrote: I'm trying to develop an application using AIR for internal use at our company. Our company uses very advanced actionscript (3.0) on the web, we load for instance several hundred or maybe more swfs sometimes into a parent swf, some that are animated. Recently we decided that we need control over these loaded animated swfs - they need to adhere to an interface so we can stop the animations from the loading application when needed. The animations can be both timeline based and script based. As long as they adhere to the interface (basically play() stop() reset() and the running getter should return true if playing or false if stopped) we should be just fine. The problem is that we need people who don't really know any scripting (designers) to be able to publish these files properly. And I guess a template goes a long way but still... So I thought: Hey there's AIR which have local filesystem access among other things. I could build an AIR App which loads a swf or even a whole dir of swfs and then casts the loaded swfs to IAnimatedItem and throws an error if it cant. It could also include play stop reset buttons to test every loaded swf manually to be sure it works. Nice indeed and simple enough for most people to use... The problem is though that I can't cast loaded swfs in AIR it seems, though I can from a simple swf loading one of these items (but then I lose filesystem dialogs etc which is why I thought of AIR in the first place). In AIR var aim:IAnimatedItem = loader.content as IAnimatedItem; (or loader.contentLoaderInfo.content as IAnimatedItem doesn't matter). aim becomes null. In simple Flash swf: aim becomes IAnimatedItem. if I do this in AIR: var aim:IAnimatedItem = loader.content as IAnimatedItem; if(aim is IAnimatedItem){ trace('is IAnimatedItem'); } else { trace('is NOT IAnimatedItem'); } this traces 'is NOT IAnimatedItem'; ** in simple Flash swf the same traces: 'is IAnimatedItem'; ** Also, doing a describeType in AIR OR Flash swf actually says it DOES implement IAnimatedItem. But, as I said, only in normal flash swfs is it castable to an IAnimatedItem. Why? Does this have something to do with the AIR security model and does anyone know how I can achieve what I want in AIR? /John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about the AIR security model...
I was wondering about some sort of bridge - how about a 'loader' swf which you load from outside the AIR security sandbox. Talk to it via LocalConnections - get it to load in swfs for test and report back via LocalConnection. That'd work, but is an ugly hack. However - as far as I can see, you aren't actually writing to disk, are you? So why do you need AIR? Wouldn't an ordinary Flash projector do the job without any of these issues? HTH, Ian On Thu, Apr 24, 2008 at 9:20 AM, John Eriksson [EMAIL PROTECTED] wrote: Yes. I have understood this when doing some research on the subject. My problem though is that I don't want theswfs to be installed together with the app (a few thousand swfs altogether). I want my AIR App to load a dir full of them and walk through them all and check if they implement a certain interface. I've done all these things, my only problem now is that I cannot cast them in AIR at all which makes the whole thing pointless. You see my problem here right? I need it to load arbitrary swfs from a harddrive or network share (i.e locally through the filesystem) and try to cast them to an interface - throw up a warning or generate a list of swfs that do not conform to the interface and need to be fixed. I guess this cannot be easily done, or perhaps not at all... Could it be possible through a sandbox bridge or something like that? /John 2008/4/24 Ian Thomas [EMAIL PROTECTED]: Hi John, Where are you loading the SWF from? I think I had this problem early on with AIR, and it turned out I was loading from the wrong place. If you load the .swf files from within the AIR app's installed folder, then they are given full rights and you will be able to cast them etc. If you load them from anywhere else, they are placed into a different security sandbox and you won't be able to cast them. This page should help: http://livedocs.adobe.com/flex/3/html/security_6.html (see under URL schemes) Hope that's helpful, Ian On Wed, Apr 23, 2008 at 6:50 PM, John Axel Eriksson [EMAIL PROTECTED] wrote: I'm trying to develop an application using AIR for internal use at our company. Our company uses very advanced actionscript (3.0) on the web, we load for instance several hundred or maybe more swfs sometimes into a parent swf, some that are animated. Recently we decided that we need control over these loaded animated swfs - they need to adhere to an interface so we can stop the animations from the loading application when needed. The animations can be both timeline based and script based. As long as they adhere to the interface (basically play() stop() reset() and the running getter should return true if playing or false if stopped) we should be just fine. The problem is that we need people who don't really know any scripting (designers) to be able to publish these files properly. And I guess a template goes a long way but still... So I thought: Hey there's AIR which have local filesystem access among other things. I could build an AIR App which loads a swf or even a whole dir of swfs and then casts the loaded swfs to IAnimatedItem and throws an error if it cant. It could also include play stop reset buttons to test every loaded swf manually to be sure it works. Nice indeed and simple enough for most people to use... The problem is though that I can't cast loaded swfs in AIR it seems, though I can from a simple swf loading one of these items (but then I lose filesystem dialogs etc which is why I thought of AIR in the first place). In AIR var aim:IAnimatedItem = loader.content as IAnimatedItem; (or loader.contentLoaderInfo.content as IAnimatedItem doesn't matter). aim becomes null. In simple Flash swf: aim becomes IAnimatedItem. if I do this in AIR: var aim:IAnimatedItem = loader.content as IAnimatedItem; if(aim is IAnimatedItem){ trace('is IAnimatedItem'); } else { trace('is NOT IAnimatedItem'); } this traces 'is NOT IAnimatedItem'; ** in simple Flash swf the same traces: 'is IAnimatedItem'; ** Also, doing a describeType in AIR OR Flash swf actually says it DOES implement IAnimatedItem. But, as I said, only in normal flash swfs is it castable to an IAnimatedItem. Why? Does this have something to do with the AIR security model and does anyone know how I can achieve what I want in AIR? /John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list
Re: [Flashcoders] Language translation from English to german/russian etc
I wasn't saying the grammar was incorrect (it is correct), but the subject is dodgy. It's not pop-culture poem, unless you call Hentai Under-age Anime as pop-culture - well, I suppose it is in Japan, sadly. Kenneth Kawamoto http://www.materiaprima.co.uk/ Kerry Thompson wrote: Kenneth Kawamoto wrote: I don't know where you got it from, but perhaps it's good that you got dodgy translation because your Japanese text itself is well dodgy (not in grammatical sense). I figured there would be a Japanese speaker who would catch that ^_^ I copied and pasted it from a Japanese Web site. It's a little pop-culture poem, kind of impressionistic, and poems don't play by the grammar rules. Perhaps I chose an extreme case to make my point--poems seldom translate well--but the English gibberish it output certainly shows the limits of machine translation. Even though I chose a pop poem, it's from a Japanese Web site, based in Japan, and run by a Japanese company in Japan. I can't vouch for the grammar--I speak Chinese, but not Japanese--but I still stand by my position that machine translation is nowhere near ready for prime time. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about the AIR security model...
Could sandbox bridging help here? http://www.adobe.com/devnet/air/ajax/quickstart/sandbox_bridge.html This example descibes loading local HTML files, but the same rules apply... Pete ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Question about the AIR security model...
Apparently, if you load the .swf as a byteArray then you can then use a loader to load that as a swf, in the context of your application. Normally that would be considered a potentially bad thing, but in your case it looks like it could be exactly what you want to do. Hth. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Eriksson Sent: 24 April 2008 09:21 To: Flash Coders List Subject: Re: [Flashcoders] Question about the AIR security model... Yes. I have understood this when doing some research on the subject. My problem though is that I don't want theswfs to be installed together with the app (a few thousand swfs altogether). I want my AIR App to load a dir full of them and walk through them all and check if they implement a certain interface. I've done all these things, my only problem now is that I cannot cast them in AIR at all which makes the whole thing pointless. You see my problem here right? I need it to load arbitrary swfs from a harddrive or network share (i.e locally through the filesystem) and try to cast them to an interface - throw up a warning or generate a list of swfs that do not conform to the interface and need to be fixed. I guess this cannot be easily done, or perhaps not at all... Could it be possible through a sandbox bridge or something like that? /John 2008/4/24 Ian Thomas [EMAIL PROTECTED]: Hi John, Where are you loading the SWF from? I think I had this problem early on with AIR, and it turned out I was loading from the wrong place. If you load the .swf files from within the AIR app's installed folder, then they are given full rights and you will be able to cast them etc. If you load them from anywhere else, they are placed into a different security sandbox and you won't be able to cast them. This page should help: http://livedocs.adobe.com/flex/3/html/security_6.html (see under URL schemes) Hope that's helpful, Ian On Wed, Apr 23, 2008 at 6:50 PM, John Axel Eriksson [EMAIL PROTECTED] wrote: I'm trying to develop an application using AIR for internal use at our company. Our company uses very advanced actionscript (3.0) on the web, we load for instance several hundred or maybe more swfs sometimes into a parent swf, some that are animated. Recently we decided that we need control over these loaded animated swfs - they need to adhere to an interface so we can stop the animations from the loading application when needed. The animations can be both timeline based and script based. As long as they adhere to the interface (basically play() stop() reset() and the running getter should return true if playing or false if stopped) we should be just fine. The problem is that we need people who don't really know any scripting (designers) to be able to publish these files properly. And I guess a template goes a long way but still... So I thought: Hey there's AIR which have local filesystem access among other things. I could build an AIR App which loads a swf or even a whole dir of swfs and then casts the loaded swfs to IAnimatedItem and throws an error if it cant. It could also include play stop reset buttons to test every loaded swf manually to be sure it works. Nice indeed and simple enough for most people to use... The problem is though that I can't cast loaded swfs in AIR it seems, though I can from a simple swf loading one of these items (but then I lose filesystem dialogs etc which is why I thought of AIR in the first place). In AIR var aim:IAnimatedItem = loader.content as IAnimatedItem; (or loader.contentLoaderInfo.content as IAnimatedItem doesn't matter). aim becomes null. In simple Flash swf: aim becomes IAnimatedItem. if I do this in AIR: var aim:IAnimatedItem = loader.content as IAnimatedItem; if(aim is IAnimatedItem){ trace('is IAnimatedItem'); } else { trace('is NOT IAnimatedItem'); } this traces 'is NOT IAnimatedItem'; ** in simple Flash swf the same traces: 'is IAnimatedItem'; ** Also, doing a describeType in AIR OR Flash swf actually says it DOES implement IAnimatedItem. But, as I said, only in normal flash swfs is it castable to an IAnimatedItem. Why? Does this have something to do with the AIR security model and does anyone know how I can achieve what I want in AIR? /John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How does 'Compress movie' publish setting work?
Just out of interest really :) And why would you switch it off? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How does 'Compress movie' publish setting work?
It compresses the main body of the SWF file - all the code, assets, etc - everything apart from the header - using the Zip format. I don't know why you'd turn it off. :-) Cheers, Ian On Thu, Apr 24, 2008 at 12:17 PM, Alistair Colling [EMAIL PROTECTED] wrote: Just out of interest really :) And why would you switch it off? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about the AIR security model...
Jim, That's a great suggestion. :-) Ian On Thu, Apr 24, 2008 at 11:18 AM, Jim Hayes [EMAIL PROTECTED] wrote: Apparently, if you load the .swf as a byteArray then you can then use a loader to load that as a swf, in the context of your application. Normally that would be considered a potentially bad thing, but in your case it looks like it could be exactly what you want to do. Hth. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Eriksson Sent: 24 April 2008 09:21 To: Flash Coders List Subject: Re: [Flashcoders] Question about the AIR security model... Yes. I have understood this when doing some research on the subject. My problem though is that I don't want theswfs to be installed together with the app (a few thousand swfs altogether). I want my AIR App to load a dir full of them and walk through them all and check if they implement a certain interface. I've done all these things, my only problem now is that I cannot cast them in AIR at all which makes the whole thing pointless. You see my problem here right? I need it to load arbitrary swfs from a harddrive or network share (i.e locally through the filesystem) and try to cast them to an interface - throw up a warning or generate a list of swfs that do not conform to the interface and need to be fixed. I guess this cannot be easily done, or perhaps not at all... Could it be possible through a sandbox bridge or something like that? /John 2008/4/24 Ian Thomas [EMAIL PROTECTED]: Hi John, Where are you loading the SWF from? I think I had this problem early on with AIR, and it turned out I was loading from the wrong place. If you load the .swf files from within the AIR app's installed folder, then they are given full rights and you will be able to cast them etc. If you load them from anywhere else, they are placed into a different security sandbox and you won't be able to cast them. This page should help: http://livedocs.adobe.com/flex/3/html/security_6.html (see under URL schemes) Hope that's helpful, Ian On Wed, Apr 23, 2008 at 6:50 PM, John Axel Eriksson [EMAIL PROTECTED] wrote: I'm trying to develop an application using AIR for internal use at our company. Our company uses very advanced actionscript (3.0) on the web, we load for instance several hundred or maybe more swfs sometimes into a parent swf, some that are animated. Recently we decided that we need control over these loaded animated swfs - they need to adhere to an interface so we can stop the animations from the loading application when needed. The animations can be both timeline based and script based. As long as they adhere to the interface (basically play() stop() reset() and the running getter should return true if playing or false if stopped) we should be just fine. The problem is that we need people who don't really know any scripting (designers) to be able to publish these files properly. And I guess a template goes a long way but still... So I thought: Hey there's AIR which have local filesystem access among other things. I could build an AIR App which loads a swf or even a whole dir of swfs and then casts the loaded swfs to IAnimatedItem and throws an error if it cant. It could also include play stop reset buttons to test every loaded swf manually to be sure it works. Nice indeed and simple enough for most people to use... The problem is though that I can't cast loaded swfs in AIR it seems, though I can from a simple swf loading one of these items (but then I lose filesystem dialogs etc which is why I thought of AIR in the first place). In AIR var aim:IAnimatedItem = loader.content as IAnimatedItem; (or loader.contentLoaderInfo.content as IAnimatedItem doesn't matter). aim becomes null. In simple Flash swf: aim becomes IAnimatedItem. if I do this in AIR: var aim:IAnimatedItem = loader.content as IAnimatedItem; if(aim is IAnimatedItem){ trace('is IAnimatedItem'); } else { trace('is NOT IAnimatedItem'); } this traces 'is NOT IAnimatedItem'; ** in simple Flash swf the same traces: 'is IAnimatedItem'; ** Also, doing a describeType in AIR OR Flash swf actually says it DOES implement IAnimatedItem. But, as I said, only in normal flash swfs is it castable to an IAnimatedItem. Why? Does this have something to do with the AIR security model and does anyone know how I can achieve what I want in AIR? /John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] Removing a displayObject by using removeChild()
When you add it i mean ofcourse. Just like you do when removing it. On Apr 24, 2008, at 3:30 PM, ACE Flash wrote: Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert _Flash to flash.display.DisplayObject. Any suggestion? Thanks you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Removing a displayObject by using removeChild()
He ACE, Try casting your string _pValue to a Sprite or MovieClip, because you cannot add a string to the displaylist. Cheers, Sidney On Apr 24, 2008, at 3:30 PM, ACE Flash wrote: Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert _Flash to flash.display.DisplayObject. Any suggestion? Thanks you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Removing a displayObject by using removeChild()
Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert _Flash to flash.display.DisplayObject. Any suggestion? Thanks you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Removing a displayObject by using removeChild()
this line: _pValue = DisplayObject(_+pValue); has the problem you are casting from string to displayObject... you can try something like: createnavigatorButton(pValue:String){ ... _pValue.name = pValue; ... } function removeNavigatorButton( pValue:String ) { ... _pValue = DisplayObject(this.getChildByName(_ + pValue)); this.removeChild(_pValue); ... } On Apr 24, 2008, at 8:30 AM, ACE Flash wrote: Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert _Flash to flash.display.DisplayObject. Any suggestion? Thanks you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Removing a displayObject by using removeChild()
try doing this, it should work: import flash.text.TextField; var _pValue:TextField; function createNavigatorButton( txt:String ) { _pValue = new TextField(); _pValue.text = txt; _pValue.backgroundColor = 0x00; _pValue.x = 60; _pValue.y = 400; addChild( _pValue ); } function removeNavigatorButton( txt:String ) { //_pValue = _+pValue; _pValue.name = txt; var targetToRemove:DisplayObject = this.getChildByName(_pValue.name); trace(getChildIndex( targetToRemove ) ) removeChildAt(getChildIndex( targetToRemove )); } createNavigatorButton( Flash ); removeNavigatorButton( Flash ); On Apr 24, 2008, at 3:48 PM, Andres Garcia wrote: this line: _pValue = DisplayObject(_+pValue); has the problem you are casting from string to displayObject... you can try something like: createnavigatorButton(pValue:String){ ... _pValue.name = pValue; ... } function removeNavigatorButton( pValue:String ) { ... _pValue = DisplayObject(this.getChildByName(_ + pValue)); this.removeChild(_pValue); ... } On Apr 24, 2008, at 8:30 AM, ACE Flash wrote: Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert _Flash to flash.display.DisplayObject. Any suggestion? Thanks you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flex scrollbar skinning
http://tech.groups.yahoo.com/group/flexcoders/ Jason Merrill Bank of America Global Technology Operations LLD eTools Multimedia Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GTO Innovative Learning Blog subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Removing a displayObject by using removeChild()
buddy, It works. :) removeChildAt(getChildIndex( targetToRemove )); should be removeChild @v@ I appreciate that all of your posts in the topic . Thanks ALL! :)) On Thu, Apr 24, 2008 at 10:00 AM, Sidney de Koning [EMAIL PROTECTED] wrote: try doing this, it should work: import flash.text.TextField; var _pValue:TextField; function createNavigatorButton( txt:String ) { _pValue = new TextField(); _pValue.text = txt; _pValue.backgroundColor = 0x00; _pValue.x = 60; _pValue.y = 400; addChild( _pValue ); } function removeNavigatorButton( txt:String ) { //_pValue = _+pValue; _pValue.name = txt; var targetToRemove:DisplayObject = this.getChildByName(_pValue.name); trace(getChildIndex( targetToRemove ) ) removeChildAt(getChildIndex( targetToRemove )); } createNavigatorButton( Flash ); removeNavigatorButton( Flash ); On Apr 24, 2008, at 3:48 PM, Andres Garcia wrote: this line: _pValue = DisplayObject(_+pValue); has the problem you are casting from string to displayObject... you can try something like: createnavigatorButton(pValue:String){ ... _pValue.name = pValue; ... } function removeNavigatorButton( pValue:String ) { ... _pValue = DisplayObject(this.getChildByName(_ + pValue)); this.removeChild(_pValue); ... } On Apr 24, 2008, at 8:30 AM, ACE Flash wrote: Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert _Flash to flash.display.DisplayObject. Any suggestion? Thanks you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Removing a displayObject by using removeChild()
Nice one :) What you do with removeChildAt is that you remove a child at a specific index (number), you get this index by using the getChildIndex ( stringname of displayobject) Cheers, Sid On Apr 24, 2008, at 4:26 PM, ACE Flash wrote: buddy, It works. :) removeChildAt(getChildIndex( targetToRemove )); should be removeChild @v@ I appreciate that all of your posts in the topic . Thanks ALL! :)) On Thu, Apr 24, 2008 at 10:00 AM, Sidney de Koning [EMAIL PROTECTED] wrote: try doing this, it should work: import flash.text.TextField; var _pValue:TextField; function createNavigatorButton( txt:String ) { _pValue = new TextField(); _pValue.text = txt; _pValue.backgroundColor = 0x00; _pValue.x = 60; _pValue.y = 400; addChild( _pValue ); } function removeNavigatorButton( txt:String ) { //_pValue = _+pValue; _pValue.name = txt; var targetToRemove:DisplayObject = this.getChildByName(_pValue.name); trace(getChildIndex( targetToRemove ) ) removeChildAt(getChildIndex( targetToRemove )); } createNavigatorButton( Flash ); removeNavigatorButton( Flash ); On Apr 24, 2008, at 3:48 PM, Andres Garcia wrote: this line: _pValue = DisplayObject(_+pValue); has the problem you are casting from string to displayObject... you can try something like: createnavigatorButton(pValue:String){ ... _pValue.name = pValue; ... } function removeNavigatorButton( pValue:String ) { ... _pValue = DisplayObject(this.getChildByName(_ + pValue)); this.removeChild(_pValue); ... } On Apr 24, 2008, at 8:30 AM, ACE Flash wrote: Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert _Flash to flash.display.DisplayObject. Any suggestion? Thanks you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about the AIR security model...
Hi Peter, It's the first time I've come across sandbox bridging. It's a nifty idea. The Flash documentation for it is here: http://livedocs.adobe.com/flex/3/langref/flash/display/LoaderInfo.html#childSandboxBridge But... unfortunately I think it's backwards for John's problem. It allows a parent SWF to expose properties to a child SWF, rather than the other way around... Ian On Thu, Apr 24, 2008 at 9:58 AM, Peter B [EMAIL PROTECTED] wrote: Could sandbox bridging help here? http://www.adobe.com/devnet/air/ajax/quickstart/sandbox_bridge.html This example descibes loading local HTML files, but the same rules apply... Pete ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Language translation from English to german/russian etc
One time I tried using the Strings Panel for a project and it was one of the worst experiences I had with Flash. For some reason new copies of the XML files kept appearing in different folders in the hard drive, and often old revisions of the XML where opened when switching the language, so I kept loosing my changes. It made me loose much more time than if I had done a new FLA file for each language (which is not good, but at least can be controllled). Once you decide to use them, there is no option to 'disconnect this text field from the Strings panel'. To repair the mess I did a JSFL script that copied the text field characteristics, deleted the original, and created a new one which was not attached to the Strings panel. Maybe I'm the only person who had problems with it, but I thought I would warn before someone decides to base a project on it. Regards, Abe Glen Pike wrote: Hi, Look at the Strings Panel - Window-Other Panels-Strings With this, you can apply ID's to each of your text fields on stage. You then create separate XML files, one for each language, with the ID's and corresponding text, that you can Apply at authoring time. (Check the help in the panel for more info). This seems like the best way to help you with non-actionscript swapping of languages. It's probably a bit late now, but it would have been a good idea to design with translation in mind - you will reduce the amount of problems with translated words screwing up your layout if you have translations in advance... Dave Williamson gave a useful presentation on Localisation Mobilisation at Flash On The Beach. A blog post presentation files are here. Although it's missing his speech, the files have some useful snippets of code and links - especially a useful bit of AS to deal with choosing which font to use and fall backs... http://blog.bittube.com/2007/11/11/flash-on-the-beach-07-presentation-files/ HTH Glen anuj sharma wrote: Hi guys I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage http://www.windowslivetranslator.com/Default.aspx Please let me know if there is any other way too. Any help will be highly appreciated. Thanks a lot. Anuj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about the AIR security model...
I was just doing something similar, using just PHP and jQuery. I scan a folder with swf's, print an array in JavaScript, from JavaScript I iterate through the array calling a function inside validator.swf, which loads an swf it receives as a parameter. Then validator.swf checks the instance names of objects in its stage, looks for classes with that name, and sends the result back to JavaScript, inserting the result into the HTML using jQuery... oops I didn't think it was twisted when I did it =) It could be extended to test if the exported classes implement some methods, or something in that direction. I mention this because with both Air and PHP you have methods to scan folders in the disk, get file sizes, timestamps, etc. Abe Ian Thomas wrote: I was wondering about some sort of bridge - how about a 'loader' swf which you load from outside the AIR security sandbox. Talk to it via LocalConnections - get it to load in swfs for test and report back via LocalConnection. That'd work, but is an ugly hack. However - as far as I can see, you aren't actually writing to disk, are you? So why do you need AIR? Wouldn't an ordinary Flash projector do the job without any of these issues? HTH, Ian On Thu, Apr 24, 2008 at 9:20 AM, John Eriksson [EMAIL PROTECTED] wrote: Yes. I have understood this when doing some research on the subject. My problem though is that I don't want theswfs to be installed together with the app (a few thousand swfs altogether). I want my AIR App to load a dir full of them and walk through them all and check if they implement a certain interface. I've done all these things, my only problem now is that I cannot cast them in AIR at all which makes the whole thing pointless. You see my problem here right? I need it to load arbitrary swfs from a harddrive or network share (i.e locally through the filesystem) and try to cast them to an interface - throw up a warning or generate a list of swfs that do not conform to the interface and need to be fixed. I guess this cannot be easily done, or perhaps not at all... Could it be possible through a sandbox bridge or something like that? /John 2008/4/24 Ian Thomas [EMAIL PROTECTED]: Hi John, Where are you loading the SWF from? I think I had this problem early on with AIR, and it turned out I was loading from the wrong place. If you load the .swf files from within the AIR app's installed folder, then they are given full rights and you will be able to cast them etc. If you load them from anywhere else, they are placed into a different security sandbox and you won't be able to cast them. This page should help: http://livedocs.adobe.com/flex/3/html/security_6.html (see under URL schemes) Hope that's helpful, Ian On Wed, Apr 23, 2008 at 6:50 PM, John Axel Eriksson [EMAIL PROTECTED] wrote: I'm trying to develop an application using AIR for internal use at our company. Our company uses very advanced actionscript (3.0) on the web, we load for instance several hundred or maybe more swfs sometimes into a parent swf, some that are animated. Recently we decided that we need control over these loaded animated swfs - they need to adhere to an interface so we can stop the animations from the loading application when needed. The animations can be both timeline based and script based. As long as they adhere to the interface (basically play() stop() reset() and the running getter should return true if playing or false if stopped) we should be just fine. The problem is that we need people who don't really know any scripting (designers) to be able to publish these files properly. And I guess a template goes a long way but still... So I thought: Hey there's AIR which have local filesystem access among other things. I could build an AIR App which loads a swf or even a whole dir of swfs and then casts the loaded swfs to IAnimatedItem and throws an error if it cant. It could also include play stop reset buttons to test every loaded swf manually to be sure it works. Nice indeed and simple enough for most people to use... The problem is though that I can't cast loaded swfs in AIR it seems, though I can from a simple swf loading one of these items (but then I lose filesystem dialogs etc which is why I thought of AIR in the first place). In AIR var aim:IAnimatedItem = loader.content as IAnimatedItem; (or loader.contentLoaderInfo.content as IAnimatedItem doesn't matter). aim becomes null. In simple Flash swf: aim becomes IAnimatedItem. if I do this in AIR: var aim:IAnimatedItem = loader.content as IAnimatedItem; if(aim is IAnimatedItem){ trace('is IAnimatedItem'); } else { trace('is NOT IAnimatedItem'); } this traces 'is NOT IAnimatedItem'; ** in simple Flash swf the
Re: [Flashcoders] Language translation from English to german/russian etc
Yup - I had much the same problem. In the end we rolled our own solution. Ian On Thu, Apr 24, 2008 at 4:08 PM, Abe Pazos [EMAIL PROTECTED] wrote: One time I tried using the Strings Panel for a project and it was one of the worst experiences I had with Flash. For some reason new copies of the XML files kept appearing in different folders in the hard drive, and often old revisions of the XML where opened when switching the language, so I kept loosing my changes. It made me loose much more time than if I had done a new FLA file for each language (which is not good, but at least can be controllled). Once you decide to use them, there is no option to 'disconnect this text field from the Strings panel'. To repair the mess I did a JSFL script that copied the text field characteristics, deleted the original, and created a new one which was not attached to the Strings panel. Maybe I'm the only person who had problems with it, but I thought I would warn before someone decides to base a project on it. Regards, Abe Glen Pike wrote: Hi, Look at the Strings Panel - Window-Other Panels-Strings With this, you can apply ID's to each of your text fields on stage. You then create separate XML files, one for each language, with the ID's and corresponding text, that you can Apply at authoring time. (Check the help in the panel for more info). This seems like the best way to help you with non-actionscript swapping of languages. It's probably a bit late now, but it would have been a good idea to design with translation in mind - you will reduce the amount of problems with translated words screwing up your layout if you have translations in advance... Dave Williamson gave a useful presentation on Localisation Mobilisation at Flash On The Beach. A blog post presentation files are here. Although it's missing his speech, the files have some useful snippets of code and links - especially a useful bit of AS to deal with choosing which font to use and fall backs... http://blog.bittube.com/2007/11/11/flash-on-the-beach-07-presentation-files/ HTH Glen anuj sharma wrote: Hi guys I came under a scenario where I have 15 User interface screens all in English and they are designed graphically (not using Action Script code at all). Now my requirements is that I need to convert all of those 15 screens to 8 more languages which include russian, german, hebrew , japanese and few more. I need to see how does those screens look with other languages. Does anyone know any plugin where i can just pass those swf files and new swf files came with converted language. Somehow like this webpage http://www.windowslivetranslator.com/Default.aspx Please let me know if there is any other way too. Any help will be highly appreciated. Thanks a lot. Anuj ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash + Air
Does anyone knows the best way to embed Flash into an adobe Air application? The standard way of doing it (using SWFObject, FUO, Adobe AC_R) doesnt seem to work when testing the air applications. I have done some research but nothing substantial that proves the best (or working) method. TIA... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flex scrollbar skinning
I spent most of yesterday fighting with the skinning of the scrollbars. Was a major headache and there doesn't seem like much in the ways of documentation on what you can or cannot do with the skins. Seemed like every other compile had different results. Also, how the heck do you get rid of the white box that appears at the bottom of the vscroll and right of the hscroll bar when both are present If you locate any full documentation on this subject, or if anyone has a link(i can't locate it through google), please share! B. On Wed, Apr 23, 2008 at 5:31 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, I am trying to skin a Scrollbar - using Flex 2.0.1 and am seeing some inconsistent results. I have deliberately made the skins 21px wide as opposed to the standard 16px wide skin images supplied in the flex skins PSD / FLA files - to match a design for the project - as I understand the width of the arrow skins is supposed to force the ScrollBar's width (or height for an HScrollBar) The problem is that Flex is not consistent at applying the layout properly: For my Canvas component - it gets the track width correct, but the arrows are resized to 16px x 16px and the track to 16px wide for VScrollBar HScrollBar For my TextArea - it gets the VScrollBar correct, but TextArea's do not show an HScrollBar methinks... I have a custom component which extends ScrollBase for showing an oversized image - for this Flex gets the VScrollbar dimensions correct for all the elements, but the HScrollbar is drawn the same as the Canvas component. I am guessing this is a bug somewhere - are there any workarounds people can recommend - apart from setting all my skins to the same dimensions as the Flex default ones? Cheers Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flash Math Conceptualizing
Hi All, I have a little dilemma, I have a flash map that needs to be done, I can't really get the idea on how to do the math. I have a small version of the large map. I have to drag a box around the smaller version and use that as my navigation for the bigger version. When I drag the small box around the bigger version displays the area I dragged over from the smaller version. They are both in separate movieClips with different x,y coordinates. This is what I have worked out, but it seems totally hacked. I would like to create a cleaner version, using a much better algorithm. Any good tutorials out there on using the Geom Point class, the documentation is so vague. Help is much needed, thanks. var navViewPosX:Number = -44.8; var navViewPosY:Number = -160.2; var percent:Number = 6.5; function animateView() { var map:MovieClip = this._parent.view.map_mc; // target X,Y var targetX:Number = this.btn._x; var targetY:Number = this.btn._y; // distance between navView and target position on x,y var navViewDX:Number = navViewPosX - targetX; var navViewDY:Number = navViewPosY - targetY; map._x = navViewDX; map._y = (navViewDY*percent); } -- Anthony Cintron Flash || Flex Developer Blog - http://codegasm.blogspot.com/ Portfolio - http://www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] BitmapData and DisplacementMapFilter
Can you guys recommend any books that goes over these classes? with examples.. import flash.geom.Matrix; import flash.filters.DisplacementMapFilter; import flash.display.BitmapData; import flash.geom.Point; there is alot going on there that I gotta learn... especially on how to make a gradient map that affects the image in the way you.. I am away of using red blue etc. but I don't know how to use it to achieve a specfic effect.. like lets say having a pic shrink from left to right as opposed to down/up this guy http://www.5etdemi.com/blog/archives/2006/09/fuse-displacementmapfilter-and-perspective-an-experiment/ _ Express yourself wherever you are. Mobilize! http://www.gowindowslive.com/Mobile/Landing/Messenger/Default.aspx?Locale=en-US?ocid=TAG_APRIL___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RE: Flash Math Conceptualizing
(* indicates emphasis) I'm swamped at the moment, but can help if you are still stuck in a day or two. I have an *unfinished* class exercise that does the *opposite* and I can't help out until at least tomorrow, but it might get you started on the math if no one else has a solution. Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Changing font?
Hi How can i animate a change of font like in this page: http://www.emmawatsonofficial.com/#harry? -- Pedro D.K. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RE: Flash Math Conceptualizing
Oops. Please ignore. This thread. I think this was sent to the wrong list. I used the Reply button, so I'm not sure how this happened. Probably a copy/paste error. Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Changing font?
I think you could, over a given interval, step through each letter in the string, and change the TextFormat. So you could set up a timer or a Tweener.addCaller that calls a function updateListener(). updateListener() could then increment a counter one letter each time it's called, and it would set the TextFormat of the field from 0 to the counter... repeat until you reach the end. -jonathan On Thu, Apr 24, 2008 at 1:49 PM, Pedro Kostelec [EMAIL PROTECTED] wrote: Hi How can i animate a change of font like in this page: http://www.emmawatsonofficial.com/#harry? -- Pedro D.K. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Changing font?
loop setTextFormat() maybe - Original Message - From: Pedro Kostelec [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 24, 2008 11:49 AM Subject: [Flashcoders] Changing font? Hi How can i animate a change of font like in this page: http://www.emmawatsonofficial.com/#harry? -- Pedro D.K. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Math question
How to go from one number to another.. function(x) = y so that x is 0 - 250 - 500 and y is 25 - 50- 75 func(0) = 25 func(250)=50 func(500)=50 How would one find the equation for that...Thats satisfies that..? I'm doing some as and I need to figure out to go from one num to the other num _ In a rush? Get real-time answers with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_realtime_042008___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: [Flash_Tiger] Math question
x/10+25 On Apr 24, 2008, at 4:41 PM, Dwayne Neckles wrote: How to go from one number to another.. function(x) = y so that x is 0 - 250 - 500 and y is 25 - 50- 75 func(0) = 25 func(250)=50 func(500)=50 How would one find the equation for that...Thats satisfies that..? I'm doing some as and I need to figure out to go from one num to the other num __ In a rush? Get real-time answers with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html? ocid=TXT_TAGLM_WL_Refresh_realtime_042008 [Non-text portions of this message have been removed] __._,_.___ Messages in this topic (1)Reply (via web post) | Start a new topic Messages | Files | Photos | Links | Database | Polls | Calendar Flash_Tiger Mailing List Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe RECENT ACTIVITY 7 New Members Visit Your Group Yahoo! Finance It's Now Personal Guides, news, advice more. New web site? Drive traffic now. Get your business on Yahoo! search. John McEnroe on Yahoo! Groups Join him for the 10 Day Challenge. . __,_._,___ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash + Air
What do you mean with: embed Flash into an adobe Air application You want to load an swf? The standard way of doing it (using SWFObject, FUO, Adobe AC_R) doesnt seem to work Standard way of doing what? regards, Muzak - Original Message - From: Helmut Granda [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 24, 2008 4:45 PM Subject: [Flashcoders] Flash + Air Does anyone knows the best way to embed Flash into an adobe Air application? The standard way of doing it (using SWFObject, FUO, Adobe AC_R) doesnt seem to work when testing the air applications. I have done some research but nothing substantial that proves the best (or working) method. TIA... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Changing font?
I guess common loop with setTextFormat would take a lot of cpu, wouldn't it? On Thu, Apr 24, 2008 at 9:28 PM, Gabino Travassos [EMAIL PROTECTED] wrote: loop setTextFormat() maybe - Original Message - From: Pedro Kostelec [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 24, 2008 11:49 AM Subject: [Flashcoders] Changing font? Hi How can i animate a change of font like in this page: http://www.emmawatsonofficial.com/#harry? -- Pedro D.K. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Pedro D.K. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Math question
Hello, Which results do you want to have = 25-50-75 or 25 - 50 - 50 ? In the first case : f(x) = (x/10)+25; In the second cas : f(x) = (x/10)+25 if x 250 else 50 Regards, Cedric On Thu, Apr 24, 2008 at 10:41 PM, Dwayne Neckles [EMAIL PROTECTED] wrote: How to go from one number to another.. function(x) = y so that x is 0 - 250 - 500 and y is 25 - 50- 75 func(0) = 25 func(250)=50 func(500)=50 How would one find the equation for that...Thats satisfies that..? I'm doing some as and I need to figure out to go from one num to the other num _ In a rush? Get real-time answers with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_realtime_042008___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash + Air
Helmut, are you talking about an AIR application made from HTML/javascript? I for one often forget that's even an option. On Thu, Apr 24, 2008 at 5:01 PM, Muzak [EMAIL PROTECTED] wrote: What do you mean with: embed Flash into an adobe Air application You want to load an swf? The standard way of doing it (using SWFObject, FUO, Adobe AC_R) doesnt seem to work Standard way of doing what? regards, Muzak - Original Message - From: Helmut Granda [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 24, 2008 4:45 PM Subject: [Flashcoders] Flash + Air Does anyone knows the best way to embed Flash into an adobe Air application? The standard way of doing it (using SWFObject, FUO, Adobe AC_R) doesnt seem to work when testing the air applications. I have done some research but nothing substantial that proves the best (or working) method. TIA... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] fscommand to trigger a 'window.close' does not work in Firefox (am i missing something?)
fscommand to trigger a 'window.close' does not work in Firefox (am i missing something?) is there a setting in the browser for IE and Firefox that i need to change? Thanks, -Boyd - Original Message - From: I Go Geo [EMAIL PROTECTED] Date: Sunday, April 20, 2008 11:56 am Subject: RE: [Flashcoders] byteArray x/y To: John McCormack [EMAIL PROTECTED], Flash Coders List flashcoders@chattyfig.figleaf.com John, Your latest response (to include the if loop) should get me to where I am going. That was great. A good lesson in stepping back and looking at problem in a fresh way. Thanks, Terry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John McCormack Sent: Thursday, April 17, 2008 4:41 AM To: Flash Coders List Subject: Re: [Flashcoders] byteArray x/y Terry, // in randomize( ) in TileMap.as we have // a value sometimes more than 12... setTile(j, i, (i * numCols) + j); // here ^ // But the original has a value never more than 12 setTile(j, i, Math.floor(Math.random()*numTiles)); // here ^^^ // and this value is passed in as id and stored in map[ ][ ] inside function // setTile(row,col,id ) at Line 32 in TileMap.as map[row][col] = id; // and this is used later to identify the tile to use (1 of 12) in the tiles array // made up of 12 rectangular patches from the original bitmap // Line 28 in TileMap.as public function getTile (id:int):ByteArray { return tiles[id];// returns null if id12 } // BUT, because id12 does not exist then thisTile receives null // in TileMapRenderer line 135 thisTile = tiles.getTile(map.getTile(j, i)); thisTile.position and that causes the breakdown you see Glen is right to point you to this code, it's really useful. The main idea is shown below. It uses getPixels to pick out a rectangle of bytes that get stored in the newTileSet array for using later. // Line 73 in TileSet.as... public function convertBitmapToTiles (size:int, data:BitmapData):Array { var newTileSet:Array = new Array(); var numTilesH:int = data.width/size; var numTilesV:int = data.height/size; for (var i:int = 0; i numTilesV; i++) { for (var j:int = 0; j numTilesH; j++) { newTileSet.push(data.getPixels(new Rectangle(j*size, i*size, size, size))); } } return newTileSet; } John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] 3 month freelance gig in Minneapolis
We (www.learningware.com) are looking for somebody with 3+ years of object-oriented AS2 and significant AS3 experience to work with us. We'll need to meet face-to-face in Minneapolis 2-3 times per week. Please contact me off-list if interested. Thanks! Andrew ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash + Air
Helmut, If I understand it correctly, it depends on usage or type of application that you want to port to AIR. Either you can use it's native local database (if it only deals with local database) or you can use any remoting framework / solution which can communicate server side code. It also depends on what exactly data transactions the application does. Regards, Ashvin Savani CEO Chief Architect, FlashBrain - Division of Avinashi We never give up! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: 24 April 2008 8:15 PM To: Flash Coders List Subject: [Flashcoders] Flash + Air Does anyone knows the best way to embed Flash into an adobe Air application? The standard way of doing it (using SWFObject, FUO, Adobe AC_R) doesnt seem to work when testing the air applications. I have done some research but nothing substantial that proves the best (or working) method. TIA... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders