Re: [Flashcoders] Documenting my code

2006-01-19 Thread Johan Lopes
Good idea!

/Johan

On 1/19/06, Judah Frangipane <[EMAIL PROTECTED]> wrote:
> Let's all get on MM-Adobe wish list and ask for this! This has been such
> a huge issue in every project I've worked on that it puts me back months
> to do documentation.
>
> http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform
>
> Judah
>
>
> Johan Lopes wrote:
>
> >Another thing to note is that there was a mention at the Spark
> >Conference in Europe that MM-Adobe is considering releasing the
> >documentation tool their Dev team uses internally. We'll see, perhaps
> >with the next big release of the Flash IDE? :)
> >
> >HTH,
> >
> >/Johan
> >___
> >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] Documenting my code

2006-01-19 Thread Johan Lopes
Hi Ron,

Here's a link to download from my Dev server (file size ~14K)

http://www.statik1.com/FlashCoders/DoxyFile.zip

Cheers,

/Johan

On 1/19/06, Ron Wheeler <[EMAIL PROTECTED]> wrote:
> If you want to share your config, perhaps you could post it to this
> thread. There are a number of us using Doxygen and its Eclipse plug-in.
>
> I would like to see someone write a Doxygen pre-filter for AS. That is
> all that is required to get full ActionScipt support in Doxygen. Filters
> have been written for other languages that are much further away from
> Java than ActionScript.
>
> Ron
>
> Johan Lopes wrote:
>
> >I've used Doxygen for a while to document several high-profile
> >projects and I love it.
> >
> >
> >
> >> The output I got from it indicated that Doxygen didn't understand AS2, and 
> >> was
> >>trying to parse the .as files as if they were Java (i.e. class names were
> >>com.something.MyClass rather than just MyClass - that sort of behaviour).
> >>
> >>
> >
> >True. If the OPTIMIZE_OUTPUT_JAVA tag is set to YES. Doxygen will then
> >generate output that is more tailored for Java. For instance,
> >namespaces will be presented as packages, qualified scopes will look
> >different, etc. If you just run it with all the default parameters,
> >the packages will look very weird (at least to my Java eyes) i.e.
> >com::MyCompanyName::MyProjectName::MyClassName. I like it when it's
> >dot-syntaxed.
> >
> >Currently, Doxygen doesn't officially support AS. It works best when
> >set to treat AS as a Java-like language, but there's some minor issues
> >with postcolon syntax (:Void etc) especially when you turn on  the
> >"show-source-in-the-documentation-feature" <--- it's called something
> >else but you get the idea.
> >
> >I've used most of the documentation tools mentioned on this list and
> >there's always trade-offs, even with commercial ones. I know Doxygen
> >doesn't support AS but I (and most of my clients) love the UML-like
> >diagrams it spits out so I can live with it's other quirks.
> >
> >I used to use VisDoc but not anymore cause it only runs on Macs. Used
> >BLDOC for a while and find it stops generating beyond 5000 line of
> >code (correct me if I'm wrong). My projects are way too big for it and
> >then I have draw the diagrams with packages such as Poseidon, ArgoUML
> >or gModeler (looks good but not useful on large commercial projects).
> >
> >In Doxygen, have you tried turning HIDE_SCOPE_NAMES to YES. It's on NO
> >by default.
> >
> >'
> >If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
> >will show members with their full class and namespace scopes in the
> >documentation. If set to YES the scope will be hidden.
> >
> >'
> >
> >Mail me off-list if you're interested and I'll share my Doxyfile
> >(though I'm not running cron jobs).
> >
> >Time permitting I'm myself very interested to see how easy it would be
> >to mold Doxygen to parse AS classes in a proper fashion. After all the
> >source code is there. It's all open-source and well documented!
> >
> >Another thing to note is that there was a mention at the Spark
> >Conference in Europe that MM-Adobe is considering releasing the
> >documentation tool their Dev team uses internally. We'll see, perhaps
> >with the next big release of the Flash IDE? :)
> >
> >HTH,
> >
> >/Johan
> >___
> >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] Documenting my code

2006-01-19 Thread Johan Lopes
I've used Doxygen for a while to document several high-profile
projects and I love it.

>  The output I got from it indicated that Doxygen didn't understand AS2, and 
> was
> trying to parse the .as files as if they were Java (i.e. class names were
> com.something.MyClass rather than just MyClass - that sort of behaviour).

True. If the OPTIMIZE_OUTPUT_JAVA tag is set to YES. Doxygen will then
generate output that is more tailored for Java. For instance,
namespaces will be presented as packages, qualified scopes will look
different, etc. If you just run it with all the default parameters,
the packages will look very weird (at least to my Java eyes) i.e.
com::MyCompanyName::MyProjectName::MyClassName. I like it when it's
dot-syntaxed.

Currently, Doxygen doesn't officially support AS. It works best when
set to treat AS as a Java-like language, but there's some minor issues
with postcolon syntax (:Void etc) especially when you turn on  the
"show-source-in-the-documentation-feature" <--- it's called something
else but you get the idea.

I've used most of the documentation tools mentioned on this list and
there's always trade-offs, even with commercial ones. I know Doxygen
doesn't support AS but I (and most of my clients) love the UML-like
diagrams it spits out so I can live with it's other quirks.

I used to use VisDoc but not anymore cause it only runs on Macs. Used
BLDOC for a while and find it stops generating beyond 5000 line of
code (correct me if I'm wrong). My projects are way too big for it and
then I have draw the diagrams with packages such as Poseidon, ArgoUML
or gModeler (looks good but not useful on large commercial projects).

In Doxygen, have you tried turning HIDE_SCOPE_NAMES to YES. It's on NO
by default.

'
If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
will show members with their full class and namespace scopes in the
documentation. If set to YES the scope will be hidden.

'

Mail me off-list if you're interested and I'll share my Doxyfile
(though I'm not running cron jobs).

Time permitting I'm myself very interested to see how easy it would be
to mold Doxygen to parse AS classes in a proper fashion. After all the
source code is there. It's all open-source and well documented!

Another thing to note is that there was a mention at the Spark
Conference in Europe that MM-Adobe is considering releasing the
documentation tool their Dev team uses internally. We'll see, perhaps
with the next big release of the Flash IDE? :)

HTH,

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


Re: [Flashcoders] voice recognition in flash

2006-01-18 Thread Johan Lopes
Look into VoiceXML. It would be possible to let a server-side API deal
with the voice recognition part and use the VoiceXML specification as
a bridge between Flash and the API. There are loads of articles on
this subject online. Just google it.

For a while I was very interested in this topic and almost chose it as
my research topic while at University.

/Johan

On 1/18/06, elibol <[EMAIL PROTECTED]> wrote:
> Most probably not on the web, Actionscript does not provide a way to watch
> sound frequencies. Mario Klingemann has written a visualization script that
> responds to sound frequencies using 3rd party software which plays mp3s and
> passes frequency values to a swf file. This is a desktop application though,
> not on the web. I would think that it would be too slow to process on a
> server, since the server would have to do much processing with high levels
> of traffic.
>
> H
>
> On 1/18/06, Eduardo Silva <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I looked in web this subject, but I did not have success, somebody
> > knows if it is possible to make voice recognition in flash?
> >
> > sorry my bad english...
> >
> > tks,
> >
> > etruta
> > ___
> > 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] Documenting my code

2006-01-18 Thread Johan Lopes
As always I recommend Doxygen.

There's a comprehensive tutorial on how to set it up with eclipse on
my blog site: http://www.statik1.com/mt-weblog/archives/92.html

/Johan

On 1/18/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
> Hi Alan,
>   That one's pretty simple - we didn't even try. I too get the huge barf of
> 'no definition' output for the MX classes. But I didn't need to document the
> MX classes, so didn't bother looking into how to do so - the output from
> as2api _without_ those classes is absolutely fine for what we want.
>
> Sorry I couldn't be of more help!
>   Ian
>
> On 1/18/06, Alan MacDougall <[EMAIL PROTECTED]> wrote:
> >
> > Ian Thomas wrote:
> >
> > >We've jsut started using AS2API -
> > >http://www.badgers-in-foil.co.uk/projects/as2api/ - which works fine for
> > us
> > >on Windows (but had issues on Linux, sadly, although I think that's
> > because
> > >our Linux box needs a good cleanup).
> > >
> > >
> > Perhaps you could share how you got it working? I just tried it with a
> > command line like this:
> >
> > as2api --classpath path/to/swfRoot;path/to/commonLib
> > com.alanmacdougall.project.*
> >
> > (I have all my classes arranged properly at swfRoot/com/etc/etc, with
> > utility classes like XFactorStudio's XPath at a common library location.)
> >
> > First it barfed when it found variable definitions in the style "private
> > var x:Number, y:Number;" -- so I fixed those. But then it started giving
> > me huge streams of errors saying "Found no definition of type known
> > locally as 'MovieClip'".
> >
> > Again, I think, no problem -- I add flash_home/en/First Run/Classes/FP8
> > and flash_home/en/First Run/Classes/MX to the classpath... but without
> > success.
> >
> > Could you post your experiences with as2api, and the command line
> > parameters you're using? I'd appreciate it.
> >
> > Alan
> >
> > ___
> > 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] recommended books on XML in Flash

2006-01-06 Thread Johan Lopes
Hi,

Just a note that you can download the "Learning ActionScript 2.0 for
Macromedia Flash 8" as PDF from MM's site. Although, I myself prefer
to buy a hard copy if it's good.

Link is here:

http://download.macromedia.com/pub/documentation/en/flash/fl8/fl8_learning_as2.zip

/Johan

On 1/5/06, Ben Deroo <[EMAIL PROTECTED]> wrote:
> thanks for the book suggestions,
> I ended up ordering a couple of books:
>
> Foundation PHP 5 for Flash
> Foundation ASP.NET for Flash
> Foundation XML for Flash
> Learning ActionScript 2.0 for Macromedia Flash 8
> Using ActionScript 2.0 Components with Macromedia Flash 8
>
> should keep me busy for a while :-)
>
> Ben
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Potter
> Sent: dinsdag 3 januari 2006 21:49
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] recommended books on XML in Flash
>
> Can I third that?  Not to be mean, but I saw them speak at flash forward
> and Joey Lott had to keep answering questions they didn't know.  He
> (Joey) was really nice about it, but it was ugly.
>
> I would start in the docs and here:
> http://www.actionscript.org/tutorials.shtml
> http://www.oreilly.com/catalog/actscptckbk/index.html?CMP=IL7015
> http://www.oreilly.com/catalog/actscript2/
>
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mark
> Lapasa
> Sent: Tuesday, January 03, 2006 1:14 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] recommended books on XML in Flash
>
> I heartily second this notion. Don't the get Jacobsen and Jacobsen book
> for
> all the same reasons. I just happened to gain a better insight from
> Flash's
> docs than the book.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Merrill,
> Jason
> Sent: Tuesday, January 03, 2006 11:14 AM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] recommended books on XML in Flash
>
>
> Whatever you do, don't buy "Flash and XML: A Developers Guide" by Dov
> Jacobsen and Jesse Jacobsen - Addison-Wesley Press - besides being Flash
> 5, the book sucks.  You get the impression these guys are much more into
> XML than Flash.  If they even use Flash at all in their professional
> lives.  Apologies in advance if you're on thist list and one of the
> authors. There's some good stuff in it, but for someone new to Flash or
> doing basic stuff, it's not the book for you.  But even the advanced
> stuff lacks depth though.
>
> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>
>
>
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:flashcoders-
> >>[EMAIL PROTECTED] On Behalf Of Ben Deroo
> >>Sent: Saturday, December 31, 2005 4:29 PM
> >>To: flashcoders@chattyfig.figleaf.com
> >>Subject: [Flashcoders] recommended books on XML in Flash
> >>
> >>Hi,
> >>The title says it all I guess.
> >>Are there any good books out there on the subject of Flash 8 and XML?
> >>I found one called "XML in Flash" from Que publications, but as far as
> I can
> >>tell it is for Flash 5 and was written in 2001.
> >>
> >>Is that still "current"? I am assuming not.
> >>
> >>What books should I read when just getting into this subject, again,
> using
> >>Flash 8 or Flash MX2004?
> >>
> >>
> >>Thanks for your help,
> >>Ben
> >>
> >>
> >>
> >>___
> >>Flashcoders mailing list
> >>Flashcoders@chattyfig.figleaf.com
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> NOTICE:
> This message is for the designated recipient only and may contain
> privileged
> or confidential information. If you have received it in error, please
> notify
> the sender immediately and delete the original. Any other use of this
> e-mail
> by you is prohibited.
> ___
> 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
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] duplicateMovieClip question

2006-01-04 Thread Johan Lopes
The snippet below takes one clip and duplicate it in rows and columns
- simple stuff.

_root.attachMovie("seat",seat_mc,_root.getNextHighestDepth(),{_x:-1000,_y:0});

function createSeats (xSpacing:Number,ySpacing:Number,rows:Number,cols:Number) {

   var xSpacing:Number = xSpacing;
   var ySpacing:Number = ySpacing;

   var xStart:Number = 10;
   var yStart:Number = 30;
   var v:Number = 0;
   var i:Number = -1;

   // specified by the user
   var rows:Number = rows;
   var cols:Number = cols;

   while (++i < cols) {
   var j:Number = -1;
   while (++j < rows) {
   ++v;
   var name:String = "seat" + v;
   _root[seats].duplicateMovieClip (name, v);
   _root[name]._x = xStart + i * xSpacing;
   _root[name]._y = yStart + j * ySpacing;
   }
   }
}

createSeats(10,10,7,20);


Now rather than the final result being duplicated in rows and cols
like a square or a box, I'd like to let the user decide the amount of
angle to the left or right , so as to give it a "perspective" or
skewed look - if that makes any sense.

Please see the attached gifs for a better explanation.

Any help appreciated.

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


Re: [Flashcoders] generating documentation

2005-12-20 Thread Johan Lopes
I've used Natural Docs too but I highly recommend Doxygen.

I've used it on 3 commercial projects with great success.

Although it doesn't officially support AS2, it works!

Unlike other packages, it also generates UML collaboration diagrams
with all the trimmings, straight from your classes.

I've put together a tutorial on how to use it with AS2 and Eclipse here:

http://www.statik1.com/mt-weblog/archives/92.html.

If you decide to use it too and need any help to get the best out of
it, just give me a shout. I've got a "doxyfile" that can easily output
everything you'd ever wanted from your classes/packages to the UML
diagrams.

HTH,

/Johan

On 12/20/05, Brooks Andrus <[EMAIL PROTECTED]> wrote:
> I've used Natural Docs for ActionScript documentation in the past
>
> http://naturaldocs.org/
>
> Brooks
> ___
> 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] What not to do

2005-12-20 Thread Johan Lopes
> Mattes, thanks... ;-)

Doh!

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


Re: [Flashcoders] Drawing dotted lines

2005-12-20 Thread Johan Lopes
Hi Eric,

I think Aled Ulhmanns's animation package does this:

http://www.alex-uhlmann.de/flash/animationpackage/

Also, I recall an old article on MMs dev site about this:

http://www.macromedia.com/devnet/flash/articles/adv_draw_methods.html

HTH,

/Johan

On 12/20/05, Éric Thibault <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> Is it possible to draw a dotted line between two points or do I have to
> custom something with a function?
>
> I have the nead for plain, dotted, double-dotted...
>
> Thanks a lot.
>
> --
> ===
>
> Éric Thibault
> Programmeur analyste
> Réseau de valorisation de l'enseignement
> Université Laval, pavillon Félix-Antoine Savard
> Québec, Canada
> Tel.: 656-2131 poste 18015
> Courriel : [EMAIL PROTECTED]
>
> ===
>
> Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia 
> de confidencialidad 
> 
>
> ___
> 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] What not to do

2005-12-20 Thread Johan Lopes
If you're working on large projects:

A while back, I think it was Ryan Matsikas (I hope I spelled his
surname right) that said something really profound and which I try to
apply to every Flash project I work on:

Just because Flash/ActionScript is getting more and more powerful and
potent with every release doesn't mean we should use it for everything
in a web RIA project.

If you're working with a good back-end, database developer or software
engineer, your app is better off leaving the "heavy-duty stuff" to
back-end or server-side, letting Flash to do what it's best at -
dealing with the front-end. We seem to forget this as Flash developers
and spend too much time cooking up ways of letting Flash do things
that a more powerful server-side language can do a lot faster without
breaking a sweat. Why does the server-side do it faster? For one, it's
got (often times) more RAM to play with...

Just my 2 pence.

/Johan

On 12/20/05, Johan Lopes <[EMAIL PROTECTED]> wrote:
> LOL. That's a great title for a Flash book. Quick, let's contact a publisher 
> :)
>
> /Johan
>
> On 12/20/05, Mike Boutin <[EMAIL PROTECTED]> wrote:
> > Does anyone have any links on stuff "Not to do" in flash that maybe
> > cause the plugin to slow down or halt.  Maybe even some best practices
> > when working on large projects?
> >
> >
> > Thanks!
> >
> >
> > ___
> > 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] What not to do

2005-12-20 Thread Johan Lopes
LOL. That's a great title for a Flash book. Quick, let's contact a publisher :)

/Johan

On 12/20/05, Mike Boutin <[EMAIL PROTECTED]> wrote:
> Does anyone have any links on stuff "Not to do" in flash that maybe
> cause the plugin to slow down or halt.  Maybe even some best practices
> when working on large projects?
>
>
> Thanks!
>
>
> ___
> 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] Out of curiosity, XPath and String Datatype Oddity

2005-12-20 Thread Johan Lopes
Hmm. I now see what you mean. Maybe when you pass the value without
casting it in the "raw", some V2 components such as textArea etc, does
an auto cast toString and therefore can deal with it but the
MediaPlayback component is expecting a proper String and doesn't no
what to grab it if you pass MyVar[0].

As always I need to warn ya I might be talking out of my ass here :)

/Johan

On 12/20/05, Johan Lopes <[EMAIL PROTECTED]> wrote:
> Hi Jason,
>
> AFAIK, XPath.selectNodes() returns an Array.
>
> 
>
> /**
> 10  *selectNodes
> 11  *
> 12  *returns an array of nodes that match the given XPath
> 13  *expression using the the XMLNode (context) as the
> 14  *starting context for the expression.
> 15  *
> 16  *This is the description
> 17  *@param (XMLNode)context
> 18  *@param (String)XPath expression
> 19  *@return (Array) matching nodes
> 20  */
> 21  static function selectNodes(context,path:String):Array{
> 22  return XPathParser.parseQuery(context,path)
> 23  }
> 24
>
> 
>
> HTH,
>
> /Johan
>
> On 12/20/05, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> > I'm asking this more out of curiosity than necessity, but the responses
> > to this thread may help be avoid some headaches in the future.
> >
> > Been using xfactorstudio's Xpath classes with great success.  However, I
> > have found an odd thing - sometimes I have to cast what I thought was
> > already string, to a String in order for a V2 component to accept the
> > value.  For example,
> >
> > **This does not work:
> >
> > var thisVideo:String = XPath.selectNodes("content_xml",
> > "thecontentpath/@videoUrl");
> > video_mc.mediaPlayer.setMedia(thisVideo);//does not work
> >
> > Even though no compiler errors and a trace on the var "thisVideo"
> > traces the proper "string" (media/video/Welcome.flv) - or what I thought
> > was a string, the video in the MediaPlayback component does not play.---
> >
> > **So instead, when casting to String first, this works:
> > var thisVideo:String = String(XPath.selectNodes("content_xml",
> > "thecontentpath/@videoUrl"));
> > video_mc.mediaPlayer.setMedia(thisVideo);.//works
> >
> > Why?  What type of object was the Xpath value before I cast it to a
> > string?  This makes sense for numbers in an XML file, but for Strings???
> > The kicker is I can send other XPath values I don't cast to strings
> > first to text fields, textAreas, and they show up fine.  So is it
> > something quirky with V2 components as well?
> >
> > Thanks.
> >
> > Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
> >
> >
> >
> > NOTICE:
> > This message is for the designated recipient only and may contain 
> > privileged or confidential information. If you have received it in error, 
> > please notify the sender immediately and delete the original. Any other use 
> > of this e-mail by you is prohibited.
> > ___
> > 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] Out of curiosity, XPath and String Datatype Oddity

2005-12-20 Thread Johan Lopes
Hi Jason,

AFAIK, XPath.selectNodes() returns an Array.



/**
10  *selectNodes
11  *
12  *returns an array of nodes that match the given XPath
13  *expression using the the XMLNode (context) as the
14  *starting context for the expression.
15  *
16  *This is the description
17  *@param (XMLNode)context
18  *@param (String)XPath expression
19  *@return (Array) matching nodes
20  */
21  static function selectNodes(context,path:String):Array{
22  return XPathParser.parseQuery(context,path)
23  }
24  



HTH,

/Johan

On 12/20/05, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> I'm asking this more out of curiosity than necessity, but the responses
> to this thread may help be avoid some headaches in the future.
>
> Been using xfactorstudio's Xpath classes with great success.  However, I
> have found an odd thing - sometimes I have to cast what I thought was
> already string, to a String in order for a V2 component to accept the
> value.  For example,
>
> **This does not work:
>
> var thisVideo:String = XPath.selectNodes("content_xml",
> "thecontentpath/@videoUrl");
> video_mc.mediaPlayer.setMedia(thisVideo);//does not work
>
> Even though no compiler errors and a trace on the var "thisVideo"
> traces the proper "string" (media/video/Welcome.flv) - or what I thought
> was a string, the video in the MediaPlayback component does not play.---
>
> **So instead, when casting to String first, this works:
> var thisVideo:String = String(XPath.selectNodes("content_xml",
> "thecontentpath/@videoUrl"));
> video_mc.mediaPlayer.setMedia(thisVideo);.//works
>
> Why?  What type of object was the Xpath value before I cast it to a
> string?  This makes sense for numbers in an XML file, but for Strings???
> The kicker is I can send other XPath values I don't cast to strings
> first to text fields, textAreas, and they show up fine.  So is it
> something quirky with V2 components as well?
>
> Thanks.
>
> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>
>
>
> NOTICE:
> This message is for the designated recipient only and may contain privileged 
> or confidential information. If you have received it in error, please notify 
> the sender immediately and delete the original. Any other use of this e-mail 
> by you is prohibited.
> ___
> 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] flash and cfm

2005-12-20 Thread Johan Lopes
Hi Corban,

If you're looking for books I recommend the following:

1) Flash Remoting - The definitive guide (Tom Muck) (oldie but goodie)
2) Flash MX Professional 2004 for Server Geeks (Nate Weiss) -
Demystifies quite a lot of things

Otherwise checkout the tutorials on these sites for more:

http://www.flash-remoting.com/notablog/

http://www.flash-db.com

Also, checkout MM's/Adobe site for some great tutorials

HTH,

/Johan

On 12/20/05, Corban Baxter <[EMAIL PROTECTED]> wrote:
> Ok so if I know nothing about remoting but I could learn it fast what are 
> some good resources to get on track and fast? Thanks!
>
> Corban Baxter |rich media designer |www.funimation.com
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
> Sent: Tuesday, December 20, 2005 9:39 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] flash and cfm
>
> You could try using flashVars instead of appending the parameters to the end
> of the URL. I don't think flashVars has a limit. May be less hassle than
> switching to Remoting.
>
> http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417
>
> Cheers,
>   Ian
>
> On 12/19/05, Corban Baxter <[EMAIL PROTECTED]> wrote:
> >
> >
> > What is the best practice for grabbing variables from a database using cfm
> > and the using these inside of a flash movie? I am not a cfm developer but I
> > have one here at work that has been helping me with a project I am currently
> > working on. We are running into a problem that flash cannot interpret a
> > query large string...
> >
> > What we are ending up with when trying to bring the variables into flash
> > is a long string in the embed tag with delimiters for an array. Something
> > like...
> >
> > Characters.swf?character1&description1&episoes1&etc...
> >
> > All I can figure out is that there is a limit to the string length that
> > flash is able to grab. Is this true? If so what's a work around?
> >
> > I hope all this makes sense! Thanks all! And I am looking forward to the
> > in site! Thanks!
> >
> >
> > Corban Baxter |rich media designer |www.funimation.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
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash webservice puzzle

2005-12-20 Thread Johan Lopes
Hi franto,

Thanks for your reply. Dude, your english is not that bad :)

The current idea I'm working on is to get the Flash designer to place
an empty MovieClip on every seat of the stadium and name this empty
clip with a unique ID (Tier1_Block1_Stand1_Row1_SeatNumber1). Pretty
much as you suggested. But how am I going to connect the avatar's seat
number (given to him when he registers) with his specific seat on
stage?

Thanks again,

Jan

On 12/20/05, franto <[EMAIL PROTECTED]> wrote:
> it's hard to say, i think it depens of your 4 views :)
> can it be matematically told that you can assign ID to every seat by
> some math formulas?
>
> or you want just create your views after you will find a good way to
> populate them? (sorry for my english :)
>
>
> On 12/20/05, Jan Huzelius <[EMAIL PROTECTED]> wrote:
> > Hi list,
> >
> > I'm creating a 2D football stadium in Flash (4 views) which will be
> > populated with avatars/users from a .NET webservice.
> >
> > The football stadium is illustrated - it's not 3D. The avatars are simple
> > animated MovieClips.
> >
> > Every section of the stadium has a stand with a certain number of seats.
> >
> > What's the most elegant or most scalable way to populate my stadium seats
> > with a bunch of MovieClip avatars?
> >
> > Bearing in mind that a single avatar must be placed in the exact same seat
> > everytime (no random seats).
> >
> > Any suggestions welcome.
> >
> > Thanks in advance.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> -
> Franto
>
> http://blog.franto.com
> http://www.flashcoders.sk
> ___
> 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] > Webservices best practices

2005-12-20 Thread Johan Lopes
Really? I'm working on a project where most of my data is to be
supplied via webservices and it will most certainly be more than 2-3
methods.

I'm putting together a serviceLocator class (singleton) that takes
care of all my webservice calls. You're not using the MX 04 web
service connector are you?

/Johan

On 12/20/05, Weyert de Boer <[EMAIL PROTECTED]> wrote:
> Are their any rules about how much webservices calls you can do in a
> flash movie? It always stops after 2-3 methods.
> ___
> 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] Installing Central

2005-12-15 Thread Johan Lopes
Hi Daniel,

I'm using a Win PC and clicked on your link and the installation went fine.

Cool central apps, by the way :)

All the best,

/Johan

On 12/15/05, Daniel Freeman <[EMAIL PROTECTED]> wrote:
> (A little OT, apologies, but the Central mailing list
> mysteriously vanished some months ago)
>
> I can't install Central anymore?  (MacOS 10.4.2)  I
> get a download error.  Is it just me?  Can other
> people install Central?  If you've got a computer that
> doesn't already have Central installed, try hitting
> any installation badge on my web site (
> http://e2easy.com ) - and let me know if it works.
>
>
>
> Send instant messages to your online friends http://au.messenger.yahoo.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] AS3 / flex2 installer problems

2005-12-12 Thread Johan Lopes
Hi Martin,

What kind of errors are you getting?

When you say it doesn't seem to install everything, how far in the
installation process does it get untill it bombs?

/Johan

On 12/12/05, Martin Klasson <[EMAIL PROTECTED]> wrote:
>
> Hey Coders.
>
> I have searched around but haven't found any decent articles on this
> subject.
>
> My problem is that the flex2-installation doesn't really install
> everything. And I can't find any topics on where the failure lies.
>
> "Flex Builder 2 - Standalone Install" is the one I am trying to install
> on my Windows XP Pro.
>
> Thanks
>
> / martin
> ___
> 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] Display same value in 3 fields

2005-12-08 Thread Johan Lopes
http://www.actionscript.nl/

Goto > Flash MX 2004 category in red > Strings Panel.

HTH,

/Johan

On 12/8/05, Pranav Negandhi <[EMAIL PROTECTED]> wrote:
> Thanks Ian. Looks quite interesting from a distance. Will the mx.lang.*
> classes add too many extra KB's into my published movie? Can I manipulate
> the string values at runtime? Does someone have code examples to do this?
>
> Also, my very basic investigation shows that using this creates a separate
> XML file to store the string values. Is this avoidable? I'm on a pretty firm
> spec where the swf has to be completely standalone with no external
> dependencies except the host application.
>
> Regards,
> Pranav Negandhi
>
> Fractal | ink
> O: 91 22 5660 3682
> M: 91 98211 73656
> www.fractalink.com
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of Ian Thomas
> > Sent: Thursday, December 08, 2005 11:00 PM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] Display same value in 3 fields
> >
> >
> > Have you investigated the string table? (Press CTRL+F11 in authoring)
> >
> > We use the MX04 string table alongside a (heavily modified)
> > version of the built-in Locale code all the time. We also use
> > our own handrolled XML string tables (just files full of
> > tagged-up string resources), depending on the circumstances.
> >
> > This lets you put some sort of symbol in your code - e.g.
> >
> > myField.text=Locale.loadString("IDS_TITLE");
> >
> > and then you change either a value in the string table (if
> > you're doing it that way) or a value in an XML file somewhere.
> >
> > e.g. (fragment of standard Macromedia string table XML)
> > 
> >  Main Menu
> > 
> >
> > Hope that's useful,
> >   Ian
> >
>
> ___
> 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] Who wants MIDI in the Flash Player?

2005-12-07 Thread Johan Lopes
Very interesting thread. I recall a post on FlashCoders by Alexis
Isaac a while back and I relayed it on my blogsite here:
http://www.statik1.com/mt-weblog/archives/84.html

He's the direct link to it:
http://www.alexisisaac.net/products/flashMidi/, although as Martin
mentioned you can also find it on http://osflash.org/flashmidi.

I think this is a great effort and something we should all support (I
know he was looking for Mac beta testers). I haven't had much time to
play with it but I will now that you've reminded me!

Cheers,

/Johan

On 12/7/05, Martin Wood <[EMAIL PROTECTED]> wrote:
> Interesting question, although ive made use of midi everyday for, well,
> too long now :), im really not sure if making it part of the player as a
> single functional unit would be the best move.
>
> Personally i would rather see a more open, low level approach to sound
> in the player upon which MIDI and other implementations could be developed.
>
> Now that the player (8.5 and onwards) will have much better binary data
> handling, theres nothing to stop me or you from creating a MIDI file parser.
>
> Thats one side of the equation, obviously the more intricate side is
> audio playback.
>
> I've been moaning about the audio capabilities of the flash player for
> longer than i can remember, and would dearly love for it to become much
> more capable.
>
> The options i can think of so far are (and they arent exclusive)
>
> 1. An api for accessing midi devices on the user system, much like
> accessing a webcam, where you can query for which devices are present,
> then get a handle to a device and start manipulating it, something like:
>
> var midiDevice:MidiDevice = Audio.getMidiDevice(1);
> var instrument:Instrument = midiDevice.createInstrument();
> instrument.setChannel(1);
> instrument.setProgramNumber(34);
> instrument.setController(23,44);
> instrument.noteOn(velocity);
> etc...
>
> 2. ACCESS TO THE SOUND BUFFER. Please. :)
>
> This would open up a lot more possibilities for audio generation,
> manipulation etc..
>
> The 8.5 player already has a Loader.loadBytes feature where you can send
> binary data locally, i.e. you can create a jpg in the player and then
> load it into a movieclip without sending it to a server. This is great,
> but I think a similar scheme for audio would be fantastic.
>
> With a simple sound.setBuffer(binaryData) you could do a huge amount of
> interesting things.
>
> Sound synthesis, generation.
>
> From musical applications, to game sound effects, or just sound
> notifications within applications. All of this could be done with a
> minimal impact on filesize. No need for .wav's , mp3's etc..
>
> Sound capture
>
> You could capture audio from mic and allow the user to edit it and
> process it. You could build annotation tools, voice messaging, musical
> applications etc..
>
> Also if you can get a handle on the audio stream before it hits the
> audio device you could have live control over streamed audio, tone
> controls, reverb, delays, echo cancellation, noise reduction. etc..
>
> So, personally I would rather see the components available to us as
> developers, upon which we can build a variety of applications. MIDI
> playback being just one particular application of the feature set.
> Also other similar systems like OSC could be used.
>
> anyway, im glad you are asking and i'll happily contribute anything to a
> document you will put forward requesting audio related capabilities.
>
> thanks,
>
> Martin
>
>
> Tyler Wright wrote:
> > The Flash Player has evolved through the ages to provide the most needed
> > functionality.  Through each version there have always remained a few common
> > goals.  What I have found is that:
> >
> > Flash is small -- from the player itself to the swf file format to the
> > assets it is optimized to load, focus has been placed on small file sizes
> > (this of course is not as apparent in many websites that are heavy in
> > multimedia)
> >
> > Flash supports standards -- the player supports many web and multimedia
> > formats standard in the industry, such as jpg, mp3 and xml
> >
> > Flash is interactive -- the players greatest strength is the dynamic
> > behavoir through ActionScript to allow user interactivity
> >
> > MIDI, a music standard format that most computers support today, fits all of
> > these categories (like a glove).  In fact there's an opensource project
> > being developed to allow MIDI through Flash, though it requires an
> > additional download and install to the user apart from the Flash Player
> > itself (seen at osflash.org)
>
> --
> Martin Wood
>
> http://relivethefuture.com/choronzon
> ___
> 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/flash

Re: [Flashcoders] Q: dedicated UML tool for Actionscript 2?

2005-11-30 Thread Johan Lopes
> I've heard great things about things about this Tool >
> [http://sparxsystems.com.au/products/ea.html]

Sorry about the typo :). It's been a long day!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Q: dedicated UML tool for Actionscript 2?

2005-11-30 Thread Johan Lopes
Hi,

I've heard great things about things about this Tool >
[http://sparxsystems.com.au/products/ea.html]

I personally use Doxygen. Go here
[http://www.statik1.com/mt-weblog/archives/92.html] for a good
tutorial on setting it up with Eclipse.

Bear in mind though that Doxygen doesn't create any stub code - just
generates some great Docs with UML in various formats (HTML, Microsoft
Help, Latex, XML etc).

HTH,

/Johan

On 11/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
> I've been using dedicated UML tools to create class diagrams from Java code 
> and output stub code from diagrams.
> Outside of Eclipse and the the online gModeler, does anything similar exist 
> yet for actionscript development?
>
> Thanks in advance
> Jim Bachalo
>
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> 
> "...all improvisation is life in search of a style."
> - Bruce Mau,'LifeStyle'
> ___
> 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] flash -> css tooltip

2005-11-30 Thread Johan Lopes
Cool. I'll check your blog site at some point.

/Johan

On 11/30/05, eric dolecki <[EMAIL PROTECTED]> wrote:
> The need is akin to something like this: You have a small SWF that
> contains a listBox. There is more data in the listBox items than you
> can display... so one might want to use a Flash tooltip. However you
> don't have the room and you need to break out of the SWF's container.
> This will allow for that, so for certain applications I think this is
> extremely useful. I'll post up a quick article on the whole thing.
> Using ExternalInterface, its actually pretty simple to pull off.
>
> edolecki
>
> On 11/30/05, Johan Lopes <[EMAIL PROTECTED]> wrote:
> > Hi Eric,
> >
> > I don't have an immediate need for this feature but I'm always eager
> > to learn something new :) Please email me offlist on how you did it!
> >
> > Cheers,
> >
> > /Johan
> >
> > On 11/30/05, eric dolecki <[EMAIL PROTECTED]> wrote:
> > > wow - i got it working ;) if anyone is interested in seeing this let me
> > > know...
> > >
> > > On 11/30/05, eric dolecki <[EMAIL PROTECTED]> wrote:
> > > >
> > > > What I am doing so far... I have some javascript that calls up a css
> > > > tooltip & removes them. using wmode="transparent" I can ensure the DHTML
> > > > will appear above Flash. Now I guess I'm just looking to hook the flash 
> > > > and
> > > > css together using externalInterface
> > > >
> > > > as I slog thorugh this, I guess I am making progress
> > > >
> > > >
> > > >
> > > > On 11/30/05, Michael Stuhr <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > eric dolecki schrieb:
> > > > > > Flash > ExternalInterface > HTML CSS Tooltip
> > > > > >
> > > > > And how do you trigger a tooltip in HTML ? or do you suggest a fancy 
> > > > > one
> > > > > ?
> > > > >
> > > > > micha
> > > > > ___
> > > > > 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
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash -> css tooltip

2005-11-30 Thread Johan Lopes
Hi Eric,

I don't have an immediate need for this feature but I'm always eager
to learn something new :) Please email me offlist on how you did it!

Cheers,

/Johan

On 11/30/05, eric dolecki <[EMAIL PROTECTED]> wrote:
> wow - i got it working ;) if anyone is interested in seeing this let me
> know...
>
> On 11/30/05, eric dolecki <[EMAIL PROTECTED]> wrote:
> >
> > What I am doing so far... I have some javascript that calls up a css
> > tooltip & removes them. using wmode="transparent" I can ensure the DHTML
> > will appear above Flash. Now I guess I'm just looking to hook the flash and
> > css together using externalInterface
> >
> > as I slog thorugh this, I guess I am making progress
> >
> >
> >
> > On 11/30/05, Michael Stuhr <[EMAIL PROTECTED]> wrote:
> > >
> > > eric dolecki schrieb:
> > > > Flash > ExternalInterface > HTML CSS Tooltip
> > > >
> > > And how do you trigger a tooltip in HTML ? or do you suggest a fancy one
> > > ?
> > >
> > > micha
> > > ___
> > > 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] Flash Remoting with ASP.NET

2005-11-29 Thread Johan Lopes
Are you using NetConnection Debugger?

If not, you'll find it in > Window > Other Panels > NetConnection
Debugger or as a separate SWF in here: .

Use the NetConnection Debugger to see if your App is making a call to
your gateway.aspx page.

That's a good starting point to get things up and running.

HTH,

/Johan

On 11/29/05, Judah Frangipane <[EMAIL PROTECTED]> wrote:
> I had a project setup running Flash Remoting with ASP.NET. We are
> working with another company and they backed up and cleaned the root
> directory of the site. I went into the backup and restored my files and
> now I no longer receive any sort of feedback from Flash Remoting calls.
> Not a onResult or an onFault event are triggered. My aspx pages work fine.
>
> Is there anyway to test Flash Remoting is working? Or does this sound
> familiar to anyone?
>
> Judah Frangipane
> ___
> 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] Flash Remoting, NAT problem

2005-11-28 Thread Johan Lopes
Hi Jorge,

This could be a long shot but...

Make sure your Flash remoting Server is bound to an IP address? By
default it bounds to your localhost/127.0.0.1.

Find your frconfig.txt and make sure you put your internal network IP
address (192.168.0.x) in the right place. Otherwise, it'll only work
as a development server and take requests from Localhost only!



# Flash Remoting MX for .NET  -  Configuration File
# Each configuration property should begin on a new line using a key =
value format.
#
SN= YOUR SERIAL NUMBER
IP= YOUR IP
Log Level=Error
Log File Size=1048576



HTH,

/Johan

On 11/27/05, Jorge Tejada <[EMAIL PROTECTED]> wrote:
> Hi everybody, We have a Windows 2000 Server with CFMX7 installed, We are
> doing NAT to it from a Linux Server, because it is on our internal networtk,
> everything was fine, but when we test flash remoting it didn't work, what
> are we doing wrong?.
>
> Regards
>
> Jorge Carlos
> ___
> 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] need 3D concept beginner guide

2005-11-23 Thread Johan Lopes
http://www.bit-101.com/tutorials/

http://www.bit-101.com/tutorials/3D-rotation.html

or better yet buy Keith Peter's latest book here:

http://www.amazon.co.uk/exec/obidos/ASIN/1590595181/qid=1132764539/sr=1-7/ref=sr_1_11_7/203-7263632-3094341

Also, check out http://www.actionscript.org for some great 3D tuts.

I'm sure there's some more great 3d tutorials out there - just google it.

HTH,

/Johan

On 11/23/05, Pandian <[EMAIL PROTECTED]> wrote:
>
> hi i want to create basic 3D objects ...
> Pls give some article upon it
> -Thanx
> Pandian
>
>
>
>
> ___
> 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] Way to get URL of host page?

2005-11-23 Thread Johan Lopes
Hi,

If you want to know the URL of the server currently serving your swf
(the host page) from Flash you could use LocalConnection.domain()

/*

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=1426.html

*/

var my_lc:LocalConnection = new LocalConnection();

var foo:String= my_lc.domain();

trace(foo);

With this piece of string you could create logic to check if the
domain is not equal to your server etc...


HTH,

/Johan

On 11/23/05, NEILHIGHLEY.COM <[EMAIL PROTECTED]> wrote:
> The end computer?
> The client computer of the person with the browser?
>
> Try looking up server variables.
> (here is a list of most of them:
> http://www.lib.washington.edu/asp/browser/servar.asp)
> (REMOTE_ADDR and REMOTE_HOST)
>
> I don't think there is any way of retrieving them unless you use a
> flashVars variable and some inline scripting..
>
> [ASP]
>  VALUE="REMOTE_HOST=<%=Request.ServerVariables("REMOTE_ADDR")%>">
>
> [ASP.NET - c#]
>  VALUE="REMOTE_HOST=<%=Request.ServerVariables["ALL_HTTP"]%>">
>
> [PHP]
> 
>
>
> On 11/22/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > As far as I can tell, mochibot will tell you the URL of the host of
> > your Flash movie, but not where it's being viewed.
> >
> > And unfortunately javascript isn't an option. It needs to be
> > completely Flash. Sounds like I'm out of luck... - rajat
> >
> >
> > On 11/21/05, Robert Chyko <[EMAIL PROTECTED]> wrote:
> > > Haven't actually used this.. But it seemed pretty cool when I initially
> > > checked it out
> > >
> > > www.mochibot.com
> > >
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Karthik
> > > Sent: Saturday, November 19, 2005 4:16 AM
> > > To: Flashcoders mailing list
> > > Subject: Re: [Flashcoders] Way to get URL of host page?
> > >
> > >
> > > I see. In that case, you should be able to get this done with a JS
> > > call that returns location.href etc. etc.
> > >
> > > hth
> > > -K
> > >
> > > On 19/11/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > > > Thanks Karthik - I'm not trying to prevent it, I just want to log it
> > > > for analysis purposes later.
> > > >
> > > > best, - rajat
> > > ___
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> www.neilhighley.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] flex 2 for games?

2005-11-22 Thread Johan Lopes
Hi Ted,

This is a bit OT - don't wanna hijack this thread. But thanks for
demystifying the DisplayList API at Spark - Amsterdam. Where can we
get the slides/source for your Spark presentations?

Thanks,

/Johan


On 11/22/05, Theodore E Patrick <[EMAIL PROTECTED]> wrote:
> > Ted, why was it a total mistake that you waited to jump on the bandwagon?
>
> Because after learning Flex:
>
> 1. My salary has tripled.
>
> 2. Clients are bigger and Projects are better.
>
> 3. PowerSDK was purchased by Cynergy Systems 1 month ago.
>
> 4. Working with some of the best developers in the world. PowerBuilder core
> devs and MS Biztalk core devs are working at Cynergy Systems!
>
> Seriously, learn Flex and do not look back. Give in to the Dark Side!
>
> The market is growing and there is a massive need for Flex devs. Flash
> developers can run circles around Java and CF developers in Flex because you
> know the low level aspects of the player and the V2 Component APIs. It is
> the opportunity of a lifetime right now as the market for Flex project
> development on the growth path. I personally think we are just starting the
> growth phase for the Flash Platform and we will see 2 Million new Flex
> developers by 2007. It will be similar to what VB did circa 1994, 20,000
> devs to 3 Million in 3 years.
>
> There is a massive wave of development projects headed to Flex and there are
> simply not enough developers.
>
> Scarcity makes for a phat paycheck!
>
> I was really wrong about Flex, I had no idea. I sat on the Flash side and
> wanted the Flex product to die. I grilled Flex 1.5 publicly after it shipped
> at Max 2003. I was an idiot looking back on it, lesson learned. Flex is
> designed for very large scale projects. You can build and maintain
> applications that are just not feasible within Flash. Plus for larger
> corporate customers, Flex Licensing is a non-issue.
>
> Let me make sure we are clear. Flash has its place for very interactive and
> immersive projects, but for application development if your not using Flex,
> you are wasting allot of development time and money. I can build
> applications in both Flex and Flash but it takes me about 50% longer in
> Flash and the end project is very rarely maintainable and only 1 developers
> can work on it given the FLA format limitations. Flex is very different and
> allows for much more seamless reuse.
>
> My 2 cents,
>
> Ted Patrick
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.13.3/174 - Release Date: 11/17/2005
>
>
> ___
> 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] flex 2 for games?

2005-11-22 Thread Johan Lopes
> Johan, just to get a little confusion out of the way, you said "Yes, with
> Flex2 this would be a nightmare. Not impossible but just awkward way of
> going about things." and a little further along in the mail, "develop your
> game in AS3, than yes it is totally feasible and in fact you gain more from
> it than you would developing in AS2". So uhm.. which one is it ? ;)) Did u
> mean if you develop a code-only game that it would be feasible, but when
> you create a heavy graphical assets game (in want of a better description)
> it would be awkward?

It would be awkward to develop a "heavy graphical assets" game in
Flex2 framework. I'm making the distinction here between the AS3
language and the Flex2 framework with the MXML paradigm.

You can develop/re-write your current game in AS3 using Flex Builder 2
as your editor and gain more than you would when developing in AS2 -
due to the advantages of the new AS3 language features.

Cheers,

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


Re: [Flashcoders] flex 2 for games?

2005-11-21 Thread Johan Lopes
Hey Hans,

I also attended Spark and some of the topics/speakers got me really
inspired too.

I'm no AS3 guru, and like yourself I have a background in
Java/J2ee/ColdFusion. I really like the way AS3 is shaping up.

To be honest, I think you've answered your own questions just in this
sentence alone:

> looking at the game i posted, it is feasible in flex? Not only programming
> wise, but also asset wise? Or will i be introduced to a workflow straight
> from the depths of hell when i want to create animations in flash8, include
> and control them in flex2?

Yes, with Flex2 this would be a nightmare. Not impossible but just
awkward way of going about things.

Using the Flex2 framework with the MXML paradigm and the Flex2
components for games would be using the wrong tool for the job.

As you know, the Flex 2 (framework) is more geared towards application
development than games ;-).

But if you mean you'd like to use the new (Eclipse plug-in)/Flex
Builder 2 as your editor to develop your game in AS3, than yes it is
totally feasible and in fact you gain more from it than you would
developing in AS2. To be honest, with you background I don't even
think you'll find the learning curve that steep.

I sense you're looking to re-architect your game using a more "oop-approach".
Well then, even at this alpha stage AS3 is your friend:

AS3 is a stricter, faster (has a new JIT compiler) and is a more
powerful language. With it, every time you want a new asset on stage
you could for example extend the Sprite class (which is the super
class of the movieClip class - uses only one frame or no timeline).
You have a native Event delegation model with event bubbling etc - no
more "delegate-create -this-mix-in-nonsense" to stay in scope. You can
leverage the power of E4X - treats XML as a native object and let's
you do XPath-like type of "queries". You can create bitmaps on the fly
using ActionScript (currently already supported in Flash 8) ; Use the
DisplayList - no more attachMovie() - it let's you organize movieclips
like in a tree and let you turn their visibility on and off on screen
when you need them - without any performance hits.

As Guy Watson said on his talk at Spark - best way to learn a new
language is by developing something new with it. I think re-writing
this game in AS3 would be a good exercise. I definitely think you
should give AS3 a chance, even at this alpha stage of development. As
you finish the project you could definitely consider yourself a guru,
as I'm sure there'll be challenges along the way which when overcome
will only make you a better AS3 coder!!!

Cheers,

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


Re: [Flashcoders] Detect if swf being viewed in html page

2005-11-14 Thread Johan Lopes
[http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=1742.html]

For Example:

// shows the player type

/*

Read-only property; a string that indicates the type of player.
This property can have one of the following values:

"StandAlone" for the Flash StandAlone Player
"External" for the Flash Player version used by test movie mode,
"PlugIn" for the Flash Player browser plug-in
"ActiveX" for the Flash Player ActiveX Control used by Microsoft
Internet Explorer
*/

var foo1:String = System.capabilities.playerType;

trace(System.capabilities.playerType);

ATextField.text = foo1;

