Re: [Flashcoders] External Interface with looped parameters

2010-06-06 Thread Ashim D'Silva
om AS3 to javascript > ........ > > var dataScript:XML= new XML(""); > ExternalInterface.call(dataScript); > > > > On 5/26/2010 3:07 AM, Ashim D'Silva wrote: >> >> This seems fairly

[Flashcoders] External Interface with looped parameters

2010-05-26 Thread Ashim D'Silva
This seems fairly impossible but if there's an awesome way to do it I'll be heaps grateful. I receive a function name and a set of parameters via XML webtrends 98780 Joseph Iceland

Re: [Flashcoders] fullScreenSourceRect scale factor

2010-04-14 Thread Ashim D'Silva
Holmes Report Global Agency of the Year > PR News Agency of the Year > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ashim D'Silva > Sent: Tuesday, April 13, 2010 5:21 AM >

[Flashcoders] fullScreenSourceRect scale factor

2010-04-13 Thread Ashim D'Silva
I'm using the fullScreenSourceRect parameter of the stage to make a just the video from my app go full screen. Is there a way I can then get the factor everything has been scaled so I can compensate the controls so they remain the required pixel size? Right now, they get scaled large and blurred,

Re: [Flashcoders] Calculator

2010-03-18 Thread Ashim D'Silva
I really can't believe this reply chain has lasted this long. 450 is 15% of 3000. 0.5% of 3000 is 15. % simply means out of 100. 15/100 * 3000 = 450; 0.5/100 * 3000 = 15; The equations through most of these emails have been right. Nobody seems to actually be reading them. Jonathan said: sum/to

Re: [Flashcoders] Paypal integration.

2009-10-24 Thread Ashim D'Silva
a Ashim. > > Karl > > On Oct 24, 2009, at 1:28 AM, Ashim D'Silva wrote: > >> I would simply handle all the cart stuff myself, and send Paypal the >> cart on check out via cart_upload. >> You get a nice, responsive cart that way... >> >>

Re: [Flashcoders] Paypal integration.

2009-10-23 Thread Ashim D'Silva
I would simply handle all the cart stuff myself, and send Paypal the cart on check out via cart_upload. You get a nice, responsive cart that way... Cheers, Ashim The Random Lines My online portfolio www.therandomlines.com 2009/10/24 Karl DeSaulniers : > Has anyone messed with paypal shopping

Re: [Flashcoders] Converting .swf playback to .mov

2009-10-21 Thread Ashim D'Silva
Pretty sure CS4 handles it fine. Including actionscripted animation. Haven't pushed it hard, but worth a shot. Cheers, Ashim The Random Lines My online portfolio www.therandomlines.com 2009/10/21 Joel Stransky : > Ok, I'm well aware of the limitation in exporting an .fla to quicktime. You > o

Re: [Flashcoders] 2.5D playing cards - how to restore original image?

2009-10-21 Thread Ashim D'Silva
Hey Alex, Once you've used a 3D feature, it has something like cacheAsBitmap turned on internally that doesn't go off. You have to clear the 3d matrix once you don't need it anymore. mc.transform.matrix3D = null; If I remember right, this will reset everything, so before you do it, remember all

[Flashcoders] Problem with Inline Images and Href in a Text Field

2009-09-02 Thread Ashim D'Silva
Hi, AS2 problem from an old site I've had to edit. Having trouble with inline images used as HTML hyperlinks in flash. A snipet of the HTML looks like this: Person's Name"Lorem ipsum dolor sit amet, consectetuer adipiscing... and so on... For some reason image links only seem to fire the se

Re: [Flashcoders] Missing wait(), notify(), sleep() in AS3

2009-08-21 Thread Ashim D'Silva
Just call your next function in two places... I don't really see the problem. If it's not important just cancel it can call the new function, otherwise, wait for the complete event to fire and then call it... Ashim The Random Lines My online portfolio www.therandomlines.com 2009/8/21 Alexander

Re: [Flashcoders] as3 -re-dimensioning spirte but not its children

2009-07-29 Thread Ashim D'Silva
I'd say extend a new class from Sprite, and override the getters and setters for width and height, and scaleX and scaleY if you need them. However, if you don't want to do that, make two sprites inside your sprite. One with things you want to change and one width those you don't. Then just resize

Re: [Flashcoders] Dancing characters...

2009-07-23 Thread Ashim D'Silva
I'd say the width value you're using isn't so dependable because of the way text scales. If you turn autoSize off it may help. Failing that, I'd render each piece to a bitmapData and use a bitmap. They work better for scaling and rotation, although scaling up is ofcourse a bad idea, so render your

Re: [Flashcoders] DisplayObject's filtered dimensions too large to be drawn

2009-05-26 Thread Ashim D'Silva
If you have a filter applied to a container (Movieclip, sprite) and something inside it has moved far off stage, that will make the container's dimensions very large. Take a peek for stray objects. The Random Lines My online portfolio www.therandomlines.com 2009/5/26 Alan Neilsen : > Can anybod

Re: [Flashcoders] Papervision Help

2009-05-23 Thread Ashim D'Silva
Well, papervision will be able to do that, and the docs are quite helpful. You'll have to be specific when you search google for this stuff though. I did find some nice tutorials on lighting and shaders that should be helpful but that I can't remember offhand. However, you might want to re-evaluat

Re: [Flashcoders] Dynamic Images and the Library

2009-05-02 Thread Ashim D'Silva
If you're dynamically loading an image, it doesn't have to be an mc, it's bitmap data and can be treated so. If you want to save the contents of an mc to an image, use bitmapData.draw(mc) to get bitmapData and write that to a jpeg/png on your server. You should be able to find a tutorial that runs

[Flashcoders] Nested 3D transforms conflicting with interactivity

2009-05-01 Thread Ashim D'Silva
Hi All, I'm having a bit of a problem with nested transforms and interactivity. I have a parent sprite that has 9 children sprites, and the children have listeners for roll over/out. Transforming/animating the parent seems to be absolutely fine; it rotates fine and the children act as expected.

Re: [Flashcoders] SWF Child -> Parent Comunication

2009-04-24 Thread Ashim D'Silva
when you do dispatchEvent(new Event()); the presumption is that it is 'this' that is firing it. if you do mc1.dispatchEvent... mc2.dispatchEvent... depending on the clip that's clicked, that should work out nicely. Ashim The Random Lines My online portfolio www.therandomlines.com 2009/4/24 Dav

Re: [Flashcoders] need suggestions

2009-04-21 Thread Ashim D'Silva
Experiment, and follow blogs for one. I'll bet there's heaps of great books out, but I've never bought one so I'm not sure. I find printed information expires too quickly. check out www.gotoandlearn.com as a great starting place. Ashim The Random Lines My online portfolio www.therandomlines.com

[Flashcoders] 3D transformation and interactivity trouble

2009-04-21 Thread Ashim D'Silva
Hi All, I'm having a bit of a problem with nested transforms and interactivity. I have a parent sprite that has 9 children sprites, and the children have listeners for roll over/out. Transforming/animating the parent seems to be absolutely fine; it rotates fine and the children act as expected.

Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ashim D'Silva
If you're using Loader to load images, both w&h of the image itself and that of the Loader should be the same. Sometime however, I do like taking out the data if I'm going to play with it at bitmapData level. Bitmap(loader.content).bitmapData If you get the w&h of the resulting bitmap data, that'

Re: [Flashcoders] ColorTransform GTween

2009-04-08 Thread Ashim D'Silva
Never used GTween before, but Grant is joining forces with Jack Doyle of TweenLite, and that library is incredibly easy to use. If the possibility exists, you might want to switch libraries, and soon, you should get the best of both worlds. 2009/4/9 Jiri : > I am experimenting with GTween from Gra

Re: [Flashcoders] Pixel recognition?

2009-03-29 Thread Ashim D'Silva
If all you want is a visible loader, you might even try a blend mode, like difference. Which you would then have to deal with stylistically, but that would make the code required null. If not, I have done this before to place text on an image and I used the scaledBitmap system. The inaccuracies ar

Re: [Flashcoders] Actionscript 3.0 Coding Niggles

2009-03-08 Thread Ashim D'Silva
just put a stop() on the last frame (when the text is big) 2009/3/9 Joel Stransky > is there a stop() on frame 1 of text_mc? > > On Sun, Mar 8, 2009 at 3:29 PM, Ali Hitch wrote: > > > Hey guys, > > > > Having problems on the coding side of what I thought would be a very > simple > > task. > > >

Re: [Flashcoders] Remote Fonts and Sandbox?

2009-02-24 Thread Ashim D'Silva
Might be a sandbox issue that needs a crossdomain file. Try adding one and see what happens. The crossdomain file sits in the root of the server that is serving the assets. Eg: http://twitter.com/crossdomain.xml 2009/2/25 Mike Grunwald > Hello All, > > I've run into a confusing issue: > > I've c

