[Flashcoders] FLVPlayback component - bufferingStateEntered not dispatched

2008-08-22 Thread Adrian Park
and Googling seems to turn up little info which tells me it isn't a common problem (unless I'm just using the wrong terms). Any help much appreciated. Otherwise, good weekends all! Adrian Park ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

[Flashcoders] Augmenting code in SWF (not replacing)

2008-07-03 Thread Adrian Park
but it seems MTASC replaces all code in the existing SWF rather than augmenting it. Anyone have any suggestions for how I might compile a few lines of extra code into and existing SWF whilst maintaining all existing code? Many thanks in advance for any help. Regards, Adrian Park

Re: [Flashcoders] TextField motion

2008-03-18 Thread Adrian Park
in order to see the motion. HTH. Adrian Park On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec [EMAIL PROTECTED] wrote: Hi Is there a way to apply to som text added with as3 some motion or alpha? I've got this working well: import flash.text.TextField; import flash.text.TextFormat; var

Re: [Flashcoders] rectangle (not square) based mousefollower?

2008-02-18 Thread Adrian Park
quotehowever, because the actual shape is a rectangle, i think there's an issue /quote What exactly is the issue you're seeing? I think you may be over-complicating it. If the angles that your people look are in 45 degree increments then that's how your angles should be calculated - i.e. using

Re: [Flashcoders] jsfl aligning movieclip symbols to top left

2008-02-15 Thread Adrian Park
to be more precise with the code but this should give you the basics you need to customise your own script. HTH Adrian Park On Fri, Feb 15, 2008 at 3:13 PM, Some Dude [EMAIL PROTECTED] wrote: Does anybody know what the jsfl would look like to automate the process of aligning movieclips to the top

Re: [Flashcoders] How did they do it?? A particular flash site.

2008-02-08 Thread Adrian Park
, I'll get off the OT conversation now. Good weekends all. Adrian Park On Feb 8, 2008 4:09 PM, Peter B [EMAIL PROTECTED] wrote: Hi Adrian. Ah, I see. In which case Jesse, my apologies. I must have had my sarcasm filter on... ;p ) ___ Flashcoders

Re: [Flashcoders] How did they do it?? A particular flash site.

2008-02-08 Thread Adrian Park
Hi Peter, I understood Jesse's comment to be a follow on to his sarcastic reference to 'magic' and he is in fact insinuating that it's simpler than it looks and therefore, yes, anyone interested enough can learn how to do it. I don't think he meant any offense. If I'm not mistaken he's alluding

Re: [Flashcoders] How to call custom method on loaded AS3 swf?

2008-01-13 Thread Adrian Park
and MVC further, feel free to contact me direct at [EMAIL PROTECTED] Thanks all, Adrian Park On Jan 9, 2008 1:38 AM, Muzak [EMAIL PROTECTED] wrote: Have you tried casting to MovieClip? regards, Muzak - Original Message - From: Adrian Park [EMAIL PROTECTED] To: Flashcoders

[Flashcoders] How to call custom method on loaded AS3 swf?

2008-01-08 Thread Adrian Park
method startup through a reference with static type flash.display:DisplayObject. I tried a few things (including casting gameLoader.content to the Document Class) but the only thing I could get to work is this... gameLoader.content[startup](); Any ideas? Thanks in advance. Adrian Park

[Flashcoders] Local Flash Cache I don't know about?!

2006-10-31 Thread Adrian Park
Hi - I'm really hoping someone can help as I'm tearing my hair out here. Clip A - my production master clip which loads... Clip B - a module of a site I'm building Everything works fine in the Flash IDE but running on the standalone player, Clip B doesn't seem to see Singleton instances created

Re: [Flashcoders] 128 character limit in XML node?

2006-08-29 Thread Adrian Park
If it helps, I had this problem and solved it by making the href point to an ActionScript function which in turn used getURL to open the link. This way I was able to use URLs longer than the 128 character limit. HTH A. On 8/26/06, Aaron Hedquist [EMAIL PROTECTED] wrote: Yes, that's exactly

Re: [Flashcoders] Singleton not always Singleton?

2006-08-29 Thread Adrian Park
It *is* for Shell Petroleum :) But, point taken because I don't think the project I'm working on is going under the .com domain. I copied some classes from a previous project which was under the .com domain without even thinking about changing the package names. Slap self on wrist!! Also,

[Flashcoders] Singleton not always Singleton?

2006-08-25 Thread Adrian Park
Hey all! I'm using a class (AnimationProxy) based on the Singleton pattern to form a bridge between a timeline based intro animation (sigh) and the application objects (it's not strictly an intro because, when the intro is complete, the animation continues in the background whilst the rest of

Re: [Flashcoders] [ot] urgent: please help with cv/resume sample

2006-08-23 Thread Adrian Park
I've also encountered the issue where having a wide skill base is good in some places but seen as a negative point elsewhere. Back in Zimbabwe, if I could build a web site, fix the fridge, service the car and provide professional child councelling I'd be very valuable - here in London I'd be

Re: [Flashcoders] Best way to learn OO Analysis and Design with ActionScript

2006-08-19 Thread Adrian Park
Hi David, Like you, I didn't have any previous programming experience when I started using ActionScript. I *think* I'm now pretty nifty with my OOP but still feel like I have oodles to learn when it comes to structuring more complex app's in a good way. I'd echo the suggestions of learning a

Re: [Flashcoders] Best way to learn OO Analysis and Design with ActionScript (James Marsden)

2006-08-19 Thread Adrian Park
Joe, that sounds like a really useful approach. I imaging it gets you on the right track with distinct objects and duties. The way I understand MVC, I'd guess that you'd use MVC to implement the *nouns* (if it seemed appropriate). i.e. Pacman might have a model to store his state (e.g. location,

[Flashcoders] Prefixing property names with underscore - conventions?

2006-08-10 Thread Adrian Park
I've googled for some enlightenment on this but haven't really found many answers... I've noticed many class authors prefix property names with an underscore, or 2 underscores or none at all. I often see all three of these prefix 'styles' in one class. I haven't been able to figure out what the

Re: [Flashcoders] Prefixing property names with underscore - conventions?

2006-08-10 Thread Adrian Park
Thanks Claus and Johannes - I can see some benefit in that. A. On 8/10/06, Johannes Nel [EMAIL PROTECTED] wrote: tend to use to underscrores to indicate private one to indicate protected On 8/10/06, Claus Wahlers [EMAIL PROTECTED] wrote: I've noticed many class authors prefix property

Re: [Flashcoders] New to the list - got a question 2

2006-08-02 Thread Adrian Park
try: _level0[itemDividerStageRecord+x]._x (note: removed '.' after _level0). HTH Adrian On 8/2/06, Jon [EMAIL PROTECTED] wrote: Cheers Jason, Unfortunately I have no control over the XML produced. The code you provided didn't work. _root._level0.[itemDividerStageRecord+x]._x =

Re: [Flashcoders] blank flash movie (what is this)

2006-07-27 Thread Adrian Park
Have you uploaded 'video.flv' (the resource specified in contentPath)? Adrian On 7/27/06, Gavin Lilley [EMAIL PROTECTED] wrote: I have recently produced a simple movie that appears not to work. The movie is : http://www.stairclimber-uk.com/images/movie.html

Re: [Flashcoders] blank flash movie (what is this)

2006-07-27 Thread Adrian Park
Hi Gavin, As pointed out in Serge's message, http://www.stairclimber-uk.com/images/video.flv still doesn't work. According to your contentPath, video.flv should be in the same folder as the other assets. If it isn't, then you do indeed have a relative path problem. A. On 7/27/06, Gavin Lilley

Re: [Flashcoders] blank flash movie (what is this)

2006-07-27 Thread Adrian Park
Glad you solved it and that's a handy thing to remember. A. On 7/27/06, Gavin Lilley [EMAIL PROTECTED] wrote: Good morning All, Thank you for looking at this. it is a very basic thing, but for some reason I just couldnt see the wood for the trees! Toby was correct, it was a setting on iis,

Re: [Flashcoders] Creating dynamic text field using font embedded in parent movie clip

2006-07-27 Thread Adrian Park
with a Mac-only font, it can be embedded in base.fla, and the folks working on PCs can still develop the child FLAs even though they don't have the font. Kind regards, Raymond Simmons - Original Message - From: Adrian Park [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders

Re: [Flashcoders] About OOP metodology

2006-07-26 Thread Adrian Park
The approach I'd take would be to use an XML configuration file to work out what inputs are needed and then create all the widgets from the library. This way, all you need to modify for each deployment is the XML configuration file. You could then also add attributes to the XML to flag things

Re: [Flashcoders] About OOP metodology

2006-07-26 Thread Adrian Park
/26/06, Adrian Park [EMAIL PROTECTED] wrote: The approach I'd take would be to use an XML configuration file to work out what inputs are needed and then create all the widgets from the library. This way, all you need to modify for each deployment is the XML configuration file. You could then also

Re: [Flashcoders] Creating dynamic text field using font embedded in parent movie clip

2006-07-25 Thread Adrian Park
I have successfully used this exact technique when targeting Flash 6 but, as I think about it, I haven't used it in any Flash 7 projects yet. That said, due to a quirk in the way a current project has evolved, it has ended up using this technique but with the addition of identical Symbols in the

Re: [Flashcoders] (no subject)

2006-07-24 Thread Adrian Park
Nice! On 7/23/06, Julian 'Julik' Tarkhanov [EMAIL PROTECTED] wrote: On 6-jul-2006, at 11:27, Adrian Park wrote: I encountered this strange quirk recently as well. I found the most reliable solution is to duplicate your project folder, open and recompile from that folder, close

Re: [Flashcoders] slide a movieclip with photo(loaded by xml)

2006-07-21 Thread Adrian Park
and patience Adrian. On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote: I'm thinking more like this (using your most recent code as a starting point)... //create an instance of MovieClipLoader var myMCL = new MovieClipLoader(); // register this as a listener myMCL.addListener(this); // define

Re: [Flashcoders] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Adrian Park
When 'this.link' loads into imagem_mc, any existing properties and methods of imagem_mc are destroyed because 'this.link' replaces imagem_mc. Immediately after loading the MovieClip, you call subAppear which assigns the onEnterFrame handler. This handler is destroyed when the MovieClip loads so

Re: [Flashcoders] flash color shift

2006-07-20 Thread Adrian Park
Under View Proof Setup, choose 'Monitor RGB' - this will give you a better representation fo what the image will look like in browsers and Flash. Colour correct the image to look as you want then save out your jpg ready for import into Flash. Now, back to ActionScript... :) HTH Adrian On

