[Flashcoders] Can't use CS4 so can't use [Embed]
Hey I need to use this code but I can't use Flash CS4 so I need to load these embedded files instead cause [Embed] doesn't work in Flash CS3. So how would I go to do that? Here's the code I need to change... [Embed(source=../lib/camera_para.dat, mimeType=application/octet-stream)] private var CameraParameters:Class; [Embed(source=../lib/mikko.pat, mimeType=application/octet-stream)] private var MarkerPattern:Class; var cameraParameters:FLARParam = new FLARParam(); cameraParameters.loadARParam(new CameraParameters() as ByteArray); markerPattern = new FLARCode(16, 16); markerPattern.loadARPatt(new MarkerPattern()); This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't use CS4 so can't use [Embed]
Hi, Could you put these inside a library swf and use Flash Develop to compile that with the [Embed] and then expose the instances as public members of a particular class / clip? Glen Patrick Matte wrote: Hey I need to use this code but I can't use Flash CS4 so I need to load these embedded files instead cause [Embed] doesn't work in Flash CS3. So how would I go to do that? Here's the code I need to change... [Embed(source=../lib/camera_para.dat, mimeType=application/octet-stream)] private var CameraParameters:Class; [Embed(source=../lib/mikko.pat, mimeType=application/octet-stream)] private var MarkerPattern:Class; var cameraParameters:FLARParam = new FLARParam(); cameraParameters.loadARParam(new CameraParameters() as ByteArray); markerPattern = new FLARCode(16, 16); markerPattern.loadARPatt(new MarkerPattern()); This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't use CS4 so can't use [Embed]
Well the reason I can't use CS4 is because of a bug with papervision... So maybe I could just compile theses two assets in CS4, load the swf in CS# and then us them. That should work. Thanks, it's a good idea From: Glen Pike postmas...@glenpike.co.uk Reply-To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Thu, 16 Apr 2009 19:26:24 +0100 To: Flash Coders List flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Can't use CS4 so can't use [Embed] Hi, Could you put these inside a library swf and use Flash Develop to compile that with the [Embed] and then expose the instances as public members of a particular class / clip? Glen Patrick Matte wrote: Hey I need to use this code but I can't use Flash CS4 so I need to load these embedded files instead cause [Embed] doesn't work in Flash CS3. So how would I go to do that? Here's the code I need to change... [Embed(source=../lib/camera_para.dat, mimeType=application/octet-stream)] private var CameraParameters:Class; [Embed(source=../lib/mikko.pat, mimeType=application/octet-stream)] private var MarkerPattern:Class; var cameraParameters:FLARParam = new FLARParam(); cameraParameters.loadARParam(new CameraParameters() as ByteArray); markerPattern = new FLARCode(16, 16); markerPattern.loadARPatt(new MarkerPattern()); This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders