[Flashcoders] Creating MXP with Flex Builder?

2009-05-11 Thread Gerry Beauregard
I'm development a library of interactive sound effects in Action  
Script 3 using Flex Builder. I've got loads of experience with audio  
coding on various platforms in various languages (especially C++).   
However, I'm relatively new to Flash development, so I have some  
(perhaps naive) questions about how to package the library.   Perhaps  
some of you can help.


Until now, I've been thinking of packaging the library as a SWC, but  
after some investigation, it seems that flash components are normally  
packaged  sold as MXP files, e.g. on sites like flashloaded.com.  As  
far as I can tell, Flex Builder doesn't provide any way to directly  
create an MXP.


Is there some extra plugin for Flex Builder for creating an MXP?  Or  
is there some separate tool that can create an MXP from a SWC?


I've seen the Adobe Extension Manager mentioned in the context of  
MXPs... but from what I've read so far, it sounds like it manages  
loading of MXPs, rather than their creation.   I've seen some docs on  
MXI files, which appear to simply be XML files for defining what goes  
into an MXP...  but I still haven't figured out what tool will read in  
an MXI and files to which it refers to generate an MXP...  any tips  
would be most welcome!


I'm developing on a Mac, btw, but can easily switch to using Windows  
if the tools available on Windows are better.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RegEx

2009-05-11 Thread Anthony Pace
Thanks for confirming it.  That is one heck of a mistake/confusing bit  
in the documentation.


I was looking at  
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/String.html#match()


Muzak wrote:

Must be a mistake. There's no such mention here:
http://livedocs.adobe.com/flex/3/langref/String.html#match()

- Original Message - From: Anthony Pace 
anthony.p...@utoronto.ca

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 10, 2009 12:54 AM
Subject: [Flashcoders] RegEx


I am reading the documentation, and it says that match and replace 
are only for air 1.0 and they have that nasty trilobal air logo.


What the heck  If that is the case then why are they running in 
the flash player?


___
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] Re: Creating MXP with Flex Builder?

2009-05-11 Thread Gerry Beauregard
Doh!   I've figured it out: the Adobe Extension Manager is not just  
for loading for MXPs.  It also *creates* MXPs.   Seems you just need  
to create a file with extension *.mxi in the same folder as the  
*.swc.   Then in Adobe Extension Manager, choose File - Package  
Extension, and select the mxi, and save the mxp.


There's info on how to create an mxi (and by extension an mxp) in this  
excellent post by Mike Jones:
  http://blog.flashgen.com/components/distribution/distribution-via- 
mxp/


For my own test, I stripped down the mxi to just this:

macromedia-extension name=File Transfer Connector version=1.0.0  
type=flashcomponentswc requires-restart = false 

 author name=Gerry Beauregard - Sonoport.com /
 products
  product name=Flash version=8 primary=true  
required=true/

 /products
 description
  ![CDATA[Description of what the heck this thing is.]]
 /description
 ui-access
  ![CDATA[Some info on how to use it.]]
 /ui-access
 license-agreement
  ![CDATA[License agreement text goes here]]
 /license-agreement
 files
  file source = TestSWC.swc destination = $flash/ 
Components/Sonoport.com shared=false/

 /files
/macromedia-extension

That simple mxi plus the swc was enough for the Extension Manager to  
create an mxp, which I could then add by choosing File - Install  
Extension.


Does anybody know offhand whether an mxp is as easily decompiled as a  
swc?



On 2009-05-11  , at 14:39 , Gerry Beauregard wrote:

I'm development a library of interactive sound effects in Action  
Script 3 using Flex Builder. I've got loads of experience with audio  
coding on various platforms in various languages (especially C++).   
However, I'm relatively new to Flash development, so I have some  
(perhaps naive) questions about how to package the library.
Perhaps some of you can help.


Until now, I've been thinking of packaging the library as a SWC, but  
after some investigation, it seems that flash components are  
normally packaged  sold as MXP files, e.g. on sites like  
flashloaded.com.  As far as I can tell, Flex Builder doesn't provide  
any way to directly create an MXP.


Is there some extra plugin for Flex Builder for creating an MXP?  Or  
is there some separate tool that can create an MXP from a SWC?


I've seen the Adobe Extension Manager mentioned in the context of  
MXPs... but from what I've read so far, it sounds like it manages  
loading of MXPs, rather than their creation.   I've seen some docs  
on MXI files, which appear to simply be XML files for defining what  
goes into an MXP...  but I still haven't figured out what tool will  
read in an MXI and files to which it refers to generate an MXP...   
any tips would be most welcome!


I'm developing on a Mac, btw, but can easily switch to using Windows  
if the tools available on Windows are better.




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] PSD Parser thumbs and metadata; who asked?

2009-05-11 Thread Sidney de Koning

Hi List,

Cant remember who asked but last week orso somebody about a PSD Parser  
and metadata getting thumbs out.

Been looking around the libspark project: 
http://www.libspark.org/svn/as3/PSDParser/

They have a plethora of fantastic projects, worth taking a look.

Have fun!

Sid


Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] e.target subobjects how do I refrence??

2009-05-11 Thread zurie
Liutoday, you sent me this line of code below.  Unfortunetally in AS3  
it fails.
a) where is the var _obj   you have a underscore, and then in tweenmax  
you have obj with no underscore? is this correct?
b) you have _obj as a Button...  these are movieclips.  they have a  
name Btn for refrence, but they link to a menusSquare_mc  which is a  
movie clip...  can you re-write it with MovieClip
c) you have e.target space Button;  this line throws a error.  why  
the space, and why the word Button?


1086: Syntax error: expecting semicolon before Button.

If i remove the Button, I get this error...

1046: Type was not found or was not a compile-time constant: Button.

if i CHANGE button to MovieClip (which is what it is suppose to be...)  
I get this error.


1118: Implicit coercion of a value with static type Object to a  
possibly unrelated type flash.display:MovieClip.


liutoday
Sun, 10 May 2009 18:59:46 -0700

function down(e:MouseEvent):void{

  var _obj:Button = e.target Button;

 TweenMax.to(obj.menuSquare_mc, .3, {alpha:.06, delay:0,
ease:Sine.easeOut});

 }




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] e.target subobjects how do I refrence??

2009-05-11 Thread Merrill, Jason
Or if they are MovieClips, then:

var _obj:Button = e.target as MovieClip;


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: Monday, May 11, 2009 5:57 PM
To: Flash Coders List
Subject: RE: [Flashcoders] e.target subobjects how do I refrence??

Try

var _obj:Button = e.target as Button;

instead.

Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 


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] e.target subobjects how do I refrence??

2009-05-11 Thread Merrill, Jason
Try

var _obj:Button = e.target as Button;

instead.

Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 


chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders