Re: [Flashcoders] Flash CS3 UI Bug
fun. this happens with Flash 8 on OSX. At least for me. I do see these bugs. (OS X French(10.4.10), Flash 8 english) Moreover: I do have the *is currently loading, has not ended* and the *non returned query results* CRASHES since flash mx. (then MX 2004 Pro, then Flash 8, and I know that CS3 HAS THE SAME BUG!). How one can experience such BIG BG bugs without being discovered by the team ??? Software development is crap. Such happenings let me KNOW such important things. Don't loose humility when working with software :P Cedric More ... When opening panels (any) when collapsed to icons, they open but fail to show any content. I have to close and re-open the panels in hope that their content is rendered. Very annoying when I'm tight for time. The test movie often opens as a resized window to well below 100% (dimensions are within my screen resolution). ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] how to read a plain text file
Hi, yep use the onData instead of onLoad for loadvars. greetz JC On 9/7/07, Andrew Sinning [EMAIL PROTECTED] wrote: In AS2, is it possible to read in a plain text file. I've used LoadVars and XML.load(), but in this instance I want to read all of the data into a single variable. All I can think of is using a php script to url encode the text. I.e. echo (txt=.urlencode(fread ($file, filesize ($filename; But, is there a way to read the file directly into Flash? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RESUME: Senior Flash/Flex Developer
eric e. dolecki wrote: come on... is this really the place? Beau is well known in a few circles and has been kicked from at least one other list I'm on. His sock puppets were kicked too. -Ricky ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AIR SWFLoader Question
I have a SWFLoader in Flex 3 that runs in a transparent application. I have the SWFLoader set to 100% height of the application window its in. I have a local SWF that I load in there, and I want it to resize the Flash to the height of the window. The SWF loads in fine, but the onResize() in the SWF isn't firing. How can I make sure that onResize actually happens? I have elements that lay themselves out based on that function in the SWF. - eric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Print Rows DataGrid
Hi Veiky, How about cloning your data grid to a seperate frame and scale it down, so that all rows fit on stage (so small they are probably unreadable on screen). You can set this frame as the target to be printed. HTH, Willem van den Goorbergh Op 6-sep-2007, om 16:43 heeft Vivek Gaikwad het volgende geschreven: Hi, I have a DataGrid on the stage having almost 70 rows. A vertical scrollbar appears since these many rows can't fit in one shot. When I print this movie, the rows which were visible from the DataGrid only get printed. What if I want to print the entire DataGrid(all 70 rows)? peace, veiky =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= 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@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash CS3 UI Bug
Steven Sacks, it's sounds like I'll have to keep up my funky flash workey properly rain dance, or maybe it's the weekly sacrifices ;) I seem to remember a bunch of bugs that were very system specific (no rhyme or reason) when flash 8 came out! Macromedia had real problems reproducing them. Have you tried other CS3 products to see if it affects them as well or if it's just flash? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: 06 September 2007 18:49 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash CS3 UI Bug Nice to know I'm not alone in experiencing this buggy behavior. Giles Taylor, consider yourself lucky that you don't have the bug. By the way, I have a brand spankin new clean install of Windows XP SP2 here. Flash was installed right after the OS was and the bug appeared immediately. So, it isn't some OS artifact here. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] the disappearing menu
hey guys can you all take a look at this site for me really quickly? I am getting a strange problem with a menu i built but it only happens on mac. ok o here is the url... http://livemodernhomes.com/test/the_studio.html now on the homepage when the profile loads a menu appears on the far left side that scrolls thumbnails of a few images that are loaded via an XML file that has the details of the images. anyway on a mac if I click to another app the images in that menu just disappear! anyone have any idea what would cause this. I can provide the FLA if need be also. Thanks! -- cb ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] stage.stageheight bug in as3
put this in an empty doc on the first frame trace('stage.stageHeight = ' + stage.stageHeight); if you publish with the bandwidth explorer open it shows the stageheight as 100 px less than it is. - MaTT ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] how to read a plain text file
In AS2, is it possible to read in a plain text file. I've used LoadVars and XML.load(), but in this instance I want to read all of the data into a single variable. All I can think of is using a php script to url encode the text. I.e. echo (txt=.urlencode(fread ($file, filesize ($filename; But, is there a way to read the file directly into Flash? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Function call from a function
I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Function call from a function
you have scope issues, the function never gets called because the MovieClip cant see it. target_mc.closer_mc.onRelease = function() _parent.removeMC(); }; or if you are in AS2 you can also use Delegate target_mc.closer_mc.onRelease = Delegate.create ( this, removeMC); also I would recommend joining the flashnewbie list for this kind of questions. http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie :) On 9/7/07, Lee Marshall [EMAIL PROTECTED] wrote: I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ 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 -- ...helmut ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
You have a scoping issue. It's looking for removeMC() on your target_mc.closer_mc clip. Try out some event listening and function delegating. Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Marshall Sent: Friday, September 07, 2007 7:48 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Function call from a function I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] coding a world clock
nice move john much appreciated! On 9/6/07, John VanHorn [EMAIL PROTECTED] wrote: yes, the flash Date object provides all the necessary properties to calculate the time for different time zones, but it still wont be accurate if the user's clock is off. for more accuracy, youll need to have the time from the server. this should be simple to do with any server side language. in php, you can use the date('U') function or the time() function, which will both give you the Unix timestamp - the number of seconds that have passed since 12am January 1, 1970. you can pass that into your swf using flashvars. you can then create a Date object based off of that value. just note that (in php, at least) the value is seconds, and the flash Date object uses milliseconds. oh, and load time of your swf may cause that to be off a little. if thats a problem, you could store it in a javascript Date object, and then grab the value when youre ready for it. On 9/6/07, Marcelo Volmaro [EMAIL PROTECTED] wrote: I took that data from various sources. I'm using that for my own clock too, and also have a function that, taking a position (first, second, third, etc), a month and day can calculate the real date when a DST occurs (for example, you feed first Friday of may or last Monday of December and it returns the correct date for a specific year). I have a list of DST/Timezones per location, but did not converted to AS (I have some XML files). The problem is that the list is a big one, because the list is compromised of: a) Countries b) Regions c) States d) Cities. Usually, you can trim down the list a lot, since almost all cities in a country have the same TZ/DST, but that's not the case for the US. In fact, you have some cities on the same state that have different TZ. You can get the complete list from: http://www.isi.edu/~pan/SWBP/time-zone-note/time-zone-note.html The problem with that list is that the dates specified for the start/end of DST is that are tied to a specific year and usually you need to wait until someone updates that list... so I coded the following list that has all the info necessary to do the calcs: private static const dstPolicies:Object = { USADLS:new DstPolicy(1,0,4, -1,0,10), EUDLS:new DstPolicy(-1,0,3, -1,0,10), AU2003DLS:new DstPolicy(-1,0,10, -1,0,3), AUTDLS:new DstPolicy(1,1,10, -1,0,3), RUDLS:new DstPolicy(-1,0,3, -1,0,10), EGDLS:new DstPolicy(-1,5,4, -1,4,9), IRDLS:new DstPolicy(-1,6,3, -1,1,9), IQDLS:new DstPolicy(255, 1,4, 255, 1,10), ILDLS:new DstPolicy(-1,4,3, 1,4,10), JODLS:new DstPolicy(-1,3,3, -1,4,10), NADLS:new DstPolicy(1,0,9, 1,0,4), PKDLS:new DstPolicy(1,6,4, 1,6,10), SYDLS:new DstPolicy(255,30,3, 255,21,9), CLDLS:new DstPolicy(2,0,10, 2,0,3), CLEDLS:new DstPolicy(2,5,10, 2,6,3), NZDLS:new DstPolicy(1,0,10, 3,0,3), PYDLS:new DstPolicy(1,0,9, 1,0,4), FKDLS:new DstPolicy(1,0,9, -1,0,4) }; Where the first number is the position (1: first, -1:last, 255: straight date), the second and the third are the day/month. If the position is 255, the date is a straight day/month date, so for example for IRAQ the start date is April 1. The formulas for the calcs are: /** * @param y:int Year * @param m:int Month (0 - 11) * @param n:int Day of the week (0 for a Sunday, 1 for a Monday, 2 for a Tuesday, etc) * @param w:int Occurence (1:first, 2:second, 3:third, 4:fourth, -1:last) * @return real day of the month where the DST starts/ends * * first friday = w:1, n:5 * third monday = w:3, n:1 * last monday = w:-1, n:1 */ private static function calcStartEnd(y:int, m:int, n:int, w:int):int{ if (w 0){ var nd:Number = (new Date(y, m, 0)).getDate(); var diff:Number = (getDayOfWeek(y, m+1, nd) - n) % 7; if (diff 0) diff += 7; return nd-diff; } var nq:int = 7 * w - 6 + (n - getDayOfWeek(y, m+1, 1)) % 7; if (nq 1) nq += 7; return nq; } /** * @param y:int Year
RE: [Flashcoders] Function call from a function
Its quite hard to figure out the problem without more code, but it sounds like a scope issue. Try assigning a reference to the class on the button: //DOESN'T WORK Class myClass { Function function1() { target_mc.closer_mc.onRelease = function() removeMC(); }; } Function removeMC() { } } //MIGHT WORK BETTER Class myClass { Function function1() { target_mc.closer_mc.classRef = this; target_mc.closer_mc.onRelease = function() this.classRef.removeMC(); }; } Function removeMC() { } } Haven't tested it so don't shoot me down if it doesn't work. If it doesn't work then I recommend sending the whole class to the list, or at least the relevant bits of code. G:-) Geoff Bower Developer MotivatEd web: www.MotivatEd.ltd.uk email: [EMAIL PROTECTED] switch: +44 (0)1223 265 624 mobile: +44 (0)7971 627 687 -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Lee Marshall Sent: 07 September 2007 15:48 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Function call from a function I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Function call from a function
can we see all the code? probably a scoping issue. On 9/7/07, Lee Marshall [EMAIL PROTECTED] wrote: I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] getURL issues with IE (was: tracking travelling)
First, thanks to Glen, who answered. When this started, all I knew was that I had two getURL()s in quick succession. Two weeks ago when I first tested this process it worked in both FireFox and IE. Tuesday, when I had to deliver a finished product, it didn't work in IE. My original test was almost identical to Glen's code (below). As I say, it worked fine. Yesterday morning, after my boss asked what was wrong now and I told him, he googled geturl issues in ie and turned up this: http://www.rabidgadfly.com/?p=28 which explained everything and included this: getURL(javascript:location.href='http://www.google.com';javascript:doSometh ingElse();); which saved the day. Rabidgadfly also refers to a 'getURLqueue' (http://www.adobe.com/devnet/flex/articles/analytic_app_print.html) by Sean Rooney. Since it appears to be a Flex routine, or at least relies on AS3, and we don't have that here, I haven't even read the article (can't follow the code). But for those who are there, it may well prove useful. - Paul Freedman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Wednesday, September 05, 2007 6:39 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] tracking travelling Hi, I have setup Google Analytics with hardcoded goals and I use a function like below (some of the stuff in the function just strips out parts of the URL so we just have the name of the site visited - this works fine and is recorded in our GA account. The only thing here is that most of the URL's all open in a new window. I have not done this with _self. function getURLTracked(url:String, window:String) { getURL(url, window); var idx = url.indexOf(://); if(-1 != idx) { url = url.substring(idx + 3); } idx = url.indexOf(www.); if(-1 != idx) { url = url.substring(4); } idx = url.indexOf(./); if(-1 != idx) { url = url.substring(idx + 2); } //getURL(javascript:alert('/sas/urls/ + url +');); getURL(javascript:urchinTracker('/sas/urls/ + url +');); } Which I call with... getURLTracked(http://www.ripcurl.com/;, _blank); HTH. Glen Paul Freedman wrote: The landing-page of our website is comprised of, say, 15 swfs inside one big swf. We need to track the hits on each of the 'sub' swfs and then navigate wherever they go. I am a simple soul with simple needs and desires. All I really wanted to do was: public function trakNgo(tag,theUrl){ // tag=tracking data theUrl=a url getURL(javascript:trackLink('+tag+');); getURL(theUrl); } But the second getURL bumped the first. The user navigated, but the client didn't get his tracking. All the data, tracking and navigation, is fed into the swfs via xml. The same xml contains content ids, paths, etc. It's all very dynamic and can't be hard-coded. I've just spent four days on this. The last six hours I've been trying to use ExternalInterface, with no success. My boss is cranky and I'm half mad. Surely, someone has faced this problem before. How do you track something and navigate somewhere at (almost) the same time? Any help will be greatly appreciated. - Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Within a class, you're losing scope because you are assigning the onRelease to an anonymous function - i.e. a function that has no name and only exists in the first function. So it's not going to have scope, and this not be able to see removeMC(). For Actionscript 2, use Delegate instead: target_mc.closer_mc.onRelease = mx.utils.Delegate.create(this, removeMC) Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Marshall Sent: Friday, September 07, 2007 10:48 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Function call from a function I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: Static without extending Movieclip (2.0)
Figured it out, it wasnt the static class but the way the whole project was built. :\ On 9/7/07, Helmut Granda [EMAIL PROTECTED] wrote: When creating a static class that extends movieclip it loads into another movie properly but if I do not extend the static class to movieclip the movie remains. Does anyone has any idea why this specific behavior happens? Basically I have 10 movies and 9 of them were built the normal way but this other movie was created with a static class. All movies are loaded into a shell and when any of the 9 normal movies are loaded into the shell they work properly but once the movie that was created with the static class is loaded nothing else can be loaded after that unless I extend the static class to a the movieclip. -part of the static lass below class classes.util.Class { private function Class ( ) {} public static function create( mc:MovieClip ) : Void { mc.__proto__ = BannerGallery.prototype; mc.init(); } private function init() { bannerArray = _parent.bannerArray; path= path1/path2/; -- ...helmut ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] stage.stageheight bug in as3
MaTT: This bug has been there since Flash 8, ( i think it has been there since flash MX but dont have it to confirm it). Muzak: Thanks for the code On 9/7/07, Muzak [EMAIL PROTECTED] wrote: trace(- stageHeight = + stage.stageHeight); function stageResizeHandler(evt:Event):void { trace(Application ::: stageResizeHandler); trace(- stageHeight = + stage.stageHeight); } stage.addEventListener(Event.RESIZE, stageResizeHandler); regards, Muzak - Original Message - From: Matt Muller [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, September 07, 2007 4:25 PM Subject: [Flashcoders] stage.stageheight bug in as3 put this in an empty doc on the first frame trace('stage.stageHeight = ' + stage.stageHeight); if you publish with the bandwidth explorer open it shows the stageheight as 100 px less than it is. - MaTT ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- ...helmut ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] how to resize loaded external swf when stage resize
I have produced a bunch of swf files. Positions and dimensions of interface elements in these swf files is inside stage resize event listeners functions... alone they work really fine. Now I'm loading these swf files as external files in a 'hosting' file to make a sort of gallery of all my as3 attempts and works... Initially received some errors because they don't see the stage object anymore... it's simply 'null' also in flash debugger. I've commented out all the stage related calls and references just to make them appear without errors in the swf that loads them. Problem is that all of them react badly on being hosted inside another swf file... All the positioning and dimensioning code isn't there anymore because it's now commented out. I must obviously found a way to 'reactivate' the positioning and dimensioning code... all this considering that also the file that is loading them use dynamic positioning and resizing of his elements... I thought it was possible to change all the stage resize event references to something like root resize event references but all I've tried doesn't work... (there is no documentation around speaking of a resize event for root so it was just an 'act of desperation') ^_^ Is it possible that all my work is just gone like that... :-( Is there a way to get those stage listeners function to work again without rewriting them all in the new containing swf? (it'll be a nightmare, change all references, change all dimensioning and positioning code because they are inside another swf). The MovieClip that holds the external files inside the hosting file creates a bounding box with dimensions matching the original width and height dimensions of the external loaded swf file. This MovieClip is also dynamically resized if the hosting stage becomes not wide and tall enough to visualize the currently loaded swf entirely. So, the MovieClip hosting the loaded files it's acting in a manner similar to the original stage of the surrently loaded swf. ...this was done to manage the dynamic positioning of some loaded swf that have fixed dimensions. But (don't know) maybe someone could see this useful to help me in managing the elastic loaded swfs issue. Any suggestion??? Thanks giovanna changing the behaviour of the stage listeners in the big containing swf based on every single file loaded seems a little bit ugly... ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Static without extending Movieclip (2.0)
When creating a static class that extends movieclip it loads into another movie properly but if I do not extend the static class to movieclip the movie remains. Does anyone has any idea why this specific behavior happens? Basically I have 10 movies and 9 of them were built the normal way but this other movie was created with a static class. All movies are loaded into a shell and when any of the 9 normal movies are loaded into the shell they work properly but once the movie that was created with the static class is loaded nothing else can be loaded after that unless I extend the static class to a the movieclip. -part of the static lass below class classes.util.Class { private function Class ( ) {} public static function create( mc:MovieClip ) : Void { mc.__proto__ = BannerGallery.prototype; mc.init(); } private function init() { bannerArray = _parent.bannerArray; path= path1/path2/; ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] how to read a plain text file
thanks Hans! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] the disappearing menu
No issues here... (MAC OSX) On 9/7/07, Corban Baxter [EMAIL PROTECTED] wrote: hey guys can you all take a look at this site for me really quickly? I am getting a strange problem with a menu i built but it only happens on mac. ok o here is the url... http://livemodernhomes.com/test/the_studio.html now on the homepage when the profile loads a menu appears on the far left side that scrolls thumbnails of a few images that are loaded via an XML file that has the details of the images. anyway on a mac if I click to another app the images in that menu just disappear! anyone have any idea what would cause this. I can provide the FLA if need be also. Thanks! -- cb ___ 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 -- ...helmut ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Function function1() { target_mc.closer_mc.classRef = this; target_mc.closer_mc.onRelease = function() this.classRef.removeMC(); }; } That's how I used to do it before I discovered Delegate. I wouldn't recommend the method you outlined above, because the methods have to be public in order for that to work. Use Delegate if this is AS2. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] getURL issues with IE (was: tracking travelling)
On 9/7/07, Paul Freedman [EMAIL PROTECTED] wrote: which explained everything and included this: getURL(javascript:location.href='http://www.google.com' ;javascript:doSometh ingElse();); Nice - Another way that has fixed this issue is firing one getURL and then wait 500ms with a time out to fire the next. this is useful as you commented when using googleTracking or such... ...helmut ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] stage.stageheight bug in as3
you shouldnt have to do that :) On 9/7/07, Muzak [EMAIL PROTECTED] wrote: trace(- stageHeight = + stage.stageHeight); function stageResizeHandler(evt:Event):void { trace(Application ::: stageResizeHandler); trace(- stageHeight = + stage.stageHeight); } stage.addEventListener(Event.RESIZE, stageResizeHandler); regards, Muzak - Original Message - From: Matt Muller [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, September 07, 2007 4:25 PM Subject: [Flashcoders] stage.stageheight bug in as3 put this in an empty doc on the first frame trace('stage.stageHeight = ' + stage.stageHeight); if you publish with the bandwidth explorer open it shows the stageheight as 100 px less than it is. - MaTT ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Function call from a function
You're having scope issues. When the onRelease function is called its scope is the movie clip (closer_mc), not the class. Try this: At the top of your class' file: import mx.utils.Delegate; Then define the onRelease function this way: target_mc.closer_mc.onRelease = Delegate.create(this, removeMC); The Delegate will cause the removeMC function to be called with the class as scope (or whatever object you put as the first argument to create). -Andy On 9/7/07, Lee Marshall [EMAIL PROTECTED] wrote: I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] stage.stageheight bug in as3
trace(- stageHeight = + stage.stageHeight); function stageResizeHandler(evt:Event):void { trace(Application ::: stageResizeHandler); trace(- stageHeight = + stage.stageHeight); } stage.addEventListener(Event.RESIZE, stageResizeHandler); regards, Muzak - Original Message - From: Matt Muller [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, September 07, 2007 4:25 PM Subject: [Flashcoders] stage.stageheight bug in as3 put this in an empty doc on the first frame trace('stage.stageHeight = ' + stage.stageHeight); if you publish with the bandwidth explorer open it shows the stageheight as 100 px less than it is. - MaTT ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash CS3 UI Bug
just don't use the IDE. Actions Panel should be disabled. It seems that the best is to NOT open any panel and to work with a screen switched off... :( Cedric This is what I saw when I opened a project file this morning: http://muzakdeezign.com/flashcoders/fcs3_ui_bug.jpg Other UI bugs I've encountered: - When opening Library or Project Panel (at the right) they're partly hiden behind the Properties and Help Panel (at the bottom) and the only way to fix it is to restart Flash. - When testing an application which opens a Browse File dialog (FileReference.browse()), the application and Browse File dialog dissapear (behind the Flash IDE). - Same problem Steven described when testing an application.. The test movie window is hidden behind certain UI panels. Once this behavior kicks in, the only way to solve it is to restart Flash. regards, Muzak - Original Message - From: Steven Sacks [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, September 06, 2007 7:49 PM Subject: Re: [Flashcoders] Flash CS3 UI Bug Nice to know I'm not alone in experiencing this buggy behavior. Giles Taylor, consider yourself lucky that you don't have the bug. By the way, I have a brand spankin new clean install of Windows XP SP2 here. Flash was installed right after the OS was and the bug appeared immediately. So, it isn't some OS artifact here. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] caching loaded swfs and jpegs
I have 2 questions about the caching of loaded files: I'm building a wrapper movie around the Loader and ProgressBar classes. During testing from within Flash, once I've loaded a file it remains cached by the Flash Player. This makes it hard to test the loader. I've had to add a random number after the file name (?+String(Math.random()) in order to get a fresh download each time. Isn't there a better way to clear the cache? Because I'm using AS2, I can't dynamically change the parent of a media clip when I need it, but I'd like to preload any anticipated media into a buffer clip before they actually get displayed in the UI. So, if I load something into a buffer clip and then later load the same address into the UI clip, will the cached data be good to go? There's probably a better way to do this. I'm open to suggestions. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Static without extending Movieclip (2.0)
Helmut Granda wrote: When creating a static class that extends movieclip it loads into another movie properly but if I do not extend the static class to movieclip the movie remains. Does anyone has any idea why this specific behavior happens? I think it's part of the architecture. I assume you're creating a component (the only uses I know of for static classes is components and class libraries). AS2 components are, by definition, Movie Clip subclasses, so you have to make the class extend MovieClip. Cordially, Kerry Thompson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RESUME: Senior Flash/Flex Developer
Give him a sample problem and time his generation of a solution Beau Gould [EMAIL PROTECTED] wrote: My candidate is a Senior-level Flash, Flex and Web Developer with an extensive background in OOP/OOD currently working for an interactive agency in New York City. He has 6+ years experience working with AS1, AS2, AS3 as well as Flex and has extensive experience with server, database and other Web technologies. He is seeking a full time telecommuting or mostly telecommuting position. 100% on-site positions will not be considered. Please review his resume at the link below and let me know if you would like to set up an interview: http://www.open-source-staffing.com/sfd.htm He's asking 112k, benefits not required. Thank you, Beau J. Gould Open Source Staffing www.open-source-staffing.com [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Still not working... I think it is a scoping issue. Here's my code (Excuse the bloat, I am very much learning!) import flash.filters.DropShadowFilter; import mx.utils.Delegate; class PopupIll { //Initialise variables public static var t:MovieClip; public static var ref:MovieClip; public static var popHolder:MovieClip; public var newX:Number; public var newY:Number; public var movieName:String; //Constructor function public function loadMC(movieName:String, newX:Number, newY:Number, ref:MovieClip) { //The is used if there is a hyperlink call if (newX == undefined) { var params = new Array(); params = movieName.split(|, 4); movieName = params[0]; newX = parseInt(params[1]); newY = parseInt(params[2]); } // // Creates an empty MC which holds the popup and blocker. popHolder = ref.createEmptyMovieClip(popHolder_mc, ref.getNextHighestDepth()); // Creates a child movie clip inside of popHolder. This is the movie clip the loadclip will replace. var popChild:MovieClip = popHolder.createEmptyMovieClip(popChild_mc, popHolder.getNextHighestDepth()); //Creates a listener for the load of the external SWF var swfListen:Object = new Object();//Create listener object var swfMCLoader:MovieClipLoader = new MovieClipLoader();//Create MovieClipLoader //Get errors swfListen.onLoadError = function(target_mc:MovieClip, errorCode:String, status:Number) { trace(Error loading image: +errorCode); }; swfListen.onLoadStart = function(target_mc:MovieClip):Void { //trace(onLoadStart: + target_mc); }; swfListen.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void { var numPercentLoaded:Number = numBytesLoaded/numBytesTotal*100; //trace(onLoadProgress: + target_mc + is + numPercentLoaded + % loaded); // }; //Routine when SWF is loaded swfListen.onLoadInit = function(target_mc:MovieClip):Void { //Loads the blocker MC which contains the invisible button var a:MovieClip = popHolder.attachMovie(blocker, blocker_mc, popHolder.getNextHighestDepth()); a.swapDepths(target_mc);//Swaps the depth odf the loaded image and blocker a.inv_btn.useHandCursor = false;//Hides cursor for the invisible button a.stop(); a._x = 0; a._y = 0; //Dropshadow parameters var distance:Number = 5; var angleInDegrees:Number = 45; var color:Number = 0x00; var alpha:Number = 0.8; var blurX:Number = 10; var blurY:Number = 10; var strength:Number = 1; var quality:Number = 3; var inner:Boolean = false; var knockout:Boolean = false; var hideObject:Boolean = false; //Position MC target_mc._x = Stage.width/2+newX-target_mc._width/2; target_mc._y = Stage.height/2+newY-target_mc._height/2; //Add dropsahow effect var filter:DropShadowFilter = new DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject); var filterArray:Array = new Array(); filterArray.push(filter); target_mc.filters = filterArray; target_mc.closer_mc.onRelease = function() { Delegate.create(this, getPopHolder); //popHolder.removeMovieClip(); }; //Removes the loader listener swfMCLoader.removeListener(swfListen); }; swfMCLoader.addListener(swfListen);//Adds a listener to the loading process swfMCLoader.loadClip(movieName,popChild);//Loads external SWF } public function getPopHolder():Void { trace(getPopHolder()); //popHolder.removeMovieClip(); //return popHolder; } } ___
RE: [Flashcoders] caching loaded swfs and jpegs
Andrew - There's a cachebuster class put out by communityMX, but it basically just encapsulates the random number. Some people do a random number based on the date and time, but it all equates to roughly the same thing. Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: Friday, September 07, 2007 9:46 AM To: Flash Coders Subject: [Flashcoders] caching loaded swfs and jpegs I have 2 questions about the caching of loaded files: I'm building a wrapper movie around the Loader and ProgressBar classes. During testing from within Flash, once I've loaded a file it remains cached by the Flash Player. This makes it hard to test the loader. I've had to add a random number after the file name (?+String(Math.random()) in order to get a fresh download each time. Isn't there a better way to clear the cache? Because I'm using AS2, I can't dynamically change the parent of a media clip when I need it, but I'd like to preload any anticipated media into a buffer clip before they actually get displayed in the UI. So, if I load something into a buffer clip and then later load the same address into the UI clip, will the cached data be good to go? There's probably a better way to do this. I'm open to suggestions. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] RESUME: Senior Flash/Flex Developer
Give him a sample problem and time his generation of a solution Who, the recruiter or the candidate? ;-) Ok, it's Friday. Back to Flash. Cordially, Kerry Thompson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Static without extending Movieclip (2.0)
On 9/7/07, Kerry Thompson [EMAIL PROTECTED] wrote: Helmut Granda wrote: When creating a static class that extends movieclip I'm confused--why would you extend MovieClip for a static class? Or do you mean something other than a class that only has static fields and methods when you say static class? -- Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] caching loaded swfs and jpegs
You could use: var urlNoCache:String = (System.capabilities.playerType == External ? ? + getTimer(): ); Appending urlNoCache to your url will only add a string when played in an external player or test movie. Testing in anything else creates an empty string. Substitute getTimer with whatever random generator you choose. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: 07 September 2007 17:46 To: Flash Coders Subject: [Flashcoders] caching loaded swfs and jpegs I have 2 questions about the caching of loaded files: I'm building a wrapper movie around the Loader and ProgressBar classes. During testing from within Flash, once I've loaded a file it remains cached by the Flash Player. This makes it hard to test the loader. I've had to add a random number after the file name (?+String(Math.random()) in order to get a fresh download each time. Isn't there a better way to clear the cache? Because I'm using AS2, I can't dynamically change the parent of a media clip when I need it, but I'd like to preload any anticipated media into a buffer clip before they actually get displayed in the UI. So, if I load something into a buffer clip and then later load the same address into the UI clip, will the cached data be good to go? There's probably a better way to do this. I'm open to suggestions. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Still not working... I think it is a scoping issue. Yup. You're still using anonymous functions: swfListen.onLoadInit = function(target_mc:MovieClip):Void { Those don't fly in AS2 classes very well. You can use them once, but anything within them will have only the scope of the specific object it's attached to, and nothing else. Sprinkling Delegate all over the place should fix these issues. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: Drawing Advanced Shape
Hi guys..I tried to draw this shapes, but doesn't work for me, does anybody can help me on this? or is there any Tutorials I can learn about ti? I really have to finish it by the end of day.. thanks http://www.minlab.net/upload/files/shapes.swf Have a nice weekend On 9/6/07, macromedia flash [EMAIL PROTECTED] wrote: Hi guys, I uses AS3 to draw a shape with gradient as below, now I am going to draw more complex shape.. can you please help me on this? == http://www.minlab.net/upload/files/shapes.swf = package { import flash.display.DisplayObject; import flash.display.Graphics ; import flash.display.Shape; import flash.display.Sprite; import flash.display.GradientType import flash.display.SpreadMethod import flash.geom.* public class GraphicsExample extends Sprite { private var shapeWidth:uint = 500; private var shapeHeight:uint = 20; //private var bgColor:uint= 0xFFCC00; private var borderColor:uint = 0x00; private var borderSize:uint = 2; private var cornerRadius:uint = 6; private var xPostion:int = 20; private var yPostion:int = 20; public function GraphicsExample() { doDrawShape(); } private function doDrawShape():void { var child:Shape = new Shape(); var fillType:String = GradientType.LINEAR; var colors:Array = [0x00, 0x66]; var alphas:Array = [100, 100]; var ratios:Array = [0, 255]; var matr:Matrix = new Matrix(); matr.createGradientBox(shapeWidth,shapeHeight, Math.PI / 2, 0, 0); var spreadMethod:String = SpreadMethod.PAD; child.graphics.lineStyle(borderSize, borderColor); child.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod); child.graphics.drawRoundRect(xPostion, 10, shapeWidth, shapeHeight, cornerRadius); addChild(child); } } } = ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
target_mc.closer_mc.onRelease = function() { Delegate.create(this, getPopHolder); Should be something more like this. target_mc.closer_mc.addEventListener(onRelease, Delegate.create(this, getPopHolder)); You might be new, but at least you're declaring all your code in one place instead of on the individual clips. So that's something. Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Marshall Sent: Friday, September 07, 2007 10:24 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Function call from a function Still not working... I think it is a scoping issue. Here's my code (Excuse the bloat, I am very much learning!) import flash.filters.DropShadowFilter; import mx.utils.Delegate; class PopupIll { //Initialise variables public static var t:MovieClip; public static var ref:MovieClip; public static var popHolder:MovieClip; public var newX:Number; public var newY:Number; public var movieName:String; //Constructor function public function loadMC(movieName:String, newX:Number, newY:Number, ref:MovieClip) { //The is used if there is a hyperlink call if (newX == undefined) { var params = new Array(); params = movieName.split(|, 4); movieName = params[0]; newX = parseInt(params[1]); newY = parseInt(params[2]); } // // Creates an empty MC which holds the popup and blocker. popHolder = ref.createEmptyMovieClip(popHolder_mc, ref.getNextHighestDepth()); // Creates a child movie clip inside of popHolder. This is the movie clip the loadclip will replace. var popChild:MovieClip = popHolder.createEmptyMovieClip(popChild_mc, popHolder.getNextHighestDepth()); //Creates a listener for the load of the external SWF var swfListen:Object = new Object();//Create listener object var swfMCLoader:MovieClipLoader = new MovieClipLoader();//Create MovieClipLoader //Get errors swfListen.onLoadError = function(target_mc:MovieClip, errorCode:String, status:Number) { trace(Error loading image: +errorCode); }; swfListen.onLoadStart = function(target_mc:MovieClip):Void { //trace(onLoadStart: + target_mc); }; swfListen.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void { var numPercentLoaded:Number = numBytesLoaded/numBytesTotal*100; //trace(onLoadProgress: + target_mc + is + numPercentLoaded + % loaded); // }; //Routine when SWF is loaded swfListen.onLoadInit = function(target_mc:MovieClip):Void { //Loads the blocker MC which contains the invisible button var a:MovieClip = popHolder.attachMovie(blocker, blocker_mc, popHolder.getNextHighestDepth()); a.swapDepths(target_mc);//Swaps the depth odf the loaded image and blocker a.inv_btn.useHandCursor = false;//Hides cursor for the invisible button a.stop(); a._x = 0; a._y = 0; //Dropshadow parameters var distance:Number = 5; var angleInDegrees:Number = 45; var color:Number = 0x00; var alpha:Number = 0.8; var blurX:Number = 10; var blurY:Number = 10; var strength:Number = 1; var quality:Number = 3; var inner:Boolean = false; var knockout:Boolean = false; var hideObject:Boolean = false; //Position MC target_mc._x = Stage.width/2+newX-target_mc._width/2; target_mc._y = Stage.height/2+newY-target_mc._height/2; //Add dropsahow effect var filter:DropShadowFilter = new DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject); var filterArray:Array = new Array(); filterArray.push(filter); target_mc.filters = filterArray; target_mc.closer_mc.onRelease = function() { Delegate.create(this, getPopHolder);
RE: [Flashcoders] Function call from a function
target_mc.closer_mc.onRelease = Delegate.create(this, getPopHolder); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Marshall Sent: 07 September 2007 18:24 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Function call from a function Still not working... I think it is a scoping issue. Here's my code (Excuse the bloat, I am very much learning!) import flash.filters.DropShadowFilter; import mx.utils.Delegate; class PopupIll { //Initialise variables public static var t:MovieClip; public static var ref:MovieClip; public static var popHolder:MovieClip; public var newX:Number; public var newY:Number; public var movieName:String; //Constructor function public function loadMC(movieName:String, newX:Number, newY:Number, ref:MovieClip) { //The is used if there is a hyperlink call if (newX == undefined) { var params = new Array(); params = movieName.split(|, 4); movieName = params[0]; newX = parseInt(params[1]); newY = parseInt(params[2]); } // // Creates an empty MC which holds the popup and blocker. popHolder = ref.createEmptyMovieClip(popHolder_mc, ref.getNextHighestDepth()); // Creates a child movie clip inside of popHolder. This is the movie clip the loadclip will replace. var popChild:MovieClip = popHolder.createEmptyMovieClip(popChild_mc, popHolder.getNextHighestDepth()); //Creates a listener for the load of the external SWF var swfListen:Object = new Object();//Create listener object var swfMCLoader:MovieClipLoader = new MovieClipLoader();//Create MovieClipLoader //Get errors swfListen.onLoadError = function(target_mc:MovieClip, errorCode:String, status:Number) { trace(Error loading image: +errorCode); }; swfListen.onLoadStart = function(target_mc:MovieClip):Void { //trace(onLoadStart: + target_mc); }; swfListen.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void { var numPercentLoaded:Number = numBytesLoaded/numBytesTotal*100; //trace(onLoadProgress: + target_mc + is + numPercentLoaded + % loaded); // }; //Routine when SWF is loaded swfListen.onLoadInit = function(target_mc:MovieClip):Void { //Loads the blocker MC which contains the invisible button var a:MovieClip = popHolder.attachMovie(blocker, blocker_mc, popHolder.getNextHighestDepth()); a.swapDepths(target_mc);//Swaps the depth odf the loaded image and blocker a.inv_btn.useHandCursor = false;//Hides cursor for the invisible button a.stop(); a._x = 0; a._y = 0; //Dropshadow parameters var distance:Number = 5; var angleInDegrees:Number = 45; var color:Number = 0x00; var alpha:Number = 0.8; var blurX:Number = 10; var blurY:Number = 10; var strength:Number = 1; var quality:Number = 3; var inner:Boolean = false; var knockout:Boolean = false; var hideObject:Boolean = false; //Position MC target_mc._x = Stage.width/2+newX-target_mc._width/2; target_mc._y = Stage.height/2+newY-target_mc._height/2; //Add dropsahow effect var filter:DropShadowFilter = new DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject); var filterArray:Array = new Array(); filterArray.push(filter); target_mc.filters = filterArray; target_mc.closer_mc.onRelease = function() { Delegate.create(this, getPopHolder); //popHolder.removeMovieClip(); }; //Removes the loader listener swfMCLoader.removeListener(swfListen); }; swfMCLoader.addListener(swfListen);//Adds a listener to the loading process
Re: [Flashcoders] RESUME: Senior Flash/Flex Developer
I have requested resumes from this recruiter after they contacted me... BUT, nothing made it into my inbox... type is cheap... Martin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Re: Drawing Advanced Shape
You'll probably have to use the lineTo function in order to draw a compound shape like that. Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of macromedia flash Sent: Friday, September 07, 2007 11:11 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re: Drawing Advanced Shape Hi guys..I tried to draw this shapes, but doesn't work for me, does anybody can help me on this? or is there any Tutorials I can learn about ti? I really have to finish it by the end of day.. thanks http://www.minlab.net/upload/files/shapes.swf Have a nice weekend On 9/6/07, macromedia flash [EMAIL PROTECTED] wrote: Hi guys, I uses AS3 to draw a shape with gradient as below, now I am going to draw more complex shape.. can you please help me on this? == http://www.minlab.net/upload/files/shapes.swf = package { import flash.display.DisplayObject; import flash.display.Graphics ; import flash.display.Shape; import flash.display.Sprite; import flash.display.GradientType import flash.display.SpreadMethod import flash.geom.* public class GraphicsExample extends Sprite { private var shapeWidth:uint = 500; private var shapeHeight:uint = 20; //private var bgColor:uint= 0xFFCC00; private var borderColor:uint = 0x00; private var borderSize:uint = 2; private var cornerRadius:uint = 6; private var xPostion:int = 20; private var yPostion:int = 20; public function GraphicsExample() { doDrawShape(); } private function doDrawShape():void { var child:Shape = new Shape(); var fillType:String = GradientType.LINEAR; var colors:Array = [0x00, 0x66]; var alphas:Array = [100, 100]; var ratios:Array = [0, 255]; var matr:Matrix = new Matrix(); matr.createGradientBox(shapeWidth,shapeHeight, Math.PI / 2, 0, 0); var spreadMethod:String = SpreadMethod.PAD; child.graphics.lineStyle(borderSize, borderColor); child.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod); child.graphics.drawRoundRect(xPostion, 10, shapeWidth, shapeHeight, cornerRadius); addChild(child); } } } = ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Should be something more like this. target_mc.closer_mc.addEventListener(onRelease, Delegate.create(this, getPopHolder)); Or, I would just do this instead: target_mc.closer_mc.onRelease = Delegate.create(this, getPopHolder); (Then of course in AS3 you do: theContainer.addEventListener(MouseEvent.CLICK, mouseClickListener); ) Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] RESUME: Senior Flash/Flex Developer
The candidate of course Kerry Thompson [EMAIL PROTECTED] wrote: Give him a sample problem and time his generation of a solution Who, the recruiter or the candidate? ;-) Ok, it's Friday. Back to Flash. Cordially, Kerry Thompson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Sorry is this an advanced forum? From: [EMAIL PROTECTED] on behalf of Helmut Granda Sent: Fri 07/09/2007 16:14 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Function call from a function you have scope issues, the function never gets called because the MovieClip cant see it. target_mc.closer_mc.onRelease = function() _parent.removeMC(); }; or if you are in AS2 you can also use Delegate target_mc.closer_mc.onRelease = Delegate.create ( this, removeMC); also I would recommend joining the flashnewbie list for this kind of questions. http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie :) On 9/7/07, Lee Marshall [EMAIL PROTECTED] wrote: I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ -- ...helmut ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Static without extending Movieclip (2.0)
T. Michael Keesey wrote: I'm confused--why would you extend MovieClip for a static class? Or do you mean something other than a class that only has static fields and methods when you say static class? It is confusing, and I'll admit my post wasn’t real clear. static has a couple meanings in Flash. In the context of a class, static means the method or property belongs to the class, not the object derived from the class. Of course you know that, or you wouldn't be asking the question. The other context is static, as opposed to dynamic, libraries. Basically, with a dynamic library, you have the source code, and it's compiled along with your other source. With a static library, you only distribute the object code. You might want to do this with a robust library for internal use, or for a library you distribute for public use, but don't want to give out your source code (with the usual caveats that your source code is never really safe in Flash). A compile-time class library (a static library) in AS2, since MX 2004, is usually a component, and a V2 component is, by definition, a Movie Clip. In its definition it must extend MovieClip. That's just the architecture of components. For example: class com.services.myClass extends MovieClip The keyword static is conspicuously absent there. Perhaps that's the confusion. You don't declare the class static like you would a method or a property. Is that more clear? Cordially, Kerry Thompson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Jason - Is there any reason for not using the event Listener? Just curious, is all. Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, September 07, 2007 12:18 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Function call from a function Should be something more like this. target_mc.closer_mc.addEventListener(onRelease, Delegate.create(this, getPopHolder)); Or, I would just do this instead: target_mc.closer_mc.onRelease = Delegate.create(this, getPopHolder); (Then of course in AS3 you do: theContainer.addEventListener(MouseEvent.CLICK, mouseClickListener); ) Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Sorry is this an advanced forum? More or less yes, but I still think your question is totally legit here (your asking an actionscript question which isn't totally a newbie thing, it's more intermediate IMO), so don't feel like the thread has to Flashnewbies. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Marshall Sent: Friday, September 07, 2007 3:33 PM To: flashcoders@chattyfig.figleaf.com; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Function call from a function Sorry is this an advanced forum? From: [EMAIL PROTECTED] on behalf of Helmut Granda Sent: Fri 07/09/2007 16:14 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Function call from a function you have scope issues, the function never gets called because the MovieClip cant see it. target_mc.closer_mc.onRelease = function() _parent.removeMC(); }; or if you are in AS2 you can also use Delegate target_mc.closer_mc.onRelease = Delegate.create ( this, removeMC); also I would recommend joining the flashnewbie list for this kind of questions. http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie :) On 9/7/07, Lee Marshall [EMAIL PROTECTED] wrote: I have created a Class that has 2 functions within it Function 1 loads a movie clip Function 2 removes the movieclip I have a button setup in function 1 that reads like this: target_mc.closer_mc.onRelease = function() removeMC(); }; Of which contains a removeMovieClip(); Except it doesn't does anybody have any advice on calling functions from within a function? Many thanks ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ -- ...helmut ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Just simpler IMO, but it's probably slightly better to use a listener I suppose since that's how it's done in AS3 and you can access event.target and such. Either way works Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hal Leonard Sent: Friday, September 07, 2007 3:53 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Function call from a function Jason - Is there any reason for not using the event Listener? Just curious, is all. Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, September 07, 2007 12:18 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Function call from a function Should be something more like this. target_mc.closer_mc.addEventListener(onRelease, Delegate.create(this, getPopHolder)); Or, I would just do this instead: target_mc.closer_mc.onRelease = Delegate.create(this, getPopHolder); (Then of course in AS3 you do: theContainer.addEventListener(MouseEvent.CLICK, mouseClickListener); ) Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Lee Marshall wrote: Sorry is this an advanced forum? Pretty much, yes. Flashnewbie is a better forum when you're just coming up to speed. Not that we don't want you here--it's just that we usually discuss more esoteric issues. Newbie sounds like it's really just very basic, but there are some surprisingly advanced topics discussed there. Several of us on Flashcoders monitor Flashnewbie and answer the more complicated questions. Jason Merrill, for example, is an expert coder, and has been a major contributor (with a 2-month paternity hiatus) to Flashnewbie. I'm a programmer with 25+ years experience, and I spent my first 6 Flash months on Newbie before I came over here. I never felt out of place, and, once I felt I had a good enough handle on Flash's way of doing things, I signed up for Flashcoders. Cordially, Kerry Thompson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Security Sandbox Violation
Can anyone help me with a Security Sandbox Violation that I can't seem to figure out? I'm testing using Flash Player 8 Debug version (IE7 ActiveX and Firefox 2.0.0.6 plugin). I'm trying to load a remote swf (http://xyz.a.server2.net/datadir/data.swf) from a web-hosted swf (http://www.server1.com/test/app.swf). Here's where I'm at: - I added System.security.allowDomain(xyz.a.server2.net) to app.swf. - I added System.security.allowDomain(www.server1.com) to data.swf. - I created a cross-domain policy file (crossdomain_1.xml) and uploaded it to http://www.server1.com (root dir) with this entry: allow-access-from domain=*.server2.net / - I created a cross-domain policy file (crossdomain_2.xml) and uploaded it to http://xyz.a.server2.net/datadir (I don't have access to the root of this server) with this entry: allow-access-from domain=www.server1.com / - I added System.security.loadPolicyFile(http://xyz.a.server2.net/datadir/crossdomain _2.xml) to app.swf. - I added System.security.loadPolicyFile(http://www.server1.com/crossdomain_1.xml;) to data.swf. - Then, in app.swf, I attempt to load data.swf using loadMovie(http://xyz.a.server2.net/datadir/data.swf;, target_mc) - I publish app.swf for Player 8, AS2, and upload it to http://www.server1.com/test. - I publish data.swf for Player 8, AS2, and upload it to http://xyz.a.server2.net/datadir. Here's what I get in flashlog.txt when I test it using IE7: *** Security Sandbox Violation *** SecurityDomain 'http://www.server1.com/test/' tried to access incompatible context 'http://xyz.a.server2.net/datadir/crossdomain_2.xml' Here's what I get when using Firefox: *** Security Sandbox Violation *** SecurityDomain 'http://www.server1.com/test/app.swf' tried to access incompatible context 'http://xyz.a.server2.net/datadir/crossdomain_2.xml' FWIW, in my testing, I found that if I publish data.swf for Player 5, the error goes away in IE 7, but not in Firefox. What am I missing? I would think this should be pretty simple, as my code is pretty basic (ie, data.swf doesn't do anything right now, other than System.security.allowDomain and System.security.loadPolicyFile). Thanks, Shane ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] coding a world clock
Thanks again, Marcelo! The DST Policies scheme works wonderfully. Brilliant! I'm sure I read somewhere that you need to delete the Date object once you are done with it. Otherwise it will persist in memory. Have you noticed any memory leaks associated with these calcs? Regards, -Keith http://keithreinfeld.home.comcast.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Function call from a function
On Sep 7, 2007, at 4:32 PM, Kerry Thompson wrote: I never felt out of place, and, once I felt I had a good enough handle on Flash's way of doing things, I signed up for Flashcoders. Liar. ;-) You went the other way. We kicked you up to FlashCoders. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] #SharedObject not so shared
We are running into a baffelling behavior using SharedObject. We have a a few Desktop Flash applications: One is a main application, the other an update utility for the main app. They use a Flash Cookie to find each other, as the main app could be installed anywhere (USB, C). The apps are based in Director using the Flash8 Xtra. Say we start with a completely empty SharedObjects folder Running the main app sets a cookie into a folder like Flash Player\#SharedObjects\BFYLPV7P\localhost\02000.sol via a call like var so : SharedObject = SharedObject.getLocal (02000, /); where / should see the root of the Flash Cookies. then say Pandora (or any other flash based website using cookies) runs it generates a new sandbox Flash Player\#SharedObjects\2S7GJDMQ\pandora.com and then all future read requests are against that new '2S7GJDMQ' folder instead of the BFYLPV7P folder, and then neither the app or the updater, can see the old shared local object folder anymore. Which in the case of it containing lots of persistent configuration data, is the equivalent of clearing the Browser cache and forgetting everything. Trying to understand how it's created, I can delete the contents of the shared Objects folder and then republish in the Flash IDE and get a new hash for the folder every time so it seems to be either random or time based. It's not as far as I can tell the behaviour documented, it's certainly not behaving as I would expect. Anybody have any ideas? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Function call from a function
Troy Rollins wrote: Liar. ;-) You went the other way. We kicked you up to FlashCoders. There's a fair amount of truth in that. As I progressed (slowly, very slowly), I finally reached a point where my questions were too advanced for Newbie. Troy did, indeed, suggest that Flashcoders would be a better forum. I am still on Flashnewbie, but now I answer more questions than I ask, which is as it should be. I couldn't have made it to where I am now without the help I got there, and it's my turn to help the next wave, many of whom will surpass me. Cordially, Kerry Thompson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?
In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT? They seem to be the same as MOUSE_OVER and MOUSE_OUT... ___ 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