[Flashcoders] Flash CS3 Problem with runtime shared library
Hello, In Flash 8 and earlier I found it easy to keep assets in a common swf and use them as a shared library item. Now in Flash CS3 I can use this technique to share common fonts, but I am having trouble with movieclips. Suppose I have a simple library symbol (a movieclip) that is imported for runtime sharing. I drag it to the stage in say frame 10 and run the file. It works fine. However if I name the instance then I get a compiler error 1046: Type was not found or was not a compile-time constant:.. This occurs even without strict compiling, and regardless if stage instances are declared automatically or not. It means that I can't subsequently apply actionscript to the item. Likewise, if I try to instantiate this library symbol with ActionScript I get a runtime error #1065: Variable MyLibrarySymbol is not defined.. These are set up exactly as described in the Flash Help file (and I am well familiar with getting them to work in AS2/Flash 8) so I am thinking that this is a feature in Flash CS3. I know I can use runtime assets by loading the library swf and declaring it's classes (like the example runtimeassets Explorer in the Flash CS3 documentation. However method means that I have to instantiate everything in code. I can't drag it directly from the library to the stage as I like. Any comments would be much appreciated. Cheers, Laurie Jensen ___ 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 http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Installing CS3
Hello Dennis, You will find a lot of information about installation problems on the Creative Suite forum http://www.adobeforums.com/cgi-bin/webx/.2ccd8a3f/ Here is my story, which might give you some hints; http://www.adobeforums.com/cgi-bin/webx/.3bc3cbb0/2 Regards, Laurie Jensen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Landi Sent: Friday, 20 July 2007 2:18 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Installing CS3 Hi, I am hoping others here can help or refer me to the appropriate forum. I have recently purchased the CS3 Web Premium edition and I am attempting to install it. Yesterday, I attempted to install it and it started by creating a series of directories with CAB files for each product int the Web bundle. ___ 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 http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class
Hi Matt, I spent an embarrassing amount of time recently playing with ways to import common classes and libraries in AS3, so your post drew my attention. Then I ran the class from your first post and had no error: your fullScreen variable traces as null, as expected. So then I read the subsequent posts. If I understand correctly, you are trying to load classes from an swc\swf, right? Or have I got it wrong? The first obvious point: your swc needs to be in the class path of your fla, and its swf needs to be in the same folder as your other swf's. Some other points (relating to the fla that imports the classes)... 1.)You need to declare your imported classes as variables e.g. public var YourClass:Class 2.) I noticed that you call init() in your constructor. According to Moock in Essential ActionScript 3.0, code within a class constructor block (i.e. the class initializer) runs in interpreted mode, and is not compiled by the JIT compiler. So this might shed some insight as to when to use dynamic classes or not. I don't think you need to use a Dynamic Class, but you might try to avoid using the init() function, at least until you have the thing working. 3.) Within your class constructor you import your classes as YourClass = getDefinitionByName(com.foo.whatever.YourClass) as Class Having said all that, I am still not sure I understand what you are doing. In any case I hope this helps. Public class Laurie Jensen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Muller Sent: Friday, 13 July 2007 12:27 AM To: Flashcoders mailing list Subject: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class I feel like a bit of an idiot asking this, but I keep getting errors. I'm creating some custom player skin templates and have some ui elements which are MovieClips on the stage. Bearing in mind, this will be a swf loaded into another swf all I'm trying to do is create class definitions and its throwing errors. in as2, it would normally be something like name your instance on stage 'btn_fullScreen' and then in the class just type it to have access to it. private var btn_fullScreen:MovieClip; So in the document class I have something like this (as3) with a MovieClip with a matching instance name fullScreen thats on the stage/timeleine but its clashing when I try and access it from the class. and I get this error when I try to trace it. 1151: A conflict exists with definition fullScreen in namespace internal. package com.foo.view.playerSkins { import flash.display.MovieClip; public class SkinInventory extends MovieClip{ private var fullScreen:MovieClip; public function SkinInventory() { trace(fullScreen) } } } ___ 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 http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash Debugger's not up to it.
I use the Flash CS3 debugger a lot, second only to trace statements for debugging. I set breakpoints and view variables (including the hierarchy) and their properties and I can step through code. It's a valuable tool. Laurie Jensen Ross Learning Media -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Grden Sent: Tuesday, 3 July 2007 7:00 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash Debugger's not up to it. well, I have yet to see any properties show up in the debugger (well, I did see it once, but haven't since then). I'm not an authority on the flash debugger by any means. In fact, I wrote Xray without even touching the IDE debugger. Only later did I go back to see what it was capable of when someone asked for a comparison. looking over the article, I skimmed it really, but I saw alot of info about step in/out/over and breakpoints in general, then something about changing properties at runtime. Xray's never been able to do breakpoints, but it's been dynamically executing actionscript since MX days (IE: you could change ringo starr to ozzy osbourne back then at runtime with Xray). But I have nothing against the IDE debugger by any means, and since Peter wrote the article, I'm more inclined to think there's something substantial there that wasn't there before. Xray's focus, too, hasn't really been logging, though it started out as a logger that recursed my objects :) it's more of a tool for flashers in general to find out what in the world their visual application is doing and why. So, when you get into creating grid lines, controlling sound/video, filters and executing actionscript at runtime that's not compiled with the swf, Xray is in a different category altogether (IE: not only changing properties, but calling methods, reflection etc). Now, going into AS3 is really a different ball game for Xray. It's not going to try and shove an AS2 expectation into an AS3 world, and that's why I'm not just throwing out a connector right away (actually, I'm thinking of releasing what I do have since it works and I've been using it since last year). anyway, that's my 2 cents :) I'll definitely try and use the new debugger though - if it's good and it's easier to use than Xray, Amen. On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: john, just curious, in this case are you using as3 in cs3? i ask because the flash cs3 promo material touts a new advanced debugger consistent with the flex builder 2 debugger. personally, i never found any use for the debugger in flash 8 or earlier. i do find useful the debugger in flex builder 2. i have not yet tried the debugger for as3 in cs3. i do see this article up on devnet regarding the as3 debugger in cs3: introducing the actionscript 3.0 debugger by peter elst http://www.adobe.com/devnet/flash/articles/as3_debugger.html has anyone here tried out the cs3 as3 debugger? can anyone offer feedback whether you have find the cs3 as3 debugger of any use? p John McCormack [EMAIL PROTECTED] wrote: I am getting increasingly frustrated trying to debug in the Flash IDE. I see some, but not all of the variables I expect to see as I step through code. Also, when I step to the next line I step to some unexpected line. A google search throws up: trace(), step over/into/outof and our wonderful Xray but nothing on making the Flash debugger do a proper job. Perhaps I am missing something. Can anyone throw any light on this inadequate behaviour? In desperation. John - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. ___ 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 http://www.figleaf.com http://training.figleaf.com -- [ JPG ] ___ 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 http://www.figleaf.com http://training.figleaf.com ___ 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 http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] [semi-OT] - Preventing Software Piracy
Can you give me some guidance about vendors for low cost dongles please? Thanks. Laurie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Mudge Sent: Friday, 20 April 2007 4:51 AM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] [semi-OT] - Preventing Software Piracy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de Boer Genuine Dongles? What about dumping dongle data and then use a dongle emulator? I'm glad you asked! =) Making a totally un-copyable dongle is actually pretty trivial. There are many USB microcontrollers that have Flash-ROM embedded in the chip, allowing you to lock the memory once its programmed -- no way to read it, even if you physically dismantle the circuit, except through the program's pre-programmed outputs. ___ 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 http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] .aso cache frustration
The other gotcha relates to shared libraries. If you are using a shared library you must republish that before you publish your primary swf. Laurie Jensen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, 21 March 2007 3:04 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] .aso cache frustration So I am updating an AS 2.0 class file I wrote last fall, and when I go to publish the .swf, I get the classic problem where the .swf doesn't update with the new code in the class. I verified it by commenting out everything but the constructor which only contains the trace statement. So I figured, it was just a simple matter of deleting the .ASO files because Flash was still caching my old .as file. But no luck. I also verified all my classpaths were correct and pointing to the right parent directory where the class file lives as a package. The only way I can get the new code to get injected into this .swf is to name the class and file something else completely different and then import that into my .swf instead. Has anyone fixed this issue before? (and please don't tell me to use MTASC instead - had enough problems with that which I plan to tackle later :) ) Deleting ASO files (at least from the Flash 8 IDE option) doesn't seem to do the trick. Do I need to manually hunt down these old .aso files? Thanks. Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team ___ 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 http://www.figleaf.com http://training.figleaf.com ___ 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 http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] OT (sort of) CD Protection
I now use Star-force from www.star-force.com. That's a high level CD copy protection system that provides similar functionality to Macrovision's SafeDisk. I don't know whether Flash will be OK or not. There's also some others like Sony's securom. Alternatively you can use a wrapper type system that means that people have to have a key to use your product-so you need to register each user and provide them with a unique key. We use Armadillo from http://siliconrealms.com/index.shtml All these system have a learning curve. By that I mean that implementing this kind of protection is not an insignificant task, nor one that you can simply pass off to a vendor (though perhaps Macrovision might like you to think otherwise.) Laurie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, 3 November 2006 4:39 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] OT (sort of) CD Protection Sorry for the OT, but I just found out the SafeDisc from Macrovision is unable to apply CD duplication to a product I created with Flash. Does anyone have suggestions or products used for protecting against CD duplication? This does not have to be a super hard core solution since our target audience is not that type of audience that would try to hack. -- Chuck ___ 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 http://www.figleaf.com http://training.figleaf.com