[Flashcoders] Muzak's MXI Creator Fatal Error
Everyone is my office is getting a Fatal Exception Error when they try to run Muzak's MXI Creator. XP, Vista, SP1, SP2, machines that never had it installed before, machines that uninstalled and resintalled. Same Fatal Error on launch on all of them. Anyone know if there's a fix for this? ___ [EMAIL PROTECTED] 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] "named" while loops in AS3
You'll have to set a flag. var a:Number = 10; var b:Number = 10; var breakLoop:Boolean = false; while (a--) { if (breakLoop) break; trace("a = " + a); while (b--) { if (b < 5) { breakLoop = true; break; } trace("b = " + b); } } Output: a = 9 b = 9 b = 8 b = 7 b = 6 b = 5 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Create MXI/MXP with External JSFL
Muzak, Are you on Windows or OSX? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Create MXI/MXP with External JSFL
Muzak, Thanks for your response. Unfortunately, it's not working for me when I try to test it before I even make it an MXI/MXP. I created a jsfl folder inside the Configuration folder and put my jsfl file in there. uri = MMExecute("fl.configURI") + "jsfl/test.jsfl"; MMExecute("fl.trace(\"" + uri + "\")"); It traces it out just fine when Flash launches, but when I try to runScript one of the functions in that jsfl file it says argument 1 is invalid. var func = "testFunc"; var cPath = MMExecute("fl.runScript(\"" + uri + "\", \"" + func + "\")"); This works just fine if I hardcode the path to the JSFL on the C: drive. There is one weird thing where it changes the : to a | with configURI but the documentation says that it's supposed to work just like it is. Any ideas? Thanks, Steven ___ 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] Flashcoders really bad lag - just me?
Ever since the Flashcoders server went down, my posts to Flashcoders are taking a long time to appear. Is it just me or are other people experiencing this? These are from today, for instance: RE: [Flashcoders] OT: Happy Easter Sent: Mon 4/9/2007 11:56 AM Appeared: Mon 4/9/2007 2:55 PM 3 hours to show up! Create MXI/MXP with External JSFL Sent: Mon 4/9/2007 2:42 PM Appeared: Mon 4/9/2007 4:09 PM Nearly 1.5 hours! This message Sent: Mon 4/9/2007 4:55 PM Appeared: ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Create MXI/MXP with External JSFL
Hey FC, I have a Flash panel I created which requires an external JSFL file to run. How do I package up the JSFL file into the MXI/MXP and how do I determine what the file path is to it load said JSFL from inside the Actionscript of the panel SWF? Wrapping the JSFL into Actionscript is not an option. It's far too complex. Thanks, Steven ___ 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] Kick this guy off the list
KICK THIS GUY OFF THE LIST! His out of office email is spamming every thread. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Tareq AlJaber > Sent: Monday, April 09, 2007 12:34 PM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] AS3 Delegate > > I will be out of the office starting 04/09/2007 and will not > return until 04/16/2007. > > I will not have access to my email during this time. If you > need immediate assistance, please contact Aaron Dolberg > ([EMAIL PROTECTED]). Thank you. > > ___ > 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] OT: Happy Easter
Hahahahahahahaha! And I quote Cedric: > whatever! > ... > respect First, you open with "whatever!" which is what people say to signify disrespect for something another person said. And then you say "respect" as if saying that nullifies it. Nice try, buddy. You "get hurt" by god blessings? How could you possibly be hurt by god blessings if you don't believe in god? That's ridiculous. Did it feel good to have your temper tantrum? I hope so, but don't pretend for a moment that temper tantrums are respectful. They're childish. BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Cedric Muller > Sent: Monday, April 09, 2007 4:33 AM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] OT: Happy Easter > > whatever! > stop this, this is OT, GOD doesn't exist (globally speaking > in people's minds) and I am not a believer, so I DON'T need > any god's blessing (more than that: keep it for yourself) > this is about laicity, this is about secular coding... this > is JUST ABOUT CODING WITH FLASH :P sorry if this hurts, but I > do get hurt by 'god blessings'... > respect > Cedric > > > > > Happy easter to everyone and god bless you all guys. > > > > > > Regards > > > > > > Gustavo Duenas > > On Apr 8, 2007, at 9:47 PM, Omar Fouad wrote: > > > >> Happy Easter to you and all the List Members Ricardo > >> > >> On 4/8/07, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: > >>> > >>> On behalf of Jews everywhere, may I be the first to say you're > >>> welcome! > >>> :) > >>> ___ > >>> 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 > >>> > >> > >> > >> > >> -- > >> Omar Fouad - Digital Emotions... > >> > >> Love is always patient and kind. It is never jealous. Love is > >> never boastful > >> nor conceited It is never rude or selfish. It does not take > >> offense and is > >> not resentful. Love takes no pleasure in other people's > sins...but > >> delights > >> in the truth. It is always ready to excuse, to trust, to hope... > >> and to > >> endure... whatever comes. > > ___ > 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] OT: Happy Easter
On behalf of Jews everywhere, may I be the first to say you're welcome! :) ___ 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] attaching an event to a movie clip
Here's a quick and dirty example: this.createEmptyMovieClip("img", 10); img.loadMovie("some.jpg"); this.onEnterFrame = function() { if (img._width > 2) { this.assignActions(); delete this.onEnterFrame; } }; function assignActions() { img.onRollOver = function() { // do something }; img.onRollOut = function() { // do something }; img.onRelease = function() { // DO SOMETHING! }; } ___ 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] Window component scrolling...am I insane?
I've never used the Window component. I don't even know what it does. I don't use MM components unless I'm mocking something up really quick. The combo box, check box and radio buttons are the only ones I ever use. IMO, the rest are garbage, especially the scrollpane. Everything else I'm better off writing my own or reusing my own or using a 3rd party one like mCom or Ghostwire. ___ 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] Enumerating properties from outside an instance.
function loopThrough(mc:MovieClip):Void { for (var a:String in mc) { trace(a + ": " + mc[a]); if (mc[a] typeof "movieclip") loopThrough(mc[a]); } } You can use recursion and hope that you don't end up with circular references. ___ 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] Enumerating properties from outside an instance.
Pretend you're a mechanic and somebody calls you up and says the following: "My car starts when it's in my driveway, but it doesn't start when I'm at the store. What's wrong with my car?" Would you be able to help? Show us your code or we can't help you. :) -Steven > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Jason Lutes > Sent: Thursday, April 05, 2007 2:11 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Enumerating properties from outside an > instance. > > I can't figure this out. > > I can set up a for...in loop to show me all the (enumerable) > properties -- variables and functions -- on the MovieClip > instance where I place the loop, but I can't enumerate > properties for other (nested) MovieClip instances by simply > changing the focus object of that same for...in loop. > > Why not? > > If I move the enumerating loop into the nested clips it works > as expected. ___ 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] NetStream.play() - Start parameter
You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ 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] NetStream.play() - Start parameter
netStream.play(flvPath); netStream.seek(5); BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of leolea > Sent: Wednesday, April 04, 2007 12:20 PM > To: Flashcoders mailing list > Subject: [Flashcoders] NetStream.play() - Start parameter > > Hi, > > Has anyone used the Start:Number parameter from the > NetStream.Play() method ? > > There isn't much documentation from Adobe. I want to start > the playback of a FLV at, say, 5 seconds... So logically I would do: > > netStream.play(flvPath, 15); > > But it's always playing from 0... > > > > > ___ > 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] FLV (like youtube)
Did you even google this? There are many tools that convert to FLV server-side. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Tom Huynen > Sent: Wednesday, April 04, 2007 6:07 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] FLV (like youtube) > > Hi there, > > A project requires me to create an app that enables people to > upload .avi and mov's. > These movies must be visible in the frontoffice. > > Does anybody know how to convert .avi and .mov into FLV? > Or is there a better alternative? > > Kind regards, > > Tom > ___ > 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] eolas fix for IE7
Just in case you were unaware, there's a forum on SWFObject site where you can research these issues (I'm sure somebody had the same issue you're having at some time) and you can post questions. I think you'll have better luck there troubleshooting your issues. :) ___ 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] JSFL - Saving FLAs
Maybe I'm confused about what you're trying to do. Are you concerned with the published (swf) version or the source (fla) version? ___ 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] scale 9?
Are you using a bitmap or vector in the slice 9 clip? ___ 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] JSFL - Saving FLAs
The version is located in the XML Publish Settings file. It's been reported that changing this value using JSFL does not work (a bug). However, you CAN read it. Refer to my blog entry regarding the XML Publish settings file to see how to get the version number out of it. http://www.stevensacks.net/2006/08/06/using/ ___ 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] Is there a way to center an FLV in it's FLVplaybackcomponent?
3 easy steps. 1. Make a black square movieclip. 2. Set it to the size you want. 3. Position the resized FLV video in the center of it. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Dave Lenz > Sent: Friday, March 30, 2007 2:36 PM > To: Flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Is there a way to center an FLV in > it's FLVplaybackcomponent? > > Hi there, > > I'm having trouble centering a loaded FLV in a FLVPlayback > component. > When I scale the component with 'setSize()' it keeps > aligning the video-content to the top and to the left. Is > there a way to center it in the middle? Maybe I'm missing a > method or something but I can't seem to find a solution. > > Greetings > Ypmits ___ 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] SWF Only Loads Once
XML almost always caches. Use a noCache param. var path:String = "some.xml"; var d:Date = new Date(); var p:String = (path.indexOf("?") > -1) ? "&noCache=" : "?noCache="; var noCache:String = (_root._url.indexOf("http://";) > -1) ? p + d.getTime() : ""; var xmlPath:String = path + noCache; myXML.load(xmlPath); ___ 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] Confused about accessing nested movieclips in AS3
If you're not using absolute strict typing and everything that AS3 has (display, addChild, etc.), then you're gaining no benefit because Flash will just kick down to VM1. IMO, you should either rebuild it from scratch in AS3 style (using sprites, display objects, etc.) or leave it as AS2 and save yourself the headache. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of ben gomez farrell > Sent: Thursday, March 29, 2007 11:32 AM > To: Flashcoders mailing list > Subject: [Flashcoders] Confused about accessing nested > movieclips in AS3 > > Hey everyone, I've been working with AS3 for a bit, and been > kind of avoiding this problem till now, but I've converting > an AS2 project which has some nested clips, and I'd rather > not change things! > > So basically the question is how do I access nested clips? > Before in AS2, I'd say myclip.nestedclip.othernestedclip. > > But now the problem I have is that once I get a clip on stage > I can't drill down to it's children with dot syntax. It > gives an error that the nested MC is an undefined property. > I suppose I could create a class for myclip that exposes it's > nested clips as public variable - and do that for each > nesting level, but that's a lot of work. > > I also tried declaring it in my main class as private var > myclip.nestedclip:MovieClip, but of course that's bad syntax. > > If it matters, I'm exporting my assets out of the Flash 9 > Alpha as a Flash 9 AS2 movie. (I tried AS3, but the ability > to specify a linkage ID went away). Then I'm embedding the > movieclips I need with the [Embed] tag through FlashDevelop > and sending it over to the Flex 2 SDK compiler for output. > > Anyway, this all works, and my stuff appears on stage, but I > just can't get access to the nested clips! > > thanks! > ben > ___ > 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] Scaling Up an Image in Proportion to width or height
Why would you do that, though? You're adding an extra calculation for no reason. It's inefficient and unnecessary. And I'm not setting _height to _width divided by ratio, but _width TIMES ratio. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Steve Abaffy > Sent: Thursday, March 29, 2007 11:46 AM > To: flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] Scaling Up an Image in Proportion > to width or height > > Yes but you could do it like this > > You resize the _width: > _width = Math.max(newWidth, 500); > You set _height to the _width * ratio: > _height = _width * (1/ratio); > Which is the same thing as > _height = _width / ratio; > > > > This would be (_width/_height * _height) this cancels the > _height leaving > you with just _width. > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Hershell > Bryant > Sent: Thursday, March 29, 2007 1:58 PM > To: flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] Scaling Up an Image in Proportion > to width or > height > > That'd do it...except that you need to define var ratio:Number = > _height/_width. > > If var ratio:Number = _width/_height, then _width * ratio = (_width * > _width)/_height....That ain't right. > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Steven Sacks > | BLITZ > Sent: Thursday, March 29, 2007 9:42 AM > To: flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] Scaling Up an Image in Proportion > to width or > height > > Simple. > > You solve for the ratio: > > var ratio:Number = _width / _height; > > > You resize the _width: > > _width = Math.max(newWidth, 500); > > > You set _height to the _width * ratio: > > _height = _width * ratio; > > > fin. > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Scaling Up an Image in Proportion to width or height
Simple. You solve for the ratio: var ratio:Number = _width / _height; You resize the _width: _width = Math.max(newWidth, 500); You set _height to the _width * ratio: _height = _width * ratio; fin. ___ 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] scope in AS3
> in flash8 the propertie is _visible You are correct. However, he is coding in AS3 (see: package) and the subject of the thread has "AS3" in it, which means this is Flash 9, which means the property is visible, no underscore. ___ 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] Image resizer that maintains ratio
mc._width = maxW; mc._height = maxH; (mc._xscale > mc._yscale) ? mc._xscale = mc._yscale : mc._yscale = mc._xscale; > You could probably optimize a little bit by removing the Math > function... > > mc._width = maxW; > mc._height = maxH; > if ( mc._xscale > mc._yscale ) { > mc._xscale = mc._yscale; > } > else { > mc._yscale = mc._xscale; > } > > I don't think I can be done more effiently than that. Anyone? ___ 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 controling "Z" with div layers
wmode=transparent might help. not sure. BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Patrick Lemiuex > Sent: Tuesday, March 27, 2007 4:57 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Flash controling "Z" with div layers > > Is it possible to make a flash.swf file appear behind other > div layers I create. In firefox, i have no problem however, > in IE my flash is popping in front of my DIV LAYER. > > any stragery on this one? > > > P > ___ > 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] Flash CS3 Announced
I was only speaking of people who I have discussed the issue with (hence, "My experience is"). It was not my intent to lump you in with them. ___ 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 Announced
> Freehand was terrible IMO. I know quite a few people who feel exactly opposite of you. They absolutely hate Illustrator and mourn the loss of what they believe to be a clearly better product. My experience is that most people who don't like Freehand never actually gave it a proper chance or were content because they already knew Illustrator and couldn't motivate to learn something new that does the "same thing". Freehand was ahead of Illustrator in features and ease of use for quite some time and Freehand forced Illustrator to compete in what was once a monopoly (Corel Draw? Yeah, right!). I don't use either program so I have no opinion. :) Fireworks is different than Photoshop in some key ways. It's not going away anytime soon. At Adobe MAX in Las Vegas last year, Adobe was pretty clear that Fireworks was not only not going away, it was being given new features and tighter integration with other Adobe products. ___ 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] empty textfield of type "input" and embedded font
VM1 requires that you wait a frame before certain methods of dynamically attached clips are available. The easiest way around this is to put a method configUI(); on frame 1 of the timeline in your clip and put that method in your class to do what you need to do. And if any of y'all on Flashcoders think that's dirty, go on back to whatever language you came from. This here is Flash territory and we don't kin to you uppity Java types. Yee-haw! ;) The alternatives are: private var fCount:Number = 0; function ClassName() { this.onEnterFrame = function() { if (this.fCount++ > 0) { configUI(); } }; } function configUI() { // do whatever } OR private var frameInterval:Number; function ClassName() { frameInterval = setInterval(this, "configUI", 50); } function configUI() { clearInterval(frameInterval); // do whatever } ___ 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: empty textfield of type "input" and embedded font
And setTextFormat works fine with HTML textfields. I've been using it throughout an application I just built. I never use setNewTextFormat. ___ 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: empty textfield of type "input" and embedded font
That's because you do your text formatting with HTML tags. BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Matthias Dittgen > Sent: Monday, March 26, 2007 12:50 AM > To: Flashcoders mailing list > Subject: [Flashcoders] Re: empty textfield of type "input" > and embedded font > > when not using html = true and htmlText, the solution is the > setNewTextFormat method, which seems not to work in > combination with htmlText. :-( There must be a pendant to.. > ___ > 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] Test
Hello. Flashcoders has been really laggy the past few days. It usually takes an hour or two before I see my posts. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Danny Kodicek > Sent: Friday, March 23, 2007 6:02 AM > To: flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] Test > > > > Is this delivered??? > > 'ello > > D > > ___ > 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] Event calendar
Wow! http://slash7.com/pages > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of natalia Vikhtinskaya > Sent: Friday, March 23, 2007 7:14 AM > To: Flashcoders mailing list > Subject: [Flashcoders] Event calendar > > Hi to all > I should create event calendar. Can anybody give me some > advices/links how I can create that using xml? > > Thanks a lot for any help. > ___ > 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] Trouble getting _x position
Draw your box from 0,0 and then set the _x and _y of the movieclip you drew in. ___ 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] Using JSFL with AS files
You can read and write any text files, so you can certainly read and write AS files. Here is the full Flash 8 JSFL API PDF document which is IMPOSSIBLE to find anymore on Adobe's site. http://tinyurl.com/2qu83v Of particular interest to you are: Flfile Object Flfilre.read(fileOrFolderURI); Flfile.write(fileURI, textToWrite); etc. Hope this helps you. JSFL rocks. I've used it to create many handy tools. One thing that will save you some headaches if you make Panels out of your JSFL tools is make sure you DOCK the panels in Flash. For some reason, certain JSFL actions that modify objects on the timeline are broken if called from a free floating panel. It's a bug and it's probably known and I wouldn't expect a fix anytime soon. Cheers! ___ 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] Got milk? (the game)
> That dice is cheaty! It's a dirty cheaty dice. A friend of mine rolled a "1" 14 times in a row. ___ 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] Using JSFL with AS files
What do you mean specifically? BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Danny Kodicek > Sent: Thursday, March 22, 2007 6:30 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Using JSFL with AS files > > Is there any way to do it? (And yes, I know I'd be better off > with an external editor, but sometimes it's easiest just to > work in the IDE). > > Danny > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] disabling carriage returns in wrapping text fields
You could fake it and instead of using an input textfield, capture keystrokes and put them into a dynamic textfield. :) You could also validate the input textfield on every key up event and strip any carriage returns out then. INP_Field.text = INP_Field.text.split("\n").join("").split("\r").join(""); :) ___ 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 extension question
If you want to export to a different directory, you'll have to modify the publish settings xml file, which I discuss on my blog...which for some reason is down right now (writes email to hosting company)...so I'll copy and paste the code here. If you are publishing to the same folder as the FLA, you only need to doc.publish() and the first two functions. var doc = fl.getDocumentDOM(); function getRelativePath() { var pathArr = doc.path.split("\\"); pathArr.length--; return("file:///" + pathArr.join("/") + "/"); } function saveFile(s) { var fPath = getRelativePath() + s + ".fla"; fl.saveDocument(doc, fPath); } function cleanup() { var fPath = getRelativePath() + "PublishProfile.xml"; FLfile.remove(fPath); } function publishTheSWF(s) { setPublishSettings(s); saveFile(s); cleanup(); doc.publish(); } function setPublishSettings(s) { var xml, from, to, snip; var fPath = getRelativePath() + "PublishProfile.xml"; // export the profile and read it in doc.exportPublishProfile(fPath); xml = FLfile.read(fPath); var folderPath = "../deploy/"; // replace the publish paths from = xml.indexOf(""); to = xml.indexOf(""); snip = xml.substring(from, to); xml = xml.split(snip).join("" + folderPath + s); // set player version v = 8; from = xml.indexOf(""); to = xml.indexOf(""); snip = xml.substring(from, to); xml = xml.split(snip).join("" + v); var nodes = {}; nodes.generatorFileName = "swt"; nodes.projectorWinFileName = "exe"; nodes.projectorMacFileName = "hqx"; nodes.htmlFileName = "html"; nodes.gifFileName = "gif"; nodes.jpegFileName = "jpg"; nodes.pngFileName = "png"; nodes.qtFileName = "mov"; nodes.rnwkFileName = "smil"; for (var n in nodes) { from = xml.indexOf("<" + n + ">"); to = xml.indexOf(""); snip = xml.substring(from, to); xml = xml.split(snip).join("<" + n + ">" + s + "." + nodes[n]); } // write the file FLfile.write(fPath, xml); // import the altered profile doc.importPublishProfile(fPath); } You can then use: publishTheSWF("swfName"); Note: do not include the extension. ___ 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] Localization issue with XML
You're telling me to do something that I specifically said I already have done. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Søren Christensen > Sent: Wednesday, March 21, 2007 9:04 AM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] Localization issue with XML > > > > if it isnt a coded textfield you need to define each special > character using the 'embed' button in the inspector (while the tf is > selected) in the 'include these charecters' field > > Cheers, > >B) Søren > > > > >> > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] On Behalf Of > >> Steven Sacks > >> | BLITZ > >> Sent: Tuesday, March 20, 2007 8:32 PM > >> To: flashcoders@chattyfig.figleaf.com > >> Subject: [Flashcoders] Localization issue with XML > >> > >> Hey Flashcoders, > >> > >> I'm having an issue with special characters not showing up > from other > >> languages, such as German (ü, ö, etc.). The issue is specifically > >> with text loaded in from XML. > >> > >> The textfields are set to embed all latin glyphs (1076 glyphs, > >> Uppercase, Lowercase, Numerals, Punctuation, Latin I, > Latin Extended > >> A, Latin Extended B, and Latin Extended Add'l). > >> > >> All text is wrapped in CDATA tags. > >> > >> I've tried saving the xml file with 8 bit and UTF-8 encoding and > >> neither works. > >> > >> XML header is > >> > >> > >> If I set the text of the textfield with Actionscript to a > string with > >> those characters in it, no problem, they all show up just fine. > >> > >> // This works > >> txt.htmlText = "wofür benötigen"; > >> > >> However, when I display it from the XML, they show up as regular o > >> and u characters. > >> > >> // Does not work > >> > >> > >> Any ideas? > >> > >> Thanks, > >> Steven ___ 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] 500 blur filters on 500 MCs
500 MCs is gonna be a hit already on VM1, 500 blurred MCs? Best of luck. AS3/FP9 you'll have better performance but 500 blurs seems like lot. I would suggest you write some an algorithm that creates groups of clips with the same blur into container clips and blur the container clips rather than all the individual clips. ___ 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] Localization issue with XML - SOLVED!
And I solved it heh so thanks anyway! Solution was to use the numeric codes. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Steven Sacks | BLITZ > Sent: Tuesday, March 20, 2007 11:32 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Localization issue with XML > > Hey Flashcoders, > > I'm having an issue with special characters not showing up > from other languages, such as German (ü, ö, etc.). The issue > is specifically with text loaded in from XML. > > The textfields are set to embed all latin glyphs (1076 > glyphs, Uppercase, Lowercase, Numerals, Punctuation, Latin I, > Latin Extended A, Latin Extended B, and Latin Extended Add'l). > > All text is wrapped in CDATA tags. > > I've tried saving the xml file with 8 bit and UTF-8 encoding > and neither works. > > XML header is > > > If I set the text of the textfield with Actionscript to a > string with those characters in it, no problem, they all show > up just fine. > > // This works > txt.htmlText = "wofür benötigen"; > > However, when I display it from the XML, they show up as > regular o and u characters. > > // Does not work > > > Any ideas? > > Thanks, > Steven > ___ > 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] Localization issue with XML
Hey Flashcoders, I'm having an issue with special characters not showing up from other languages, such as German (ü, ö, etc.). The issue is specifically with text loaded in from XML. The textfields are set to embed all latin glyphs (1076 glyphs, Uppercase, Lowercase, Numerals, Punctuation, Latin I, Latin Extended A, Latin Extended B, and Latin Extended Add'l). All text is wrapped in CDATA tags. I've tried saving the xml file with 8 bit and UTF-8 encoding and neither works. XML header is If I set the text of the textfield with Actionscript to a string with those characters in it, no problem, they all show up just fine. // This works txt.htmlText = "wofür benötigen"; However, when I display it from the XML, they show up as regular o and u characters. // Does not work Any ideas? Thanks, Steven ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] stopDrag question
function compareX():Void { if (MC_Drag._x == mc2._x) { endDrag(); } } function beginDrag():Void { MC_Drag.startDrag(false, t, l, b, r); clearInterval(compareInterval); compareInterval = setInterval(this, "compareX", 10); } function endDrag():Void { clearInterval(compareInterval): stopDrag(); } MC_Drag.onPress = Delegate.create(this, beginDrag); MC_Drag.onRelease = Delegate.create(this, endDrag); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] apollo is in macromedia labs
It's not only for Flex. Flex == Flash. That's like saying "It's only for Ruby, not Rails." Rails is written in Ruby. Flex 2 is built with Flash. It's simply a bunch of classes and components written in AS3 that provide a framework for developing applications. Currently, the Apollo compiler is a plug-in for Flex Builder 2, but you could make a stub projector that will load any AS3 swf, which there are multiple ways to write. There's the Flash 8 patch to publish Flash 9, the ANT compiler which works with FlashDevelop, and Flex Builder 2. Yes, you can write regular AS3 swfs with Flex Builder. Flex Builder is just Eclipse with a plug-in. I'm not sure what you "need" Apollo for. It's still in beta, and even after launch, I'm sure that like every single other wrapper out there, it will need time to work the kinks out before it will be ready for mass distribution. If you have a client depending on a Flash wrapper technology, you should look to mProjector or Zinc. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Create an object by name
Most of the time, what I've seen is setting a temporary var to either an instance of the class, or in the case of a static class, setting it to a reference to the class. var myClass:MyClass = new com.client.project.package.MyClass(); or var myClass:MyClass = com.client.project.package.MyClass; I have to wonder, though, if there's not a better way to accomplish what you're trying to achieve. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Q:using printjob class
There is no difference between printing a rotated clip in portrait or a non-rotated clip in landscape. A printer does the same thing when it prints an image in landscape. Technically, I'm telling the printer to print in landscape mode even when it's not set to print in landscape mode. My script results in an identical print regardless of what the user sets the printer to, so I think I'm right in saying that you can force a printer to print in landscape. Also, my script doesn't rotate the clip if the printer is set to print in landscape. "You have to rotate the clip" is only part of the story. The PrintJob class has inconsistencies in its internal math, which is why I had to set realW, realH, orgX and orgY and do different calculations at different points in the script. I wrote that code with much trial and error (and no wasted paper thanks to Microsoft image documents). > Um - unless I'm missing something - the code you link to is > just rotating the image to be printed to make it landscape > (if the printer settings aren't already set to landscape). > You can't actually set the printer settings to landscape > programmatically, you have to rotate the clip in question. > > Which is, I think, what I said. > > Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Q:using printjob class
And on my blog: http://www.stevensacks.net/2007/03/16/force-landscape-printing-with-prin tjob/ ___ 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] Q:using printjob class
Here's a shorter version of that link showing how to do it. Code written by me. http://tinyurl.com/38he4a ___ 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] Q:using printjob class
> >>1) always make a printer default to landscape mode and > > I know the answer to #1 is no. > and... > 1) You can't make the printer default to landscape, > but you can rotate the clips that you are printing. Actually, you can! PrintJob is a poorly written class that you have to make special accomodations for to do this. Here is the code to force printing in landscape. Awesome, the Flashcoders archives are all 404 according to google. :( Here is the code (scroll all the way down to the bottom - the post by Ultimante) to do it. http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=288&t hreadid=1089277&enterthread=y ___ 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] xml parse question - Steve Sacks
Hey Jason, You don't say .nodeValue - the nodeValue is just the first item in the Array. Technically, it's a String object. Here is a sample class that parse that entire xml and traces it out. In your timeline just put: import com.Test; var test:Test = new Test(); And you'll see it trace the test.xml file. /// import com.stevensacks.data.XML2AS; import mx.utils.Delegate; class com.Test { private var xml:XML; function Test() { var d:Date = new Date(); var xmlPath:String = "test.xml"; load(xmlPath); } private function load(xmlPath:String):Void { xml = new XML(); xml.ignoreWhite = true; xml.onLoad = Delegate.create(this, parseXML); xml.load(xmlPath); } private function parseXML(success:Boolean):Void { if (success) { var xmlObj:Object = {}; XML2AS.parse(xml.firstChild, xmlObj); trace("test.foo = " + xmlObj.config[0].test[0].attributes.foo); var nodes:Array = xmlObj.config[0].items[0].item; var i:Number = nodes.length; while (i--) { trace(nodes[i]); } } else { trace("XML Failed to load"); } } } ___ 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] xml parse question
Or you can save yourself the very slow Array.reverse() and just iterate through the array backwards, too. > You might be aware of this, but just an FYI, if you're > concerned about attributes being order specific. When you > loop through the attributes with a for statement, you'll get > the attributes in the reverse order. I personally loop > through the attributes and push the attribute name to an > array and then reverse order, when the for is done. ___ 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 - using the back button
Google "SWFAddress" > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Karim Beyrouti > Sent: Thursday, March 15, 2007 4:56 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Flash - using the back button > > Hi All, > > I was just wondering what the best way to activate the > browser's back button for a Flash(8) app?... are there any up > to date resources / tutorial about this?... > > > Kind regards > > > > Karim ___ 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] xml parse question
Here's XML2AS as an AS2 static class for her pleasure. class com.stevensacks.data.XML2AS { public static function parse(n, r) { var a, d, k; if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0]; else r = (a=r[k])[d=r[k].push({})-1]; if (n.hasChildNodes()) { if ((k=n.firstChild.nodeType) == 1) { r.attributes = n.attributes; for (var i in k=n.childNodes) XML2AS.parse(k[i], r); } else if (k == 3) { a[d] = new String(n.firstChild.nodeValue); a[d].attributes = n.attributes; } }else r.attributes = n.attributes; } } Usage: var xml:XML = someXML; var xmlObj:Object = {}; XML2AS.parse(someXML.firstChild, xmlObj); trace(xmlObj.config[0].test[0].attributes.foo); -- bar var nodes:Array = xmlObj.config[0].items[0].item; var i:Number = nodes.length; while (i--) { trace(nodes[i]); } -- Some text -- More text -- Other text ___ 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] is flash still alive?
I was joking, hence the ;) ___ 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] is flash still alive?
Flash is dead. Long live WPF/E! ;) ___ 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] deleting a progress bar after loading
You can't tell an object to delete itself from within its own thread. When you delete an object outside of its own thread, you need to first delete any functions assigned to that object and remove it from any event listeners of other objects or you will end up with memory waste. ___ 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: Cache Killer... is it bulletproof ???
> A: deny a user from hotlinking Meaning? B: deny cacheing of swf files and content Impossible. > C: deny playability locally. Check for domain at launch. If domain doesn't match, don't play. "Cache Killer" isn't about keeping something from being cached (which you can't do), it's about forcing the browser to not load the cached version but instead get the latest version from the server. ___ 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] AS3... when to start?
The issue at hand is that there is really a lack of information out there to educate Flash developers on what the benefits and differences are of using Flex. You pretty much have to take the plunge and learn it to educate yourself on why you should be using it in the first place. This is, IMO, Adobe's burden, however, it should be noted that a lot of Flex developers come not from Flash, but from arenas like Java, .NET, VB, etc. and they needed no prodding as Flex fulfills a need many of them have been looking for. To say that Flex is only as good as the components it comes with is not a fair statement. You can, should and do write your own components with Flex. You don't have to only use the components Flex comes with if you don't want to (much the same as Flash in this regard). If you come from Flash, you will find the Design view woefully inadequate compared to what you're used to with the timeline. There's no visual z-indexing or folders, etc. However, without breaking any NDAs, I'll casually mention that Adobe is working on making Flex Builder more attractive to designers. ;) The best thing I've heard comparing Flex vs. Flash (and it's still not really sufficient) is that there are applications that are much easier to write in Flex than in Flash and vice-versa, and knowing which to use and how to use them will help you choose the right implementation for your client. At the same time, pretty much every Flash developer I know that took the plunge to Flex no longer does any Flash (if they can help it) and swears by Flex. So, in conclusion, you have to take the time to learn Flex to understand Flex, but in doing so you may never come back to Flash. I'm still in the early stages of learning Flex, so I can't speak to why those who emigrate never return. ___ 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] Cache Killer... is it bulletproof ???
The user would have to reset their clock and make the request at the EXACT SAME MILLISECOND in time. It's nigh impossible. It will never ever ever EVER happen. You're good to go. var d:Date = new Date(); var noCache:String = String(d.getTime()); var xmlPath:String = "http://www.domain.com/my.xml?noCache="; + noCache; ___ 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] ADMIN: DO NOT SEND UNSUBSCRIBE REQUESTS TO THE LIST
> I know the whining has been excessive, but there are real > people behind those e-mails. Your bleeding heart is making a mess of the sarcasm on this thread. I know you work in an extremely corporate environment, but try and find a sense of humor and lighten up, Jason. ;) ___ 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] ADMIN: DO NOT SEND UNSUBSCRIBE REQUESTS TO THE LIST
You should just post their emails on spam forums where they are sure to be culled by bots and then they'll start getting so much spam it'll force them to get a brand new email. Maybe then they'll see that a few unwanted emails are really not that bad compared to how bad it will be if they don't stop whining about an issue you're obviously working on. ___ 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] OT: Pirated Books
Are you so retarded that you would repost the same ignorant denial to the list? Omar, you broke the law and that's that. You're only making yourself look dumber by denying it. Drop it move on before you make yourself look any worse. ___ 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] shape tweens at 60fps
Any browser except IE on Windows will have reduced performance. Only IE gives Flash as much RAM and CPU as it wants. ___ 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] Dynamic Flash
Posting the same question under three different subjects won't get your question answered any quicker. Flash is perfectly capable of CRUD communication with a database and displaying it however you like. You're asking for advice on how to set up a relational database and how to write inner join SQL statements, and then how to send that data to Flash. Only one part of that has anything to do with Flash, and it's probably one of the most basic things you can do with Flash (displaying data). I suggest you buy an introduction to Flash book and an introduction to relational database book and get to reading. ___ 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] OT: Pirated Books
Omar Fouad said: "this is not called piracy my little brave boy...know your right and respect your older bro." Give us a break, Omar. http://en.wikipedia.org/wiki/Software_piracy The copyright infringement of software refers to several practices when done without the permission of the copyright holder: Creating a copy and giving it to someone else. This constitutes copyright infringement in most jurisdictions. http://www.usatoday.com/tech/news/2007-02-05-potter-no-ebook_x.htm Author J.K. Rowling has not allowed the first six Potter stories to be released as e-books and has no plans to change that for the seventh and final work. ... Rowling has cited ... concern[s] about online piracy. Lots more can be found here. http://www.google.com/search?source=ig&hl=en&q=ebook+piracy&btnG=Google+ Search Maybe you should know you're wrong and stop trying to justify your illegal activity. At the same time, I don't agree with Ian the tattle-tale posting about it on Flashcoders. He would have done quite well in the McCarthy era. Cheers ___ 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] Subscription problems
> There are those who cry and then there are those who help themselves. Hear, hear! ___ 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] Getting frustrated. regarding set Interval, and for loop.
> So even though I never wrote it I would offer the following > advice, which is to *almost* not use setInterval at all. Hogwash. http://www.kennybunch.com/index.php?p=16 :) ___ 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] Skewing MovieClip??
> Please take me off this list, the emails just keep coming > > Ahhggg At the bottom of every email it tells you how to get off the list. > ___ > 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] test
1 out of 1 tests completed. Errors: 0. Warnings: 0. BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Dave Watts > Sent: Sunday, February 25, 2007 11:11 AM > To: flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] test > > Test again ... > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > > Fig Leaf Software provides the highest caliber > vendor-authorized instruction at our training centers in > Washington DC, Atlanta, Chicago, Baltimore, Northern > Virginia, or on-site at your location. > Visit http://training.figleaf.com/ for more information! > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] What do you think are the best Flash projects andRIA's
Looks like they're using DENG or something like it. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Glen Pike > Sent: Thursday, February 15, 2007 3:44 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] What do you think are the best > Flash projects andRIA's > > Hi, > > It might not be a full on application as such, but I > really liked the way that Pier Inc's site uses Flash to > enhance the blog as I see it. > > http://pierinc.com/ > > Check it out, there is some nifty ideas and slick stuff > in there. > Then set your user-agent to GoogleBot and see what is served. ___ 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] limits to AS2 levels of OOP class inheritance?
I was going to recommend trying to compile with MTASC as its strictness often exposes mistakes that the IDE won't catch. Since you're already doing that, I suggest you do some Debugging 101 and make a trivial example to see if you can replicate it outside your application environment. ___ 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] limits to AS2 levels of OOP class inheritance?
> - Refactor to simpler class relationships (worst case but it > did the trick for me - had to duplicate code, ewww). You could use Composition instead, which reduces the need for normal class inheritance. ___ 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] Anyone hate flash 9 already?
>Adobe calls it "Flash 9 Professional Actionscript 3.0 Preview" Fair enough, though in my defense, I didn't capitalize it as if it was the actual. I just described it. Still not a beta. ;) ___ 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] Anyone hate flash 9 already?
> What people keep missing here is THERE IS NO "FLASH 9". > There is the Flash 9 player, there is the Flash 9 beta, which > is only Flash 8 with a Flash 9 player compiler, but no Flash 9 yet. The closed Flash 9 Beta (Blaze) has been going on for a few months now. You're talking about the public patch for Flash 8 that lets you publish as Flash 9. If the OP is sharing information about Blaze on this list, he's breaking the NDA. This alone is probably pushing it. *duck* ___ 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] Adding a function to the String prototype
You should absolutely feel comfortable and fine using prototype to add functions to the String native object if you want. I say if it works, use it. Just because they skimped on String and Array methods that MOST other languages have doesn't mean you should have to write a bunch of extra code to extend the class or cast your Strings as MyStrings. Feel free to use prototype until you move to AS3. ___ 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 Standards: Use of Get/Set
Get/set is useful when creating a visual object class, as well as for setting private variables on set. It's also useful when you don't want the variable that is being set to be getted, as well. For instance, I have an application which allows a user to type in the day, month and year into three different fields. This data is applied to the model via setters: public function set month(n:Number):Void { _month = --n; var d:Date = new Date(_msDate); d.setMonth(n); _msDate = d.getTime(); } public function set day(n:Number):Void { _day = n; var d:Date = new Date(_msDate); d.setDate(n); _msDate = d.getTime(); } public function set year(n:Number):Void { _year = n; if (String(_year).length == 1) { _year = Number("200" + n); } else if (String(_year).length == 2) { _year = Number("20" + n); } var d:Date = new Date(_msDate); d.setFullYear(_year); _msDate = d.getTime(); } This allows me to set the month to a valid flash month (month - 1), and update _msDate, which is the date in milliseconds, for sorting by dates very easily. I use setters and getters because it makes autocompletion and code hints a breeze. It also is great for visual object model classes. If you choose to write getVariable vs get variable, it's up to you. I use them in different ways at different times. ___ 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] (no subject)
I wasn't aware that Foreigner posed their question to Flashcoders, but I'm sure they appreciate the answer. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Omar Fouad > Sent: Monday, February 12, 2007 11:28 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] (no subject) > > hi > Omar Fouad-- Love is always patient and kind. It is never > jealous. Love is never boastful nor conceited. It is never > rude or selfish. It does not take offense and is not > resentful. Love takes no pleasure in other people's > sins...but delights in the truth. It is always ready to > excuse, to trust, to hope... and to endure... whatever comes. > _ > Live Search: Better results, fast > http://get.live.com/search/overview > ___ > 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: Re[2]: [Flashcoders] Identifier expected
Stop using new Object() and use {}; :) I'm not experiencing the same issue you're having Jason. Not sure why. ___ 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] Identifier expected
private function createData():Void { this._data = {a:{t1:0, t2:0}}; } One line. :) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Mendelsohn, Michael > Sent: Friday, February 09, 2007 11:02 AM > To: Flashcoders mailing list > Subject: RE: [Flashcoders] Identifier expected > > Thanks Jason. I see what you're saying. So I inited an > object and then define it, but the below still errors. I was > just hoping to be able to define my object with only one line of code. > > private function createData():Void { > this._data = new Object(); > this._data["a"] = new Object(); > this._data["a"] = {"t1":0, "t2":0}; > } > > > I was using new Number for a reason, but it's not critical I suppose. > Thanks Steven. > > - Mike > > > > > > > The second line does not work because you are evaluating a > string to try to resolve it to a property of the object, > (which you are hoping is a > sub-object) that does not exist yet. In other words, > > this._data.a > > the .a in the above statement has not been declared or > identified as an object, and thus this._data["a"] resolves to nothing. > ___ > 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] Identifier expected
> As you have discovered you are not able to use numbers as > keys in line objects. That's not true. Just wrote this and it works fine. a = {}; a["a"] = {}; a["a"][1] = new Number(5); trace(a["a"][1]); -- 5 Works for me. You must be doing something else wrong. I'm not sure why you're using new Number(). I don't think I've ever used that. Ever. ___ 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] determining which object is displayed at agivenpoint
Oops. I responded to the wrong thread, I'm sorry. :( That being said, perhaps rethinking your approach would help. There's a tutorial on Kirupa about managing z-order stacking of movieclips which might contribute to a solution. http://www.kirupa.com/developer/actionscript/3dexplore.htm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] determining which object is displayed at agivenpoint
I think the class I wrote works well enough, I actually pulled it out of an app I'm working on with complex rollovers like that. Why not consider my way? It's simple, easy and, most importantly, it works. It hardly takes any processing power, too. ___ 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] Detecting mouse events over non-white parts of amovieClip
class com.domain.RollWhileWithin extends MovieClip { public var rolled:Boolean; function RollWhileWithin () { rolled = false; } public function doRollOver():Void { if (!rolled) { rolled = true; gotoAndStop("over"); } } public function doRollOut():Void { if (rolled) { rolled = false; gotoAndStop("up"); } } } One level above it, you can manage as many clips as there are. var checkMouseInterval:Number; clearInterval(checkMouseInterval); checkMouseInterval = setInterval(this, "checkMouse", 100); private function checkMouse():Void { var i:Number = 5; while (i--) { var clip:MovieClip = this["MC_RollClip" + i]; if (_xmouse > clip._x && _xmouse < clip._x + clip._width && _ymouse > clip._y && _ymouse < clip._y + clip._height) { clip.doRollOver(); } else { clip.doRollOut(); } } } ___ 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] to get last browsed web page before current
http://jeremiahgrossman.blogspot.com/2006/08/i-know-where-youve-been.htm l#whereyoubeen Use at your own moral peril. ___ 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] finding out which fonts are embedded inaswfatruntime?
Mike, your signature needs an editor. :) > ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ > Tel: 01964 672000 > Fax: 01964 671102 > Registered in England no. 01646471 > The information contained within this email expresses the > views of the sender and not necessarily those of the company. > It is private and confidential and may be legally privileged. > It is intended solely for those authorised to receive it. If > you are not the intended recipient you are hereby notified > that any disclosure, copying, distribution or action taken in > reliance on its contents is strictly prohibited and may be > unlawful. If you have received this email in error, please > telephone us immediately on 01964 672000 or email a reply to > highlight the error and then delete it from your system. This > email may contain links to web-sites, the contents of which > ECM Systems Ltd have no control over and can accept no > responsibility for. Any attachments have been virus-checked > before transmission; however, recipients are strongly advised > to carry out their own virus checking as ECM Systems Ltd do > not warrant that such attachments are virus-free. Please note > that this email has been created in the knowledge that > Internet email is not a secure communications medium. We > advise that you understand and observe this lack of security > when emailing us. > > ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ > > Tel: 01964 672000 > Fax: 01964 671102 > > Registered in England no. 01646471 > > The information contained within this email expresses the > views of the sender and not necessarily those of the company. > It is private and confidential and may be legally privileged. > It is intended solely for those authorised to receive it. If > you are not the intended recipient you are hereby notified > that any disclosure, copying, distribution or action taken in > reliance on its contents is strictly prohibited and may be > unlawful. If you have received this email in error, please > telephone us immediately on 01964 672000 or email a reply to > highlight the error and then delete it from your system. This > email may contain links to web-sites, the contents of which > ECM Systems Ltd have no control over and can accept no > responsibility for. Any attachments have been virus-checked > before transmission; however, recipients are strongly advised > to carry out their own virus checking as ECM Systems Ltd do > not warrant that such attachments are virus-free. > Please note that this email has been created in the knowledge > that Internet email is not a secure communications medium. > We advise that you understand and observe this lack of > security when emailing us. ___ 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] Tab Problem
Increments are your friend. :) a = 0; tf1.tabIndex = ++a; tf2.tabIndex = ++a; tf3.tabIndex = ++a; btn4.tabIndex = ++a; btn5.tabIndex = ++a; If you had to reorder any of those tab orders all you have to do is cut and paste them into their new position. If you number your tabIndexes specifically and you needed to move one, you would have to renumber any that came after the one you moved. Not fun, especially if you have a lot of tabbable elements. ___ 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] brain is dead: Syntax Error, why?
A normal standard I use is: com.domain_or_client.and.your.class.paths Put those in a folder called classes. Go into your AS2 options (publish Flash panel) and set ./classes as your classpath. -Steven ___ 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] Pretty impressive Flash website
Road Runner has been around for awhile, it's def not Flex. It was done by Fantasy Interactive. ___ 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] Scrolling text with dragger??
You don't assign a movieclip to it, you add your movieclip as a listener to the scrollbar. MC_Scrollbar.addEventListener("change", yourClip); or if you want to use Delegate ...("change", Delegate.create(yourClip, onScroll); or if your clip has its own class ...("change", Delegate.create(this, onScroll); ___ 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] Scrolling text with dragger??
I have a scrollbar class I wrote and blogged about. You might find it useful for your needs. http://www.stevensacks.net/2007/02/06/flash-scrollbar-ftw/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] text length difference
You might also want to strip any non-html carriage returns, which will not get picked up by ignoreWhiteSpace, as well. myHtmlString.split("\n").join("").split("\r").join(""); ___ 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] Extending List v2 component
Why use a component at all? All you're talking about doing is scrolling a bunch of movieclips behind a mask. I posted some code here awhile back that covered doing that. Search the archives and you'll find it. It's pretty straightforward to do. The MM components are heavy, take too long to render and are buggy to boot. You're better off rolling your own or trying a 3rd party solution. ___ 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] Detecting Rollover w/o onRollOver
You can use hitTest, you can use mouse position, or you can set an interval to fire a function in 10 ms when you rollout that checks to see if a flag is true that the other button will set true onRollOver. function checkFlag() { clearInterval(checkInterval); delete checkInterval; if (btn2Flag) { btn2Flag = false; btn1.gotoAndStop("out"); } } btn1.onRollOut = function() { checkInterval = setInterval(checkFlag, 10); }; btn2.onRollOver = function() { btn2Flag = true; }; ___ 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] Need help with Keyboard events
Pseudo-code: obj.onKeyDown = function() { if (Key.getAscii() == "C" && Key.isDown(Key.CONTROL)) { // copy } }; ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] What are your thoughts on creating a hook back vsDelegate ?
> Also, anyone please let me > know if my code formatting doesn't work (i.e: shouldn't be > using hotmail to post) Your code formatting is not working. Delegate rocks. I use it all the time. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Stephen Ford > Sent: Sunday, February 04, 2007 7:48 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] What are your thoughts on creating a > hook back vsDelegate ? > > Which do you prefer:oThis:Object = this;mcClear.onRelease = > function():Void{oThis.clearForm();}ormcClear.onRelease = > Delegate.create(this, clearForm); ___ 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] Flair Pattern bad mixins good (?)
Yeah, the GoF book is definitely like reading a calculus textbook. It's dry and to the point and the examples are in Smalltalk and some C++, which means a lot of cross-referencing with google. The concepts they discuss and the examples they give are helpful to a point but code examples you can't understand definitely get in the way. GoF's is good reference book worth owning, and once you grasp design patterns more firmly, you'll probably get more from it. Head First is a lot more accessible out the gate. ___ 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] Progresivly track upload speed
> Is there any way to progressively track upload speed in flash? http://www.speedtest.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