Re: [Flashcoders] Javascript Flash resizing

2009-02-20 Thread Ashim D'Silva
display mode. > > Kind regards > cor > > > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ashim > D'Silva > Sent: donderdag 19 februari 2009 11:23 > To: fl

Re: [Flashcoders] Javascript Flash resizing

2009-02-19 Thread Ashim D'Silva
af.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ashim > D'Silva > Sent: woensdag 18 februari 2009 1:14 > To: Flash Coders List > Subject: Re: [Flashcoders] Javascript Flash resizing > > Javascript and flash can do some interesting things together. I bui

Re: [Flashcoders] Javascript Flash resizing

2009-02-17 Thread Ashim D'Silva
Javascript and flash can do some interesting things together. I built a flash gallery that would load up images and depending on how much space it needed, resize the div the flash was sitting in so browser scroll-bars came into effect if necessary. Then, when a certain image is displayed large, scr

Re: [Flashcoders] multiple fonts in TextField?

2009-01-13 Thread Ashim D'Silva
It's a style sheet. CSS. So everything is strings or number, you can't use references to flash objects.You can just use the font name directly. It'll probably be marginally faster. fontFamily = "Helvetica"; That's the font name not the name you gave the library item. 2009/1/14 Mendelsohn, Michae

Re: [Flashcoders] change the origin of rotation for a movieclip?

2009-01-12 Thread Ashim D'Silva
Scale & rotate around an arbitrary centre | Web 2.1 first result on google. 2009/1/13 Anthony Pace > Oh yeah this definitely works. I was having trouble because I needed to > delete ASO files(thought things had changed

Re: [Flashcoders] multiple fonts in TextField?

2009-01-12 Thread Ashim D'Silva
It depends on the compiler, but in the Flash IDE go into your library, and click New Font, then embed the font you want. Bold and Italic have to be embedded separately if required. Remember to turn on Export for Actionscript as well. You also might want to look into style sheets. It keeps things mo

Re: [Flashcoders] Thoughts on new features in CS4

2009-01-07 Thread Ashim D'Silva
One app the does everything would be terrible. You'd have to pay for features you don't want and will have to run an incredibly beefy program that will take the strongest of systems down. Maybe at some point, maybe when quantum computing is around!, but till then I'd say it's organised well.That ho

Re: [Flashcoders] Custom buttons - radio style

2008-12-22 Thread Ashim D'Silva
I'd say you need to wrap the system in a RadioControl class of some sort. This is a group class and knows of all the radio buttons that are affected as part of this group. That was you can have a second group if you need it. This class can have a currentSelection variable which stores whatever is c

Re: [Flashcoders] Re: A funny little hover problem with CSS

2008-12-17 Thread Ashim D'Silva
Now that is odd. Is 0.5 the general rule to follow or is it simply different for every object you put down? 2008/12/18 Jon Bradley > > On Dec 16, 2008, at 10:49 PM, Ashim D'Silva wrote: > > I always round everything I place. That was one of the first things I >> check

Re: [Flashcoders] Re: A funny little hover problem with CSS

2008-12-16 Thread Ashim D'Silva
s and whatnot when their x,y's are not set at exact > pixels. > > > > Maybe try changing the positioning on the stage so that the elements use > an > > exact x,y value, or do a Math.round() if you're positioning them through > AS. > > > > Hope this helps. > &

Re: [Flashcoders] Re: A funny little hover problem with CSS

2008-12-16 Thread Ashim D'Silva
Wow. Thanks. I wouldn't have thought rotating a text field would make it better. Whenever I need to rotate text I usually render it to a bitmap and rotate that. Help is much appreciated. Ashim 2008/12/17 Jon Bradley > > On Dec 14, 2008, at 8:04 PM, Ashim D'Silva wrote: > &g

Re: [Flashcoders] A funny little hover problem with CSS

2008-12-15 Thread Ashim D'Silva
et(); > > or > > CreateStyleSheet(); > txt.htmlText = xmlTXT; > > or even ( I know it looks stupid) > > CreateStyleSheet(); > txt.htmlText = xmlTXT; > CreateStyleSheet(); > > kinda kludgy, but if it works... > > .m > > On Sun, Dec 14, 2008 at 7:33 PM, Ashim D&

[Flashcoders] Re: A funny little hover problem with CSS

2008-12-14 Thread Ashim D'Silva
Right. I recreated everything slowly in a new file, introducing things one by one and here's the culprit - Advanced Anti-Aliasing.Now I really would like to use advanced, because text looks dramatically better, but there has to be a solution, doesn't there? 2008/12/15 Ashim D'S

[Flashcoders] A funny little hover problem with CSS

2008-12-14 Thread Ashim D'Silva
Hi all, I'm having a really odd problem, that I haven't been able to find anything about. I have a multiline, word wrapped TextField that uses CSS (built as objects), with content coming from HTML in an XML file. It all works fine, but for some reason, when I hover over a link (whether I have CSS f

Re: [Flashcoders] What heck is up with "parent" in actionscript 3?

2008-12-10 Thread Ashim D'Silva
I'd say, if the freedom is troubling you in general, disable strict mode.Not a good solution if you want to do some real heavy stuff, but doesn't seem the case. 2008/12/11 Dave Watts <[EMAIL PROTECTED]> > > I'm not sure what Strk means about "no free flash player supports > > AS3", since the last

Re: [Flashcoders] JavaFX released

2008-12-06 Thread Ashim D'Silva
I'll back processing. It's an incredible tool. Relatively simple and pretty damn powerful. I got facial recognition going (with a library) for a 3D scene you can look around and I've seen a good amount of excellent stuff come out of it. As for Java, yes, it's the original, yes, it's a more powerful

Re: [Flashcoders] JavaFX released

2008-12-05 Thread Ashim D'Silva
I'm actually not entirely sure where Java (applets) fit into the front end web thing. I'd really like to see where this goes, because as far as usability and increased interactivity go, javascript and flash each have a good solid space; as well as competing for some common areas. I haven't really u

Re: [Flashcoders] binary-coded image

2008-12-03 Thread Ashim D'Silva
If you're just after the look the TweenFilterLite library has a great inbuilt filter. But if you actually want to convert it, I imagine you'd just run through every pixel and if the value (calculated however you'd like) is greater than your decided threshold, make it white, else black. I'm not sure

Re: [Flashcoders] structuring singletons in AS3

2008-12-03 Thread Ashim D'Silva
It sounds like you're replacing the document class for some reason. Which, most often, is indeed a singleton. Although I normally aim towards it being static for all intents and puposes, and use that as my central information source for passing around shared assets/code etc.Tell me if I'm confused.

Re: [Flashcoders] adding physics to pivot object around a point

2008-12-01 Thread Ashim D'Silva
>From your description you don't really want to 'move' the pivot really, but have it different everytime the object is picked up; which is simpler.The pendulum should work nicely. 2008/12/2 allandt bik-elliott (thefieldcomic.com) <[EMAIL PROTECTED]> > yes that's definitely close - the only differ

Re: [Flashcoders] computeSpectrum not working with mp3 from different server.

2008-12-01 Thread Ashim D'Silva
That is how the cross domain policy for flash runs, and has run since player 7. It affects quite a few other things as well like bitmap data operations and other stuff I don't know off the top of my head. Read up on it. 2008/12/1 Carl Welch <[EMAIL PROTECTED]> > Does it matter that I can still he

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Ashim D'Silva
have > the interaction with it? > On Mon, Nov 17, 2008 at 4:39 PM, Ashim D'Silva <[EMAIL PROTECTED] > >wrote: > > > I don't see what OO has to do with it. It's a little processor intensive > if > > you have heaps and heaps of text fields, but if

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Ashim D'Silva
with Pure AS, especially if it is > object oriented, it wouldn't be a good approach. > > On Mon, Nov 17, 2008 at 3:19 PM, Ashim D'Silva <[EMAIL PROTECTED] > >wrote: > > > My last ditch effort with fussy type, it to make a dummy bitmap copy of > the > >

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Ashim D'Silva
My last ditch effort with fussy type, it to make a dummy bitmap copy of the sprite (bitmapdata.draw(dispObj)) and use that for the animation times. Switch back to the original when you need selections/links to work...Not the most elegant, but it should work... 2008/11/17 Meinte van't Kruis <[EMAIL

Re: [Flashcoders] runtime instantiation

2008-10-28 Thread Ashim D'Silva
If you want to add a class in the future, you will definitely have to recompile, because flash doesn't compile at runtime as far as I know. But I have also looked for a way to simply import classes without also having a var defined. It's not too big a deal, but it's an interesting topic. 2008/10/2

Re: [Flashcoders] AS3 Object.watch equivalent

2008-10-27 Thread Ashim D'Silva
Use classes and getters and setters. Getting into details with this would take a while, but look it up. It's far more efficient than a watch. 2008/10/27 Samuel Adu <[EMAIL PROTECTED]>: > Hey guys, > I need a little help here... I'm working on porting some existing AS2 code > to AS3. A porting of t

Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread Ashim D'Silva
I don't know why its crashing but: I don't see what your frame++ is doing because you reset it to 0 right before anyway, so you should keep getting "EnterFrame 1" anyway. Secondly, your else should also carry code to disable the Submit button, so that if someone fills things in and then deletes it

Re: [Flashcoders] Drag and drop in AS3

2008-09-23 Thread Ashim D'Silva
When you recieve an event the difference between event.currentTarget and event.target could be of much help. I can never remember which is which but check the language reference. But nothing like disabling the childrens mouse events with mouseChildren = false; 2008/9/24 Matt S. <[EMAIL PROTECTED]>

Re: [Flashcoders] Spinning world..

2008-09-05 Thread Ashim D'Silva
They only seem to have frame for one rotation around one (slighlty shaky) axis. The genius, like sebastian said, is the 2D rotation which makes it feel like its reacting to you. Really well done! 2008/9/6 sebastian <[EMAIL PROTECTED]> > further reinforced by the fact that I cant actually spin the

Re: [Flashcoders] Open Source YouTube Player

2008-09-03 Thread Ashim D'Silva
The JW Player seems to be popular. Haven't used it yet, but I intend to soon. http://www.jeroenwijering.com/?item=JW_FLV_Player 2008/9/3 Elia Morling <[EMAIL PROTECTED]> > Is there a stable open source FLV player? Or should I reinvent the wheel? > > Thanks, > Elia > __

Re: [Flashcoders] flash vars questions.

2008-09-02 Thread Ashim D'Silva
AS3 example: http://www.permadi.com/tutorial/flashVars/indexAs3.html link was at the top of the page.. 2008/9/3 Gustavo Duenas <[EMAIL PROTECTED]> > do you know something that actually can work in as3? > > Regards, > > Gustavo > > On Sep 2, 2008, at 2:36 AM, Rajiv Seth (Pixelated) wrote: > >

Re: [Flashcoders] Memory usage and bitmapdata issue in flash game design

2008-09-02 Thread Ashim D'Silva
I'd really like to see where this thread goes because efficiency in Flash is a touch subject I guess. First suggestion I have is stop using MovieClips. They're kinda useless. Move as far down the chain as possible... to bitmapData and shapes. The simpler you go and the more low level stuff you writ

Re: [Flashcoders] is there a recognised date format for xml?

2008-08-26 Thread Ashim D'Silva
If it's specifically for a countdown, you can just ask your php guy to give you the number of seconds to the deadline (or milliseconds if you need it). Then just divide it up however you want. Make the class nice and clean and unrestricted. 2008/8/26 Hans Wichman <[EMAIL PROTECTED]> > Hi, > > isn

Re: [Flashcoders] calling a JSP page from a different server location SWF

2008-08-18 Thread Ashim D'Silva
The cross-policy file is meant to be on the server which runs the JSP file. However, if you don't have access to that server, I don't think it possibly directly. However, you can write a small server side script on your server (where the SWF is) and let that script call the required JSP. And let fl

Re: [Flashcoders] Full Screen issue on a Mac

2008-08-16 Thread Ashim D'Silva
Fine on Firefox, doesn't work on Safari for some reason. Intel Mac Book Pro. And you should really look into SWFObject for embedding your flash content in html. Will help you integrating and make things easier. 2008/8/17 Dave Wood <[EMAIL PROTECTED]> > Could someone with a Mac check if this is w

Re: [Flashcoders] Using BitmapData to make a mask (AS3)

2008-08-14 Thread Ashim D'Silva
You should be able to copyChannel the BitmapDataChannel.ALPHA from the image you loaded onto the bitmap you use for the gleam. However animating this then means moving only a single channel. Which may or may not be possible without reprocessing the bitmapData. It's only a rough idea, but take a loo

Re: [Flashcoders] Re: Flash - cross-platform? really?

2008-08-13 Thread Ashim D'Silva
Thanks Peter, I know its hard to address a problem without seeing it in full. We're working on anything we can think of: eliminating event listeners is first on the list. Hoping for the best. 2008/8/14 peter ginsberg <[EMAIL PROTECTED]> > On Wed, Aug 13, 2008 at 10:04 AM, Ashim D

Re: [Flashcoders] Re: Flash - cross-platform? really?

2008-08-13 Thread Ashim D'Silva
t;> (and I say that as a dedicated Mac user). It's improved alot with >> Flash 9+ and newer Macs, but nonetheless there seems to be a >> frustratingly persistent performance hit on the Mac which I've never >> seen a good explanation for. >> >> .m >> >&

Re: [Flashcoders] Re: Flash - cross-platform? really?

2008-08-13 Thread Ashim D'Silva
Hey, thanks for all the feedback. I'd like to think we've tested on a large enough amount of machines to eliminate differences in power, and I hate to say it but PC's are performing better than Macs. There's no filters used anywhere but there's heaps of bitmapData everywhere which isn't being repro

[Flashcoders] Re: Flash - cross-platform? really?

2008-08-13 Thread Ashim D'Silva
Hate to push this around again, but I've been searching heaps for this to no avail. I found one random post about performance differences but it didn't hint at any solutions.Are more people facing this problem, and does anybody know why? 2008/8/10 Ashim D'Silva <[EMAIL PROTECT

[Flashcoders] Flash - cross-platform? really?

2008-08-09 Thread Ashim D'Silva
We've been developing a flash game over the last few weeks, and we're finding more and more that the flash player on PC and Mac run terrifyingly differently. In my previous experience, website I've built have run far better on my Mac than on other PCs, but this time its the opposite. The PC version

Re: [Flashcoders] BUG: Channel.position returns out of range positions on looping Sounds

2008-08-07 Thread Ashim D'Silva
Can't argue with that. It seems really odd that you call stop on the channel, destroy it, and then call play on the sound and receive a new channel... I don't get it. 2008/8/7 Steven Sacks <[EMAIL PROTECTED]> > Modulus works, too, but that doesn't solve the issue that looping sounds > return out

Re: [Flashcoders] BUG: Channel.position returns out of range positions on looping Sounds

2008-08-07 Thread Ashim D'Silva
Correct me if I'm wrong because I'm not sure what you want to get done but... if you want to start the sound from the beginning when you unpause, this should be no problem. and if you want to start at the position you stopped at call a Sound.play and pass it the position value you grab when you pau

Re: [Flashcoders] flex 3 // Tile Component // Mutliple Drag Selection

2008-07-23 Thread Ashim D'Silva
A selection box should not be a problem at all: remember the coords when MouseDown and then scale the box on MouseMove. Actually making the selection I'd guess would require some basic form of collision detection with bounding boxes. Rough guesses, maybe there's a more efficient way? Ashim 2008/

Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-17 Thread Ashim D'Silva
I like the way Steven split this into "child's toy" and "adult's toy" because at heart: yes, Flash is indeed a toy. But like in all cases of everything, everywhere, things do need to grow. This big jump has been at the expense of the easy-of-use aspect of Flash, just as the introduction of Filters

Re: [Flashcoders] Verifying Numerical Input

2008-07-16 Thread Ashim D'Silva
I'd say if it doesn't influence your system too much, restrict what's put in the text field (txtField.restrict) to just numbers. That way, it saves you trouble, and it shows the user what you're expecting instead of doing 'magic' in the background. 2008/7/17 Juan Pablo Califano <[EMAIL PROTECTED]>

Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-16 Thread Ashim D'Silva
I love flash and have been using it since 5. And although at the time, it was almost possible to drag and drop what you needed to get something going, we know there were a host of disadvantages that came with everything being so dynamic and code being everywhere. So as Flash has gotten stricter, I

Re: [Flashcoders] Overlay problem

2008-07-14 Thread Ashim D'Silva
simplest is to stick a mouse enabled layer (sprite/mc) on top. it should override everything under it. 2008/7/14 Rajiv Seth (Pixelated) <[EMAIL PROTECTED]>: > Hi, > > I want to create an effect like > http://www.limoosoft.com/Limoosoft-En.html > > When user clicks on "zoom image", large image load

Re: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Ashim D'Silva
You can reset your text field before you loop. That will clear it up and you can start filling it up again. textField.htmlText = ""; 2008/7/8 Paul Jinks <[EMAIL PROTECTED]>: > Thanks to everyone for your help. This gets me closer to what I'm looking > for. > > Unfortunately, there's a complicatin

Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread Ashim D'Silva
For patterns on Shapes, look no further that the beginBitmapFill function. It takes a bitmap and repeats it on a Shape. You call it from the Shape's graphics functions; as follows: var bd:BitmapData = Your bitmapData of your repeatable pattern goes here; var sh:Shape = new Shape(); sh.graphics.beg

Re: [Flashcoders] Two problems with BitmapData.draw() w/r/t registration point and transparency

2008-07-03 Thread Ashim D'Silva
I've found you have to set up the bitmapdata to have 4 channels instead of 3 to get transparency. So for a transparent image... new BitmapData(width, height, true, 0x); That should make it truly transparent. And for the first part, I haven't tried it, but have you looked into using a Mat

[Flashcoders] Bitmap vs beginBitmapFill

2008-07-03 Thread Ashim D'Silva
>From what I can gather, if you have bitmapData, there's 2 ways to display it. By embedding it in a Bitmap; or by using beingBitmapFill on a Shape (or anything that supports it). Now I presume using a Bitmap is the recommended way, but is there anything wrong or resource intensive with the other wa

Re: [Flashcoders] "drag and rotate", where do I begin?

2008-07-02 Thread Ashim D'Silva
Basically it's using velocity well. The dragging and throwing is pretty easy to figure out with basic physics (velocity and decay/friction). The rotation is a little trickier I imagine using some sort of Matrix transformations to dynamically decide a point to rotate around. Look for rotations aroun

Re: [Flashcoders] Flash & CMS

2008-07-02 Thread Ashim D'Silva
We normally use our own CMS running off MySQL, however, we have worked with Alfresco as well. XML makes things pretty easy to integrate although there are always hiccups you'll face. In which case, it's good to have some server side script on your side to translate if nessecary, especially with Web

Re: [Flashcoders] random drawing

2008-06-30 Thread Ashim D'Silva
his.addChild(newcard); > newcard.x = 25; > newcard.y = 45; > } > > thank you > > On 6/30/08, Ashim D'Silva <[EMAIL PROTECTED]> wrote: >> >> If you're using AS3, everything in your library that's set to export >> for Actionscript will have

Re: [Flashcoders] random drawing

2008-06-29 Thread Ashim D'Silva
If you're using AS3, everything in your library that's set to export for Actionscript will have a unique Class which you need to call to instantiate it. Use getDefinitionByName to turn a randomly selected string into a class definitiion and then call it. Example: If your library has 50 objects an

Re: [Flashcoders] trace all properties of a class recursively

2008-06-27 Thread Ashim D'Silva
I normally end up writing a toString function for all classes that I write so that I can at any point know what state the class is in. 2008/6/27 Patrick Matte | BLITZ <[EMAIL PROTECTED]>: > Yeah but describe type won't loop through the tree in a recursive manner. > > So I ended up writing a typed

Re: [Flashcoders] Bitmap data for presentation

2008-06-24 Thread Ashim D'Silva
I've thought about it, but it didn't make enough sense to me to try. That was under the assumption that Flash's re-draw area organisation would make it more efficient. If your performance is improving, I might give it a look for certain situations. Any numbers yet? 2008/6/25 eric e. dolecki <[EMAI

Re: [Flashcoders] AS3 - Button follow cursor within image area

2008-06-24 Thread Ashim D'Silva
You can also disable the button and use the image itself as a button. On click on the image, the event will feed you local mouse coords which will tell you which side of the image the mouse is on. Layered buttons are a bit troublesome, but there's workarounds. 2008/6/25 Vayu Robins <[EMAIL PROTECT

Re: [Flashcoders] Flash player crashes

2008-06-23 Thread Ashim D'Silva
27;d be off and running, chasing > that bug, slowly spiraling ever close to the true culprit. > > Good luck! > > Cordially, > > Kerry Thompson > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PROTECTED] On Behalf Of As

Re: [Flashcoders] Flash player crashes

2008-06-23 Thread Ashim D'Silva
ags. Cheers again! Ash 2008/6/23 Kerry Thompson <[EMAIL PROTECTED]>: > Ashim D'Silva wrote: > >> I'm using the Flash IDE CS3 to produce a project in AS3, and Flash is >> continually crashing erratically. Is there a way for me to figure out >> what's ca

Re: [Flashcoders] Flash player crashes

2008-06-23 Thread Ashim D'Silva
ry very hard to track down. >>> Usually related to garbage collection it only crashes in the IDE >>> right? >>> >>> I wish i had better advice, but one thing you can do is when you test >>> your movie, test using the debugger (control > deb

[Flashcoders] Flash player crashes

2008-06-22 Thread Ashim D'Silva
Hey, I'm using the Flash IDE CS3 to produce a project in AS3, and Flash is continually crashing erratically. Is there a way for me to figure out what's causing it? I can't seem to tie it to any action or recreate it, but it happens often enough to be a large problem. I would normally think there i

Re: [Flashcoders] Converting simple XML data into Array

2008-06-19 Thread Ashim D'Silva
E4X means that XML is pretty much read like an Array. So the data you mentioned would be accessed as follows: var xml:XML = [this is the variable that contains your XML]; trace(xml.file[0].text); //returns file name 1 trace(xml.file[1].text); //returns file name 2 you can also loop through with a

Re: [Flashcoders] How to add bitmaps from my library to the stage AS3?

2008-06-19 Thread Ashim D'Silva
When you call a Library class (eg:LibImage()), you need to give it 2 parameters which represent the width and height of the BitmapData class. Here however, they dont do anything. So simply call :: new LibImage(0, 0); 2008/6/20 jonathan howe <[EMAIL PROTECTED]>: > Here's the function I use (it uses

Re: [Flashcoders] Image Hyperlinks in TextFields

2008-06-17 Thread Ashim D'Silva
S2? If it's AS3 look up > "flash.text.TextField dispatches event: link" . > > > > On Jun 17, 2008, at 4:06 AM, Ashim D'Silva wrote: > > This is supposed to be relatively simple, but I'm facing a rather odd >> problem. I've got almost everything

Re: [Flashcoders] Paste rich text possible in Flash?

2008-06-17 Thread Ashim D'Silva
Just noticed you said MX2004 or 8. This help is for AS3. Sorry about that. But if you don't have a compelling reason to stick to AS2, you should switch anyway. 2008/6/18 Ashim D'Silva <[EMAIL PROTECTED]>: > I've got a feeling its possible. Using > useRic

Re: [Flashcoders] Paste rich text possible in Flash?

2008-06-17 Thread Ashim D'Silva
I've got a feeling its possible. Using useRichTextClipboard:BooleanFrom adobe help: useRichTextClipboard property (for TextField class) Specifies whether to copy and paste the text formatting along with the text. When set to tr

[Flashcoders] Image Hyperlinks in TextFields

2008-06-17 Thread Ashim D'Silva
This is supposed to be relatively simple, but I'm facing a rather odd problem. I've got almost everything working but the link only works if you right click the image and click "Open" or "Open in new window". Just clicking the link, seems to do nothing at all. The text field has mouseEnabled on and

Re: Re: [Flashcoders] Insert breakpoints and run debugger withoutFlash CS3?

2008-06-16 Thread Ashim D'Silva
SHOOT THIS GUY 2008/6/16 EDELSTAR <[EMAIL PROTECTED]>: > ?? ?? ?, ?? ? ?? ?. > ??? ? ?? ?, ??? ?? ???. > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figle

Re: [Flashcoders] Inserting Smiley Images in Textarea

2008-06-13 Thread Ashim D'Silva
small little inline images? htmlText property parses that. Maybe you can write a server side script that converts text gestures to an tag. 2008/6/13 Elia Morling <[EMAIL PROTECTED]>: > Yes, I need full 8-bit smilies. :( > > Elia > > - Original Message - From: "Kerry Thompson" < > [EMAIL

Re: [Flashcoders] Effective Cursor Switching

2008-06-12 Thread Ashim D'Silva
Yeah, the text fields and buttons do it fine. I was hoping to use it for more features such as a drag hand, loading cursors, magnifying glass, etc... 2008/6/13 Barry Hannah <[EMAIL PROTECTED]>: > As with buttons forcing the OS pointer/hand cursor, selectable > textfields should also change the st

[Flashcoders] Effective Cursor Switching

2008-06-12 Thread Ashim D'Silva
I'm curious because its becoming a large requirement for usability and I shy away from it; but changing the mouse cursor can be highly beneficial. I'd like to know however, it there's a way to tap into the OS's cursors, instead of changing the cursor position on mouse move. For instance when you ha

Re: [Flashcoders] Unhandled IOError and IOErrorEvent when closing browser during load

2008-06-12 Thread Ashim D'Silva
I only started getting this error when I switched to the debug player. Seem to get stream errors as well, when nothing is loading!If it is a feature of the debug feature; is there a way to disable the debug part of the player? I wouldn't want to keep reinstalling different versions of flash for bro

Re: [Flashcoders] flip in same postion

2008-06-11 Thread Ashim D'Silva
two options: 1. put it inside another container at object.y = (object.height/2)*-1; and then negetive scale the container. or 2. move the y of the object as you scaleY, so for the code below, add mySampleMC.y = orginalY - mySampleMC.height; 2008/6/10 sense co moh <[EMAIL PROTECTED]>: > Hi > I hav

  1   2   >