Also,
Not sure if this would be to any help but you can take advantage of
LocalConnection.Domain() function to find out if the swf is being
served from localhost or another server. For example, I've got a
function I call "WhatServerIsThis()". Depending if my app is being
served from a Test server (http://lab.mydomain.com); Stage server
(http://stage.mydomain.com) or Live Server (http://www.mydomain.com)
it automatically switches various URLs (Flash remoting gateways etc)
accordingly.

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=1426.html

For Example:

// shows the domain name

var my_lc:LocalConnection = new LocalConnection();

var foo2:String= my_lc.domain();

trace(foo2);

AnotherTextField.text = foo2;


HTH,

Johan

On 11/14/05, Paul Steven <[EMAIL PROTECTED]> wrote:
> Is it possible to detect if a swf is being viewed in a html / asp page OR
> just a direct link?
>
> So for example I may view a file as
>
> http://www.mysite.com/test.html (which embeds test.swf)
>
> or
>
> http://www.mysite.com/test.swf
>
> I would like the swf to be able to detect if it is being viewed directly or
> embedded?
>
> Any help much appreciated
>
> Paul
>
> ___
> 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] Questions Using MVC Pattern with Flash

2005-11-09 Thread Johan Lopes
> I've tried building the view completely by the
> controller with AS createEmptyMovieClip and such but was wasting too
> much time not being able to see anything at design time.

I've stayed away from that too. This approach is advantageous when
you're working with designers who wants to have full access to your
views during design time.

>I chose not to pass event objects but rather fire a generic onUpdate()
>event on each listener.  Inside oController.onUpdate() I request the
>info I need from the composited oModel and pass that info along to the
>composited view_mc.  This allowed me to have different views listening
>to the model and each requesting only the info they needed instead of
>getting all-or-nothing.  When my model's data changed, it all changed
>but all of it's listening views didn't need all of the data.

I like that idea too. It's close to Moock's MVC with Observer Pattern
passing only the needed data is really cool.

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


Re: [Flashcoders] Questions Using MVC Pattern with Flash

2005-11-09 Thread Johan Lopes
> Hey man, that's what happens to everyone. Don't sweat it. Seriously,
> design patterns are sort of your "road map". It's not important
> EXACTLY how you get there, and if it's easier for you to walk around
> something, then walk around something, don't force yourself to walk
> OVER something just because the map says that's the direction you need
> to go in.

Jeff, this is really a great analogy and I agree to a certain extent but...

>In other words, just start off doing what makes sense to
> YOU. What makes YOU comfortable.

I have to disagree here. This is only OK if you are 100% sure you're
the only person who'll ever work on a project. I guess it's cool to
mess around with MVC implementations on your personal projects as an
exercise - to get a feel for it.

I've been involved in various commercial projects lately where we've
used various types of "home-cooked" MVC frameworks and experience
tells me that if you want your project to be maintainable, stay away
from the "do-what-you-like" type of MVC implementations.

True, there's no right or wrong way when applying MVC. But I'll have
to agree with Mike about using something like ARP or Cairngorm. Both
of these are well-documented with full UML diagrams. This way, if you
get stuck you have a community to go to for help.

Sorry, I didn't mean to start an MVC war or anything like that - I'll
leave that to the SmallTalk and Java gurus who have been at it since
early nineties ;-)

Just my 2 pence.

Cheers,

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


Re: [Flashcoders] OT:Converting shapefile (.shp) > SVG > SWF

2005-11-01 Thread Johan Lopes
Hi Eric,

Yeah that Mapserver looks interesting.

Thanks,

/Johan

On 11/1/05, Eric Mauvière <[EMAIL PROTECTED]> wrote:
> Hi Johan,
> 1) http://gdal.maptools.org/ogr/ogr2ogr.html
> ogr2ogr will let your shape file into GML, an XML format you'll probably be
> able to read in Flash (not so easy though to redraw features through the
> drawing API...)
> 2) http://mapserver.gis.umn.edu/
> Mapserver is an open source server-side mapping software with wich you can
> convert shp files to swf files
> (uses Ming for swf export)
> 3) if your client own Esri's software ArcGis, he could convert his shape
> file to an AI (Adobe Illustrator) file,
> then with Illustrator, you may convert it into a swf file.
>
> Hope this helps,
>
> Eric
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> - Original Message -
> From: "Johan Lopes" <[EMAIL PROTECTED]>
> To: "Open Source Flash Mailing List" ; "Flashcoders
> mailing list" 
> Sent: Tuesday, November 01, 2005 5:16 PM
> Subject: [Flashcoders] OT:Converting shapefile (.shp) > SVG > SWF
>
>
> Hi all,
>
> I'd like some pointers on how to convert a UK map sent to me in .shp
> format to SWF format.
>
> After a quick research I've found out that it's possible to first
> export the data to SVG and then use an SVG to SWF tool to do the rest.
>  But I'd like to know if there's a better way to do this.
>
> I'm building an application where GIS data is supplied to me by the client.
>
> Here's what I've found so far:
>
> 1) Using ArcExplorer (http://www.esri.com/software/arcexplorer/) to
> explore the Layers of the GIS map data
> 2) Followed this tut to convert .shp formats to SVG
> (http://www.carto.net/papers/svg/utils/shp2svg/)
> 3) Now looking to use this tool
> (http://robla.net/1996/svg2swf/#download) and ming to export to  SWF
>
> I found the "ogis2svg" command line tool quite straightforward but now
> am stuck trying to convert the SVG output to SWF using the svg2swf
> tool mentioned above.
> I've googled it and haven't found many "respectable" tools for this purpose.
>
> Any pointers/gotchas/tips would be greatly appreciated.
>
> Cheers,
>
> /Johan
> ___
> 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] OT:Converting shapefile (.shp) > SVG > SWF

2005-11-01 Thread Johan Lopes
Thanks Jim!

>Helen Triolo wrote a library for doing this a
> good while ago, though I can't seem to find it online.

Yeah, she's moved her site to here (http://flash-creations.com/)
nowadays. Great resource indeed.

> If you deployment timeframe allows you the luxury of not having to
> deliver until Spring of 2006, you might also want to think about
> leveraging Flash Player 8.5's binary data support to parse your SHP
> files directly inside the Flash client.

I've followed Claus' example with great interest lately and have
played around with Flex Builder2 alpha myself, but I've a tight
deadline on this and can't wait 'till spring :(.

Thanks again,

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


[Flashcoders] OT:Converting shapefile (.shp) > SVG > SWF

2005-11-01 Thread Johan Lopes
Hi all,

I'd like some pointers on how to convert a UK map sent to me in .shp
format to SWF format.

After a quick research I've found out that it's possible to first
export the data to SVG and then use an SVG to SWF tool to do the rest.
 But I'd like to know if there's a better way to do this.

I'm building an application where GIS data is supplied to me by the client.

Here's what I've found so far:

1) Using ArcExplorer (http://www.esri.com/software/arcexplorer/) to
explore the Layers of the GIS map data
2) Followed this tut to convert .shp formats to SVG
(http://www.carto.net/papers/svg/utils/shp2svg/)
3) Now looking to use this tool
(http://robla.net/1996/svg2swf/#download) and ming to export to  SWF

I found the "ogis2svg" command line tool quite straightforward but now
am stuck trying to convert the SVG output to SWF using the svg2swf
tool mentioned above.
I've googled it and haven't found many "respectable" tools for this purpose.

Any pointers/gotchas/tips would be greatly appreciated.

Cheers,

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