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

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] 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] 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] 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] 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] 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] 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] 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] 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 =

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] Detecting a click on an html link in a text field

2006-11-08 Thread Alain Rousseau
Hi Mark, You should look into asfunction http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Partsfile=1719.html It lets you call AS functions through links in a html textlike this : a href=asfunction:myFunction,arg1,arg2 HTH A.

RE: [Flashcoders] MP3 sound cutting out

2006-11-09 Thread Alain Rousseau
Hi Paul, Does your screen length (time) affect the sound or is it the sound that determines the length of a screen ? Firsthand, it sounds like a synch problem to me. Is there any other places where you call stopAllSounds() or playSound() ? This might as well affect the cut off. HTH A.

Re: [Flashcoders] AS2 Flash Remoting Troubles

2006-11-24 Thread Alain Rousseau
Hi Graham, Did you check your typos ? we forget sometimes but, this is often the first place to look ! pc.responder = new RelayResponder(this, onEchoResul, onEchoFault); you forgot the t in onEchoResult :) A. Graham Pearson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am

RE: [Flashcoders] AS2 Flash Remoting Troubles

2006-11-24 Thread Alain Rousseau
This may be a scoping problem, As you define your result handling function inside your clic handler. You could try this : import mx.utils.Delegate; // your usual code here createAccount.click = Delegate.create(this, clickHandler); function clickHandler() { var

