[Flashcoders] SharedObjects read / write crash
Hi Guys, I am having a problem using SharedObjects on Gentoo - kernel 2.6.29 that does not seem to appear in 2.6.30, but I want to make sure it is not because of some setting on my machine. We run FlashPlayer from the command line, but still seem to be governed by the FlashPlayer settings, which have been applied using the browser and the Settings Panel SWF. Problem is the following code in testPersistence() seems to kill the FlashPlayer with a segfault in one of the libc libraries on my machine. Because we are using cloned disks, I am a bit wary that the settings for FP may be screwed, or a permissions error may be occurring. I just wanted to know if anyone else has seen this at all - I have googled and jira'd but no luck at the moment. Cheers Glen public class Persistence { protected static var _instance:Persistence; public function Persistence() { if (null != _instance) { throw Error(Cannot have more than one instance of Persistence); } _instance = this; } public static function getInstance():Persistence { if (null == _instance) { _instance = new Persistence( ); } return _instance; } public static function saveValue(name:String, value:*):Boolean { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return false; } try { so.data[name] = value; }catch (e:Error) { trace(Persistence::saveValue exception + e); } var res:String = so.flush(); if (SharedObjectFlushStatus.FLUSHED == res) { return true; } else { return false; } } public static function loadValue(name:String):* { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return null; } var value:*; try { value = so.data[name]; } catch (e:Error) { trace(Persistence::loadValue exception + e); } if (undefined == value) { value = null; } return value; } } } function testPersistence():void { try { trace(this, loading persisted value); var testing:Object = Persistence.loadValue(testing); trace(this, loaded value is + testing); trace(this, saving value 123); //The following line triggers a SEGFAULT var result:Boolean = Persistence.saveValue(testing, 123); trace(result + result); } catch (e:Error) { trace(there was an error + e); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] SharedObjects read / write crash
Hello Glen, works fine for me: [SWF] C:\FDT\AS\Tests\Main.swf - 2 947 bytes after decompression [object Main] loading persisted value [object Main] loaded value is 123 [object Main] saving value 123 result true 2010/3/1 Glen Pike g...@engineeredarts.co.uk: Hi Guys, I am having a problem using SharedObjects on Gentoo - kernel 2.6.29 that does not seem to appear in 2.6.30, but I want to make sure it is not because of some setting on my machine. We run FlashPlayer from the command line, but still seem to be governed by the FlashPlayer settings, which have been applied using the browser and the Settings Panel SWF. Problem is the following code in testPersistence() seems to kill the FlashPlayer with a segfault in one of the libc libraries on my machine. Because we are using cloned disks, I am a bit wary that the settings for FP may be screwed, or a permissions error may be occurring. I just wanted to know if anyone else has seen this at all - I have googled and jira'd but no luck at the moment. Cheers Glen public class Persistence { protected static var _instance:Persistence; public function Persistence() { if (null != _instance) { throw Error(Cannot have more than one instance of Persistence); } _instance = this; } public static function getInstance():Persistence { if (null == _instance) { _instance = new Persistence( ); } return _instance; } public static function saveValue(name:String, value:*):Boolean { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return false; } try { so.data[name] = value; }catch (e:Error) { trace(Persistence::saveValue exception + e); } var res:String = so.flush(); if (SharedObjectFlushStatus.FLUSHED == res) { return true; } else { return false; } } public static function loadValue(name:String):* { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return null; } var value:*; try { value = so.data[name]; } catch (e:Error) { trace(Persistence::loadValue exception + e); } if (undefined == value) { value = null; } return value; } } } function testPersistence():void { try { trace(this, loading persisted value); var testing:Object = Persistence.loadValue(testing); trace(this, loaded value is + testing); trace(this, saving value 123); //The following line triggers a SEGFAULT var result:Boolean = Persistence.saveValue(testing, 123); trace(result + result); } catch (e:Error) { trace(there was an error + e); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- iv http://www.bezier.ru http://bezier.googlecode.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] SharedObjects read / write crash
Hi, What OS / Kernel are you using? Thanks Glen Ivan Dembicki wrote: Hello Glen, works fine for me: [SWF] C:\FDT\AS\Tests\Main.swf - 2 947 bytes after decompression [object Main] loading persisted value [object Main] loaded value is 123 [object Main] saving value 123 result true 2010/3/1 Glen Pike g...@engineeredarts.co.uk: Hi Guys, I am having a problem using SharedObjects on Gentoo - kernel 2.6.29 that does not seem to appear in 2.6.30, but I want to make sure it is not because of some setting on my machine. We run FlashPlayer from the command line, but still seem to be governed by the FlashPlayer settings, which have been applied using the browser and the Settings Panel SWF. Problem is the following code in testPersistence() seems to kill the FlashPlayer with a segfault in one of the libc libraries on my machine. Because we are using cloned disks, I am a bit wary that the settings for FP may be screwed, or a permissions error may be occurring. I just wanted to know if anyone else has seen this at all - I have googled and jira'd but no luck at the moment. Cheers Glen public class Persistence { protected static var _instance:Persistence; public function Persistence() { if (null != _instance) { throw Error(Cannot have more than one instance of Persistence); } _instance = this; } public static function getInstance():Persistence { if (null == _instance) { _instance = new Persistence( ); } return _instance; } public static function saveValue(name:String, value:*):Boolean { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return false; } try { so.data[name] = value; }catch (e:Error) { trace(Persistence::saveValue exception + e); } var res:String = so.flush(); if (SharedObjectFlushStatus.FLUSHED == res) { return true; } else { return false; } } public static function loadValue(name:String):* { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return null; } var value:*; try { value = so.data[name]; } catch (e:Error) { trace(Persistence::loadValue exception + e); } if (undefined == value) { value = null; } return value; } } } function testPersistence():void { try { trace(this, loading persisted value); var testing:Object = Persistence.loadValue(testing); trace(this, loaded value is + testing); trace(this, saving value 123); //The following line triggers a SEGFAULT var result:Boolean = Persistence.saveValue(testing, 123); trace(result + result); } catch (e:Error) { trace(there was an error + e); } } ___ 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] Preloader, Pt. 2
On Sat, Feb 27, 2010 at 1:56 PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote: Loader is used to load SWF or images. loader3.load(new URLRequest(index.py)); Is your Python script meant to return SWF/image? If you want to load a data, use URLLoader instead. But I think what you want is to go to another page, if so use navigateToURL(). Yeah, that's what I wanted. Now, I've got my images loading, I've got my page loading after the images load. Good! Unfortunately, I have those images displaying in the preloader, which is not what I want: loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); loader.load(new URLRequest(images/logo.png)); Is there any way to stop that, mask it, reduce the images to 1 pixel * 1 pixel? TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Little direction please
I can't really vouch for it all that much, but I recently posted a question to http://www.jsworkshop.com/bb/ and got a decent response. On Feb 27, 2010, at 12:48 AM, Karl DeSaulniers wrote: Hello, I am not sure if this is a cross post, if it is, I do apologize. Does anyone know of a list like this but for Javascript? If anyone knows of one, I would greatly appreciate it. Thanks, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders David Benman Interactive Developer d...@dbenman.com http://www.dbenman.com (508) 954-1202 (cell) (315) 637-8487 (home office) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloader, Pt. 2
Victor Subervi wrote: Is there any way to stop that, mask it, reduce the images to 1 pixel * 1 pixel? The most obvious solution would to not addChild them or their loaders to the wrong object. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] DoubleClick AS2 swc/library
hey guys does anyone know if DoubleClick have an AS2 library so that I can use it to write a class in flashdevelop? thanks a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] SharedObjects read / write crash
Yep, it was a permissions issue with the .macromedia folders - made FlashPlayer segfault when it tries to save to disk. The valgrind log for FlashPlayer is full of nasties though ;) Ivan Dembicki wrote: Hello Glen, works fine for me: [SWF] C:\FDT\AS\Tests\Main.swf - 2 947 bytes after decompression [object Main] loading persisted value [object Main] loaded value is 123 [object Main] saving value 123 result true 2010/3/1 Glen Pike g...@engineeredarts.co.uk: Hi Guys, I am having a problem using SharedObjects on Gentoo - kernel 2.6.29 that does not seem to appear in 2.6.30, but I want to make sure it is not because of some setting on my machine. We run FlashPlayer from the command line, but still seem to be governed by the FlashPlayer settings, which have been applied using the browser and the Settings Panel SWF. Problem is the following code in testPersistence() seems to kill the FlashPlayer with a segfault in one of the libc libraries on my machine. Because we are using cloned disks, I am a bit wary that the settings for FP may be screwed, or a permissions error may be occurring. I just wanted to know if anyone else has seen this at all - I have googled and jira'd but no luck at the moment. Cheers Glen public class Persistence { protected static var _instance:Persistence; public function Persistence() { if (null != _instance) { throw Error(Cannot have more than one instance of Persistence); } _instance = this; } public static function getInstance():Persistence { if (null == _instance) { _instance = new Persistence( ); } return _instance; } public static function saveValue(name:String, value:*):Boolean { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return false; } try { so.data[name] = value; }catch (e:Error) { trace(Persistence::saveValue exception + e); } var res:String = so.flush(); if (SharedObjectFlushStatus.FLUSHED == res) { return true; } else { return false; } } public static function loadValue(name:String):* { var so:SharedObject = SharedObject.getLocal(interface_app); if (null == so) { return null; } var value:*; try { value = so.data[name]; } catch (e:Error) { trace(Persistence::loadValue exception + e); } if (undefined == value) { value = null; } return value; } } } function testPersistence():void { try { trace(this, loading persisted value); var testing:Object = Persistence.loadValue(testing); trace(this, loaded value is + testing); trace(this, saving value 123); //The following line triggers a SEGFAULT var result:Boolean = Persistence.saveValue(testing, 123); trace(result + result); } catch (e:Error) { trace(there was an error + e); } } ___ 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] (no subject)
Thanks Paul, Sorry for forgetting the subject line. Won't happen again ;-) You're right about the Object as an Array I guess I can just create an associative array instead of an object, althoug Moock states that both approaches are common practice. I solved (or rather circumvented) my problem by comparing the names of myObj and the item clicked Your idea was nice, but it didn't solve my problem. Maybe I wasn't clear enough, but I have a lot of 'myArray''s and I need to know which property 'select' to set when clicking an item - the 'select' that is in the same array as the item clicked on. The theoretical problem remains: myArray knows it contains item1 but does item1 have a way of knowing it is part of myArray? thanks Willem van den Goorbergh On 26-feb-2010, at 18:39, Paul Andrews wrote: Geografiek wrote: Hi list, Suppose I have an associative array like this: var myArray:Object = new Object(); myArray.item1 = item1; myArray.item2 = item2; myArray.selected = false; var myObj:Object = new Object(); myObj.itemGroup=[]; myObj.itemGroup.push( item1); myObj.itemGroup.push( item2); myObj.selected = false; item1.addEventListener(MouseEvent.CLICK, onClick); item2.addEventListener(MouseEvent.CLICK, onClick); function onClick(e:Event):void { for (var idx:uint=0; idxmyObj.length; idx++){ if (myobj.selected){ myObj.itemGroup[idx].alpha=1; } else { myObj.itemGroup[idx].alpha=1; } } I don't like calling objects Arrays, though I understand your usage.. What happened to the subject line.. ? Paul item1 and item2 are 2 mc's living on the stage. Selected is a newly created property on myArray. Now I want to change myArray.selected by clicking on one of both item and change the appearance of both items based on the value of myArray.selected. Is this possible? In other words: myArray knows it contains item1 but does item1 have a way of knowing it is part of myArray. Thanks, Willem van den Goorbergh =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ 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 =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] (no subject)
You're just on the verge of breaking into a coding architecture question here, which is good. My suggestion to avoid this issue is to get away from generic objects as you are doing here and define everything as a class. class MySpecialClass extends MovieClip So you'll never ever use new Object(). You'll use new MySpecialClass() instead. Then, you'll want to start thinking in terms of a design pattern - even just a very simplified version of MVC. For example, have a data class that manipulares data (i.e. a Model class) - have a view class that checks what the value is, and changes the MySpecialClass instances accordingly. How to make that happen? Have a controller class listen to those instances for when they are clicked on, and when they are, get the value from the model, and tell the MySpecialClass instances to change visually. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Geografiek Sent: Friday, February 26, 2010 12:12 PM To: Flash Coders List Subject: [Flashcoders] (no subject) Hi list, Suppose I have an associative array like this: var myArray:Object = new Object(); myArray.item1 = item1; myArray.item2 = item2; myArray.selected = false; item1 and item2 are 2 mc's living on the stage. Selected is a newly created property on myArray. Now I want to change myArray.selected by clicking on one of both item and change the appearance of both items based on the value of myArray.selected. Is this possible? In other words: myArray knows it contains item1 but does item1 have a way of knowing it is part of myArray. Thanks, Willem van den Goorbergh =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ 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] Extra White Space in Flash Movie
Hi; I guess you all think I'm a pariah because nobody responded to my last post weeks ago, but I sure hope you're willing to help me one last time then I'll go away and leave you all alone. Please go here: http://globalsolutionsgroup.vi/index.py I've had to do all sorts of bizarre css stuff to this all of a sudden. It was working flawlessly the other day. Forget the splash page. It works fine. I've had to position the banner swf using a negative valign so that it appears on top. I've had to do the same with the iframe, but when I do I discover that there's some extra white space that appears to be attached to or under the swf banner which blocks the iframe. Now, even if I set the z-index of the iframe to the highest position this still happens. Remove the swf banner and it no white space. What in tarnation is going on here??? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Extra White Space in Flash Movie
Never mind. I figured it out. beno On Mon, Mar 1, 2010 at 12:40 PM, beno - flashmeb...@gmail.com wrote: Hi; I guess you all think I'm a pariah because nobody responded to my last post weeks ago, but I sure hope you're willing to help me one last time then I'll go away and leave you all alone. Please go here: http://globalsolutionsgroup.vi/index.py I've had to do all sorts of bizarre css stuff to this all of a sudden. It was working flawlessly the other day. Forget the splash page. It works fine. I've had to position the banner swf using a negative valign so that it appears on top. I've had to do the same with the iframe, but when I do I discover that there's some extra white space that appears to be attached to or under the swf banner which blocks the iframe. Now, even if I set the z-index of the iframe to the highest position this still happens. Remove the swf banner and it no white space. What in tarnation is going on here??? TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Masking w/ AS3
Hi; I have the following code: function roundNavRect() { var roundRect:Sprite = new Sprite(); roundRect.graphics.beginFill(0x33030b); roundRect.graphics.drawRoundRect(20, 20, 300, 660, 20, 20); roundRect.graphics.endFill(); addChild(roundRect); var rect:Sprite = new Sprite(); rect.graphics.beginFill(0x70081a); rect.graphics.drawRect(20, 20, 300, 660); rect.graphics.endFill(); roundRect.addChild(rect); TweenLite.to(rect, 1, {y:-760}); } I'd like rect to be nested within :roundNavRect such that the latter acts as a mask. Unfortunately, it's not doing that. How do I do that? TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Masking w/ AS3
Hi Susan, when scripting a masc, you need to define it as a masc: roundRect.mask = rect; addChild(rect); Beatrix Susan Day schrieb: Hi; I have the following code: function roundNavRect() { var roundRect:Sprite = new Sprite(); roundRect.graphics.beginFill(0x33030b); roundRect.graphics.drawRoundRect(20, 20, 300, 660, 20, 20); roundRect.graphics.endFill(); addChild(roundRect); var rect:Sprite = new Sprite(); rect.graphics.beginFill(0x70081a); rect.graphics.drawRect(20, 20, 300, 660); rect.graphics.endFill(); roundRect.addChild(rect); TweenLite.to(rect, 1, {y:-760}); } I'd like rect to be nested within :roundNavRect such that the latter acts as a mask. Unfortunately, it's not doing that. How do I do that? TIA, Susan ___ 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] Masking w/ AS3
2010/3/1 Beatrix Krümmer-Frau birik...@hotmail.de Hi Susan, when scripting a masc, you need to define it as a masc: roundRect.mask = rect; addChild(rect); Thanks! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] (no subject)
Geografiek wrote: The theoretical problem remains: myArray knows it contains item1 but does item1 have a way of knowing it is part of myArray? The thing is, it is not. The array only holds a reference to the object. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] addEventListener Problem
Hi; I have the following code: function DisplayPicLoaded(evt:Event):void { var container:Sprite = new Sprite(); var myXArray:Array = new Array(10,176,342,508,674,840); var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; displayObject.x = myXArray[countRounds]; displayObject.y = 10; displayObject.filters = [createBevel()]; container.addChild(displayObject); addChild(container); navPics.push(displayObject); container.addEventListener(MouseEvent.CLICK, NavToURL); if (countRounds 5) { countRounds++; init(); } } function navToURL(e:Event):void { e.currentTarget.removeEventListener(MouseEvent.CLICK, navToURL); trace(e.currentTarget); trace('hi'); } It throws the following error: 1120: Access to undefined property NavToURL Why? What do? TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] addEventListener Problem
1120: Access to undefined property NavToURL Today's show was brought to you by the capital letter N vs. the lower-case letter n. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] addEventListener Problem
You made a typo: container.addEventListener(MouseEvent.CLICK, NavToURL); must be: container.addEventListener(MouseEvent.CLICK, navToURL); //lowercase nav -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Susan Day Sent: maandag 1 maart 2010 19:50 To: Flash Coders List Subject: [Flashcoders] addEventListener Problem Hi; I have the following code: function DisplayPicLoaded(evt:Event):void { var container:Sprite = new Sprite(); var myXArray:Array = new Array(10,176,342,508,674,840); var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; displayObject.x = myXArray[countRounds]; displayObject.y = 10; displayObject.filters = [createBevel()]; container.addChild(displayObject); addChild(container); navPics.push(displayObject); container.addEventListener(MouseEvent.CLICK, NavToURL); if (countRounds 5) { countRounds++; init(); } } function navToURL(e:Event):void { e.currentTarget.removeEventListener(MouseEvent.CLICK, navToURL); trace(e.currentTarget); trace('hi'); } It throws the following error: 1120: Access to undefined property NavToURL Why? What do? TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2716 - Release Date: 03/01/10 08:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] addEventListener Problem
Flash is case-sensitive. Looks like your NavToURL in your addEventListener call should really be navToURL --T On Mon, Mar 1, 2010 at 10:50 AM, Susan Day suzieprogram...@gmail.comwrote: Hi; I have the following code: function DisplayPicLoaded(evt:Event):void { var container:Sprite = new Sprite(); var myXArray:Array = new Array(10,176,342,508,674,840); var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; displayObject.x = myXArray[countRounds]; displayObject.y = 10; displayObject.filters = [createBevel()]; container.addChild(displayObject); addChild(container); navPics.push(displayObject); container.addEventListener(MouseEvent.CLICK, NavToURL); if (countRounds 5) { countRounds++; init(); } } function navToURL(e:Event):void { e.currentTarget.removeEventListener(MouseEvent.CLICK, navToURL); trace(e.currentTarget); trace('hi'); } It throws the following error: 1120: Access to undefined property NavToURL Why? What do? TIA, Susan ___ 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] addEventListener Problem
Did you check the spelling? 1120: Access to undefined property NavToURL - navToURL() Susan Day schrieb: Hi; I have the following code: function DisplayPicLoaded(evt:Event):void { var container:Sprite = new Sprite(); var myXArray:Array = new Array(10,176,342,508,674,840); var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; displayObject.x = myXArray[countRounds]; displayObject.y = 10; displayObject.filters = [createBevel()]; container.addChild(displayObject); addChild(container); navPics.push(displayObject); container.addEventListener(MouseEvent.CLICK, NavToURL); if (countRounds 5) { countRounds++; init(); } } function navToURL(e:Event):void { e.currentTarget.removeEventListener(MouseEvent.CLICK, navToURL); trace(e.currentTarget); trace('hi'); } It throws the following error: 1120: Access to undefined property NavToURL Why? What do? TIA, Susan ___ 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] addEventListener Problem
Change your function to this: function navToURL(e:Event):void { trace(e.currentTarget); trace('hi'); } --Original Message-- From: Susan Day Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] addEventListener Problem Sent: Mar 1, 2010 12:50 PM Hi; I have the following code: function DisplayPicLoaded(evt:Event):void { var container:Sprite = new Sprite(); var myXArray:Array = new Array(10,176,342,508,674,840); var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 150; displayObject.height = 150; displayObject.x = myXArray[countRounds]; displayObject.y = 10; displayObject.filters = [createBevel()]; container.addChild(displayObject); addChild(container); navPics.push(displayObject); container.addEventListener(MouseEvent.CLICK, NavToURL); if (countRounds 5) { countRounds++; init(); } } function navToURL(e:Event):void { e.currentTarget.removeEventListener(MouseEvent.CLICK, navToURL); trace(e.currentTarget); trace('hi'); } It throws the following error: 1120: Access to undefined property NavToURL Why? What do? TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Local Storage Flash Player Settings alert
On his Mac under Safari, my boss is getting an Adobe Flash Player Settings alert regarding Local Storage whenever my application tries to access a SharedObject.getLocal(). I've never seen this in my own testing, and I'm using the same code that I've used in other projects and he's never reported this before. Any idea what's wrong here? We really don't want customers to get this alert. It's very tacky. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Local Storage Flash Player Settings alert
Has the data grown excessively large? Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Sinning Sent: Monday, March 01, 2010 2:51 PM To: Flash Coders Subject: [Flashcoders] Local Storage Flash Player Settings alert On his Mac under Safari, my boss is getting an Adobe Flash Player Settings alert regarding Local Storage whenever my application tries to access a SharedObject.getLocal(). I've never seen this in my own testing, and I'm using the same code that I've used in other projects and he's never reported this before. Any idea what's wrong here? We really don't want customers to get this alert. It's very tacky. ___ 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] Local Storage Flash Player Settings alert
It's possible to have your player configured so that NO local storage is allowed. Have him right click, choose settings... click on third tab and see what the settings for local storage permissions slider is set to. Within your own app, iIt may be possible to test for permission before calling your function, and then instruct the user from there... but I don't remember specifics. -jonathan On Mon, Mar 1, 2010 at 2:54 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Has the data grown excessively large? Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Sinning Sent: Monday, March 01, 2010 2:51 PM To: Flash Coders Subject: [Flashcoders] Local Storage Flash Player Settings alert On his Mac under Safari, my boss is getting an Adobe Flash Player Settings alert regarding Local Storage whenever my application tries to access a SharedObject.getLocal(). I've never seen this in my own testing, and I'm using the same code that I've used in other projects and he's never reported this before. Any idea what's wrong here? We really don't want customers to get this alert. It's very tacky. ___ 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 -- -jonathan howe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DoubleClick AS2 swc/library
If you have a SWC, you should have the file. Open the SWC using something that can look at pkzip format files. Extract the .ASI file that is the class you are interfacing. Assume you know where the file needs to be located for use by FlashDevelop. Jim --- On Mon, 3/1/10, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: From: allandt bik-elliott (thefieldcomic.com) alla...@gmail.com Subject: [Flashcoders] DoubleClick AS2 swc/library To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Monday, March 1, 2010, 9:36 AM hey guys does anyone know if DoubleClick have an AS2 library so that I can use it to write a class in flashdevelop? thanks a ___ 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] Local Storage Flash Player Settings alert
jonathan howe wrote: Within your own app, iIt may be possible to test for permission before calling your function, and then instruct the user from there... but I don't remember specifics. There is no way to check for this prior to flushing the object to disk. You have to actually try to do it before you can tell if it is allowed or not. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] FlashLite, NetConnection and AMF
Hi, I'm having problem using AMF0 with Flashlite 3.0. I have webserver from which I take serialized AMF with NetConnection, and it works (not perfectly though...) The main problem is that, when i get result object with flash lite, it shows that it is undefined, but the object have all properties and data that it should have. for example: flash lite 3.0 version: trace(resultAMFObject == undefined) // true trace(resultAMFObject instanceof Object) // false; flash player: trace(resultAMFObject == undefined) // false trace(resultAMFObject instanceof Object) // true; I can solve this problem, by registering classes, but I want to avoid that, because i need as much performance as possible, and all i need is pure data. -- best regards, Mindaugas Vinkelis ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders