RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2
I can't go through all of your info, but just off the top of my head what is the size of the image you are trying to load? Is it larger than the 2880 x 2880 pixel limit? JASON VAN PELT • SENIOR INTERACTIVE DEVELOPER PETER A MAYER ADVERTISING 324 CAMP ST • NEW ORLEANS, LA 70130 TEL 504-210-1232 • FAX 504-529-4431 vanpe...@peteramayer.com • WWW.PETERAMAYER.COM - PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself confidentially notified that this email and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender with a reply email-confidentially, of course-and destroy all copies. And, just between you and us, any dissemination by a person other than the intended recipient is unauthorized and may be illegal. - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 - SWFAddress - problem linking to /
This does happen in swfaddress -- in the setValue method: if (SWFAddress._value == value) return; Which makes it all the more odd to me that it would go home (using /) twice. JASON VAN PELT • SENIOR INTERACTIVE DEVELOPER PETER A MAYER ADVERTISING 324 CAMP ST • NEW ORLEANS, LA 70130 TEL 504-210-1232 • FAX 504-529-4431 [EMAIL PROTECTED] • WWW.PETERAMAYER.COM There are 5 conditions in dealing with deep links and swfaddress seems to only have focused on one. Internally you need to evaluate your condition (previous location vs. new location) and communicate (or not at all) with swfaddress accordingly. One of those conditions is starting at home, another is returning to home. On Thu, Nov 6, 2008 at 9:40 PM, sebastian [EMAIL PROTECTED] wrote: Hi I had this issue a couple of years ago too. It's hard for me to remember exactly, but I believe that I changed the onChange function to simply set a variable with the page name, instead of calling the page event immediately -- and then used a different event to read the set variable when it was time to load the first page; which made the two differentiated and thus no longer co-dependent and eliminated the double loading... hope you could follow that! :P S. Jason Van Pelt wrote: Hello all, I'm using swfaddress and puremvc on a site that is about 90% done. Everything works well in the Flash IDE and in the browser with one exception -- I have a home button that navigates to / using swfaddress. However, ONLY in the browser the SWFAddressEvent is fired twice. If I replace / with /home, this works fine. In the SWFAddressProxy class: public function requestURI(uri:String):void{ if (ExternalInterface.available) { SWFAddress.setValue(uri); } else { setTargetURI(uri); } } private function onAddressChange(e:SWFAddressEvent):void{ setTargetURI(e.value); } private function setTargetURI(uri:String):void{ var addressObj:Object = {viewComponent:this.viewComponent, pageName:uri}; sendNotification(ApplicationFacade.DISPLAY_VIEW, addressObj); } In the NavManager class: switch (url){ case /: // gets called twice?? case /home: // works fine case /home/:// works fine mediatorName = HomeMediator.NAME; break; } Using /home isn't a totally unacceptable solution, but it makes a difference in how the url displays in the browser's address bar... which is the whole point. Has anyone else noticed any issues with using / with swfaddress? JASON VAN PELT • SENIOR INTERACTIVE DEVELOPER PETER A MAYER ADVERTISING 324 CAMP ST • NEW ORLEANS, LA 70130 TEL 504-210-1232 • FAX 504-529-4431 [EMAIL PROTECTED] • WWW.PETERAMAYER.COM - PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself confidentially notified that this email and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender with a reply email-confidentially, of course-and destroy all copies. And, just between you and us, any dissemination by a person other than the intended recipient is unauthorized and may be illegal. - ___ 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 -- --Joel ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders - PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself confidentially notified that this email and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender with a reply email-confidentially, of course-and destroy all copies. And, just between you and us, any dissemination by a person other than the intended recipient
Re: [Flashcoders] AS3 - SWFAddress - problem linking to /
Ok, I think I've found the answer in the javascript... if you're using the readable version of SWFAddress 2.1 In... this.setValue = function(value) { the line if (value == '/') value = ''; changes the slash to an empty string. I presume what's happening is the value gets changed on the flash side to /, then it calls the js to change the value in the browser. Then the javascript tries to update the flash, but now the values don't match, as flash is set to / and the js is set to . I don't seem to have any problems simply commenting out that line in the javascript. I'll send an update if it turns out I'm wrong. JASON VAN PELT • SENIOR INTERACTIVE DEVELOPER PETER A MAYER ADVERTISING 324 CAMP ST • NEW ORLEANS, LA 70130 TEL 504-210-1232 • FAX 504-529-4431 [EMAIL PROTECTED] • WWW.PETERAMAYER.COM Sorry it's been a while since I messed with it. If I remember correctly, the javascript tries to start things off when flash should be the only one initializing anything. I rigged swfaddress into a PureMVC page a while back and it took some serious hacking to get it to leave the home page alone. I wish I had time to dig through and figure out what I did but it was a matter of having flash ignore the javascript inits completely and not broadcasting anything in a dead start condition (I think the value is home vs. /home), then having flash make the decision based on the current hash. Good luck and hopefully soon I'll be able to write up a good blog tutorial. On Fri, Nov 7, 2008 at 2:15 PM, Jason Van Pelt [EMAIL PROTECTED]wrote: This does happen in swfaddress -- in the setValue method: if (SWFAddress._value == value) return; Which makes it all the more odd to me that it would go home (using /) twice. JASON VAN PELT • SENIOR INTERACTIVE DEVELOPER PETER A MAYER ADVERTISING 324 CAMP ST • NEW ORLEANS, LA 70130 TEL 504-210-1232 • FAX 504-529-4431 [EMAIL PROTECTED] • WWW.PETERAMAYER.COM There are 5 conditions in dealing with deep links and swfaddress seems to only have focused on one. Internally you need to evaluate your condition (previous location vs. new location) and communicate (or not at all) with swfaddress accordingly. One of those conditions is starting at home, another is returning to home. On Thu, Nov 6, 2008 at 9:40 PM, sebastian [EMAIL PROTECTED] wrote: Hi I had this issue a couple of years ago too. It's hard for me to remember exactly, but I believe that I changed the onChange function to simply set a variable with the page name, instead of calling the page event immediately -- and then used a different event to read the set variable when it was time to load the first page; which made the two differentiated and thus no longer co-dependent and eliminated the double loading... hope you could follow that! :P S. Jason Van Pelt wrote: Hello all, I'm using swfaddress and puremvc on a site that is about 90% done. Everything works well in the Flash IDE and in the browser with one exception -- I have a home button that navigates to / using swfaddress. However, ONLY in the browser the SWFAddressEvent is fired twice. If I replace / with /home, this works fine. In the SWFAddressProxy class: public function requestURI(uri:String):void{ if (ExternalInterface.available) { SWFAddress.setValue(uri); } else { setTargetURI(uri); } } private function onAddressChange(e:SWFAddressEvent):void{ setTargetURI(e.value); } private function setTargetURI(uri:String):void{ var addressObj:Object = {viewComponent:this.viewComponent, pageName:uri}; sendNotification(ApplicationFacade.DISPLAY_VIEW, addressObj); } In the NavManager class: switch (url){ case /: // gets called twice?? case /home: // works fine case /home/:// works fine mediatorName = HomeMediator.NAME; break; } Using /home isn't a totally unacceptable solution, but it makes a difference in how the url displays in the browser's address bar... which is the whole point. Has anyone else noticed any issues with using / with swfaddress? JASON VAN PELT • SENIOR INTERACTIVE DEVELOPER PETER A MAYER ADVERTISING 324 CAMP ST • NEW ORLEANS, LA 70130 TEL 504-210-1232 • FAX 504-529-4431 [EMAIL PROTECTED] • WWW.PETERAMAYER.COM - PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself
[Flashcoders] AS3 - SWFAddress - problem linking to /
Hello all, I'm using swfaddress and puremvc on a site that is about 90% done. Everything works well in the Flash IDE and in the browser with one exception -- I have a home button that navigates to / using swfaddress. However, ONLY in the browser the SWFAddressEvent is fired twice. If I replace / with /home, this works fine. In the SWFAddressProxy class: public function requestURI(uri:String):void{ if (ExternalInterface.available) { SWFAddress.setValue(uri); } else { setTargetURI(uri); } } private function onAddressChange(e:SWFAddressEvent):void{ setTargetURI(e.value); } private function setTargetURI(uri:String):void{ var addressObj:Object = {viewComponent:this.viewComponent, pageName:uri}; sendNotification(ApplicationFacade.DISPLAY_VIEW, addressObj); } In the NavManager class: switch (url){ case /: // gets called twice?? case /home: // works fine case /home/:// works fine mediatorName = HomeMediator.NAME; break; } Using /home isn't a totally unacceptable solution, but it makes a difference in how the url displays in the browser's address bar... which is the whole point. Has anyone else noticed any issues with using / with swfaddress? JASON VAN PELT • SENIOR INTERACTIVE DEVELOPER PETER A MAYER ADVERTISING 324 CAMP ST • NEW ORLEANS, LA 70130 TEL 504-210-1232 • FAX 504-529-4431 [EMAIL PROTECTED] • WWW.PETERAMAYER.COM - PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself confidentially notified that this email and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender with a reply email-confidentially, of course-and destroy all copies. And, just between you and us, any dissemination by a person other than the intended recipient is unauthorized and may be illegal. - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] The Charges Against ActionScript 3.0
The negative side to creating a flash without the as3 application is that many of us grew up with Flash and used it as a way to learn to be developers. I think Colin's point isn't to provide a basic app to basic users, necessarily, but to make the point of entry easy for new users -- as it was for us. I started in version 3! :-) Jason Van Pelt Senior Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] FOAM physics engine
Does anyone have any experience using FOAM on more than just a surface level? I'm buiding an app using DisplayObjectFoamRenderer from Drew's (the author's) Rocket example @ http://blog.generalrelativity.org/?p=21. I can attach bitmaps with no problem, but I can not figure out a way to get a reference to the DisplayObject back from the renderer later in my program. Anyone? Feel free to respond off-list. Thanks, Jason Van Pelt Senior Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash animations Slow on IE7
Are you sure you're running the same flash player version in IE7? Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com - Original Message From: maurice sallave [EMAIL PROTECTED] To: Flashcoders@chattyfig.figleaf.com Sent: Thursday, June 5, 2008 2:00:44 PM Subject: [Flashcoders] flash animations Slow on IE7 Sorry if this has been asked before, but is there a reason why my animations are running slow on IE7? I'm currently developing on a PC running player 9 and all the other browsers, FF and even Safari, are running fine. Thanks for any help. ___ 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] bitmapdata animation resources
Can anyone recommendt good resources (websites and/or books) for animating with bitmapdata? Thanks, Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Why do you compile with the Flash IDE?
I use Flash Develop (and formerly Sepy) to write all of my code, but I use the Flash IDE to create library assets and compile swfs. A lot of the work that I do in Flash centers around writing code to build screens or pages created by the designers. I find that, although it's not perfect, I use Flash's Import PSD functionality quite a bit to bring graphics into Flash and create a library of graphic objects. I don't do any timeline code; all of my swfs are one-frame, blank stage affairs with everything built in classes as it should be. But I have found that recreating the screens in the Flash IDE helps provide a frame of reference for x y positioning etc when I'm attaching graphics to the stage in my code. That being said, I am also interested in moving to a work flow that doesn't require the Flash IDE as much -- and even posted a question to the list asking how others are handling this. Anecdotally, those of you that are seeing very long compile times in the Flash IDE, are you on mac or pc? I work on both and find that the mac generally takes 4 times as long to compile a swf at a minimum. Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Data merging problem
This is untested so it may need a bit of tweaking, but you could do something like this: // for each item in the array for(var i = 0; i workData.length; i++){ // compare to all other array elements for(var j = 0; j workData.length; j++){ // do your comparison(s), making sure not to compare to itself if(workData[i].pm == workData[j].pm i != j){ // overwrite the propeties of the first element with the properties of the second for(var props in workData[i]){ workData[i][props] = workData[j][props]; } workData.splice(1,j); } } } Things to consider-- Will all elements in your array have the same properties? Do you need more logic involved in figuring out which properties should be the ones to keep? Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] tracking solution for standalone projector
I'm creating a kiosk (using as3) to run as a standalone projector. We'd like to track user-interaction if possible, but all tracking solutions i've used in the past (web trends, omniture, google analytics) rely on javascript calls. Can anyone recommend anything that would work without javascript? The kiosk will have an internet connection, but we need any server communication to be hidden from the user. thanks in advance, Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [AS2] Warning: broadcastMessage is not a function
In AS2 you could use broadcastMessage similar to the way you use dispatchEvent in AS3, but you have to import the classes, set up the listeners, and I think alter the prototype of the class broadcasting the message. In sepy I had a snippet set up for adding broadcasting to a class. Here are its contents, you can check your file to see if it is following a similar construct: // at top import mx.transitions.BroadcasterMX; import mx.transitions.OnEnterFrameBeacon; // in vars static var __initBroadcaster = BroadcasterMX.initialize (ClassName.prototype, true); public var addListener:Function; public var removeListener:Function; public var broadcastMessage:Function; private var _listeners:Array; /* * remember to add vars for any call back functions ie: * * public var onComplete:Function; * */ // in constructor this._listeners = []; this.addListener(this); // broadcastMessage(onComplete,args); Bear in mind that you can add other classes, etc as listeners. The use outlined above would allow you to do something like: var bla = new ClassName(); bla.onComplete = function(){ // trace(onComplete); } Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing loaded content variables
Also, I think you may want to use Event.INIT instead of Event.COMPLETE Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com e.target.content Kenneth Kawamoto http://www.materiaprima.co.uk/ Omar Fouad wrote: Hi list, I am loading an swf that contains two MovieClips into an AS3 Project, B1 and B2. in the fist (and only) frame of the swf loaded I added: B1.Pid = 1; B2.Pid = 2; Now I would like to access that property from the class wich loads that SWF here is the code I used: public function getMap(link:String):void { var ldr:Loader = new Loader(); var urlReq:URLRequest = new URLRequest(Maps/ + link); ldr.load(urlReq); Map_Container.addChild(ldr); ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, getProject); } public function getProject(e:Event):void { trace(Movie Loaded); // works trace(ldr.B1.Pid); //undefined. } How can I access it? In AS2 I used to write the name of the container like: container.MC.property; But how in AS3? Thanks. ___ 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] movement
Are you on a mac? I've had lots of problems with swfs playing back slowly on macs, but fine on pcs. Otherwise, macs just work. ;-) Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. I have a mc I am moving via AS - it moves at a fine pace in the player inside flash - but when I view it via the browser, it really slows down... why would this happen? ted ___ 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] Tweening Engines for AS3
I've used Fuse a great deal in AS2, and both Tweenlite and Tweener in AS2/3. I tend to stick with tweener primarily for the beziers. I think adding even a hint of a curve when moving from A to B makes a movement look much more natural. I'm wondering, though, if anyone on the list has gotten into GO(ASAP) at all? I'm very curious about it, but I don't know how involved I want to get in rolling my own when there are already tweening engines out there that are usable. I've also seen no mention of Boostworthy. I personally don't care for the syntax. Is this the general concensus? Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] to mac or not to mac
Does disabling UAC make the OS any faster, or just less annoying? I personally work on mac and pc (win xp) and I find the flash interface on the mac intolerably slow. I tend to develop on the pc and export the final swfs (with the designer's fonts ;-) ) on the mac. Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 workflow - attachMovie migration
Hello all, this is a more general question about how people are organizing their display code, particularly where attachMovie used to be used in AS2. My UI code basically centered on three things: a list of attachMovie() calls to attach and position graphic elements, event handling for interactive elements, and finally tweening everything into place. In AS2 my swfs were always blank, one-frame affairs that built everything dynamically. I would like to stay within this same framework, but I'm not necessarily trying to replicate my AS2 methods. I would like to maintain my habit of keeping everything OFF of the timeline. Using libraries is slightly different now-- obviously better in many respects -- in that everything is its own object. But attaching library objects to the display list is a bit more tedious and I'm considering the best approach for my UI building scripts. Any insights into others' workflow habits would be great. Thanks! Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] timeline creating Tween objects from MCs
Hello all, We're creating some rather complex timeline-based animations for a project i'm working on and I have run into an odd problem. All of my assets are on their own layer, and they are all movieclips. However, when tweening some of the movieclips, Flash is creating Tween 1, Tween 2... graphics as if they were not already symbols. It does not appear to be random, as it only seems to happen with two of my elements -- but there is nothing different about those elements from any other. Has anyone else come across this, with Flash creating Tween symbols out of elements that are _already_ symbols? My only resolution is to go in and swap the Tween symbol back to the right symbol, place it where it is supposed to go, and give it back it's correct instance name on EVERY keyframe. Please email me directly if you have any insights... I get daily digests from this list. Thanks in advance, Jason Van Pelt Interactive Developer 504.210.1232 (p) / 504.581.2731 (f) Peter A. Mayer Advertising, Inc. www.peteramayer.com___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com