Re: [Flashcoders] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Adrian Park
with a event listener?hummm On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote: When 'this.link' loads into imagem_mc, any existing properties and methods of imagem_mc are destroyed because 'this.link' replaces imagem_mc. Immediately after loading the MovieClip, you call subAppear which assigns

Re: [Flashcoders] Output to Text File

2006-07-18 Thread Adrian Park
product from Northcode... e.dolecki On 7/17/06, Adrian Park [EMAIL PROTECTED] wrote: Nick, I know you asked Kelly but, in case it's interesting to you, I have completed the project I was working on using Zinc. It is a kiosk application in which I needed to capture user data from a form

Re: [Flashcoders] Output to Text File

2006-07-17 Thread Adrian Park
Nick, I know you asked Kelly but, in case it's interesting to you, I have completed the project I was working on using Zinc. It is a kiosk application in which I needed to capture user data from a form in Flash and append it to a text file for collection later. Zinc made this an absolute breeze!

Re: [Flashcoders] Output to Text File

2006-07-11 Thread Adrian Park
You can do it with something like Zinc ( http://www.multidmedia.com/ ) or Jugglor (http://www.flashjester.com/). There is also the open source Screenweaver (http://screenweaver.org/) which can do this I think. There are also other similar solutions - try

Re: [Flashcoders] Project feedback, anyone?

2006-07-08 Thread Adrian Park
Hi Ville, First up, you have my sympathy - I know what it's like working with difficult clients like this! It sounds like you've found yourself in a situation where the client's lack of technical knowledge means they undervalue what you have done and are capable of. Regards the code structure

Re: [Flashcoders] Repulsion effect

2006-07-08 Thread Adrian Park
Check out http://www.liquidjourney.com/ for some source that may help. I'm particularly thinking you might find something useful in the presentation you can get to via the link at the bottom of the page to FITC 06 Presentation :: Behaviours simulating AI. HTH On 7/8/06, Martin Weiser [EMAIL

Re: [Flashcoders] (no subject)

2006-07-06 Thread Adrian Park
I encountered this strange quirk recently as well. I found the most reliable solution is to duplicate your project folder, open and recompile from that folder, close and continue working from your original folder and everything is fine (for a while)! No amount of deleting ASO cache solves it (in

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Adrian Park
This sounds to me like what happens if you embed a certain set of characters in the field but then pass it a String including characters you haven't explicitly embedded. I'm guessing you may have pasted a string into the Include these characters: field in the Character Embedding window? If so,

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Adrian Park
Glad to be of help Rick. On the font embedding thing v. the font being installed on your machine, I'm pretty sure that if you specify a font but don't embed any characters then Flash will use the installed font but if you embed then Flash will only look to the embedded characters for display and

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Adrian Park
I'm not sure this is really a 'feature' that is missing since the problem really boils down to OOP theory. For example, it could be argued that it is incorrect for the country class to extend MovieClip since a country *is not* a MovieClip but, rather, *uses* a MovieClip for display. By this

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Adrian Park
to access each country and assign the behavior. I´ll will upload my .fla files so you can understand. On 7/5/06, Adrian Park [EMAIL PROTECTED] wrote: I'm not sure this is really a 'feature' that is missing since the problem really boils down to OOP theory

[Flashcoders] Error: class being compiled does not match...

2006-07-03 Thread Adrian Park
The project I'm working on has several packages, each with several classes. One package in particular compiles fine and everything works as expected and if I run 'Check Syntax' everything checks out fine. But, if I try to 'Auto Format' the code of one of the class files (just one of the classes

Re: [Flashcoders] 50 stars blinking... app gets too slow

2006-07-03 Thread Adrian Park
A method I've often used to get around this kind of processor hogging is to set it up that only, say, 10 stars are animating at any one time (i.e. only 10 have onEnterFrame handlers set or even better, following Weyert's suggestion, update only 10 at a time using a single onEnterFrame handler).

Re: [Flashcoders] How to japanese people embed fonts?

2006-06-30 Thread Adrian Park
I'd agree with Kenneth. If possible, use something like Verdana which definitely includes all the characters you need - not all fonts do. But, if you really do need to embed the fonts, then you can use a combination of your first two suggestions to acheive what you want. 1) create a font

Re: [Flashcoders] li color

2006-06-29 Thread Adrian Park
OK, this is bugging me now! Chuck, you suggested using the following would work. Jason, you said it did. I can't get it to work! The size and colour of the text between the li's is affected but the bullets are still black. What am I missing?! li {color: #9A9CA6;font-weight: 900;font-family:

Re: [Flashcoders] li color

2006-06-29 Thread Adrian Park
Thanks Jason, Your code enabled me to work out exactly what's going on - it only works for Flash Player 8 or above! If you publish to 7 the bullets won't be coloured. Perhaps it doesn't work when you run the swf off the desktop because the standalone player didn't have this update rolled into

Re: [Flashcoders] To script or not to script... flash animations and drawing

2006-06-28 Thread Adrian Park
Is it okay to build some animations using the timeline? Surely it's as 'okay' to build timeline animations as it is to build scripted animations! The decision is simply based on what best suits the requirement in terms of efficiency to build, the production values of the finished animation, how

Re: [Flashcoders] li color

2006-06-26 Thread Adrian Park
Even using a stylesheet I have not been able to change the colour of bullets in html text fields. The only way I've been able to do it is to embed the font, nest the text field in a movie clip and tint it - not nice! Adrian P On 6/26/06, Merrill, Jason [EMAIL PROTECTED] wrote: Is there any

Re: [Flashcoders] Accepting 1 parameter with 2 possible types inamethod?

2006-06-16 Thread Adrian Park
Thanks everyone - this has helped me out a lot and I've learnt a few new things through the discussion as well. Adrian On 6/15/06, Derek Vadneau [EMAIL PROTECTED] wrote: It depends on how you are using it. Object is NOT the same as untyped. Try this code: var a:Array = new Array();

[Flashcoders] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Adrian Park
Hi List, What's the neatest way of accepting a single parameter with 2 possible types into a method and then working out what type of parameter has been passed? e.g. in pseudo code private function myMethod( i:Number/String ):Void { if ( i is a String ) { // do this } else if ( i is

Re: [Flashcoders] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Adrian Park
about it, but without knowing a bit more about the circumstances, it's kind of hard to say... HTH, Ian On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote: Hi List, What's the neatest way of accepting a single parameter with 2 possible types into a method and then working out what type of parameter

Re: [Flashcoders] Where to politely and appropriately discuss pricing issues

2006-06-02 Thread Adrian Park
Some really interesting and valuable stuff here. Adam, that link is really useful - I like using formulas to make me feel confident about my guestimates One thing about clients who balk at your (perfectly reasonable) rates, plead poverty and squeeze you for everything - in my experience it is

Re: [Flashcoders] Alpha fade problem

2006-06-01 Thread Adrian Park
You'll also have to change... if (this._alpha100) { to if (this._alpha0) { On 6/1/06, Seb L [EMAIL PROTECTED] wrote: try this... myAlpha = ((alphaTime-(getTimer()-loadTime))/alphaTime)*100; On 01/06/06, Tony Watkins [EMAIL PROTECTED] wrote: So, the following script will cause a

Re: [Flashcoders] Where to politely and appropriately discuss pricing issues

2006-06-01 Thread Adrian Park
I'm also wrestling with this at the moment so would like to be included in/pointed towards any discussion (if it doesn't continue here). Whilst I appreciate the issues with discussing exact rates, I'd find it useful to hear thoughts on things like: - differences between freelance rates (managing

Re: [Flashcoders] duplicateMovie issue

2006-05-02 Thread Adrian Park
Hi Nik, As far as I know you can only duplicate a MovieClip into the same parent. attachMovie is used for attaching MovieClip symbols (which have been assigned linkage id's) from your library. I think the simplest thing to do would be to set a linkage id for your movieclip symbol in the

Re: [Flashcoders] duplicateMovie issue

2006-05-02 Thread Adrian Park
Hi Nik, I see what you mean now - you want to be able to ask a MovieClip what the linkage id of it's master in the library is. And, yes, there seems no nice way of doing this! Another option to consider might be to derive the attached movie clips' names from the linkage ids and then use the

[Flashcoders] Export classes on frame other than 1 - app fails

2006-04-28 Thread Adrian Park
Hi all, The preloading of the app' I'm working on is not working properly when classes are exported on first frame. This is because they are large enough to have a significant effect on the loading of the .swf as a whole (yes, they can and should be optimised, if only I had that luxury!). More

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Adrian Park
Hey Julian, With your example, this should work (I've just tested a similar class instantiation in one of my classes): var anObject = new eval(org).eval(foo).eval(Bar)(); You can pass parameters in the final set of braces as usual. HTH Adrian P. On 4/12/06, Julian 'Julik' Tarkhanov [EMAIL

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Adrian Park
Of course, I was wrong (where's my head at?!). I can get several of the eval() and [] options to work but, out of curiosity, how would you pass parameters with the constructor? I can't seem to do this with my tests. Apologies if this is a dumb q'. Adrian P. On 4/12/06, Cedric Muller [EMAIL

Re: [Flashcoders] hitTest

2006-03-26 Thread Adrian Park
Hi Riccardo, You can use the following form of hitTest for this: MovieClip.hitTest (x, y, shapeFlag ); In your case, the MovieClip will be the movie clip in which you've drawn the shape and x and y will be the coordinates of your pixel (in the global coordinate space). shapeFlag is an optional

Re: [Flashcoders] hitTest

2006-03-26 Thread Adrian Park
Hi Riccardo, I'd have to see a sample of your code and/or the .fla to work out exactly what's happening. I'm going away for holiday for a week from tomorrow so won't be able to help out with this. I hope someone else can help you out. Good luck! Adrian P On 3/27/06, [EMAIL PROTECTED] [EMAIL

Re: [Flashcoders] Movie Speed

2006-03-23 Thread Adrian Park
You could use ActionScript to manage the position of the playhead in the timeline and therefore manipulate the speed the animation plays. e.g. With a clip with a 48 frame animation... If you advance the playhead to the next frame (using script) 24 times a second then your animation completes in 2

Re: [Flashcoders] Movie Speed

2006-03-23 Thread Adrian Park
That's a neat approach to changing scripted animation speed globally but made me realise that I'd assumed Lee was talking about chaging the runtime speed of timeline animations created at authortime. Upon reading more carefully, I think I may have been wrong in this assumption. Lee, are you

Re: [Flashcoders] Re:Global search-and-replace for Linkage/Component Definition?

2006-03-22 Thread Adrian Park
Kieth, I saw a demo of Alf for the first time last week and the demonstrator did exactly what you describe to illustrate it's power. Adrian P On 3/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Keith Try alf.. http://www.code4net.com/archives/000116.html I think it does what you

[Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
I want draw regular shapes with antialiased edges into a blank BitmapData object. A rectangle is simple (if it isn't rotated at all) but how would I go about drawing something like a filled circle at a specified position with a radius r? I figure I could easily draw what I want using vectors and

Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
, Adrian Park [EMAIL PROTECTED] wrote: I want draw regular shapes with antialiased edges into a blank BitmapData object. A rectangle is simple (if it isn't rotated at all) but how would I go about drawing something like a filled circle at a specified position with a radius r? I figure I

Re: [Flashcoders] Determining width of rotated MC's imaginary bounding box

2006-03-20 Thread Adrian Park
Hi David, Not sure of the exact nature of your setup but it just occured to me that the simplest way to do this would be if you could enclose the rotated clip in a wrapper clip - if you get the _width and _height of the wrapper clip after rotating the enclosed tip you will have the width of

Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Adrian Park
. This is simply because the routines to draw the shapes are all native to the Flash Player, and they are therefore going to be a _lot_ faster than anything you can come up with in ActionScript. HTH, Ian On 3/20/06, Adrian Park [EMAIL PROTECTED] wrote: I want draw regular shapes

Re: [Flashcoders] SEO for Flash .....

2006-03-16 Thread Adrian Park
Have you looked at Ripple on OSFlash? I haven't had a chance to try it out yet but will do as soon as I have a bit of time. http://osflash.org/ripple Adrian P. On 3/16/06, Stephen Ford [EMAIL PROTECTED] wrote: Does anyone have any good links or advice for optimising Flash for search engines.

Re: [Flashcoders] Timing Tweens Effectively

2006-03-15 Thread Adrian Park
I've used Alex Uhlmann's animation package a lot - it's pretty in depth and some think OTT but I like it :) http://www.alex-uhlmann.de/flash/animationpackage/ Adrian P On 3/15/06, Kevin Cannon [EMAIL PROTECTED] wrote: Hi, I'm looking to improve my handling of timed events for the sites I'm

Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Adrian Park
Another oops... This line... var alreadyLoaded:Number = currentImageNo * segmentSize; ... should be... var alreadyLoaded:Number = (currentImageNo-1) * segmentSize; A. On 3/12/06, Adrian Park [EMAIL PROTECTED] wrote: Oops, spotted a mistake! This line... var currentImageProgress:Number

Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Adrian Park
/12/06, Adrian Park [EMAIL PROTECTED] wrote: Hey Sascha, I see what you mean - the main problem is you have no way of knowing the sum total of all the bytes to load when the download process starts. I like the idea of dividing the bar into segments, one per image. I think I'd try something

Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Adrian Park
- Original Message - From: Adrian Park [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, March 12, 2006 3:24 AM Subject: Re: [Flashcoders] Loading several images with one progressbar? Say you have 3 images loading, use something like

Re: [Flashcoders] XPath problems with single character value nodes

2006-03-11 Thread Adrian Park
] wrote: Le 11 mars 06, à 11:27, Adrian Park a écrit : I encountered exactly the same issue on the project I'm currently working on. I got around the problem by using XPath.selectNodes rather than XPath.selectNodesAsString. Please send a mail to XPath author to get this fixed

Re: [Flashcoders] Loading several images with one progressbar?

2006-03-11 Thread Adrian Park
Say you have 3 images loading, use something like this: var bytesLoaded:Number = 0; var bytesTotal:Number = 0; bytesLoaded += image1.getBytesLoaded(); bytesTotal += image1.getBytesTotal(); bytesLoaded += image2.getBytesLoaded(); bytesTotal += image2.getBytesTotal(); bytesLoaded +=

Re: [Flashcoders] best flash actionscript book/reference

2006-03-10 Thread Adrian Park
I agree wholeheartedly with the Essential ActionScript 2.0 recomendation but would add that Moock's previous book, ActionScript for Flash MX, is also indispensable. Sure, some of the stuff in it is not necessarily up-to-date but, as a reference to ActionScript's built in classes and methods I find

[Flashcoders] DataGrid rows with unique background colours?

2006-03-10 Thread Adrian Park
I'm working on an app' that uses the Datagrid component. It would make my client very happy if I could apply unique colours to individual rows in the datagrid and it would enhance the user exeprience of the app' if it were possible. Looking through the documentation, I can't find any way of

Re: [Flashcoders] DataGrid rows with unique background colours?

2006-03-10 Thread Adrian Park
- Original Message - From: Adrian Park [EMAIL PROTECTED] To: Flashcoders@chattyfig.figleaf.com Sent: Friday, March 10, 2006 8:12 AM Subject: [Flashcoders] DataGrid rows with unique background colours? I'm working on an app' that uses the Datagrid component. It would make my client very

Re: [Flashcoders] oop[s?]

2006-03-10 Thread Adrian Park
Your class decleration should be: // begin code class com.drawing.rect { i.e. you need to declare it with the full classpath Your ref property should be declared like this: var ref:Object = target_mc; i.e. you shouldn't use the private or public keywords within a method since the property is

Re: [Flashcoders] Load external bitmap into bitmapdata?

2006-03-07 Thread Adrian Park
the bitmap inside a swf, because i have no control over the bitmaps. Any other ideas? On Mon, 06 Mar 2006 17:36:46 -0300, Adrian Park [EMAIL PROTECTED] wrote: Hey Marcelo, I've been playing with BitmapData for the first time this past weekend so I stand to be corrected on what I'm

Re: [Flashcoders] attachMovie to a loaded swf

2006-03-07 Thread Adrian Park
I have always understood that you cannot attach an asset from the library of one swf into another loaded swf. I've never succeeded in doing it and haven't seen a workaround. Sorry I can't be more helpful. Please can someone prove me wrong! Adrian P On 3/7/06, Marlon Harrison [EMAIL PROTECTED]

Re: [Flashcoders] Load external bitmap into bitmapdata?

2006-03-06 Thread Adrian Park
Hey Marcelo, I've been playing with BitmapData for the first time this past weekend so I stand to be corrected on what I'm about to say! My understanding is that you can only load BitmapData from an existing image which is already in your library and has a linkage ID. For this reason, I don't

Re: [Flashcoders] Returning an XML Object

2006-03-01 Thread Adrian Park
Hey Peter, First probelm I see is this... In your photo_navigation() method, you do this... trace(my_xml = + my_xml); ... immediately after this... var my_xml = load_xml(xml_file); When you call the trace() your xml won't have loaded yet and therefore will not have been returned. I'm

Re: [Flashcoders] Images in textFields..

2006-02-28 Thread Adrian Park
Without trying it myself I can't answer your first question but for your second question, have you tried specifying the width and height attributes of your img tags? This might prevent overlapping. e.g. img src=myimg1.jpg width=20 height=20 On 2/28/06, Karim Beyrouti [EMAIL PROTECTED] wrote:

Re: [Flashcoders] Dynamic .as reference to MC

2006-02-27 Thread Adrian Park
I think you might be looking for the Object.registerClass() method... http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2587.html I haven't actually used it myself as I only became aware of it a few days ago! Adrian On 2/27/06,

Re: [Flashcoders] Cannot attach movieclip to root???

2006-02-26 Thread Adrian Park
Firstly, I'm new to this list so hi! I suspect your problem may be to do with the fact that you cannot use library assets from one .swf in another. From your description, I understand that your dndNodeDragger asset is in the library of the second swf - if this is true you will not be able to