RE: [Flashcoders] Preloader not working with singleton

2006-11-07 Thread Alain Rousseau
You have instances in the library that Loads in first frame, So they load before frame 0, plus you use attachMovie to load your preloader. What happens is that the preloader and all assets that are set to export in first frame load, then the preloader gets attached but all your assets are allready

RE: [Flashcoders] Q:associate class with MovieClip using composition and WITHOUT attachmovie

2006-11-07 Thread Alain Rousseau
It's been discussed in here before, You should look up that thread : http://chattyfig.figleaf.com/pipermail/flashcoders/2003-May/075855.html Or search through Muzak's search page for this list : http://www.muzakdeezign.com/flashcoders/ HTH ! A -Original Message- From: [EMAIL

RE: [Flashcoders] Q;Convert hex values to ra,rb,ga,gb,ba,bb,aa,ab??

2006-11-07 Thread Alain Rousseau
Jim, Here's a utility Class I made to tint any MovieClip using the ColorTransform object. Use it and modify it as you wish :) HTH ! A class ca.daroost.utils.Tint { // /*** ** * *

Re: [Flashcoders] HTML display component for Flash?

2006-11-04 Thread Alain Rousseau
Wich is the one he is using right now ... ;) Joseph Balderson wrote: You might want to check out Deng: http://osflash.org/deng/ __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner,

Re: [Flashcoders] CSS question..

2006-10-29 Thread Alain Rousseau
Also you should use font-size (in px) not size. I'm not sure if text-transform works or letter-spacing or margins for that matter. Keep you CSS simple and all should be well. HTH Alain grimmwerks wrote: I'm trying to use a p class=' tag around text area's with the following css, yet

RE: [Flashcoders] SCORM multi api wrapper

2006-10-25 Thread Alain Rousseau
I believe that you can't get any return value that way (not sure, could be wrong). What you need to do is call a javascript with proxy.call wich then (the javascript) calls another function that sends data to flash through the proxy ... A better way to do that, if you use Flash 8, is to use

RE: [Flashcoders] Drag movieclips with interactivity

2006-10-25 Thread Alain Rousseau
The best thing would be to have a drag bar nested inside the movieclip with a code like this : bar.onPress = function() { this._parent.startDrag(); }; And there you go ... Otherwise there is still onMouseDown ... But this has been discussed not too long ago ... If you want to search

RE: [Flashcoders] Drag movieclips with interactivity

2006-10-25 Thread Alain Rousseau
: [Flashcoders] Drag movieclips with interactivity Thanks, that's sort of what I figured I'd have to do. I did search the archives but couldn't find the recent thread. --- Alain Rousseau [EMAIL PROTECTED] wrote: The best thing would be to have a drag bar nested inside the movieclip with a code like

Re: [Flashcoders] Exporting from flash to vector format

2006-10-22 Thread Alain Rousseau
Have you looked at Adobe EPS File language specification ? You can find it here : http://partners.adobe.com/public/developer/ps/index_specs.html *Encapsulated PostScript (EPS) File Format Specification Version 3.0* #5002 http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf

RE: [Flashcoders] newbie question - drawing a ring

2006-10-20 Thread Alain Rousseau
This has been talked about in the Archives I believe ... You could search it , but I remember that to be able to create a ring using the drawing API, you first need to draw the outer circle clockwise and then draw your innercircle counter-clockwise all that inside beginFill and endFill. That's

RE: [Flashcoders] newbie question - drawing a ring

2006-10-20 Thread Alain Rousseau
Speaking of wich, just found it in my inbox ... Here is a link : http://flash-creations.com/notes/dynamic_drawingapi.php#cutoutmask -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: 20 octobre 2006 11:49 To: 'Flashcoders mailing list

RE: [Flashcoders] Event Listener and Levvels

2006-10-19 Thread Alain Rousseau
You have the answer in your question ! ;) I create a listener at level0 If you know the level of your listener, then you should use it to reference it in your function calls. But all that depends on how your projects is built. Is your code on _level0? is it loaded in another swf ? Etc ... So

RE: [Flashcoders] Event Listener and Levvels

2006-10-19 Thread Alain Rousseau
Lol, Got a record from them ... Message to Love if I remember right ;) a gift ... So don't get any funny ideas ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 19 octobre 2006 11:58 To: Flashcoders mailing list Subject: RE:

RE: [Flashcoders] Re: Passing SWF parameters with MovieClipLoader?

2006-10-17 Thread Alain Rousseau
before calling MovieClip.loadMovie(). And what I found is that you can do this by setting those parameters in response to onLoadComplete. -John On 10/16/06, Alain Rousseau [EMAIL PROTECTED] wrote: Yup, Tested and True, it's definitely onLoadInit that does the trick, because it is fired when

RE: [Flashcoders] LoadVars to XML object

2006-10-17 Thread Alain Rousseau
If you do a sendAndLoad allready, you should try to define your xml in the onData event of the LoadVars. import mx.utils.Delegate; var xml:XML = new XML(); xml.ignoreWhite = true; lv.onData = Delegate.create(this, parseData); // onData returns the source of the file as a string so the

RE: [Flashcoders] Weird image download problems in IE

2006-10-16 Thread Alain Rousseau
Have you tried using the MovieClipLoader class ? It has an event very usefull called onLoadError . It gives you the following informations (quote from the livedocs): errorCode:String - A string that explains the reason for the failure, either URLNotFound or LoadNeverCompleted.

RE: [Flashcoders] ppt to flash

2006-10-16 Thread Alain Rousseau
You should try OpenOffice http://www.openoffice.org, It's similar to Windows Office, but open source and you have an application that reads PowerPoints. With it you can convert your PowerPoints to swf. Otherwise you could try and do it with a C# app. But for that I can't really help you there.

RE: [Flashcoders] Weird image download problems in IE

2006-10-16 Thread Alain Rousseau
] On Behalf Of Andy Herrman Sent: 16 octobre 2006 16:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] Weird image download problems in IE Awesome, looks like that works. Thanks! Any idea what's causing the problem with the Loader? Just some bug in Flash or IE? -Andy On 10/16/06, Alain

RE: [Flashcoders] ppt to flash

2006-10-16 Thread Alain Rousseau
the images you need. -Andy On 10/16/06, Alain Rousseau [EMAIL PROTECTED] wrote: You should try OpenOffice http://www.openoffice.org, It's similar to Windows Office, but open source and you have an application that reads PowerPoints. With it you can convert your PowerPoints to swf

Re: [Flashcoders] Re: Passing SWF parameters with MovieClipLoader?

2006-10-16 Thread Alain Rousseau
Yup, Tested and True, it's definitely onLoadInit that does the trick, because it is fired when the first frame of your loaded SWF is played. onLoadComplete only tells you that the SWF bytes have completed loading before it actually begins playing. the rest of the onLoad... events for the

Re: [Flashcoders] Flash Classes and Preloading ...

2006-10-15 Thread Alain Rousseau
Hi Stephen, The best way to use a preloader is to put it in a different swf movie that loads the one you wish to preload, that way you'll be sure it will load correctly. HTH A. Stephen Ford wrote: I'm using AS2 classes in my flash movie. I have created a class called Preloader. How

RE: [Flashcoders] Scripted Angled Motion

2006-10-12 Thread Alain Rousseau
Hi Kevin, It's quite simple actually. If you know the angle (it need to be in radians) all you need after that is the speed of motion. To know the movement in the x axis it's the cosine of the angle, for the y axis, it's the sine of the angle so you will have the following : mc._x =

RE: [Flashcoders] IE doesn't seem to want to recognize FlashVars

2006-10-11 Thread Alain Rousseau
It seems to work when I pass the Flashvars directly to the swf : http://www.iconicweb.com/home3.swf?page=PortfoliosubPage=toyotaEPNS But not through the html page. I believe that your problem is in the Javascript. You should try and debug that first do some alerts in your scripts to check your

RE: [Flashcoders] Simplified Chinese

2006-10-10 Thread Alain Rousseau
For me it works well if I don't try to use animations to display the text and no embeded fonts. What you need is a unicode font selected in your TextField and a unicode text data, wheter it is an xml file, a text file or a database. Otherwise you'll need to go through hoops jumping and live with

RE: [Flashcoders] Movieclip event hook back to class instance?

2006-10-06 Thread Alain Rousseau
Hi Dan, I think that what you'll have to do is create your own event and dispatch it using the EventDispatcher Class. First you'll need to initialize your outro mc with event dispatcher // in mc timeline's first frame import mx.events.EventDispatcher; var addEventListener:Function; var

RE: [Flashcoders] movieclip._y = textField._height

2006-09-28 Thread Alain Rousseau
Instead of using textField._height, you should use textField.textHeight. This is more reliable than the _height property A -Original Message- From: André Goliath [mailto:[EMAIL PROTECTED] Sent: 28 septembre 2006 09:33 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders]

