[Flashcoders] Re: AS3 agnostic custom trace

2007-08-06 Thread Zárate
Hi there, Sorry to bring this up again, I don't even know if this arrived with the list breakdown. Thanks! On 8/2/07, Zárate [EMAIL PROTECTED] wrote: Hi list, I'm trying to find out a way to have custom traces in AS3. With the agnostic bit I mean I want to keep using trace in my code, but I

[Flashcoders] Timeline instance problem

2007-08-06 Thread Johan Nyberg
I have somewhat of a headache when it comes to instances of MovieClips that haven't appeared on the timeline, and hence have not been instanciated yet... I try to keep as much code as possible on one frame on the _root timeline, or preferably, in an external class file for a movie clip that

Re: [Flashcoders] Timeline instance problem

2007-08-06 Thread Hans Wichman
Hi, are you using as 1 or as 2? greetz JC On 8/6/07, Johan Nyberg [EMAIL PROTECTED] wrote: I have somewhat of a headache when it comes to instances of MovieClips that haven't appeared on the timeline, and hence have not been instanciated yet... I try to keep as much code as possible on

Re: [Flashcoders] Timeline instance problem

2007-08-06 Thread Muzak
My problem comes down to that much of the code is dealing with defining code for different events for movie clips in my movie. But a lot of these movie clips have not yet appeared on the timeline when the movie start, and when the constructor for main_mc is run. Don't use the

[Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Folks i was just wondering how to create a circular preloader with actionscript. I thought about drawing many wedges increasing each time the angle accodring the percentage loaded, but how can i include an easing effect to this rotating motion? Regards -- Omar M. Fouad - Digital Emotions

Re: [Flashcoders] Casting to Array

2007-08-06 Thread Hans Wichman
btw one more compilaltion error circumventing hack that seems to work: [yourObj][0] ;-S greetz JC On 7/24/07, Danny Kodicek [EMAIL PROTECTED] wrote: That's a fair point. It's more the principle of the thing - it was frustrating not to be *able* to make it strict. But yes, leaving off

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Ivan Dembicki
Hello Omar, try this: http://proto.layer51.com/d.aspx?f=388 -- iv ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf

[Flashcoders] Test

2007-08-06 Thread Omar Fouad
Testing... -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed

[Flashcoders] Flash/Flex database editor component

2007-08-06 Thread Alex McCabe
Can anyone recommend a good Flash database viewer/editor component? Ideally I'd like to give access to a client to edit a largish mysql database from his browser. Database might be about 100 pieces of data, with 2000 rows. He wants the ability to move throught the data quickly, updating it as he

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Woah!!! too complicated... On 8/6/07, Ivan Dembicki [EMAIL PROTECTED] wrote: Hello Omar, try this: http://proto.layer51.com/d.aspx?f=388 -- iv ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
that example is not working.,. On 8/6/07, Omar Fouad [EMAIL PROTECTED] wrote: Woah!!! too complicated... On 8/6/07, Ivan Dembicki [EMAIL PROTECTED] wrote: Hello Omar, try this: http://proto.layer51.com/d.aspx?f=388 -- iv ___

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Ivan Dembicki
Hello Omar, possible... it's very old example. try at this: function drawSegment(target, rx, ry, x, y, sgm, s1, s2) { var rad = Math.PI/180; if (!s1 and !s2 or s1 == s2) { var grad = 360; var segm = grad/sgm; var x1 = rx+x;

[Flashcoders] oscillations

2007-08-06 Thread Andreas R
Out of curiosity, what are the right ways to calculate oscillations like triangle, sawtooth and pulse? Ideally oscillation would work in parallel with sine, so when sin=1, triangle=1, taking radians as the frequency parameter. Any takers? - Andreas R

[Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Niels Endlich
We are making a game in which people have to quess what's on a photo while viewing it through a little moveable hole. The images will be loaded from the server. The problem is caching. To cheat is easy... watch the cached files. Is there a way to prevent flash from caching the loaded assets or

[Flashcoders] Fwd: Flash/Flex database editor component

2007-08-06 Thread Alex McCabe
Can anyone recommend a good Flash database viewer/editor component? Ideally I'd like to give access to a client to edit a largish mysql database from his browser. Database might be about 100 pieces of data, with 2000 rows. He wants the ability to move throught the data quickly, updating it as he

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
ok i got something better and faster. I downloaded some methods from http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html. in this library there is an .as file wich lets u draw wedges easily ( drawWedges.as) but infortunately it doesnt support easing yet.. I am trying to add an

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Andy Herrman
I think the caching is controlled by the browser, not Flash itself, so I don't believe there's a way within flash to prevent caching. Maybe you could do some trickery with the images that makes it harder for the person looking at the cached stuff to see it. Like, split up the main image into

Re: [Flashcoders] Fwd: Flash/Flex database editor component

2007-08-06 Thread R�kos Attila
http://osflash.org/flashmyadmin But giving direct access to the database seems to me a little bit dangerous (eg. what if the client screws up the database, deletes or changes some essential things?) Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

[Flashcoders] Reusable Playback System in flash

2007-08-06 Thread Prince Xian
Hi, I have one project that involves creating a reusable playback system - xml, video, slides, cuepoints, next/back, etc. If anybody knows any open source files that I can edit or worked on simillar projects, please help me. Any help greatly appreciated! With high regards, Xian

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Ian Thomas
If you're using AS3, then load the image via flash.net.Socket (a direct socket connection to the server) rather than via the normal image loading mechanism - then use loadBytes() on the Loader class? I think that gets around it. Ian On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote: We are

[Flashcoders] test

2007-08-06 Thread jean philippe
test ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training

[Flashcoders] stage.stageWidth annoyance

2007-08-06 Thread mario gonzalez
When I compile the SWF (flash 9 / as3.0) I have a function which uses stage.stageWidth to create a grid. For the children of any object, I of course use Event.ADDED_TO_STAGE to avoid getting a null reference to stage. However this is for my document class. The hacky work around that I have is

Re: [Flashcoders] Fwd: Flash/Flex database editor component

2007-08-06 Thread Alex McCabe
Thanks, but I think that interface would rather confuse my client. Looks like a good replacement for phpMySQLAdmin though. I'd like to offer the facility to edit the data rather than admin the database - one slight error there and he could screw up the database as you say. Less is definitely

[Flashcoders] Accordion-Labels problem...

2007-08-06 Thread Cristo @ Cryzto.ch
Hi Folks! I've made a little example where I've got two Accordion- and 3 Button-Instances. First I load two XMLs, one for each Accordion [navi_acc and model_acc]. When I push the 1.Button [models_btn], the 1. Accordion shows up [navi_acc]. Then when I push on one navi_acc-Element, the 2.

RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Palmer, Jim
Just another bit of actionscript butchery here for a circular preloader that I use all over the place in my apps and pages... http://www.overset.com/2006/09/27/flash-wait-animation-ie-browser-throbber/ -- Jim Palmer ! Mammoth Web Operations -Original Message- From: [EMAIL PROTECTED]

[Flashcoders] Fullscreen option for streaming flash video

2007-08-06 Thread Magro, Shay (Citco)
I have been trying to add the fullscreen option to a video player I created which plays streaming flash video. Right now, from a php page, I am calling the appropriate video based on the variable passed in the code embedding the flash movie in the html. However, in trying to use the new skin in

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Eric Walton
you could try this. http://www.flashkit.com/movies/Animations/Vector_Animations/People/Dancing_-DrF-11618/index.php On 8/6/07, Omar Fouad [EMAIL PROTECTED] wrote: Folks i was just wondering how to create a circular preloader with actionscript. I thought about drawing many wedges increasing

RE: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Jack Doyle
If you're able to store the images in SWF format instead of something like JPG, you could set up your SWFs so that they're covered with a black rectangle MovieClip by default and then you flip the _visible property to false in your application when you load them in. That way, if people try to look

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Ian Thomas
That's a wonderfully neat idea. :-D Ian On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote: If you're able to store the images in SWF format instead of something like JPG, you could set up your SWFs so that they're covered with a black rectangle MovieClip by default and then you flip the _visible

Re: [Flashcoders] Timeline instance problem

2007-08-06 Thread robert
On Aug 6, 2007, at 2:22 AM, Muzak wrote: My problem comes down to that much of the code is dealing with defining code for different events for movie clips in my movie. But a lot of these movie clips have not yet appeared on the timeline when the movie start, and when the constructor for

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Eric and Palmers thanks so much, i found something interesting here.. http://www.styluscanada.com/ Note the white preloader.. This is what i am talking about exactly... -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Steven Sacks
I jumped on this thread late, but it seems to me that the best/easiest way to accomplish that circular preloader like you saw on that photography site is with a 100 frame movieclip that contains a mask that goes from frame 1-100 revealing a circle underneath. It would probably take you all of

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
This way no there would be no easing... And ma boss say he wants it with actionscript *GR^ On 8/6/07, Steven Sacks [EMAIL PROTECTED] wrote: I jumped on this thread late, but it seems to me that the best/easiest way to accomplish that circular preloader like you saw on that photography

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Steven Sacks
Easing? You're showing linear data. A visual representation of a number from 0-100. I'm not sure how easing fits into this. Your boss sounds like a real genius because it's absolutely brilliant to force somebody to spend many hours building something that could be built in 5 minutes -

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread eric e. dolecki
http://foo.domain.com/images/imageContainer.swf?e=; + getDate() all images could be in 1 swf and called out. On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote: That's a wonderfully neat idea. :-D Ian On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote: If you're able to store the images in SWF

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Troy Rollins
On Aug 6, 2007, at 2:50 PM, eric e. dolecki wrote: http://foo.domain.com/images/imageContainer.swf?e=; + getDate() all images could be in 1 swf and called out. Of course, that doesn't really prevent caching as much as it prevents the broswer from handing Flash a cached copy the next time

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Carl Welch
Can't you just put this in your page header: meta http-equiv=cache-control content=no-cache to prevent caching? -carl. On 8/6/07, eric e. dolecki [EMAIL PROTECTED] wrote: http://foo.domain.com/images/imageContainer.swf?e=; + getDate() all images could be in 1 swf and called out. On

[Flashcoders] keyboard shortcuts and flash v2 components

2007-08-06 Thread Chris Bare
Does anyone know of any tutorials etc discussing how to implement keyboard shortcuts with flash v2 components? I'm talking about things like ctrl-c for cut ctrl-v for paste etc. I have tried using an onEnter function that uses the Key object to check for combinations that interest me, but some of

RE: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Niels Endlich
It seems to me that the swf is easy to decompile and the photo also... We were working on sending an array with amfphp which contains the pixel information and use BitmapData setPixel to plot the image. But it seems that AMFPHP isn't able to send such a large array (800x600pix). Has anyone done

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Ian Thomas
Niels, Is this AS2 or AS3? Ian On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote: It seems to me that the swf is easy to decompile and the photo also... We were working on sending an array with amfphp which contains the pixel information and use BitmapData setPixel to plot the image. But

RE: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Niels Endlich
AS2 for the moment... -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Ian Thomas Verzonden: maandag 6 augustus 2007 21:38 Aan: flashcoders@chattyfig.figleaf.com Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded assets Niels, Is this AS2

Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Johannes Nel
using openAMF i tested sending back more than 3mb of data at a time to a as2/flex1.5 client On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote: AS2 for the moment... -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Ian Thomas Verzonden: maandag 6

[Flashcoders] garbage collection and asychronous execution

2007-08-06 Thread Hans Wichman
Hi, hmm okay this might seem like a basic question, but this has been bothering me for a while:) Imagine i have a class that prints boo 10 seconds after it has been created, but returns immediately, so eg: public function doTest() { trace(here 1); new BooTest(); trace(here 2); }

Re: [Flashcoders] oscillations

2007-08-06 Thread Glen Pike
Hi, There are not really any right ways - just the fastest way to get stuff out... http://www.flashbrighton.org/wordpress/?p=9 http://www.flashbrighton.org/wordpress/?p=6 Can't find the drum machine article - they built one as part of a contest with Flash Coders NY - source

RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread David Ngo
Uh, you could implement easing but I'm of the same opinion as Steve here where it wouldn't make any sense to kill an ant with a sledgehammer. At any rate, the easing would be based off a timer instead of frames. Pseudo code AS2 using the Tween class would be: var interval:Number =

Re: [Flashcoders] full-screen mode and FLVPlayback component conflict

2007-08-06 Thread Stephen Downs
A follow-up and workaround for this issue, for those who care. The issue of FLV blacking out the screen when a projector runs in full-screen mode seems to affect the Video class itself. I stand by my original guess that this occurs because of a security issue. The documentation for these

Re: [Flashcoders] Lines in textArea

2007-08-06 Thread Alan MacDougall
Volker Scarpatetti - Advertis Interactiva wrote: Hi ! Is there a way to know how many lines are written in a textArea component when filling it up dynamically ? This is not a perfect solution, but if you know the TextField.textHeight when there is a single line, you should be able to do a

RE: [Flashcoders] Lines in textArea

2007-08-06 Thread David Ngo
Look into TextFormat.getTextExtent() as well. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan MacDougall Sent: Monday, August 06, 2007 4:41 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Lines in textArea Volker Scarpatetti -

Re: [Flashcoders] garbage collection and asychronous execution

2007-08-06 Thread Mark Hawley
That isn't a reference to a function -- it's a reference to a object method. The object has to hang around. On 8/6/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, hmm okay this might seem like a basic question, but this has been bothering me for a while:) Imagine i have a class that prints

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have it.. i'll try to convince my boss. But i would like to know the same how that could be achieved like in the website. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for

[Flashcoders] textfield woes.

2007-08-06 Thread ilteris kaplan
Hello List, Very basic question. Basically I created a new font in my flash library and put this code in the timeline. this.createTextField(mytext, this.getNextHighestDepth(), 10, 100, 300, 200); mytext.multiline = false; mytext.type = input; mytext.embedFonts = true; mytext.restrict =

RE: [Flashcoders] textfield woes.

2007-08-06 Thread Palmer, Jim
Your mytext.restrict is wrong... should be mytext.restrict = 0-9 ; read: http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary762.html -- Jim Palmer ! Mammoth Web Operations -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Flashcoders] textfield woes.

2007-08-06 Thread ilteris kaplan
restrict is wrong. you are right. but that didn't really effect it. but this truely did. mytext.setNewTextFormat(format1); nevertheless, thanks for the link. On Aug 6, 2007, at 6:39 PM, Palmer, Jim wrote: Your mytext.restrict is wrong... should be mytext.restrict = 0-9 ; read:

RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread David Ngo
I'm not sure what you mean. What don't you have? The pseudo code I posted is fairly easy to implement. If you're using the drawing API to render your circle or partial circle, just tap into the Tween class' onMotionChanged event to update your vector shape. -Original Message- From:

RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Jesse Graupmann
Using the arc prototype ( AS 1/2 ) from formequalsfunction draw methods; http://www.formequalsfunction.com/downloads/drawmethods.html and Tweener ( AS 2 ) from http://code.google.com/p/tweener/ I put together a simple tween version of the circle. Assuming you have Tweener in the same directory,

Re: [Flashcoders] garbage collection and asychronous execution

2007-08-06 Thread Mark Winterhalder
On 8/6/07, Mark Hawley [EMAIL PROTECTED] wrote: That isn't a reference to a function -- it's a reference to a object method. The object has to hang around. No, it's a reference to a function. The VM doesn't know anything about methods. The interval keeps a reference to the function, the object

[Flashcoders] Accordion-Labels problem...HELP

2007-08-06 Thread Cristo @ Cryzto.ch
Can someone help me? I'm stuck and don't know what's the problem... cryzto

Re: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Muzak
- Original Message - From: Steven Sacks [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, August 06, 2007 8:38 PM Subject: Re: [Flashcoders] Coding a circular preloader Easing? You're showing linear data. A visual representation of a number from 0-100. I'm not

RE: [Flashcoders] Coding a circular preloader

2007-08-06 Thread Jesse Graupmann
Another version using _xmouse to get a Stage.width factor so you can see easing via onMouseMove. Nothing extra needed in this example - just copy/paste. - JG function drawArc ( mc, x, y, radius, arc, startAngle, yRadius) { //

[Flashcoders] Key repeating in AS3?

2007-08-06 Thread Martin Scott Goldberg
Has anyone noticed a change in key repeating rate (i.e. when the key is held down) between as3 and as2? I just transfered some game code over to as3 for controlling a ship. I.E. left arrow to turn left, right arrow to turn right. In as2 the key starts repeating really quick when held down. In