RE: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Alain Rousseau
Hi Micky, if you want to spread the load across time, the best approach is to have 36 .swf files that you load one at a time. To perform the loading you should use the MovieClipLoader (look it up on HYPERLINK http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.h

Re: [Flashcoders] MovieClipLoader/loadMovie vs. digit on instance name

2006-12-09 Thread Alain Rousseau
Hi Wagner, INMHO, the best way to add your numbers to the name of MovieClip is to first define a variable as the base name of your mc, then add the number (id) to that base name. I do it like this : var baseName:String = newWin_; var mcID:Number = Math.round( Math.random() * 100 ); var

RE: [Flashcoders] preloader not completely preloading...

2006-12-11 Thread Alain Rousseau
The only place I see where this could fail, is at your if line. You should probably calculate nTBytes outside your checkLoad() function and pass it as a variable at your first call. for your if statement you should maybe write it like this : var minPercentLoad:Number = 100; if ( nPercent ==

RE: [Flashcoders] cuepoint/flvplayback question

2006-12-12 Thread Alain Rousseau
Have you tried using MediaDisplay instead of FlvPlayback ? You won't have any controls showing, only your FLV. Or you can adjust your skin parameter of your component : http://livedocs.macromedia.com/flash/8/main/3480.html#wp3797830 HTH -Original Message- From: [EMAIL PROTECTED]

RE: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Alain Rousseau
Speaking of Triangles, I made an utility Class to help me solve Triangle problems and the formulas are all taken from mathworld website It will help you get the missing values of your triangles : Hope it helps someone out there ... Alain

RE: [Flashcoders] disable flvplayback seekBar

2006-12-14 Thread Alain Rousseau
check to see if this will help you http://livedocs.macromedia.com/flash/8/main/3480.html#wp3797830 It might disable all controls but you could turn them back on the same way -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Appenzellar

Re: [Flashcoders] Chinese characters in mailto: link

2006-12-26 Thread Alain Rousseau
You first need to activate Chinese language pack on your computer to be able to see the characters properly throughout your system, maybe it's that ? or maybe your e-mail program doesn't take the characters as UTF-8 , then you might need to specify other kinds of encoding for your mailto ...

RE: [Flashcoders] Critical bug in IE

2007-01-10 Thread Alain Rousseau
Had this problem as well recently, I used XRay to see what was going on and I noticed that 2 or 3 times the Stage onResize event would be triggered with height and width values of 0 before getting the correct values. So I only added a conditional statement to delay my positioning actions : var

Re: [Flashcoders] Loading international language XML into Flash

2007-01-16 Thread Alain Rousseau
Using system fonts is the best idea since people that will read in Chinese will have the Chinese language installed on their comp. That's what I did for a multilanguage site i'm working on. For my part it's not XML but either text from a database or text file saved in UTF-8. To test your

Re: [Flashcoders] triangle help

2007-01-26 Thread Alain Rousseau
You can also check this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-December/177264.html where i share a class of mine called TriangleSolver ... in your case, you can use the sine rule method Sine Rule : side1/angle1 = side2/angle2 = side3/angle3 or hypotheneuse/90 =

Re: [Flashcoders] Shorhand for if statement without else statement

2007-01-26 Thread Alain Rousseau
you could take that a bit further : (foo) ? foo() : (bar) ? bar() : (foobar) ? foobar() : trace(sorry! no soup for you!); Steven Sacks | BLITZ wrote: function foo() { trace(foo); } function bar() { trace(bar); } (true) ? foo() : bar(); -- foo (false) ? foo() : bar(); -- bar

Re: [Flashcoders] SCORM?

2007-01-27 Thread Alain Rousseau
You have 2 solutions concerning your Quizz issue, 1. In case each question is a SCO, get the current score from the LMS with FlashVars and send the updated value to the LMS. 2. Have your quiz (all 21 questions) in only one SCO and send the score at the end. as for the FLV's they should be

Re: [Flashcoders] SCORM?

2007-01-27 Thread Alain Rousseau
For your FLV, you should load it dynamically and keep it external. We had lots of external assets used by our SWF (MP3, FLV, pictures) and we kept them out of the SCOs and out of the imsmanifest.xml, it was becoming hard to list all those files in there ! But if you only have a few external

Re: [Flashcoders] Trace the _x and _y from node of Tree component

2007-01-27 Thread Alain Rousseau
import mx.utils.Delegate; var listenerObject:Object = new Object(); listenerObject.itemRollOver = Delegate.create(this, handleRollOver); function handleRollOver(eventObject:Object) { trace(menuTree2.selectedNode._y); } menuTree2.addEventListener (itemRollOver, listenerObject); If the

RE: [Flashcoders] SCORM?

2007-01-29 Thread Alain Rousseau
Usually we didn't have control over the LMS server but that didn't matter (except for updating and testing ... but that's another story) We delivered everything in our package ... let's say you had a directory structure as follow : - imsmanifest.xml - course (folder) - SCO1.html

RE: [Flashcoders] Shorhand for if statement without else statement

2007-01-29 Thread Alain Rousseau
Gee ! didn't know it was such a dirty hack ! lol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: 29 janvier 2007 13:14 To: Flashcoders mailing list Subject: RE: [Flashcoders] Shorhand for if statement without else statement

RE: [Flashcoders] access movieclip trough a class

2007-01-29 Thread Alain Rousseau
You must defined the variable first in your class before using it. class Holder extends MovieClip { private var mc1:MovieClip; function Holder() { mc1._x = 50; } } that way you won't get any compiler errors Alain -Original Message- From:

RE: [Flashcoders] Launch an application from CDROM based projector

2007-01-30 Thread Alain Rousseau
You cannot send parameters from fscommand to the bat file. Allready tried once to no avail. It is a security feature If I remember right my readings on the subject. Zinc would be a better option than fscommand. Or if you want to avoid Zinc, use fscommand to call a bat file that has all the

RE: [Flashcoders] onLoadInit running when swf doesn't exist

2007-01-31 Thread Alain Rousseau
have you tried defining your listening function before your loadText function ? Had similar problems when defining the event handlers after the load() call. Also you could use LoadVars to test the existence of the file firsthand. import mx.utils.Delegate; var fileExists:Boolean = false; var

RE: [Flashcoders] Need a volunteer Flash Programmer

2007-01-31 Thread Alain Rousseau
It's the website of the one asking for volunteer work ! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hank williams Sent: 31 janvier 2007 15:44 To: Flashcoders mailing list Subject: Re: [Flashcoders] Need a volunteer Flash Programmer On 1/31/07,

RE: [Flashcoders] Flash 8 Pro - new interface (for me)

2007-02-01 Thread Alain Rousseau
While in the workspace you can do CTRL-F (PC) or Command-F (Mac) to open the search window. It will search in all frames, all clips, etc ... Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BOYD SPEER Sent: 1 février 2007 09:32 To: Flashcoders

RE: [Flashcoders] Detecting NaN

2007-02-01 Thread Alain Rousseau
Simply use isNAN() method : http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Partsfile=1737.html if (isNAN(fooN)¨{ // do stuff else { // do else stuff } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Flashcoders] Class Initiation Q:

2007-02-01 Thread Alain Rousseau
check out also this link : http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library I've used it a few times and it works great ! Helmut Granda wrote: I created a simple class for an object that would be attached to the Stage with

Re: [Flashcoders] how do I setvalue and then getvalue between flash and scorm server

2007-02-01 Thread Alain Rousseau
if you can use ExternalInterface (Flash 8) or the Javascript Integration Kit (http://osflash.org/flashjs) to communicate back and forth with your LMS. As for having cuepoints triggering your actions you should look up FLVPlayback.cuePoint events

RE: [Flashcoders] loadMovie question

2007-02-02 Thread Alain Rousseau
You should try masking your movieclip through code, as you are loading into it with code : movieclip_a.masked.setMask(movieclip_a.mask); then your masked movieClip should remain masked even if you load a jpeg inside it. I say should, but I've not tested this precise setup ... HTH Alain

RE: [Flashcoders] loadMovie question

2007-02-02 Thread Alain Rousseau
Yes or use the MovieClipLoader class var mLoader:MovieClipLoader = new MovieClipLoader(); mLoader.load(movieclip_a.masked, image.jpg); If you load your jpeg to a depth of 0 it might overwrite the masked movieClip and thus you lose the mask as for the skewing, have you rotated or modified your

RE: [Flashcoders] loadMovie question

2007-02-02 Thread Alain Rousseau
and what are you tracing exactly ? that's only the result. But at first glance Target looks like a file path and not a clip path to me ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [p e r c e p t i c o n] Sent: 2 février 2007 12:49 To: flashcoders

Re: [Flashcoders] Scrolling text with dragger??

2007-02-05 Thread Alain Rousseau
http://www.google.ca/search?hl=enq=flash+dynamic+text+scrollbtnG=Google+Searchmeta= Tolis Christomanos wrote: Hi all! Can anyone give a link to a tutorial for scrolling external text with dragger? Thanks in advance! ___

RE: [Flashcoders] Tracking User progress through a presentation.

2007-02-06 Thread Alain Rousseau
SharedObjects would be much better than cookies as they are native to flash. or you can keep the progress on your server through a database. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 6 février 2007 12:39 To: Flashcoders mailing

Re: [Flashcoders] determining which object is displayed at a givenpoint

2007-02-06 Thread Alain Rousseau
You have your answer in your question ! :) the _alpha is set to 0, thus invisible but still with a _visible = true property. So check for also the _alpha value, not only the _visible value Vishal Kapur wrote: Ok, got it. Thanks for the suggestion. I tried this but it doesn't work with the

RE: [Flashcoders] onLoadComplete, but no onLoadInit

2007-02-14 Thread Alain Rousseau
I'd look for typos, wrong listener, etc ... If all that's clear then share your code with us so we can help you better ! :) Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael Keesey Sent: 14 février 2007 11:06 To: Flashcoders mailing list

RE: [Flashcoders] Events for custom classes?

2007-02-16 Thread Alain Rousseau
Also if you want to create your own onResult Event (it's not a real event) you can do this without EventDispatcher or listeners : class com.boa.projects.iqrcgenerator.components.AdminData{ public var onResult:Function; private var userData:Object; public function

RE: [Flashcoders] Events for custom classes?

2007-02-16 Thread Alain Rousseau
Jason, So if I understand clearly what you want to do is : From Class A : (pseudo code following) class ClassA { private var instClassB:ClassB; make comboBox make datagrid function ClassA() { instClassB = new ClassB();

RE: [Flashcoders] Events for custom classes?

2007-02-16 Thread Alain Rousseau
I set that up right? Thanks, Jason Merrill Bank of America Learning Organizational Effectiveness -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Friday, February 16, 2007 3:01 PM To: 'Flashcoders mailing list' Subject

Re: [Flashcoders] Action Script editor (OT)

2007-02-18 Thread Alain Rousseau
We would need the source code of FlashDevelop to compile with DarWINE on a Mac, it's not an emulator ! Toby wrote: Im not sure how good darwine http://darwine.opendarwin.org/ is getting but that's something I would look at on the mac most definitely. -Original Message- From: [EMAIL

RE: [Flashcoders] IE 7 and ExternalInterface.call()

2007-02-19 Thread Alain Rousseau
this could be related to how you reference the ActiveX control in your javascript. Some things have changed a little between IE6 and IE7 regarding DOM objects access Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 19

RE: [Flashcoders] Captivate and ActionScript

2007-02-27 Thread Alain Rousseau
Yup it is possible, but if you could be a bit more specific as to what you want to fetch and set, we can tell you which variables can or cannot be changed. Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roberto M. Basáñez González Sent: 26 février

[Flashcoders] RE : Captivate and ActionScript

2007-02-27 Thread Alain Rousseau
Hi Roberto, yes it's possible but you'll have to share more info as to what yo want to pass and get. There are certain ways of doing this. What is your setup ? Alain Roberto M. Basáñez González wrote: Hi All: I need to pass variables from swf animation to captivate and from captivate to

Re: [Flashcoders] Append variables to SWF server-side

2007-02-27 Thread Alain Rousseau
You should look into flasm (http://flasm.sourceforge.net/) or any code injecting software out there Mick G wrote: Does anyone know if there is a way to add data to a SWF file server-side? Eg. I have a swf that site on my server. I want users to be able to select an option from a dropdown

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Alain Rousseau
Hi Paul, actually what you should do with setInterval is something like setInterval(functionReference, interval); or to keep the scope of the interval : setInterval(this, functionReference, interval); secondly, if you want to load the image at a set interval, then your approach is wrong.

Re: [Flashcoders] Resize Flash content dynamically via JS in IE6 when DOCTYPE declaration is present in HTML

2007-02-28 Thread Alain Rousseau
If i look at the code from Eduardo Ramos, I can see a problem for IE6 in the pixelWidth property. I don't believe it exists ... what you should be doing is the following : function newSize(datoX,datoY) { var flashElement; if(document.all !document.getElementById) { flashElement =

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Alain Rousseau
syntax // rest of your resizing code afterwards // When you have all 5 images, stop calling the interval if (movieCount == 5) { this.clearInterval(myIntrvl); } } Alain Rousseau wrote: Hi Paul, actually what you should do with setInterval is something like setInterval

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Alain Rousseau
And another error on my part in doLoadImage replace i with movieCount Alain Rousseau wrote: Hi Paul, actually what you should do with setInterval is something like setInterval(functionReference, interval); or to keep the scope of the interval : setInterval(this, functionReference, interval

Re: [Flashcoders] Dragging a clip gives erratic ._x numbers

2007-02-28 Thread Alain Rousseau
Hi Paul, checked your files and indeed the position was wrong if you dragged and droped too fast. I made a simple fix to your code and now it works nicely. In your onRelease function you should grab the final position of your mc. Here is the code with a bit of cleaning up and use of Delegate

  1   2   >