RE: [Flashcoders] Using XRay

2006-09-28 Thread Alain Rousseau
Try this link, It has everything you need to know about XRay, including where to download ! Enjoy ! http://www.osflash.org/xray A -Original Message- From: slangeberg [mailto:[EMAIL PROTECTED] Sent: 28 septembre 2006 14:09 To: Flashcoders mailing list; [EMAIL PROTECTED] Subject:

Re: [Flashcoders] Associate clip with class

2006-09-19 Thread Alain Rousseau
There is an interesting article on the subject in the Flashcoder's Wiki at osflash.org : http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library With this approach you can create a class that extends MovieClip and then create an

Re: [Flashcoders] TextFormat Font Face = 'Wingdings' or 'Webdings'

2006-08-31 Thread Alain Rousseau
Try to embed it into some textfield on the stage and then trace font name. How would you do that? There is no mytextfield.font property. Only TextFormat.font and TextField (class).getFontList() which shows all the fonts on the user's system. Thanks for your advice, Jason Merrill

Re: [Flashcoders] Fwd: Application Framework

2006-08-31 Thread Alain Rousseau
Hi Jeff, if you want to convert the XML to anative AS object you could try out Sephiroth's XML2Object class http://www.sephiroth.it/file_detail.php?pageNum_comments=0id=129 or the XMLObject class which is similar but with a few more functionnalities.

Re: [Flashcoders] problem about blur

2006-08-29 Thread Alain Rousseau
http://www.google.ca/search?sourceid=mozclientie=utf-8oe=utf-8q=dynamically+blur+movieclips+with+flash+8 Gustavo Duenas wrote: Hi, I have a web site and I'd like to know how to make the different external movieclips I have would be blurred while a button is pressed. then, how to remove

Re: [Flashcoders] file reference

2006-06-19 Thread Alain Rousseau
This was asked not too long ago (last week !) Search for the following : ³FileReference and Getting File Path² with the cool new tool that Muzak has provided us http://muzakdeezign.com/flashcoders/ From: Mayur Bais [EMAIL PROTECTED] Reply-To: Flashcoders mailing list

Re: [Flashcoders] What does this code mean and What are Inspectables ...

2006-06-04 Thread Alain Rousseau
You might also take a look at Joey Lott's Tutorial on the subject (V2 Components) It's for Flash MX 2004 but still applies to Flash 8. http://www.person13.com/articles/components/creatingcomponents.html and http://www.communitymx.com/content/article.cfm?cid=A06B3C7D7B74030D Steven Sacks wrote:

Re: [Flashcoders] good OOP way to re-assign class to clip

2006-04-17 Thread Alain Rousseau
Hi Gregory You should look into this article in the FlashCoders Wiki http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo vieclip_without_a_symbol_in_the_library This is if you want to create dynamically a movie clip and then associate a class to it. If you allready

Re: [Flashcoders] good OOP way to re-assign class to clip

2006-04-17 Thread Alain Rousseau
http://GOusable.com Flash components development. Usability services. -- Alain Rousseau wrote: You should look into this article in the FlashCoders Wiki http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo

Re: [Flashcoders] MTASC and spaces in classpath

2006-04-01 Thread Alain Rousseau
Escaping spaces is fine in the Terminal, but not in Eclipse using Flashout. That's the issue here, how to define the Class Path in Eclipse. I've read a post about it at http://www.pixelmotive.de/blog/archives/2005/06/fame_on_mac.php Basically what it says is to create a shell script that catches

Re: [Flashcoders] problem with Delegate and scope

2006-03-16 Thread Alain Rousseau
Hi Manuel, The thing about Delegate is that you can't just call it like that. It is supposed to be used either with eventHandling onSomething = or with setInterval, setTimeOut. Here is a link that will make you see the light http://www.osflash.org/flashcoders/as2?s=delegate So for exemple you

[Flashcoders] Flash Programmer Needed - Montreal (QC)

2006-02-02 Thread Alain Rousseau
Hello FlashCoders, Isacsoft / Bigknowledge is seeking a Flash Programmer for the creation of a framework for our new e-learning application. Job will include organizing and processing data for our pre-built applications; including debugging, upgrading, and maintaining the code. Applicant should

Re: [Flashcoders] text field halfway round from bottom

2005-11-18 Thread Alain Rousseau
If you're using Flash 8 you can use the DisplacementMapFilter to do that effect. So far you can't write text on a path in Flash, unlile Illustrator or other vector based apps. you can see an example at this french blog:

Re: [Flashcoders] BitmapData.loadBitmap with on stage MC

2005-11-18 Thread Alain Rousseau
What you want is to take a snapshot of the MC on the stage right ? For this you use the draw() Method of the BitmapData : var bd:BitmapData = new BitmapData(mc._width, mc._height); bd.draw(mc); Alain Claudia Barnal wrote: How could I achieve the same as this: var bd =

Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Alain Rousseau
Hi Mark, you could monitor the position of the sound comparred to it's duration, that way you know when it arrives at the end of the sound. if (sound.position == sound.duration) { loopCount++; } In this case, the loop count will be made at the end of the sound. HTH Alain Mark

Re: [Flashcoders] onLoop event for sound

2005-11-17 Thread Alain Rousseau
tobias ps: sorry about my bad english :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Thursday, November 17, 2005 7:17 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] onLoop event for sound Hi Mark, you could

Re: [Flashcoders] Looping an external mp3 file seamlessly

2005-11-12 Thread Alain Rousseau
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alain Rousseau Sent: 11 November 2005 19:48 To: Flashcoders mailing list Subject: Re: [Flashcoders] Looping an external mp3 file seamlessly Or you can try this little thing I made here, exactly for looping mp3 seamlessly

Re: [Flashcoders] Looping an external mp3 file seamlessly

2005-11-11 Thread Alain Rousseau
does not loop. Is it true that streaming external audio will not loop? Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alain Rousseau Sent: 11 November 2005 16:55 To: Flashcoders mailing list Subject: Re: [Flashcoders] Looping an external mp3

Re: [Flashcoders] Help For Custom Components

2005-11-03 Thread Alain Rousseau
be no problem. You'll have all you need to create your help files. Alain Alain Rousseau wrote: Documentation about mxi file creation is inside Dreamweaver ... go figure ! You should also download Dreamweaver extensions that help you build your mxi file, there should be a little help file about how

Re: [Flashcoders] Xml parsing object

2005-10-29 Thread Alain Rousseau
Check out Sephiroth's XML2Object class : http://www.sephiroth.it/file_detail.php?id=129 very nice and easy to use. Weyert de Boer wrote: Does anyone got some nice object/method that transforms a xml data from a xml object into a nice object graph? I would like to ask (trying to avoid

Re: [Flashcoders] Looping Loaded Sound

2005-10-26 Thread Alain Rousseau
or you can try a Class I made to do exactly that (it's an extension manager file, for installing the doc, code hints, etc ) http://lab.daroost.ca/source/SoundLoop2.mxp JesterXL wrote: s = new Sound(this); s.onSoundComplete = function() { this.start(0, 0); }; s.loadSound(my.mp3, true);

Re: [Flashcoders] AttachMovie - where is x=0,y=0?

2005-10-19 Thread Alain Rousseau
the initial 0,0 point for any clip, stage, button, etc .. is at the top left corner. It's allways best to position your instances that way as well, for it will be easier later on to manipulate it's positioning. Alain eric dolecki wrote: initial attach is at 0,0 of the stage. perhaps you

Re: [Flashcoders] .onLoad works in AS1, breaks in Flash 7

2005-10-18 Thread Alain Rousseau
, but the data and scripts are at www.allnovascotia.com. I'm finding this very puzzling, and of course had assumed it would be a simple save as Flash 7, compile and we're done scenario. Thanks for responding - Miles At 11:24 PM 10/18/2005, Alain Rousseau wrote: Have you verified that you compiled

Re: [Flashcoders] dispatch event in 8

2005-10-18 Thread Alain Rousseau
Hi Amir, I believe you have a scope problem here. The compiler doesn't know wich object is dispatching the event. You should use your dispatcher object or instance to call that method. Also you now need to initialize your dispatcher object to the EventDispatcher class for exemple :

Re: [Flashcoders] Stylesheet.transform

2005-10-18 Thread Alain Rousseau
Ahh nice to know, was starting to look around :) thx for sharing Patrick Alain Patrick Matte wrote: Let me answer my own question : ) This code will transform the .menu css style to a TextFormat object : var styleObj:Object = my_styleSheet.getStyle(.menu); var styleFormat:TextFormat =

Re: [Flashcoders] Problem with Key class in Flash 8

2005-10-07 Thread Alain Rousseau
It looks like the listener stops listening to the first pressed key and monitors the onKeyUp only for the second one. So it might not be the Key class that is concerned here ... maybe event handling ? I can't really tell, would have to know more on how these work together. The thing is, that

<    1   2