Re: [Flashcoders] Post awaiting for approval[OT]
when you right-clickzoom in and then (once you a find a place where a Flash right-click menu will pop up, which is hard) right-clickshow all, it doesn't show the entire view. On 11/22/05, David Peek [EMAIL PROTECTED] wrote: http://david.peek.ws/spark/ just need an opinion. No. HTH, Alias On 11/22/05, Tiago Vale [EMAIL PROTECTED] wrote: Hi list, I've sent a post to osflash and flashcoders(hope its not spamming) list but it seems its too big, can I send the example sources as attachement? -- Cheers Tiago Janz ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] SWF wrapping Class
I think you can use Object.registerClass in this case. The thing is, registerClass takes a string argument for the mc name, but not the class name (which would make it too easy for you). I'm not sure how to obtain a class prototype from a string, however- perhaps eval() will do that? I'm not sure. Liam On 11/7/05, Kyle Ward [EMAIL PROTECTED] wrote: Hi all! I want to wrap Class around a loaded SWF [similar to how you would attach a Class to an MC in the Libary] But i am loading the Class name from an XML file. EG: 1. var mc:MovieClip= loadMovieClip('my.swf'); 2. var className:String = 'Path.To.MyClass'; var help:Object = new [className](mc); help.someMethod(); //etc If i am unclear please lemme know else please help! Cheers Kyle ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] can I dynamically register an MC with an AS2.0 class?
I'm working in FlashPro8. I have an empty movie clip called mapHolder defined on the stage. Depending on some parameters when starting my swf, i'm either going to call loadMovie(FlashMap.swf, mapHolder) or loadMovie( imagemap.jpg, mapHolder). I have an interface called IMapHolder, and two implementing AS2.0 classes called SWFMapHolder and ImageMapHolder. Because I'm not sure what type it will be, I'd like to associate the MC and the class dynamically. Something like Object.registerClass() would be perfect, but I imagine that doesn't support AS2.0. Do I need to create two separate MCs, each with its own linked AS2.0 class? Or is it possible to dynamically register an MC with AS2.0? Thanks all. Liam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] import problem (was can I dynamically register an MC with an AS2.0 class?)
Thanks for the speedy response. I tried the following: Object.registerClass(mapHolder, SWFMapHolder); SWFMapHolder imports flash.geom.Point and compiles with no problem. However, how that I'm registering SWFMapHolder from my movie, I'm receiving the following error: **Error** ImageMapHolder.as: Line 32: The class or interface ' flash.geom.Point' could not be loaded. public function getPosition():Point { I've tried creating a new Flash document, creating an empty movie clip, and calling Object.registerClass(empty_mc, SWFMapHolder), and that works just fine. Why does my document have a hard time with import? Liam On 11/2/05, JesterXL [EMAIL PROTECTED] wrote: Object.registerClass supports AS2. - Original Message - From: Liam Morley [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, November 02, 2005 11:54 AM Subject: [Flashcoders] can I dynamically register an MC with an AS2.0class? I'm working in FlashPro8. I have an empty movie clip called mapHolder defined on the stage. Depending on some parameters when starting my swf, i'm either going to call loadMovie(FlashMap.swf, mapHolder) or loadMovie( imagemap.jpg, mapHolder). I have an interface called IMapHolder, and two implementing AS2.0classes called SWFMapHolder and ImageMapHolder. Because I'm not sure what type it will be, I'd like to associate the MC and the class dynamically. Something like Object.registerClass() would be perfect, but I imagine that doesn't support AS2.0. Do I need to create two separate MCs, each with its own linked AS2.0class? Or is it possible to dynamically register an MC with AS2.0? Thanks all. Liam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] map GIS of italy
Is this flash- or actionscript-related? The only thing I can recommend as far as flash and maps is http://www.neave.com/lab/flash_earth/ Liam On 10/31/05, Marco Sottana [EMAIL PROTECTED] wrote: where i can find a map of italy i wish coordinates in a database.. i like www.mappy.com http://www.mappy.com ... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strict Datatyping Question
Jester, that's actually in the documentation, that's not a bug. I don't remember where I read it, but I found it somewhere when I was looking into scope. You can search around in here: http://livedocs.macromedia.com/flash/8/main/1200.html if you're interested. As to your original question, the answer depends on whether or not myVar is already defined in clip1. If it is, then as others have said, you can't declare something twice. You didn't mention in your question as to whether or not you're trying to declare it in two places. It's my opinion that declaring a variable in a different scope using strong typing is illegal because AS enforces you to be consistent with the spirit of the code. I'll explain. The following is an illegal declaration: // llegal syntax error: Identifier expected this.clip1.myVar:Number; This is pretty similar to your statement, except that I cut out the assignment, as it only clouds the issue. Before ActionScript introduced strong typing, you could define variables in any scope at any time. While this offers a greater range of possibilities, it also introduces a lot more danger, and as such is appropriate for small-time scripting, not larger software projects. Strong typing is useful because it helps keep you out of danger- it makes sure that variables can not change type implicitly. It's usually not appropriate for small scripting projects, as you're usually dealing with tasks small enough that you never run into type-related issues. AS2 supports the programmer working on a large project by offering strong typing, and the scripter/designer who isn't doing much with AS by offering dynamic variable declaration. AS2 however (at least in this case) does not really support both at the same time. It makes sense that, if you're using strong typing, you're working on a project where you don't want to support shortcuts like dynamic declaration. If you want strong typing, then you shouldn't be declaring myVar outside the scope of clip1; if you want dynamic declaration, then why are you wasting time with strong typing? I hope that made sense. Liam On 10/31/05, JesterXL [EMAIL PROTECTED] wrote: Finally, there is a bug in Flash MX 2004 8; you can't datatype like this: myVar:Number = 42; but you can do this: var myVar:Number = 42; - Original Message - From: Chris Velevitch [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 31, 2005 12:30 AM Subject: Re: [Flashcoders] Strict Datatyping Question On 10/31/05, Joseph Balderson [EMAIL PROTECTED] wrote: Why it is illegal to combine both a path declaration and a datatype declaration in the same expression i.e.: ... // illegal syntax error this.clip1.myVar:Number = 42; This illegal because myVar has already be declared in the definition of the type of clip1. Also, you have used the phase 'path declaration'. This is an oxymoron. Declarations only appear in a class definition, paths are references to the objects/types of interest. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au http://www.flashdev.org.au ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] setInterval() and the trouble
I imagine you're calling clearInterval with the appropriate interval ID upon each quiz question submittal, and then afterwards recalling setInterval for the new question? How does it fail the second time? Does it just never call it again, or does it call the function at a different interval? Liam On 10/29/05, Weyert de Boer [EMAIL PROTECTED] wrote: Hmm, I am currently working on the good version of the quiz only I have a question how I should implementate some part. The quiz should ask yes/no questions and the user should only have three to six seconds to answer the question. If the user fails to answer the question within this time, the answer should be fault. Currently I used a setInterval() with 3000ms only I never get stuff with intervals right. Always it goes all fine the first question, but the second it fals. Does anyone know a good way to implementate this? Maybe through event delegation instead of a interval callback method? Yours, Weyert de Boer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders