[Flashcoders] shared local object, or XML export? or other?

2007-03-19 Thread kent humphrey
For an upcoming project, I have to investigate whether to use a shared localobject for storing user data, or exporting XML. This is for a cd based app, not a website. A shared localobject would be my first choice, except that we want to be able to access the saved data from a second release of th

Re: [Flashcoders] Acronym for Actionscript/Flash/Flex

2006-11-26 Thread Kent Humphrey
chris daubney wrote: In the same way that AJAX stands for Javascript/XML, can anyone come up with or has heard an appealing acronym for Actionscript/Flex/Flash? As long as it doesn't turn into FAF... Why? Perhaps in small part due to their heritage, the Actionscript/Flex/Flash core set of

Re: [Flashcoders] migrating to Flex

2006-11-26 Thread Kent Humphrey
Millie Niss wrote: Am I the only one on this list who (still) uses the Flash IDE (Flash 8 Pro) and hasn't migrated to AS 3.0 or any version of Flex? I'm still using Flash 8, but am itching to get into a Flex project. I am interested in both but do not want to fork over any more $$ to ex-M

Re: [Flashcoders] access included .as of parent movie

2006-11-23 Thread Kent Humphrey
eadid=1088462&highlight_key=y&keyword1=intrinsic On 23 Nov 2006, at 13:15, Ian Thomas wrote: Have a hunt for the word 'intrinsic' - either in this list archives or on the Adobe site. HTH, Ian (Sorry, too busy to write more detail. :-) It comes up fairly often.) On 11/23/06, Kent Hum

[Flashcoders] access included .as of parent movie

2006-11-23 Thread Kent Humphrey
Hi there, I haven't been around for a while, but I'm getting to do some fun flash stuff again - so I need some help :> I find myself using the excellent mc_tween2.as quite abit, and on the current project I have a parent movie that loads 2 sub movies, and I'd like to use the methods in the

Re: [Flashcoders] use of embedded font = blank text?

2006-06-02 Thread Kent Humphrey
n the code that you provided "question_fmt" is not defined anywhere. I guess it was defined in code that you didn't post? Correct, it is defined at the top of the script. Thanks. Kent Humphrey wrote: http://devqa.exnis.net/vanclarke.com/www/test.html Can someone tell me w

Re: [Flashcoders] use of embedded font = blank text?

2006-06-02 Thread Kent Humphrey
and see what happens. Thanks. On 6/1/06, Kent Humphrey <[EMAIL PROTECTED]> wrote: http://devqa.exnis.net/vanclarke.com/www/test.html Can someone tell me what I am doing wrong here? What you can't see on that test page is the questions, which are being pulled in with identical cod

[Flashcoders] use of embedded font = blank text?

2006-06-01 Thread Kent Humphrey
http://devqa.exnis.net/vanclarke.com/www/test.html Can someone tell me what I am doing wrong here? What you can't see on that test page is the questions, which are being pulled in with identical code, but have been set to use an embedded font. Here is my code: q_mc = content_mc.createTextF

Re: [Flashcoders] flickering components, depth issue?

2006-06-01 Thread Kent Humphrey
:11, Ramon Miguel M. Tayag wrote: I use getNextHighest and it has always worked fine. I don't see why it should be a problem - unless you change your depths in the middle of the movie for some reason. On 6/1/06, Kent Humphrey <[EMAIL PROTECTED]> wrote: http://devqa.exnis.net/vancla

Re: [Flashcoders] flickering components, depth issue?

2006-06-01 Thread Kent Humphrey
hange your depths in the middle of the movie for some reason. On 6/1/06, Kent Humphrey <[EMAIL PROTECTED]> wrote: http://devqa.exnis.net/vanclarke.com/www/index.html Go to News & PR/Fashion Shows and News & PR/Photo Gallery The Fashion Shows page is using the FLV Playback from Flash

[Flashcoders] flickering components, depth issue?

2006-06-01 Thread Kent Humphrey
http://devqa.exnis.net/vanclarke.com/www/index.html Go to News & PR/Fashion Shows and News & PR/Photo Gallery The Fashion Shows page is using the FLV Playback from Flash 8, the Photo Gallery is using thumbgallery from www.flashrelief.com Perhaps foolishly, I have been developing this on a Ma

Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Kent Humphrey
fdt? Can it really notice the wrong case of a 3rd party class/function? On 15 May 2006, at 13:10, Johannes Nel wrote: then obvisouly not. sepy is not a bad editor, but it should surely point out things like that. fdt is the way :) ___ Flashcoders

Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Kent Humphrey
I'm using SEPY on OSX, good enough for you? ;> On 11 May 2006, at 14:06, Johannes Nel wrote: get a proper as editor i would say ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf

Re: [Flashcoders] xpath xml strangeness

2006-05-11 Thread Kent Humphrey
Unbelievable! Thanks a lot Serge, you're a lifesaver :> On 11 May 2006, at 13:50, Serge Jespers wrote: Could it be just a plain old typo? XPath is with capital X and capital P. In the perm_items line you wrote Xpath Serge These lines of code work: menu_root = XPath.selectNodes(this, "ro

[Flashcoders] xpath xml strangeness

2006-05-11 Thread Kent Humphrey
ok, been banging my head against a wall for ages on this one. These lines of code work: menu_root = XPath.selectNodes(this, "root/menu/item/@name"); trace('menu_root: ' + menu_root); These don't: perm_items = Xpath.selectNodes(this, "root/perm/item/@name"); trace('perm_items: ' + perm_items);

Re: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey
Cool, thanks for that. It's strange the holes you find in your AS knowledge sometimes... On 27 Apr 2006, at 15:29, Zeh Fernando wrote: That is exactly what it does, eg 0x73 becomes 7558485, but that's not what I need. I need it to stay hexadecimal, but to be recognised as a number ty

Re: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey
Just did it, and yes, it doesn't have to be a hex - sweet! Thanks for the help guys. On 27 Apr 2006, at 15:14, Kent Humphrey wrote: The docs only have hex numbers used in the colorTo() function, so I assumed that's what I needed - can I use a norm

Re: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey
On 27 Apr 2006, at 15:00, Zeh Fernando wrote: trace(bgColour[0]) returns the correct value, but trace(Number(bgColour[0])) returns NaN - so how do I make it a real number? The help docs say that a string that starts with 0x will be treated as hexadecimal. Use parseInt() to convert a str

Re: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey
will be treated as hexadecimal. On 27 Apr 2006, at 13:11, Kerem Gülensoy wrote: Number cheers | kerem -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Kent Humphrey Gesendet: Donnerstag, 27. April 2006 13:54 An: Flashcoders mailing list Betreff

[Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey
Is a colour stated as 0xFF00FF an object? I am getting a colour from an xml attribute with XPath (colour="0xFF00FF"), and then trying to use that colour with the mc tween class - my_mc.colorTo(bgColour, 1). But it always changes to black. If I trace() the bgColour, it has the correct valu

Re: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-19 Thread Kent Humphrey
Michael Bedar wrote: Just for the record, there is no autoplay on OSX, if you are supporting mac. It's also worth noting that Autoplay on Windows is able to be turned off - and many people do, therefore you cannot rely on it being on. ___ Flashcode

Re: [Flashcoders] FF Seattle Report

2006-03-06 Thread Kent Humphrey
On 6 Mar 2006, at 13:33, Nick Weekes wrote: The point is Flex is a completely separate technology Adobe are actively pushing forward, and they're trying to get me in on it by teasing me with a preview of AS3 ;P Conspiracy! Aiee!! But seriously. It smacks of a form of early brand imprinting

Re: [Flashcoders] xpath - returning object not string?

2006-02-03 Thread Kent Humphrey
n one of them, hence you get the object. HTH, Alias On 2/3/06, Kent Humphrey <[EMAIL PROTECTED]> wrote: Continuing my further adventures in xpath land: clientList = XPath.selectNodes(this, "root/clients/client/@name"); trace(typeof(clientList[0])); That trace statement returns

[Flashcoders] xpath - returning object not string?

2006-02-03 Thread Kent Humphrey
Continuing my further adventures in xpath land: clientList = XPath.selectNodes(this, "root/clients/client/@name"); trace(typeof(clientList[0])); That trace statement returns "object", so my array is an array of objects, not the strings I was after. WIll I have to String(clientList[0]) every

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Kent Humphrey
Merrill, Jason wrote: Xpath is quick enough to read it directly each time. It's what I like about it. Fantastic. Thanks for all the info. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/fl

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Kent Humphrey
Merrill, Jason wrote: It's well formed, sure, but I would do it like this instead - make heavy use of attributes - as much as possible for speed, relationships, and readability, something like this: Preferrably if you could find a way to work this, you could also maybe just do this to reduce r

Re: [Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Kent Humphrey
On 2 Feb 2006, at 15:48, Merrill, Jason wrote: However, not a good idea to have a child node be the same name as the parent node (though it's OK in the sense it that won't screw up Xpath). Would you believe my problem was I had product/products instead of product/products ?! Sheesh...

[Flashcoders] xpath / xpath4as2 beginners question

2006-02-02 Thread Kent Humphrey
I'm trying to figure out how to use xfactorstudios xpath4as2 class, but I can't seem to get over the first hurdle! Can anyone tell me why this isn't working? import com.xfactorstudio.xml.xpath.*; myDoc = new XML(); myDoc.onLoad = function(){ var products = XPath.selectNodes(this,"/pr

Re: [Flashcoders] avoiding a stack of lists

2006-01-31 Thread Kent Humphrey
Nathan Derksen wrote: Sorry for the delayed response, it's been a busy day. Not a problem at all. I hope this helps. That looks great, an improvement over what I've already done, but it wont require a full rewrite. Thanks a lot. ___ Flashcoders

Re: [Flashcoders] avoiding a stack of lists

2006-01-30 Thread Kent Humphrey
On 30 Jan 2006, at 17:13, Nathan Derksen wrote: Well, regardless of whether or not you use listeners, you still need to create the data relationship. I don't think encoding the relationships into 25 listeners is necessarily a good idea, either. An associative array, indexed by ID, could st

Re: [Flashcoders] avoiding a stack of lists

2006-01-30 Thread Kent Humphrey
On 30 Jan 2006, at 17:12, Alan MacDougall wrote: Close. Let's assume you're using mx.events.EventDispatcher. Your event broadcaster class starts like this: Wow. Thanks for all that. I'm not using classes so that's another thing I'll have to study up on... I've filed your post away for fu

Re: [Flashcoders] avoiding a stack of lists

2006-01-30 Thread Kent Humphrey
On 30 Jan 2006, at 16:30, Alan MacDougall wrote: I've made a single item work with my initial solution, which was to have a list for each item that lists which items in the other lists should highlight. But by the time I've made 25 lists for my 25 (current) items, that seems like a lot

[Flashcoders] avoiding a stack of lists

2006-01-30 Thread Kent Humphrey
Here's more of a higher-level problem for you helpful people :> Imagine 3 lists, someListA, anotherListB, and lastListC. When I rollover something in someListA, I want the items in anotherListB and lastListC to highlight. And the same for rolling over something in anotherListB or lastListC.

Re: [Flashcoders] targetting a mc from a list - solved

2006-01-30 Thread Kent Humphrey
Well, yeah, these list items need to be client names and that kinda thing, so might be a single word, might be 3 or 4 words. String wrangling to the rescue. On 30 Jan 2006, at 15:10, Adrian Lynch wrote: Ah, so you had a ["mc 1", "mc 2"] type thing going on? Ade ___

Re: [Flashcoders] targetting a mc from a list - solved

2006-01-30 Thread Kent Humphrey
ok, found the problem, my actual list has strings with spaces in them, which is what is making it not work. So I guess I'll fill them with "_" and then replace them with " " when I need the string with spaces. Thanks for the help guys. On 30 Jan 2006, at 14:00, Adrian Lynch wrote: Are you

Re: [Flashcoders] targetting a mc from a list

2006-01-30 Thread Kent Humphrey
Thanks, but that doesn't work either. It looks like it should, but I'm still getting undefined. On 30 Jan 2006, at 13:31, Adrian Lynch wrote: Try: parent_mc[listWhatever[0]]; Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kent Humphre

[Flashcoders] targetting a mc from a list

2006-01-30 Thread Kent Humphrey
I have a list: (code is example only) listWhatever = ["mc1", "mc2"]; This list is cycled through to generate some mcs inside parent_mc. I now want to target one of those mcs again. Lets say I want to target the first one in my list. I thought I could use eval() to generate the statement, lik

Re: [Flashcoders] ActionScript Cheatsheet Update (new URL)!

2006-01-27 Thread Kent Humphrey
Sander wrote: > http://www.actionscriptcheatsheet.com What a nice reference card! It's much faster to glimpse at the wall to lookup code than to use autocomplete! Oh wait, it's not. I don't know about others, but sometimes I get lazy and don't use :Array or whatever_mc, which means autoco

Re: [Flashcoders] ActionScript Cheatsheet Update (new URL)!

2006-01-27 Thread Kent Humphrey
That's cool, would be great to print onto A3 and stick on the wall next to my desk. Any chance of a printable PDF version or something? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashco

Re: [Flashcoders] nested MC not firing event

2006-01-26 Thread Kent Humphrey
On 26 Jan 2006, at 11:38, Roman Blöth wrote: - well, in my case I switched to a onEnterFrame-method checking the _mousex and _mousey relative to the mc itself (i.e. the background-mc) and only when the mouse is outside the mc's coordinates I let Flash do what else would be in a onMouseLea

Re: [Flashcoders] nested MC not firing event

2006-01-26 Thread Kent Humphrey
On 26 Jan 2006, at 11:01, Roman Blöth wrote: Yes, that unfortunately is the only way to go - Director btw does this much better: With Lingo you can pass every event, so it reaches all objects that want to receive them... I'm a Lingo refugee, feel my pain... But one more comment on the m

Re: [Flashcoders] nested MC not firing event

2006-01-26 Thread Kent Humphrey
On 26 Jan 2006, at 10:48, Martin Wood wrote: So you have something like this : MC_A --¬(uses mouse handlers) MC_B(also uses mouse handlers) Where A is B's parent but A has some handlers defined and none of the handlers in B will work. That is correct. The way aroun

[Flashcoders] nested MC not firing event

2006-01-26 Thread Kent Humphrey
This is a problem that has always plagued me, and I usually end up just using the timeline to get around it, but this time I want to do it properly! The situation is, I have a partially masked MC that on (rollOver) tweens to be fully revealed. on (rollOut) does the opposite, hiding it aga

Re: [Flashcoders] LoadVars + sendAndLoad + PERL + FireFox = Problem

2005-11-16 Thread Kent Humphrey
On 16 Nov 2005, at 13:50, Philip Isaacs wrote: What is "Look into CR/LF" suppose to mean? Could you please clarify. Thanks. I think he means Carriage Return or Line Feed ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfi

Re: [Flashcoders] OT: Mac Mini as (L)AMP+CFMX dev server...

2005-11-03 Thread Kent Humphrey
Weyert de Boer wrote: Hi! I just ordered a new Powerbook G4 15" for the design work. My experience is that the Apple PowerPC are way faster in graphics then a pc. 10-15secs for gradient fills. Hopefully the Powerbook G4 1.67ghz is fast enough for the PhotoShop and Flash work. My experience

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Kent Humphrey
Eric E. Dolecki wrote: use setTimeout now and you dont need to worry about interval ids. e.dolecki Have you found any documentation about setTimeout - because I haven't :< ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chatty

Re: [Flashcoders] scrolling problem

2005-10-29 Thread Kent Humphrey
Frédéric v. Bochmann wrote: Happy to hear you solved your problems, including the height of your slider was essential too :) Happy you spotted that one yourself! :D Now the arrow, what you're saying is the simplest way. Something that might be interesting for you to try to implement is to hav

Re: [Flashcoders] scrolling problem

2005-10-29 Thread Kent Humphrey
Frédéric v. Bochmann wrote: I forgot something...true. Change it to something like: var scrollRatio = scrollBar.slider._y / scrollBar.scrollTrack._height; var heightToScroll = currentChild._height - currentChildContainerMask._height; if(heightToScroll < 0) { heightToScroll = 0; } currentChild.

Re: [Flashcoders] scrolling problem

2005-10-29 Thread Kent Humphrey
Now for your script, I don't usually go that way of doing it so here is how I'd probably do it myself: var scrollRatio = scrollBar.slider._y / scrollBar.scrollTrack._height; currentChild._y = - scrollRatio * currentChild._height; I'm not 100% sure but I think this should work. Notice the nega

Re: [Flashcoders] scrolling problem

2005-10-29 Thread Kent Humphrey
Frédéric v. Bochmann wrote: "As you can see I've currently got the slider clip as a child of the scrollBar clip - should I bring it out to the same level?" On that matter, I would say, look carefully at your line of code that follows: (scrollBar._height - scrollBar.slider._y) If the slider is s

[Flashcoders] scrolling problem

2005-10-29 Thread Kent Humphrey
Can someone help me with this code? I'm trying to figure out how to scroll an MC up and down based on the position of a scrollbar. What am I doing wrong with this code? I'm finding the ratio between how tall the content is (currentChild) and how tall the scrollbar is: scrollRatio = currentC

Re: [Flashcoders] scroll dynamic MC help

2005-10-28 Thread Kent Humphrey
Can I have a peek at your code? :> i don't mind sharing ... you can probably cook up more than a few ways to streamline my code. (If so, pass it back! :) But it'll have to wait until later tonight for me to grab the file from another machine. That would be great, thanks. I'll be sure

Re: [Flashcoders] scroll dynamic MC help

2005-10-28 Thread Kent Humphrey
On 28 Oct 2005, at 17:15, Buck Ruckman wrote: i created one for this site: http://www.frogtoggle.com/twistedhip It responds to the scroll wheel, has the hold-down-the-arrow-to- scroll functionality, a draggable thingy, etc etc. It's imperfect. It doesn't resize the dragger based on the am

[Flashcoders] scroll dynamic MC help

2005-10-28 Thread Kent Humphrey
I was wondering if any of you knowledgeable and generous souls had any pointers on how to approach building my own scroll bars for dynamically created movieclips. I've made a very simple one that just has buttons for scroll-up and scroll-down, but I'd like to add a slider too, and I;m havin

Re: [Flashcoders] how to access mcs dinamically

2005-10-28 Thread Kent Humphrey
On 28 Oct 2005, at 11:08, Roman Blöth wrote: ["mc_"+number].someProperty - when referencing mc's by name you have to put it in square brackets... Cool, you learn something everyday on here :> Goodbye eval()... ___ Flashcoders mailing list Flash

Re: [Flashcoders] how to access mcs dinamically

2005-10-28 Thread Kent Humphrey
On 28 Oct 2005, at 11:08, Jorge Rego wrote: Hi list, I have some MCs named mc1, mc2, mc3 ... I'm trying to access them like this: mc[number].someProperty ... but no luck! How can this be done!? I use eval() eval("mc"+i).someProperty where i is some number perhaps a "more correct" way wou

Re: [Flashcoders] What's This Mean?

2005-10-25 Thread Kent Humphrey
Perfect, thanks heaps for that, that's certainly tidied up my Output Window a bit - and now I can take my external .AS files into Flash and get it to tidy them up for me ;> Chris Hill wrote: Yes, working with your AS in an external editor is much better than having it haphazardly placed in a

Re: [Flashcoders] What's This Mean?

2005-10-25 Thread Kent Humphrey
James O'Reilly wrote: It all depends on how you use the .as files. You can either INCLUDE them or IMPORT them. You import classes and include external code. The error you're getting like is a result of importing your script instead of including it. Try using include: #include "yourscript.a

Re: [Flashcoders] What's This Mean?

2005-10-25 Thread Kent Humphrey
Strangely enough, I've been getting the same errors (I'm new to this external .as thing), but when publishing from PrimalScript, everything works fine... On 25 Oct 2005, at 14:21, Hans Wichman wrote: Hi, an as file may only define a class as in: class MyClass { } or an interface as in:

[Flashcoders] Flex Builder 2 -> FP8?

2005-10-19 Thread Kent Humphrey
Is it possible to use the new IDE to produce Flash Player 8.0 compatible .swfs? Of course, you couldn't use any of the new AS3 abilities, but can it work like Flash 8 - as long as you don't use any new features, you can still publish back to FP7. I'm using PrimalScript for external coding

[Flashcoders] Please Help - missing item from loaded XML file, but not when I simulate download?!

2005-10-18 Thread Kent Humphrey
http://fari.kentandangela.com This is a website I am days away from delivering, and today I'm getting a crazy problem. The menu structure is loaded from an xml file. When I view this on the web, or preview from Flash, the 5th item of the main menu doesn't display. When I do "simulate downlo

Re: [Flashcoders] scrollRect.height?

2005-10-08 Thread Kent Humphrey
Benjamin Herholz | [EMAIL PROTECTED] wrote: you dont change the height via the height property of the scrollRect. you just set a new rectangle with your desired values. var rect:Rectangle = new flash.geom.Rectangle(475,41,your new width,your new height); mainMenu.scrollRect = rect; gr, ~~

[Flashcoders] scrollRect.height?

2005-10-08 Thread Kent Humphrey
Hey guys, this is my first post, so excuse me if I misbehave ;> I'm trying to come to grips with scrollRect. I have applied it to a MC, no problem, using a new Rectangle. I can see the width, height, x, and y of the scrollRect, but I can't change them. Here is my code: var rect:Rectangle = n