Re: [Flashcoders] Delegate question...

2008-02-01 Thread Muzak
You don't and should never have to. Create a custom button (MovieClip+Class) that dispatches an event (e.g. "release"), rather than using a generic Button/MovieClip symbol. So instead of: someMC.onRelease = Delegate.create(_level0, doSomething); you'd then use: function doSomething(o:Ob

[Flashcoders] Flash 8, AS 2.0. I want to use symbols from child movie in parent movie. Possible?

2008-02-01 Thread Donald Trump
Wow, how I could I miss this feature?.. It seemed useless for me at first. Now I see its power. Thanks so much, Deepanjan Das, that is just exactly what I was looking for! > You can use runtime shared libraries for this case I guess. ___ Flashcoders

Re: [Flashcoders] jpeg manipulation

2008-02-01 Thread MO
Hi Percepticon, Have you heard about http://www.faststone.org/download.htm ? ( FastStone Image Viewer 3.5 Freeware 2008-01-15) Hope this will help. All the best, Marie - Original Message - From: "Helmut Granda" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Friday, February 01,

Re: [Flashcoders] LoadVars and SQL Query issue

2008-02-01 Thread Juan Pablo Califano
This isn't a Flash issue really. Depending on the installed version, php defaults to a setting called "magic quotes". This automatically escapes any quotes received by an http request (either post or get methods) with a backslash. http://ar2.php.net/magic_quotes You can disable that setting o

RE: [Flashcoders] Creating a Projector for the Mac on a PC, and dealing with file references

2008-02-01 Thread Rob Emenecker
> PC/Mac hybrid CDs are normally created on Mac using Toast. You do > not have two sets of identical files (such as your XML files) on > PC and Mac sectors on CD because you can share them using aliases. On important thing to keep in mind if you create custom hybrid PC/Mac CDs is that the file

Re: [Flashcoders] LoadVars and SQL Query issue

2008-02-01 Thread Dave Mennenoh
You can escape() the string in Flash, then use urldecode() on it in PHP. Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.c

[Flashcoders] LoadVars and SQL Query issue

2008-02-01 Thread Omar Fouad
I am doing an application where I'm writing some classes that sends queries to a php file by using LoadVars.send(). var toSend:LoadVars = new LoadVars(); var myQuery:String = "select * from users where Name = 'Omar Fouad' "; toSend.query = myQuery; // tracesselect * from users where Name = 'Om

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-02-01 Thread Juan Pablo Califano
If you don't want to change the code in every screen swf that loads an xml (or it's too much manual work), you might just change how the load() function of the XML object, modifying its prototype. Keep in mind, however, that this is a bit of a "hack" ( It might be worth going for it but it'd be

Re: [Flashcoders] Delegate question...

2008-02-01 Thread Steven Sacks
You don't. Therein lies the rub with Macromedia's Delegate class. Use Big Spaceship's Improved Delegate class http://labs.bigspaceship.com/blog/?p=9 [p e r c e p t i c o n] wrote: Howdy, Quick question...How can I pass vars if i'm using delegates for handlers I have it set up like so...

[Flashcoders] Delegate question...

2008-02-01 Thread [p e r c e p t i c o n]
Howdy, Quick question...How can I pass vars if i'm using delegates for handlers I have it set up like so... someMC.onRelease = Delegate.create(_level0, doSomething); what i want to be able to do is know which instance of someMC actually called it... thanks p ___

Re: [Flashcoders] jpeg manipulation

2008-02-01 Thread Juan Pablo Califano
Yes, it's almost trivial to resize an image with php if the server has installed the gd / gd2 library (which is the case in most hosting services, in my experience); just a few lines of code. The are lots of examples in the net of how you can do that, and a lot of custom php classes that have

Re: [Flashcoders] static vars / constatnts in Movie Clips - Flash CS3

2008-02-01 Thread Kenneth Kawamoto
Works fine for me... How are you creating SomeClass instance? Kenneth Kawamoto http://www.materiaprima.co.uk/ Robin Burrer wrote: Hi All, I want do declare a constant in a class that extends the Movieclip class. That all works fine in Flexbuilder: public class SectionButton extends MovieClip

[Flashcoders] getting char positions with dynamic text

2008-02-01 Thread Andrew Sinning
Working in AS2. Since the TextSnapshot class is limited to static text, I don't think there's any way to do this, but I hope I'm wrong. I need to be able to take an arbitrary string of text, for example: You can see more Info or Proceed to the Next Page. And then render this out so that

RE: [Flashcoders] Creating a Projector for the Mac on a PC, and dealing with file references

2008-02-01 Thread Rob Emenecker
> 2. Is it possible to burn a CD for the Mac on a PC? Yes, but not without going through a lot of gyrations. Using Nero on the PC, you can burn *separate* Mac and PC partitions onto a CD, however to do so you need to have the Mac partition mounted on the PC. This can be done by via a SCSI interfac

Re: [Flashcoders] Creating a Projector for the Mac on a PC, and dealing with file references

2008-02-01 Thread Kenneth Kawamoto
On Mac, .app is an application bundle, and a bundle is a directory acts like a single file. Therefore you can treat .app as a single file like .exe on PC. PC/Mac hybrid CDs are normally created on Mac using Toast. You do not have two sets of identical files (such as your XML files) on PC and

Re: [Flashcoders] jpeg manipulation

2008-02-01 Thread [p e r c e p t i c o n]
That's a great suggestion...thanks! On Feb 1, 2008 8:58 AM, Helmut Granda <[EMAIL PROTECTED]> wrote: > Im not familiar with jmagic but how about php? having the image resize the > first time its hit and making a duplicate, then after that you can use > either the original or the resized image. >

[Flashcoders] Creating a Projector for the Mac on a PC, and dealing with file references

2008-02-01 Thread matt stuehler
All, A few questions about creating a Projector for the Mac on a PC, which I plan to burn to a CD. 1.My application reads data from several XML configuration files. Those files are stored in a folder named "xml", so, in actionscript, I tell Flash to look in the relative path "./xml/" for those fi

Re: [Flashcoders] jpeg manipulation

2008-02-01 Thread Helmut Granda
Im not familiar with jmagic but how about php? having the image resize the first time its hit and making a duplicate, then after that you can use either the original or the resized image. On 2/1/08, [p e r c e p t i c o n] <[EMAIL PROTECTED]> wrote: > > Hello Experts, > I'm loading an arbitray num

[Flashcoders] alpha problem in fl.transitions.Iris (AS3)

2008-02-01 Thread Filipe Silvestrim
<[EMAIL PROTECTED]> Hey people! I'd know if someone already had this problem and if yes, what did to solve. I have an MovieClip that contains 3 MovieClips (those have alpha property set to 0.5), but when I use the Iris transition the alpha do not work (already tried do an cacheAsBitmap, but noth

[Flashcoders] jpeg manipulation

2008-02-01 Thread [p e r c e p t i c o n]
Hello Experts, I'm loading an arbitray number of jpgs that are pretty hefty in size...roughly 650X400 or in other words between 15 and 40k. I'm wondering if there's a way i can make them smaller other than using jmagick or something similar before-hand...meaning before i load them into my swf...cur

Re: [Flashcoders] getting char positions with dynamic text

2008-02-01 Thread Andrew Sinning
Mike Duguid is my Flash hero! Mike Duguid wrote: Try this: http://blog.greensock.com/textmetrics/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _

Re: [Flashcoders] static vars / constatnts in Movie Clips - Flash CS3

2008-02-01 Thread Robin Burrer
I found the mistake. I set the id in linkage properties to "SectionButton" and the base class to "de.formDivision.fdCD.view.slidePlayer.SectionButton" as well. If I change the id to "SectionButton1" it compiles fine. Thanks for your help everybody! Robin On 01/02/2008, at 3:41 PM,

Re: [Flashcoders] static vars / constatnts in Movie Clips - Flash CS3

2008-02-01 Thread Juan Pablo Califano
I'm creating the instance in the timeline of the .fla, with this line: var c:SomeClass = new SomeClass(); Have you tried that? Just to see if it works from the timeline and check if you can compile and run the code without errors... ( As I said, the code I pasted compiles fine and it traces the

Re: [Flashcoders] AddEventListener and DispatchCustom Events AS3

2008-02-01 Thread Helmut Granda
Interesting approach.. Thanks Jer On 1/31/08, Jer Brand <[EMAIL PROTECTED]> wrote: > > There are probably a hundred other ways to do this, but an easy one > (off the top of my head) would be to make your holder variable a > custom element that extends sprite, but has it's own variables, like: > >

Re: [Flashcoders] AddEventListener and DispatchCustom Events AS3

2008-02-01 Thread Helmut Granda
You are correct, that is the part that I was overlooking. For some odd reason I was feeling like I couldn't dispatch that information from within the component. Thanks... On 1/31/08, Steven Sacks <[EMAIL PROTECTED]> wrote: > > Now that I look at it, it's more an architecture issue than a custom >

Re: [Flashcoders] static vars / constatnts in Movie Clips - Flash CS3

2008-02-01 Thread Robin Burrer
>> Works fine for me... How are you creating SomeClass instance? like this - it's all really basic package { import flash.display.MovieClip; import de.formDivision.fdCD.view.slidePlayer.SectionButton; public class Test extends MovieClip {

Re: [Flashcoders] getting char positions with dynamic text

2008-02-01 Thread Mike Duguid
On Feb 1, 2008 1:39 PM, Andrew Sinning <[EMAIL PROTECTED]> wrote: > Working in AS2. Since the TextSnapshot class is limited to static text, > I don't think there's any way to do this, but I hope I'm wrong. > > I need to be able to take an arbitrary string of text, for example: > >You can see

Re: [Flashcoders] dynamically including MC's

2008-02-01 Thread Kenneth Kawamoto
In AIR you can use File.getDirectoryListing() or File.getDirectoryListingAsync() - but I presume you are talking about SWF in browser... Kenneth Kawamoto http://www.materiaprima.co.uk/ Ted Lehr wrote: I want to have a folder where I can throw in some swf's then have another mc that will dynam

Re: [Flashcoders] dynamically including MC's

2008-02-01 Thread Jer Brand
I don't think Flash can do this on it's own. You'll need something server side to do the folder transversal. One solution is to send Flash an XML file replicating that structure. The file will have to be built in ASP or PHP or whatever flavor you're working with on the server. On Feb 1, 2008

Re: [Flashcoders] static vars / constatnts in Movie Clips - Flash CS3

2008-02-01 Thread Juan Pablo Califano
the code works fine for me... I just added the package declaration package { import SectionButton; public class SomeClass { public function SomeClass() { trace (SectionButton.ON_PRESS) } } } package { import flash.display.MovieClip; public class SectionButton ex

Re: [Flashcoders] dynamically including MC's

2008-02-01 Thread Hans Wichman
Hi, if it runs from a server you could do exactly that, write some kind of script that returns the contents of the folder in xml format. It's not supported in flash to loop through a set of files without such a script. greetz JC On Fri, Feb 1, 2008 at 3:25 PM, Ted Lehr <[EMAIL PROTECTED]> wrote:

[Flashcoders] dynamically including MC's

2008-02-01 Thread Ted Lehr
I want to have a folder where I can throw in some swf's then have another mc that will dynamically display these mc's. So what I need is a way to dynamically display a file structure, I guess. Kind of like FileSystemObject in .asp. Something that will dynamically loop through a set of files give th

[Flashcoders] static vars / constatnts in Movie Clips - Flash CS3

2008-02-01 Thread Robin Burrer
Hi All, I want do declare a constant in a class that extends the Movieclip class. That all works fine in Flexbuilder: public class SectionButton extends MovieClip { // events public static const ON_PRESS:String = "onPress"; } R

Re: [Flashcoders] Animating sprite.graphics.lineTo

2008-02-01 Thread Kenneth Kawamoto
I already suggested that. The function would be: private var v:Object; private var a:Number; private var b:Number; private function initLine(x1:Number, y1:Number, x2:Number, y2:Number):void { a = (y2 - y1) / (x2 - x1); b = y1 - a * x1; v = {x:x1};

Re: [Flashcoders] Animating sprite.graphics.lineTo

2008-02-01 Thread Glen Pike
Not sure about TweenLite, but there is some useful stuff here: http://www.reflektions.com/miniml/template_permalink.asp?id=254 and here: http://labs.zeh.com.br/blog/?p=104 Leandro Ferreira wrote: You could do it sending and object to TweenLite and monitoring its variables to create lines from

Re: [Flashcoders] Animating sprite.graphics.lineTo

2008-02-01 Thread Leandro Ferreira
You could do it sending and object to TweenLite and monitoring its variables to create lines from A to B. Leandro Ferreira On 1/29/08, Merrill, Jason <[EMAIL PROTECTED]> wrote: > > > Tried on another Flash list without any luck, so I'll try here. > > I'm trying to see if there is a way to c

RE: [Flashcoders] LoadVars maximum?

2008-02-01 Thread Kevin Heppell
There are problems using LoadVars and POST in a frameset in IE too (a problem I am working on a workaround for) I don't know if you are using a frameset but this might confuse matters -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: 31 Ja

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-02-01 Thread Hans Wichman
Hi, i think this applies to using an html file in location a loading an swf from location b. Seeing Amanda has two different basepaths, setting the base to nr 1 will confuse nr 2 and vice versa. Copying everything to the same directory like Bob said seems a good and simple solution though:). greet

Re: [Flashcoders] FLVPlayback

2008-02-01 Thread Irene Johansson
Thanks on your reply, but have a function connected to main menu which tells flash to go to a different frame for different sections. If i put this (FLVPlayBackInstance.stop()) inside that function, it will work if the video is played->if i am in that video section, but if i am in different secti

Re: [Flashcoders] FLVPlayback

2008-02-01 Thread Kenneth Kawamoto
Just fire FLVPlayBackInstance.stop(); when you are leaving the current frame. Kenneth Kawamoto http://www.materiaprima.co.uk/ Irene Johansson wrote: Hello! I am having a FLVPlayback component inside a movieclip. Now when video is playing and i click on main menu to go to a different section,

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-02-01 Thread Glen Pike
Can you use the "base" attribute in the params to set somewhere that you can then use relative paths. |http://www.example.com/pages/";> http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_04157&sliceId=2

[Flashcoders] FLVPlayback

2008-02-01 Thread Irene Johansson
Hello! I am having a FLVPlayback component inside a movieclip. Now when video is playing and i click on main menu to go to a different section, the video is not displayed but it is still playing. How can I detect that video is not anymore on stage and stop playing it? Thanks Irene :) __

Re: [Flashcoders] How to call class method from a movieclip?

2008-02-01 Thread Irene Johansson
Thanks people for all replies. Need to stop thinking in old AS1 way :) On 1/31/08, Jesse Graupmann <[EMAIL PROTECTED]> wrote: > > Funny! Your mom said the same thing to me last night... > > ;) > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Stev

RE: [Flashcoders] Speech recognition with AS3 possible?

2008-02-01 Thread Tenney Julian
AS3 isn't going to be the issue. I played around with speech recognition a lot and found that: - For it to be anything approaching reliable, you need a very quiet room. Any background noise really starts to make the reliability fall away. A room full of young kids who can't read well strikes me as