Re: [Flashcoders] Text to MP3

2007-03-28 Thread Francis Chary

I stand corrected. You guys know your stuff! :-)

On 3/27/07, Odie Bracy [EMAIL PROTECTED] wrote:


www.nextup.com has a text to mp3 program but it is not dynamic.
www.mediasemantics.com has a speech engine server that can deliver
dynamic text to speech.

Odie



On Mar 27, 2007, at 6:52 PM, Ryan Burrell wrote:

 You might trying doing more research into Natural Voices and other
 text-to-speech setups.  As far as I was aware, Flash doesn't have
 capability
 like this.

 On 3/27/07, Francis Chary [EMAIL PROTECTED] wrote:

 I think he means getting some program to read out the text, and
 save that
 as
 an mp3 file. I personally have no idea.

 The hard part of that is definitely the server-side conversion
 from text
 to
 mp3. I don't think you'll find many people on this list who know
 how to do
 that though, because it's not really something that flash does.

 On 3/27/07, Omar Fouad [EMAIL PROTECTED] wrote:
 
  I don't get you Mp3's can only be converted to other audio
 Formats
  be more specific please
 
  On 3/26/07, iestyn lloyd [EMAIL PROTECTED] wrote:
  
   Hey list,
  
   Does anyone know of an easy way to convert text to mp3 on the
 fly?
   Ideally some company would run a service with a REST
 interface, so I
   could just send my text via a querystring, and it would send
 back some
   XML detailing the URL of the mp3, and maybe an indication of
 when the
   mp3 might be converted... well that's what i'd like ideally...
  
   I guess the other possibility is finding some component to
 install on
   my own server, but this might not be possible...
  
   any ideas anyone?
  
   Cheers
  
   iestyn
   ___
   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
  
 
 
 
  --
  Omar Fouad - Digital Emotions...
 
  Love is always patient and kind. It is never jealous. Love is never
  boastful
  nor conceited It is never rude or selfish. It does not take
 offense and
 is
  not resentful. Love takes no pleasure in other people's sins...but
  delights
  in the truth. It is always ready to excuse, to trust, to hope...
 and to
  endure... whatever comes.
  ___
  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

 ___
 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


___
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 CS3 Announced

2007-03-27 Thread Francis Chary

That wasn't actually a beta. It was more like an 'alpha', basically just
Flash 8 + AS3. I have a feeling (hope?) that CS3 is going to be quite
different.

On 3/27/07, Alias™ [EMAIL PROTECTED] wrote:


The flash 9 beta has been available on adobe labs for quite some time now.
http://labs.adobe.com/technologies/flash9as3preview/

HTH
Alias

On 28/03/07, Russell Sprague [EMAIL PROTECTED] wrote:
 So is this the next version of Flash, or is it just Flash 8 with AS3
 support?  It would seem odd to me if they released Flash 9 with out ever
 having a beta.

 Russ

 Ian Thomas wrote:
  For those who haven't seen it yet, Adobe's site has been updated with
  details about Flash CS3 (and the rest of the new Creative Suite).
 
  http://www.adobe.com/products/flash/
 
  Ian
  ___
  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

___
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] Text to MP3

2007-03-27 Thread Francis Chary

I think he means getting some program to read out the text, and save that as
an mp3 file. I personally have no idea.

The hard part of that is definitely the server-side conversion from text to
mp3. I don't think you'll find many people on this list who know how to do
that though, because it's not really something that flash does.

On 3/27/07, Omar Fouad [EMAIL PROTECTED] wrote:


I don't get you Mp3's can only be converted to other audio Formats
be more specific please

On 3/26/07, iestyn lloyd [EMAIL PROTECTED] wrote:

 Hey list,

 Does anyone know of an easy way to convert text to mp3 on the fly?
 Ideally some company would run a service with a REST interface, so I
 could just send my text via a querystring, and it would send back some
 XML detailing the URL of the mp3, and maybe an indication of when the
 mp3 might be converted... well that's what i'd like ideally...

 I guess the other possibility is finding some component to install on
 my own server, but this might not be possible...

 any ideas anyone?

 Cheers

 iestyn
 ___
 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




--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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] Dynamic video buttons

2007-03-08 Thread Francis Chary

Hi Wendy,

It sounds like you're asking a bunch of questions, without realising it. I
would break the problem down something like this:

1. Create a video (non-flash)
2. Convert video to flv (non-code)
3. Upload video to web server (non-flash, maybe non-code)
4. Create xml to describe which videos are available (non-flash, maybe
non-code)
5. Flash application loads xml from server, and parses it
6. Flash application creates buttons for videos, depending on what's in the
xml

On this list, it's probably best to stick with #s 56, as 1-4 are really not
topical. So let's assume that you've got your videos already uploaded to
your server, and an xml file describing where they are.

For #5, you'll need to create an XML object in your code. Here's a link to a
tutorial on how to do that:

http://www.actionscript.org/resources/articles/9/1/XML-101/Page1.html

For the buttons (#6), you'll need to have a button movieclip in your
library. It could be as simple as a movieclip with a shape and a textfield.
In the library, you'll also want to give the button movieclip a linkage Id,
(right-click on the item in the library, select Linkage).

Once that's done, you can attach the movieclip to the stage in code by using
the attachMovie function. Here's a wee tutorial about that:

http://flash-creations.com/notes/dynamic_attachmovie.php

Basically, what you need to do is to load the xml into an XML object, then
loop through the values in the xml, using attachMovie to drop a new button
on the stage for each video in the xml.  I think that should get you
started.

Hope that helps..

Francis

Wendy Marino schrieb:

Hello list!


please: this list is for asking specific coding questions. not asking for
someone doing
someone elses work.

please respect the lists etiquette.

micha

@Micha: can't we at least help to break it down, so that it BECOMES a
specific coding question? She did take the trouble to come here, after all.


On 3/8/07, Wendy Marino [EMAIL PROTECTED] wrote:


Hello list!

Does anyone know the code to make  -selectable dynamic video buttons-
appear
-only- if/when there is an .flv available to be called from in the xml
code???

I¹m dealing with 3 to 5 videos that need to be removed and then replaced
daily after rendering in final cut, exported to .flv¹s then put on web.
The prior needs to be taken down, and the new put up when ready.

I don¹t want the button for whichever video to appear unless the video is
there.

Any suggestions would be greatly appreciated!!

Thank You!

Wendy

--
Wendy Marino
Digital Media
Operations Specialist
The Journal News
1 Gannett Drive
White Plains, NY 10604
914-694-5288
E-mail:  [EMAIL PROTECTED]
www.lohud.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


___
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] Dynamic video buttons

2007-03-08 Thread Francis Chary

No problem, come back when (or if) you need more help ;-)

Francis

On 3/8/07, Wendy Marino [EMAIL PROTECTED] wrote:


Hey Francis, Thank you very much.

Actually part of #5, and 6 was my ­only- question!
1-4 is no problem. I must not have been clear as I was just trying to
explain the circumstance of my question,
sorry and =Thank You= for your kind response.

I will investigate soon!!

Best Regards,
Wendy




___
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] Re: Anyone hate flash 9 already?

2007-02-13 Thread Francis Chary

Sorry mate, but you missed the boat. It's been out for ages ;-) But have
fun!

On 2/13/07, Daniel Freeman [EMAIL PROTECTED] wrote:


WHERE DID YOU GET IT!?

You can't believe how much excitement and
disappointment this thread has caused me.  I assumed
that the flash 9 prototype had been released on Adobe
labs.  I couldn't connect to labs yesterday, which
sent my excitement through the roof!  I assumed that
everyone was downloading the public beta, and that's
why I couldn't connect.

Today, I connected to Adobe labs - but no flash 9.

Are you all on the prerelease program?  Or is there a
beta of Flash 9 that I don't know about?

I'm dying to get my hands on the Flash 9 IDE




___
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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-08 Thread Francis Chary

Yes, you're the one! I remember this!

On 2/7/07, Kelly Smith [EMAIL PROTECTED] wrote:


Metadata injection with php has become a proven way to faux-stream flv's.
It
works great for me, and under substantial loads.

Here is the lowdown:


http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two

Be sure to read through the comments below as there are a bevy of great
coding suggestions and enhancements.  Good luck.

- k



___
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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

You'll be able to seek to the cue points, yes, but the client will have to
actually download that point of the file first. They won't be able to start
watching from one of the cue points immediately.

The way progressive download works, it starts downloading at the start of
the file, and continues linearly until the whole file is downloaded. You can
only seek to cue points that have been downloaded.

Francis

On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:


With Flash 8 am I correct in believing that if I add cue points to a FLV
that I'll be able to seek within it even though it's being delivered via
a regular web server?  How does that work?  Does the web server actually
get a new request?

Thanks,

Jeff Harrington
[EMAIL PROTECTED]
http://jeffharrington.org

___
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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

I have heard of a solution that someone implemented, using server-side code
to serve the .flv file with different injected metadata, that did the same
basic job of allowing seek to any point... but I can't remember how it was
done or where I saw it. Does anyone else remember that?

Francis

On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:


Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
we're already deploying through Influxis a FMS solution.

I was just shocked to find in some readings I was doing yesterday about
cue points that seek worked - glad that my understanding that seeking to
downloaded material worked but nothing new.  (Our app requires the user
to be able to seek to authored cue points within a stream).

Interesting that  MP3's can seek to arbitrary points without being
downloaded.

Jeff

Johannes Nel wrote:
 not in the way you are thinking. you can seek only to a point in a movie
 that has already been downloaded.

 have you looked at red5?

 On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:

 With Flash 8 am I correct in believing that if I add cue points to a
FLV
 that I'll be able to seek within it even though it's being delivered
via
 a regular web server?  How does that work?  Does the web server
actually
 get a new request?

 Thanks,

 Jeff Harrington
 [EMAIL PROTECTED]
 http://jeffharrington.org

 ___
 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


___
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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

hey, so they do!

On 2/7/07, Michael Stuhr [EMAIL PROTECTED] wrote:


Francis Chary schrieb:
 I have heard of a solution that someone implemented, using server-side
code
 to serve the .flv file with different injected metadata, that did the
same
 basic job of allowing seek to any point... but I can't remember how it
was
 done or where I saw it. Does anyone else remember that?

doesn't google do this ?

micha
___
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] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Francis Chary

Yeah, for sure. Does it basically work the same way as Flash Comm Server?

On 2/7/07, Johannes Nel [EMAIL PROTECTED] wrote:


well. let me put it to you like this. flv is a continues format. red5
contains the libraries you need to analyze it. calling a servlet which
then
returns the data from that point.

On 2/7/07, Francis Chary [EMAIL PROTECTED] wrote:

 I have heard of a solution that someone implemented, using server-side
 code
 to serve the .flv file with different injected metadata, that did the
same
 basic job of allowing seek to any point... but I can't remember how it
was
 done or where I saw it. Does anyone else remember that?

 Francis

 On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
 
  Thanks Johannes and Francis...  Yeah Johannes I'm tracking Red5 but
  we're already deploying through Influxis a FMS solution.
 
  I was just shocked to find in some readings I was doing yesterday
about
  cue points that seek worked - glad that my understanding that seeking
to
  downloaded material worked but nothing new.  (Our app requires the
user
  to be able to seek to authored cue points within a stream).
 
  Interesting that  MP3's can seek to arbitrary points without being
  downloaded.
 
  Jeff
 
  Johannes Nel wrote:
   not in the way you are thinking. you can seek only to a point in a
 movie
   that has already been downloaded.
  
   have you looked at red5?
  
   On 2/7/07, Jeff Harrington [EMAIL PROTECTED] wrote:
  
   With Flash 8 am I correct in believing that if I add cue points to
a
  FLV
   that I'll be able to seek within it even though it's being
delivered
  via
   a regular web server?  How does that work?  Does the web server
  actually
   get a new request?
  
   Thanks,
  
   Jeff Harrington
   [EMAIL PROTECTED]
   http://jeffharrington.org
  
   ___
   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
 
 ___
 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




--
j:pn
http://www.lennel.org
___
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] External libraries

2007-01-22 Thread Francis Chary

Let me have a crack at this one, Andy.. ;)

Basically, linkages are just a way of telling the code how to identify a
particular item in the library. When you right-click one of your buttons in
the Brand.fla library and click 'Linkage...', you'll see the Linkage dialog
box. Now, click on the checkbox marked: 'Export for Actionscript'.

Flash will automatically fill in the linkage Id for you, it usually just
takes the name of your swf. (eg. fancy_button). You can change this to
whatever you want, just try and make sure that each movie clip has a
different id from the others. Otherwise you could create problems. Now, go
ahead and publish that movie to create Brand.swf.

So now you have a movieclip with a linkage id inside your Brand.swf. So how
do you get it to appear in the Main.swf? Firstly, you'll have to load the
Brand.swf into the Main.swf. This is most easily done with the loadMovie
function. If you want to be fancy, you can use MovieClipLoader instead, but
that's another topic.

Once you've loaded Brand.swf into Main.swf, you want to get at the button,
or whatever mc you created a linkage id for. Happily, by creating a linkage
id, you gave the flash player a name by which to identify the button. Now,
the code to attach this to the stage is:

_root.attachMovie(linkageId, newButtonMCName, 0);

as you may have guessed, the arguments there are as follows:
linkageId == the linkage id that was generated in the Brand.fla file
newButtonMCName == the name you want for your button on the stage
0 == the depth of the new button.

This will drop the movieclip onto the stage at coordinates 0, 0.

So that's how you use linkage id. The neat thing is that if you have say,
five Brand.fla files, with different art assets, you can give the elements
in each one the same linkage id, then compile Main.fla once for each
Brand.swf you've got. That way, you can 'skin' your Main.swf.

I hope this helps, and I hope someone will correct me if I've made any silly
mistakes!

- Francis

On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote:


Unfortunately I'm stuck using the Flash IDE only (no MTASC). :(

I don't really understand how linkages work.  Is there a way to do
something similar using just the Flash IDE?  I have a feeling that's
the way I'm going to have to do it.

   -Andy

On 1/22/07, Trevor Burton [EMAIL PROTECTED] wrote:
 ok, i work on a setup that sounds like it's what you're aiming for...
i've
 recently started working with MTASC and swfmill in order to get file
sizes
 down to a minimum and streamline the build process - what i do at the
moment
 is this (simplified)

 1 - all code is compiled into a library using mtasc
 2 - all assets are compiled into 'skin' swf using the flash ide

 3 - for each skin swf i use swfmill to create a linkage between an empty
 movieclip in the skin's library and a base class for the UI component
i'll
 want to use. This means that when the skin is compiled in the flash ide
it
 doesn't automatically drag in all the other classes that are referenced
and
 i don't have to create exclude.xml files.

 4 - i have a 'core' class which loads all the necessary library and skin
 files and instantiates things where necessary to get the app going.

 This is probably a little bit over the top for what you're describing
above
 but for a large-scale application such as this it works very well and
 prevents unnecessary duplicate importing of classes.

 I went down the same path trying to get attachMovie to work using all
sorts
 of approaches and had no luck - this seems to me to be the cleanest
approach
 for what i need.

 t

 On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote:
 
  I'm beginning work on a new project that will need to have a brandable
  UI and I'm looking for suggestions on how to proceed.  I'm pretty new
  to Flash development, so I don't really know if there's a standard way
  of doing this.
 
  What I would like to do is have the main application's SWF load a
  second SWF which contains all of the UI components (images,
  animations, buttons, etc).  This way I could allow branding by just
  providing an SWF with different UI components.  However, I can't
  figure out if there's a way to access the library of one SWF in
  another SWF.
 
  For example, I have my main.swf and brand.swf.  Main.swf has nothing
  except some AS code.  Brand.swf has a button in its library called
  testButton, which is exported for AS use.
 
  What I want to do is create an instance of testButton within
  Main.swf, but attachMovie doesn't work (I'm guessing it can't see
  library items from the other SWF).  Is there a way to do attachMovie
  on clips in another SWF's library?
 
  The other option I've heard about is to have the default branding
  stuff defined in the main.swf, and then you can somehow have an
  external SWF override the ones you want to override.  I'm not sure I
  like doing this as it require things to be defined in the main SWF's
  FLA, which I like to keep to a minimum (since the FLA is binary 

Re: [Flashcoders] External libraries

2007-01-22 Thread Francis Chary

Ok, that code all looks good, but I have a couple of questions. In initUI()
function, what do you get if you also put in:

trace(root);

I only ask, because it looks like the brand.swf is loading in correctly.
What I'm curious about is, what's going on with the 'root' mc? I notice that
in your main method, you're sending in the rootMC movieclip. Can I see what
the call to that looks like?

I don't think you need to concern yourself with runtime sharing at this
stage, really.

Ok, try what Martin said ;-)

Francis

On 1/22/07, Andy Herrman  [EMAIL PROTECTED] wrote:


That's actually exactly what I'm trying, yet it doesn't seem to be
working.  Here's my code:

--

import mx.utils.Delegate;

class BrandTest {

  private var root:MovieClip;
  private var uiResources:MovieClip = null;;

  public static function main(rootMC:MovieClip):Void {
new BrandTest(rootMC);
  }

  function BrandTest(rootMC:MovieClip) {
this.root = rootMC;
loadUIResources(brand.swf);
  }

  private function loadUIResources(path:String):Void {
trace(Loading  + path);
if(uiResources != null) {
  uiResources.removeMovieClip();
}
root.createEmptyMovieClip(uiResources, root.getNextHighestDepth());
uiResources = root['uiResources'];

var uiLoader:MovieClipLoader = new MovieClipLoader();

var loadListener:Object = new Object();
loadListener.onLoadInit = Delegate.create(this, function
(oEvent:Object) { this.initUI(); });
loadListener.onLoadProgress = Delegate.create(this, function
(target:Object, loaded:Number, total:Number):Void { trace(loaded + /
+ total); });

uiLoader.addListener(loadListener);
uiLoader.loadClip (path, uiResources);
  }

  private function initUI():Void {
trace(Initing UI);
var img:MovieClip = root.attachMovie(asImage, asImageMC,
root.getNextHighestDepth ());
trace(img);
  }
}

--

I get the following output when I run:

Loading brand.swf
8860/8860
Initing UI
undefined

attachMovie doesn't seem to be working.  I have the movie clip in
Brand.swf exported as 'asImage' with 'Export for ActionScript and
Export in first frame selected.  Is there anything else I might be
missing?

There's an Export for runtime sharing option that's unchecked, but
if I select it it wants a URL and I don't know what to put there.

   -Andy

On 1/22/07, Francis Chary [EMAIL PROTECTED] wrote:
 Let me have a crack at this one, Andy.. ;)

 Basically, linkages are just a way of telling the code how to identify a
 particular item in the library. When you right-click one of your buttons
in
 the Brand.fla library and click 'Linkage...', you'll see the Linkage
dialog
 box. Now, click on the checkbox marked: 'Export for Actionscript'.

 Flash will automatically fill in the linkage Id for you, it usually just
 takes the name of your swf. (eg. fancy_button). You can change this to

 whatever you want, just try and make sure that each movie clip has a
 different id from the others. Otherwise you could create problems. Now,
go
 ahead and publish that movie to create Brand.swf.

 So now you have a movieclip with a linkage id inside your Brand.swf. So
how
 do you get it to appear in the Main.swf? Firstly, you'll have to load
the
 Brand.swf into the Main.swf. This is most easily done with the loadMovie

 function. If you want to be fancy, you can use MovieClipLoader instead,
but
 that's another topic.

 Once you've loaded Brand.swf into Main.swf, you want to get at the
button,
 or whatever mc you created a linkage id for. Happily, by creating a
linkage
 id, you gave the flash player a name by which to identify the button.
Now,
 the code to attach this to the stage is:

 _root.attachMovie(linkageId, newButtonMCName, 0);

 as you may have guessed, the arguments there are as follows:
 linkageId == the linkage id that was generated in the Brand.fla file
 newButtonMCName == the name you want for your button on the stage
 0 == the depth of the new button.

 This will drop the movieclip onto the stage at coordinates 0, 0.

 So that's how you use linkage id. The neat thing is that if you have
say,
 five Brand.fla files, with different art assets, you can give the
elements
 in each one the same linkage id, then compile Main.fla once for each
 Brand.swf you've got. That way, you can 'skin' your Main.swf.

 I hope this helps, and I hope someone will correct me if I've made any
silly
 mistakes!

 - Francis

 On 1/22/07, Andy Herrman  [EMAIL PROTECTED] wrote:
 
  Unfortunately I'm stuck using the Flash IDE only (no MTASC). :(
 
  I don't really understand how linkages work.  Is there a way to do
  something similar using just the Flash IDE?  I have a feeling that's
  the way I'm going to have to do it.
 
 -Andy
 
  On 1/22/07, Trevor Burton  [EMAIL PROTECTED] wrote:
   ok, i work on a setup that sounds like it's what you're aiming
for...
  i've
   recently started working with MTASC and swfmill in order to get file

  sizes
   down to a minimum and streamline the build process - what i do

Re: Re[2]: [Flashcoders] External libraries

2007-01-22 Thread Francis Chary

It's doesn't have to be that way. On the last project I did, I used MTASC
for about 90% of the development, then switched to the Flash IDE during the
last week. As long as you can start your application with the same line of
code, it doesn't really matter which compiler you use.

Basically, in FlashDevelop, I had a static main function that started the
app thusly:

var newMenu:MenuController = new MenuController();

In the Flash IDE, I used the same line of code, but I put it in frame 1
instead. It amounts to the same thing though.

Francis

On 1/22/07, Andy Herrman [EMAIL PROTECTED] wrote:


So, I actually use FlashDevelop to write my code, and just switch to
the Flash IDE to build (I really dislike the IDE).

The problem with using it has nothing to do with installing it or
being able to run it on my machine.  The problem is that MTASC would
essentially be responsible for things that go into production.  If
Flash has some bug that causes problems the company could get support,
but it's not really the same with MTASC.

That said, if things can be set up to use both at once then I probably
could use it during development, and just use Flash to do the final
compile.  I think I might try that.

I know MTASC is stricter, which is actually a reason I want to use it.
Unfortunately the 2 big flash movies that I have been working on I
inherited when the only guy in the company who knew flash quit (I
mainly did Java with some C++), and they used just the Flash IDE, so I
have no idea how easy/hard it would be to get MTASC working with
those.

I might give it a try for the new project I'm working on though.  If I
can get it working nicely with FD (not that I think that will be hard)
then it would make me happy.

  -Andy

On 1/22/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
 I think you have a misconception about MTASC.  It isn't a replacement
 for Flash (unless you're a G like Ben Jackson), it's a 3rd party
 compiler for Flash.

 When Flash compiles, it recompresses all the media (graphics, sound,
 components) as it compiles.  All MTASC does is injects code into the
 swf.  So, you can update your classes and use MTASC to compile and cut
 your compile time down to less than a second where Flash can take many
 (some of my FLAs take over 30 seconds!).

 To use MTASC, you need to be writing AS2 classes, as any timeline code
 or #include code changes won't be updated using MTASC.  FLASC is an easy
 to use GUI for MTASC that runs as a panel in the Flash IDE and it's how
 I use MTASC (beats learning to write those long command lines).

 Using FLASC from the beginning of a project is ideal, because MTASC is
 stricter than the Flash IDE compiler.  A benefit of its strictness is it
 forces you to be a better coder.  If you jump into the middle of a
 project with FLASC, it will probably take you a bit to get it going.  It
 will only really benefit you if your FLAs take more than a second or two
 to compile.  If you're waiting 5-10 seconds every time you make a
 change, it might be worth your time to install FLASC.

 As far as your corporatation goes, you're still using Flash.  FLASC is a
 panel inside of Flash.  You'll have to get MTASC, which is just an
 executable that sits in your Program Files folder, but it doesn't
 require installation - you download it and put it there manually.  No
 administrator access required.

 HTH,
 Steven
 ___
 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


___
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] ASBroadcaster deprecated in AS3 ?

2007-01-20 Thread Francis Chary

I believe it has been deprecated in AS3. It's probably best to use the new
Event model anyway, it's generally more flexible, despite being a little
more complicated.

Francis Chary

On 1/20/07, Stephen Ford [EMAIL PROTECTED] wrote:


Is it true that ASBroadcaster is deprecated in AS3 ?I ask because I have
been meaning to study a little more on EventBroadcaster and ASBroadcaster,
but there is no point looking into ASBroadcaster if its deprecated in
AS3.Thanks._ _ _
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] advantages of EventDispatcher over AsBroadcaster

2007-01-19 Thread Francis Chary

That would be tricky, I think. The reason is that:

type: clipShowStatus

in your dispatchEvent call isn't actually referring to the clipShowStatus
function. It's referring to type of the event that will be dispatched,
right? What you can do instead of making changes to the clipShowStatus
method would be to create another method in that class, like:

function handleClipShowStatus(eventObj) {
clipShowStatus(eventObj.currentMCNumber, eventObj.totalMCNumber);
}

This method just listens for the clipShowStatus event, and calls the
clipShowStatus function when it hears it.

Does that make sense?

Francis Chary

On 1/19/07, Holth, Daniel C. [EMAIL PROTECTED] wrote:



After your post I spent most of this morning researching and debating
converting a lot of my code to use the EventDispatcher instead of
broadcastMessage.  I like a lot of what it has to offer, but have a
question...

I have a function in one class that displays how many more movieclips the
user will be viewing and it takes in two variables: currentMCNumber and
totalMCNumber.  Using broadcastMessage, I can pass those variables in
directly.  Can I do that with the eventDispatcher as well?

For example, doing:

this.broadcastMessage(clipShowStatus, currentMCNumber, totalMCNumber);

Runs the clipShowStatus function as if I had actually done:

clipShowStatus(currentMCNumber, totalMCNumber);

But if I use the eventDispatcher I would need to do something like:

dispatchEvent({type:clipShowStatus, target: this, current:
currentMCNumber, total: totalMCNumber});

And make changes to my clipShowStatus method to take in an event object...
Is there a way to use the EvenDispatcher with out needing to change all my
functions to take in eventObjects and instead place the needed variables
directly into the function?

Thanks!

Daniel Holth
I.S. Programmer

-Original Message-
From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED] Behalf Of T.
Michael Keesey
Sent: Thursday, January 18, 2007 8:11 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] advantages of EventDispatcher over
AsBroadcaster


The two are pretty much the same, except for one big thing:
EventDispatcher allows you to distinguish between types of events.
AsBroadcaster just says, Hey, there's been an update, while
EventDispatcher gives detailed information (in an Event object) about
exactly what that event was and only notifies the listeners which are
listening to that type of event.

Another advantage to using EventDispatcher is that EventDispatcher is
heavily integrated into ActionScript 3.0, to the point that at least
half the classes you'll encounter are dispatchers. Every single
display object (movie clips, buttons, components, etc.) is a
dispatcher, some with dozens of types of events (mouseMove, load,
enterFrame, etc.). AsBroadcaster, on the other hand, is deprecated.

On 1/18/07, Reuben Stanton [EMAIL PROTECTED] wrote:
 I have used both extensively and find that AsBroadcaster allows me to
 do the same thing in fewer lines of code, yet there seems to be a
 general preference in the flash community to use EventDispatcher.

 Is there any particular reason to use one or the other?


 ___
 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



--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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

This e-mail and its attachments are intended only for the use of the
addressee(s) and may contain privileged, confidential or proprietary
information. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution, displaying, copying,
or use of this information is strictly prohibited. If you have received this
communication in error, please inform the sender immediately and delete and
destroy any record of this message. Thank you.

___
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