Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-03 Thread franto
Yes, that's true, but then someone without MTASC cannot compile (it
will not work), so if my customer will want sources and want to
compile it, it will be problem :)

On 3 Feb 2006 06:40:47 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I do something similar in my arp extensions to force command classes 
 defined in an xml document to be loaded at runtime.  I use the -pack feature 
 of mtasc that forces classes from a package into your swf.

 so if you wanted force all the classes in com.bluetube.command into your swf 
 you would pass
 -pack com\bluetube\command to mtasc.

 I hate having to put a dummy constructor or fluff in the code to make it 
 work, I prefer the mtasc approach.

 Grant.

 - Original Message -
 From: Cdric_Muller [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: 2/2/06 7:18 AM
 Subject: Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

  but please, remember that this is a Flash Hack with a lot of whack
  and crack :)
  you're welcome!
  cedric
 
   This works Cedric, thank you very much :)
   All of you
  
   On 2/2/06, Cédric Muller  wrote:
   in your .as file (main class, or classesManger,...) you can simply
   put references to the classes you will/should use ...
  
   I did it once the following way:
  
   /**
   *   setPackagesToImport
   *   fake method, never gets called. just here for 'import' +
   reference
   purposes
   *
   */
  
   private function setPackagesToImport ():Void {
   sk.sowhat.linuxPlayer. ScreenEffects;
   sk.sowhat.linuxPlayer.ScreenVideo;
   sk.sowhat.linuxPlayer.Screen;
   sk.sowhat.linuxPlayer.HelperFunctions;
   // and so on ...
   }
  
   with such, you assure yourself that Flash will include the
   classes . not very official, nor clean, but really worked for me
   (as I had to reference the classes paths through xml)
   cedric
  
   Yes it works
   var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; (with
   no import)
  
   this is not problem
  
   but i create instance dynamicly, i got string in XML
   sk.sowhat.linuxPlayer.play4dogs.Test
   and i need create instance, but application doesnt know which
   classes
   will be instantiated, so i cannot create instance of all possible
   class in initialize phase of application
  
  
  
   On 2/2/06, franto  wrote:
   but Ian, why it find other classes, i dont instantiate any of
   class,
   that code you can see in email is everything, and it has found 15
   classes, but 3 doesnt find
  
   Classes found: 15
   Classes not found: 3
  
   Why?
  
   On 2/2/06, Ian Thomas  wrote:
   Hi Franto,
  
   As far as I understand it, 'import' isn't enough to get a class
   compiled
   into your .swf.
  
   The line:
   import sk.sowhat.linuxPlayer.play4dogs.Test;
   just tells the compiler that any mention of the word Test in your
   code will
   refer to that class.
  
   If the class isn't compiled into the SWF, ClassFinder won't find
   it. You
   actually need to access  or instantiate the class somewhere in
   the code to
   make Flash include it. From memory I think just referring to the
   class
   constructor is enough e.g.
  
   import sk.sowhat.linuxPlayer.play4dogs.Test;
  
   var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; //
   somewhere
   later in the code
  
   I also have a vague memory that you might be able to force MTASC
   to include
   classes, but not being a user of MTASC (yet!) I'm not certain on
   that one.
  
   HTH,
 Ian
  
   P.S.
   You may just get away with
   import sk.sowhat.linuxPlayer.play4dogs.Test;
  
   sk.sowhat.linuxPlayer.play4dogs.Test; // refers to the
   constructor, so Flash
   includes the code
  
   I seem to remember reading that somewhere... although
   syntactically it's
   odd.
  
   On 2/2/06, franto  wrote:
  
   Can someone explain me this?
   Im using mx.utils.ClassFinder.findClass to find class and make
   instance
   from it
   but some classes it cant find, it's not just problem of
   mx.utils.ClassFinder.findClass im using another way to create
   dynamic class (as I wrote yesterday to the list)
   but same classes are not found e.g
  
   sk.sowhat.linuxPlayer.play4dogs.Test
  
   but when I create instance in this way
  
   new sk.sowhat.linuxPlayer.play4dogs.Test()
  
   it is created!!! Can someone tell me why? I try all I know, add
   imports and such but nothing
   help me. Im stuck on this for 8 hours now :( and i have to find
   solution
  
   Please help :)
  
   Maybe you can try it on your own projects, if it will find your
   classes
  
   Thank you
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
   --
   ---
   --
   ---
   --
   

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-03 Thread Cedric Muller


grant, how do you make your classes as shared libraries (for example  
making fx.swf provide the rest of the app with all the available  
classes for transitions, tweens, ...) ?
I always wondered how mtasc would handle such (I don't have time to  
dig that part...)


cedric



Yes, that's true, but then someone without MTASC cannot compile (it
will not work), so if my customer will want sources and want to
compile it, it will be problem :)

On 3 Feb 2006 06:40:47 -, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:
I do something similar in my arp extensions to force command  
classes defined in an xml document to be loaded at runtime.  I use  
the -pack feature of mtasc that forces classes from a package into  
your swf.


so if you wanted force all the classes in com.bluetube.command  
into your swf you would pass

-pack com\bluetube\command to mtasc.

I hate having to put a dummy constructor or fluff in the code to  
make it work, I prefer the mtasc approach.


Grant.

- Original Message -
From: Cdric_Muller [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 2/2/06 7:18 AM
Subject: Re: [Flashcoders] mx.utils.ClassFinder.findClass problem


but please, remember that this is a Flash Hack with a lot of whack
and crack :)
you're welcome!
cedric


This works Cedric, thank you very much :)
All of you

On 2/2/06, Cédric Muller  wrote:

in your .as file (main class, or classesManger,...) you can simply
put references to the classes you will/should use ...

I did it once the following way:

/**
*   setPackagesToImport
*   fake method, never gets called. just here for 'import' +
reference
purposes
*
*/

private function setPackagesToImport ():Void {
sk.sowhat.linuxPlayer. ScreenEffects;
sk.sowhat.linuxPlayer.ScreenVideo;
sk.sowhat.linuxPlayer.Screen;
sk.sowhat.linuxPlayer.HelperFunctions;
// and so on ...
}

with such, you assure yourself that Flash will include the
classes . not very official, nor clean, but really worked  
for me

(as I had to reference the classes paths through xml)
cedric


Yes it works
var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; (with
no import)

this is not problem

but i create instance dynamicly, i got string in XML
sk.sowhat.linuxPlayer.play4dogs.Test
and i need create instance, but application doesnt know which
classes
will be instantiated, so i cannot create instance of all possible
class in initialize phase of application



On 2/2/06, franto  wrote:

but Ian, why it find other classes, i dont instantiate any of
class,
that code you can see in email is everything, and it has  
found 15

classes, but 3 doesnt find

Classes found: 15
Classes not found: 3

Why?

On 2/2/06, Ian Thomas  wrote:

Hi Franto,

As far as I understand it, 'import' isn't enough to get a class
compiled
into your .swf.

The line:
import sk.sowhat.linuxPlayer.play4dogs.Test;
just tells the compiler that any mention of the word Test in  
your

code will
refer to that class.

If the class isn't compiled into the SWF, ClassFinder won't  
find

it. You
actually need to access  or instantiate the class somewhere in
the code to
make Flash include it. From memory I think just referring to  
the

class
constructor is enough e.g.

import sk.sowhat.linuxPlayer.play4dogs.Test;

var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; //
somewhere
later in the code

I also have a vague memory that you might be able to force  
MTASC

to include
classes, but not being a user of MTASC (yet!) I'm not  
certain on

that one.

HTH,
  Ian

P.S.
You may just get away with
import sk.sowhat.linuxPlayer.play4dogs.Test;

sk.sowhat.linuxPlayer.play4dogs.Test; // refers to the
constructor, so Flash
includes the code

I seem to remember reading that somewhere... although
syntactically it's
odd.

On 2/2/06, franto  wrote:


Can someone explain me this?
Im using mx.utils.ClassFinder.findClass to find class and make
instance
from it
but some classes it cant find, it's not just problem of
mx.utils.ClassFinder.findClass im using another way to  
create

dynamic class (as I wrote yesterday to the list)
but same classes are not found e.g

sk.sowhat.linuxPlayer.play4dogs.Test

but when I create instance in this way

new sk.sowhat.linuxPlayer.play4dogs.Test()

it is created!!! Can someone tell me why? I try all I know,  
add

imports and such but nothing
help me. Im stuck on this for 8 hours now :( and i have to  
find

solution

Please help :)

Maybe you can try it on your own projects, if it will find  
your

classes

Thank you




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




--
 
---

--
 
---

--
---
Franto

http://blog.franto.com
http://www.flashcoders.sk





Re: [Flashcoders] ActionScript equivalent of embed/object BASE tag

2006-02-03 Thread Jan Schluenzen
Unfortunately _lockroot doesn't fix the path problem. Even if the _root is
being changed through _lockroot, the base path is still the one of the
wrapping SWF. I guess I'll have to go with Ade's suggestion unless somebody
has another idea...


On 2/2/06, Cédric Muller [EMAIL PROTECTED] wrote:

 did you try '_lockroot' ?

 cedric



  You could do it manually. Create a variable and prepend(not a
  word!) it to
  all your loadMovie(), load() etc. calls.
 
  Ade
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Jan
  Schluenzen
  Sent: 02 February 2006 10:23
  To: Flashcoders mailing list
  Subject: [Flashcoders] ActionScript equivalent of embed/object BASE
  tag
 
 
  Hi-
 
  does anyone know of an ActionScript equivalent of accomplishing the
  effect
  of the BASE tag (part of the embed and object tags in HTML)?
  The problem is, I have a flash application that loads XMLs and SWFs
  relative
  to the application's base SWF index.swf.
  Now I need to load my index.swf into another container, a stand-
  alone
  projector. I don't want to fix all paths within my application so
  that they
  are relative to the new container (which is outside my actual
  application
  folder). Is there some way to set the basepath through actionscript?
 
  To clarify, here's the structure of my app:
 
  + root
index.swf
some.swf
other.swf
+ content/
  foo.xml
  bar.xml
 
  Now with the new container, it will look like this:
 
  + root
container.exe (Stand-alone Flash projector)
+ data
  index.swf
  some.swf
  other.swf
  + content/
foo.xml
bar.xml
 
 
  Since all paths for loading files are now relative to the
  container.exeinstead of
  index.swf, everything's broken..
  Is there an easy fix?
 
  Jan
  ___
  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] plz advise :-0

2006-02-03 Thread Srishti Bhatia
i have a Datagrid and a Window component.On click of a 
button,the column fields(headings)present in the datagrid 
should be displayed in the Window component for the user to 
select.there is a checkbox next to the column fields in 
Window component.User selects few checkboxes from 
Window,clicks ok button.Then,the selected 
checkboxes/datagrid columns should only be visible in the 
datagrid.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] plz advise :-0

2006-02-03 Thread srishti
oh thanks Nick well,how should i display only 2 
checkboxes in the LIST component which is in a WINDOW 
component.i used list_instance.cellRenderer() =classname.
classname is a class in which i am attaching 2 checkboxes.
Actually,2 checkboxes are needed because there are only two 
columns in the datagrid.
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] plz advise :-0

2006-02-03 Thread srishti
oh thanks Nick well,how should i display only 2 
checkboxes in the LIST component which is in a WINDOW 
component.i used list_instance.cellRenderer() =classname. 
classname is a class which contains code to attach 2 
checkboxes. 
IN SHORT,I WANT TO DISPLAY 2 CHECKBOXES IN LIST 
COMPONENT.THIS LIST COMPONENT IS IN A WINDOW COMPONENT.
Regards,

Srishti ,
Tata Elxsi Limited,
Engineer-Design and Development.



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] International Address to Map position

2006-02-03 Thread Ian Thomas
Quick sideways thought - does it have to be Flash? You can embed the Google
Maps code on your own site, and the API allows you to layer your own data
over the world map, or even substitute your own map. All the
zooming/latitude/longitude/place marker on map location code is already
built in.

Cheers,
  Ian

On 2/3/06, clark slater [EMAIL PROTECTED] wrote:

 Hey Folks,

 I'm working on an application that has a requirement for generating a
 world
 map showing outlets for a particular product. There are *lots* of outlets
 and they are updated very frequently so the spec is that the map should be
 able to render a new outlet in the correct location on the world map based
 on address only.

 Anyone done this before and care to offer any suggestions? Right now I am
 thinking I will need to acquire a db of city/long/lat or else find a
 public
 webservice that accepts an international address and returns long/lat
 info.
 Then I'm thinking I'll just need a scale map in my swf that approximates
 to
 the long/lat grid so can place the new outlet in the right position.

 Any advice or tales of woe appreciated.

 Clark
 ___
 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] plz advise :-0

2006-02-03 Thread Karthik
On 03/02/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 oh thanks Nick well,how should i display only 2
 checkboxes in the LIST component which in turn,is in a
 WINDOW component.i used list_instance.cellRenderer()
 =classname.
 classname is a class in which i am attaching 2 checkboxes.
 The information contained in this electronic message and any attachments to 
 this message are intended for the exclusive use of the addressee(s)and may 
 contain confidential or privileged information. If you are not the intended 
 recipient, please notify the sender or [EMAIL PROTECTED]

If you want to be helped on a(ny) mailing list:
a) Type a meaningful subject.
b) Do not send duplicate posts - replies or new e-mails.
c) Reply in one concise e-mail, rather than spamming the list every 10 minutes.
d) Do not type in caps.
e) We do not want to read your company's disclaimers. Use a separate
account for use on mailing lists.
f) Be patient.

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


Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-03 Thread Ian Thomas
Thanks Fumio - I already had an 8-segment circle-drawing function, I was
looking for a 4-segment. It turned out to be pretty trivial - not accurate,
but close enough for what I needed. So my problem is solved.

Thanks anyway!

Cheers,
  Ian

On 2/3/06, Fumio Nonaka [EMAIL PROTECTED] wrote:

 function xDrawCircle(target_mc:MovieClip, nX:Number, nY:Number,
 nR:Number, nSegments:Number):Void {
 if (nSegments == undefined) {
 nSegments = 8;
 }
 var nAngle:Number = 2*Math.PI/nSegments;
 target_mc.moveTo(nX+nR, nY);
 for (var i = 1; i=nSegments; ++i) {
 var nTheta:Number = i*nAngle;
 var nAnchorX:Number = nR*Math.cos(nTheta);
 var nAnchorY:Number = nR*Math.sin(nTheta);
 var nControlX:Number =
 nAnchorX+nR*Math.tan(nAngle/2)*Math.cos(nTheta-Math.PI/2);
 var nControlY:Number =
 nAnchorY+nR*Math.tan(nAngle/2)*Math.sin(nTheta-Math.PI/2);
 target_mc.curveTo(nControlX+nX, nControlY+nY, nAnchorX+nX,
 nAnchorY+nY);
 }
 }
 // Test
 var _mc:MovieClip = this.createEmptyMovieClip(target_mc, 1);
 _mc.beginFill(0x00);
 _mc.lineStyle(2, 0xFF);
 xDrawCircle(_mc, Stage.width/2, Stage.height/2, 100, 8);
 _mc.endFill();
 _
 Ian Thomas wrote:
Thanks for that - I've come up with an approximation based on very
 similar
  code. Not ideal, but it's close enough for the purpose I needed it for.
 That
  combined with a quick hash table to make sure I'm not plotting circles
 near
  other circles has given me the performance I need.

 Good luck,

 Fumio Nonaka
 mailto:[EMAIL PROTECTED]
 http://www.FumioNonaka.com/
 My bookshttp://www.FumioNonaka.com/Books/index.html
 Flash communityhttp://F-site.org/

 ___
 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] Seeking a bit of drawing API inspiration..

2006-02-03 Thread Ian Thomas
Whoops, replied too fast without reading carefully - I hadn't spotted the
nSegments parameter. That might come in handy, thank you!

Ian

On 2/3/06, Ian Thomas [EMAIL PROTECTED] wrote:

 Thanks Fumio - I already had an 8-segment circle-drawing function, I was
 looking for a 4-segment. It turned out to be pretty trivial - not accurate,
 but close enough for what I needed. So my problem is solved.

 Thanks anyway!

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


[Flashcoders] xpath - returning object not string?

2006-02-03 Thread Kent Humphrey

Continuing my further adventures in xpath land:

clientList = XPath.selectNodes(this, root/clients/client/@name);

trace(typeof(clientList[0]));

That trace statement returns object, so my array is an array of  
objects, not the strings I was after.


WIll I have to String(clientList[0]) everytime I need the string  
value, or is there some other way?

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


Re: [Flashcoders] Chinese / Japanese Text Input

2006-02-03 Thread Alex McCabe
I think it's possible Japanese characters in Tahoma font won't be present on
some installations - but that on others Tahoma will have all the Japanese
characters. I think they have to be installed, so switching locales doesn't
help. I'm wondering if a typical windows XP machine set up in Japan will
have all the characters in Tahoma font.

Using _sans sounds like another good thing to try. Thanks.


On 2/2/06, Kenneth Kawamoto [EMAIL PROTECTED] wrote:

 We use Tahoma on our world-wide country sites and so far, it has worked
 fine for all of the character sets we've come across.

 Really? If I set the input text font to Tahoma, I cannot type in Japanese
 - it comes out as just squares. Tahoma has no Japanese characters
 (obviously), that is predicted outcome. I'm not convinced - or are you
 talking about European character sets?


 Kenneth Kawamoto
 www.materiaprima.co.uk

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




--
--
http://www.centralquestion.com/flauntit
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Andreas Rønning
Ya like prototyping, XP style spike solutions are a very good idea. 
Reach a proof of concept prototype asap. Do it dirty, do it by stealing, 
do it whichever way you can do it as long as it's fast. And from the 
experiences garnered during this spike, a better solution of the problem 
can be deducted. It feels awful planning to do something you haven't 
done before, so a minimum of a day or two just for experimenting with 
solutions and learning about the  real scope of the problem is pretty 
much a given for me at work these days. Then again i haven't worked on 
anything small and quick in years. I miss the quick stuff :( year-long 
flashdev on the same project gets so demotivating... But i digress. 
Important to remember that people, at least most people, are monkeys 
that like playing and pushing and pulling and kicking stuff. Feeling the 
texture of a surface will tell you more about it than any picture.


ryanm wrote:

After spending a couple of hours, tracing my codes , pulling
my hair out, and smoking 2 packets of cigarettes, I felt that
rewriting it from the scracth was a better way. So, I did that
and the result was satisfying. However, I think working twice
on the same codes is not good at all. So here I am, asking for
your guidance about how to code/design Flash applications
(not only Flash sites) efficiently, as simple as possible, without
making things overcomplicated. Or maybe it is just a matter
of experience?

   Planning, that's all. Work it out in your head, on paper, on a 
whiteboard, whatever, before you write the first line of code. If you 
are unsure about how something will work, prototype it. Don't get hung 
up in the details, just test whatever it is you need to test, and 
figure out how to make it work how you want, and then go back to 
planning. Once you know how it all should work, writing the code is 
more like taking dictation than experimenting. As with anything, the 
more complex the app, the more necessary good planning becomes. If 
it's a quickie, one-off interactive ad, maybe all you need is to 
scribble out a few diagrams on a whiteboard for 15 minutes. But if 
it's a large-scale application, you might need several months of 
planning resulting in a substantial document that describes what 
components are to be built, how they work, and how they integrate. 
Once you have a good plan, though, writing clean, efficient code is easy.


   Even with good planning, there will be times when things don't work 
out as expected and you have to rewrite some code. But with good 
planning, you usually don't have to rewrite the whole thing. That is 
another advantage of that whole OOP thing that many people turn their 
noses at. One of the major benedfits of using OOP techniques is that 
it often saves you from having to rewrite the whole thing, and instead 
you may only have to rewrite a single function, class, or component, 
while the rest of the app works just like it is.


   The bottom line, though, is that you answered your own question. 
After you spent a few hours making sense of exactly what you wanted to 
accomplish, you found a much better way to do it. The question you 
need to ask is if you can put those couple hours at the beginning of 
the project, and skip over the whole first draft completely. Two hours 
up front to save you 8 hours of writing code that will end up in the 
trash anyway is a 63% increase in efficiency (assuming it took 8 hours 
both times you wrote it). It *more* than cuts your development time in 
half, because you spent those 2 hours working out how to build the 
thing either way. And I'll bet it was much faster to write the second 
time (when you really knew what you wanted to accomplish and how to 
accomplish it), too, wasn't it?


ryanm
___
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] xpath - returning object not string?

2006-02-03 Thread Kent Humphrey
But doesn't that object get put into the array (clientList - declared  
as an array earlier), and I'm targeting a single item in the array?


On 3 Feb 2006, at 12:16, Alias wrote:


Your query will return a list of objects which have the attribute
name. There may be more than one of them, hence you get the object.

HTH,
Alias

On 2/3/06, Kent Humphrey [EMAIL PROTECTED] wrote:

Continuing my further adventures in xpath land:

clientList = XPath.selectNodes(this, root/clients/client/@name);

trace(typeof(clientList[0]));

That trace statement returns object, so my array is an array of
objects, not the strings I was after.

WIll I have to String(clientList[0]) everytime I need the string
value, or is there some other way?
___
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] ActionScript study group in New York City

2006-02-03 Thread Jean-Charles Carelli

FYI:
FlashCodersNY is starting a new session of weekly study group  
meetings.  The topic will be Keith Peters excellent Making Things  
Move [ Friends of Ed ].  The plan is to  work through the book and  
remember all the math we missed in high school. The final goal is to  
use the techniques in the book to build a toolkit / library of code  
that can be easily re-used.


All FlashCodersNY meeting are free and open to the public.  The goal  
is to learn by teaching. Both advanced ActionScript developers and  
beginners are encouraged to attend.


// About the new Making Things Move sessions:
http://flashcodersny.org/

// About our group.
http://flashcodersny.org/?p=63

Best,
Jean-Charles
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] plz advise :-0

2006-02-03 Thread srishti
ya Anngie,,u r right,my keyboard needs oiling ;-)
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FLV Encoders

2006-02-03 Thread John Giotta
Just as a note. I heard from a co-worker yesterday that Sorenson
Squeeze's price jumped $100 USD
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] feed parser in actionscript

2006-02-03 Thread Eduardo Silva
somebody knows to parser of feed in actionscript that it works with
rss 0.9, 1.0, 2.0 and atom?

tks,

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


RE:[Flashcoders] LoadClip and centering new content

2006-02-03 Thread Éric Thibault

Hello again...

My problem is : how to know the stage's dimentions of a loaded SWF to 
center it correctly in its container?


Here's my tests on that particular problem

1. Set _lockroot inside the loaded SWF : no effect.
2. Set Stage.scaleMode = |noScale : no effect.

|When I execute the loaded SWF independently, the Stage dimentions are 
OK but once loaded inside another Flash movie, the Stage's dimentions 
are those of the main movie.


I was looking to include a mc with the same dimentions as the stage 
inside the loaded SWF but there will be a lot of SWF and not all made by me!


I there a way to retreive this kind of information or is it impossible?

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


RE: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread j.c.wichman
Hi,
If you use something like:
var my_mcl:MovieClipLoader = new MovieClipLoader();

var myListener:Object = new Object();

myListener.onLoadInit = function(target_mc:MovieClip) {
  trace(target_mc._width);
}; 
my_mcl.addListener(myListener);
my_mcl.loadClip(YOUR path to SWF here eg test.swf, path
to container here_root.dummy);

It should trace the width of your clip upon load. Is that what you mean?

Greetz
Hans

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: Friday, February 03, 2006 3:11 PM
To: Flashcoders Mailing List
Subject: RE:[Flashcoders] LoadClip and centering new content

Hello again...

My problem is : how to know the stage's dimentions of a loaded SWF to center
it correctly in its container?

Here's my tests on that particular problem

1. Set _lockroot inside the loaded SWF : no effect.
2. Set Stage.scaleMode = |noScale : no effect.

|When I execute the loaded SWF independently, the Stage dimentions are
OK but once loaded inside another Flash movie, the Stage's dimentions are
those of the main movie.

I was looking to include a mc with the same dimentions as the stage inside
the loaded SWF but there will be a lot of SWF and not all made by me!

I there a way to retreive this kind of information or is it impossible?

Thanks a million.
___
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] MX combobox disabled still receive key down focus

2006-02-03 Thread Guillaume Bedleem
Hi Coders,

I've got a strange behaviour with MX combobox.

I've got 3 combobox in my scene. They use the same function with the onchange 
event.
the user have to fill a textfield with his email, but when the user start to 
type some key, the combobox is 'changing' according to the letter typed.

I've tried the _combobox.setEnabled(false), the _combobox.enabled = false...
the combobox appears to be disabled but still 'trapp' the keys typed and still 
change.

any ideas ?

Sorry for the bad english sentences

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


Re: [Flashcoders] 0,0????

2006-02-03 Thread Yotam Laufer
I have to say Tom, that it's perfectly aligned on 0,0 on my F7.

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


RE: [Flashcoders] 0,0????

2006-02-03 Thread Tom Rhodes
nope. 

thanks both of you, maybe I am mad then. I've always had my suspicions ;)

I've got an alignment prob and was running this on the root of a one frame
movie in flash 8 to see if it might be this bit of code and I only see 90%
of the bottom and right of the clip on the stage, only one rounded corner on
the bottom right is visible the rest is cropped by the bounds of the movie
at the top and the left!

h. weirdness.

thanks again!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alias
Sent: 03 February 2006 16:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] 0,0

Looks fine to me.

Is your code nested inside another clip?

Alias

On 2/3/06, Tom Rhodes [EMAIL PROTECTED] wrote:
 hello, if anyone's got a mo, I'm going mad..



 code



 function

makeBG(roundness:Number,w:Number,h:Number,colour:String,targ:MovieClip):Movi
 eClip

 {

 var bg:MovieClip = targ.createEmptyMovieClip(button_bg,1);

 with(bg)

 {

 lineStyle(0,0,0);

 beginFill(colour,100);

 moveTo(roundness,0);

 lineTo(w-roundness,0);

 curveTo(w,0,w,roundness);

 lineTo(w,h-roundness);

 curveTo(w,h,w-roundness,h);

 lineTo(roundness,h);

 curveTo(0,h,0,h-roundness);

 lineTo(0,roundness);

 curveTo(0,0,roundness,0);

 endFill();

 }

 return bg;

 }



 var buttBack = makeBG(4,140,20,0xFF,this);

 trace(buttBack._x + : + buttBack._y);



 /code



 can someone paste that in a blank movie and run it, you'll see that even
 though it traces 0:0 and as far as I can tell the pen never goes into
 negative numbers, the shape's top left hand corner is above and to the
left
 of 0,0??



 cheers,



 tom.

 ___
 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] LoadClip and centering new content

2006-02-03 Thread Éric Thibault
I already do that... but the width and height of the container clip 
takes into account any instances outside the boundary of the loaded 
SWF's stage...
So I'm getting the total with and height but want only the stage 
dimentions of the loaded SWF!


I want to align the loaded SWF'stage in the loading flash

If it was just for me, i would not put anything outside the stage of the 
loaded SWF but I'm not the producer of those swf...


And having the stage dimentions would help because the loaded SWF's 
dimentions only takes into account the instances present on frame 1... 
(mc_square 100*100 at (0,0) on a stage of 300*300 results in a container 
clip of 100*100!)


A+

j.c.wichman wrote:


Hi,
If you use something like:
var my_mcl:MovieClipLoader = new MovieClipLoader();

var myListener:Object = new Object();

myListener.onLoadInit = function(target_mc:MovieClip) {
  trace(target_mc._width);
		}; 
		my_mcl.addListener(myListener);

my_mcl.loadClip(YOUR path to SWF here eg test.swf, path
to container here_root.dummy);

It should trace the width of your clip upon load. Is that what you mean?

Greetz
Hans

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: Friday, February 03, 2006 3:11 PM
To: Flashcoders Mailing List
Subject: RE:[Flashcoders] LoadClip and centering new content

Hello again...

My problem is : how to know the stage's dimentions of a loaded SWF to center
it correctly in its container?

Here's my tests on that particular problem

1. Set _lockroot inside the loaded SWF : no effect.
2. Set Stage.scaleMode = |noScale : no effect.

|When I execute the loaded SWF independently, the Stage dimentions are
OK but once loaded inside another Flash movie, the Stage's dimentions are
those of the main movie.

I was looking to include a mc with the same dimentions as the stage inside
the loaded SWF but there will be a lot of SWF and not all made by me!

I there a way to retreive this kind of information or is it impossible?

Thanks a million.
___
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] How do you code your Flash applications?

2006-02-03 Thread Nathan Derksen

getNextHighestDepth() is your friend :-)

Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 2:05 AM, ryanm wrote:




   Another little bit of advice you may find useful, don't put  
depths right next to each other, leave room between them. When  
developing a UI, I often put them 10 depths apart, as in navigation  
container at 10, content container at 20, footer container at 30,  
etc, instead of at 1, 2, and 3. That way, if I need to add a new  
section, or if I need to drop in additional elements like a  
scrollbar, etc, I have a depth available without having to go  
through the code and increment all the subsequent depths. Since  
there are 65k depths available and I rarely use more than a dozen  
on any given timeline, I figure spacing them out is safer than  
putting them right next to each other.


ryanm
___
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] How do you code your Flash applications?

2006-02-03 Thread Merrill, Jason
Yeah, the sudden shut downs has frustrated me enough times that I just
plain stopped using it, even though it's a better editor than SciTe
Flash. 

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Nathan Derksen
Sent: Friday, February 03, 2006 11:04 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How do you code your Flash applications?

Yah, I really like it too, but it does the same thing for me. I save
constantly anyways, so I rarely lose anything. I have yet to get the
Mac version to actually run, which is a shame.

Nathan
http://www.nathanderksen.com


On Feb 2, 2006, at 9:12 PM, Merrill, Jason wrote:

 I love Sepy, except for the fact that it seems to have a memory
 leak as it keeps shutting down every now and then with no warning,
 causing me to lose whatever work I had not saved - even though I
 have the latest version.  It did it in the previous version too.
 Maybe its just an anomoly and doesn't happen to anyone else.  For
 that reason, I went back to SciTE|Flash and the Actionscript
 editor.  Eclipse was just too much for me, (though in Flexbuilder
 2, its' great) -  it's great for what it does if you're at or
 almost at guru level and can figure out all those project
 workspaces and junk, but sometimes, I just want to write a class
 and be done with it.

 Anyway, Anggie, I think maybe what I was getting at, (and honestly
 I'm very sorry if my little joke about it being a can of worms
 somehow made you feel bad), was that perhaps you could sharpen the
 question a little more so as to be not quite so broad.  What is an
 example of a specific problem you're trying to solve other than
 write clean code?  I guess when I saw your question, my thought
 was, where would anyone begin to answer that question effectively
 without writing a book on the subject.  Could you give an example
 of something you've struggled with, which maybe people here could
 assist you in designing it better, making it more efficient?  It
 probably won't be me that will help though, I'm still trying to get
 better at this stuff myself.

 Jason Merrill










 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
Bjorn
 Schultheiss
 Sent: Thursday, February 02, 2006 10:09 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] How do you code your Flash
applications?


 9-5 I've been working on the same Flash RIA for the last 3 months.
 For this I have adopted to Sepy as this is what the rest of
 the dev team are
 using.

 Prior to that I was an Eclipse / MTASC k.i.d.

 Though when I get home and the collar comes and I'm
 UNLEASHEDtm into the
 flex beast that lays dormant during the day time within Flash
 Lemming.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Grant Cox
 Sent: Friday, 3 February 2006 1:58 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] How do you code your Flash
applications?

 Are you actually deploying Flex 2 applications?  Doesn't it still
 require the alpha/beta Flash 8.5 player?


 Bjorn Schultheiss wrote:

 The enlightened Lemming would also like to add some comments.
 /*
 * Begin
 *
 * Flex 2 kicks ass. Any app dev I will work with flex.
 * Any GUI component / animation works I'll use Flash
 *
 * Thank you
 *
 * The end
 */


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Grant Cox
 Sent: Friday, 3 February 2006 1:44 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] How do you code your Flash
applications?

 Don't feel bad Anggie, I think it is an interesting topic
 that is worthy
 of discussion.  The problem is that best practices are quite
 subjective, and as such some people feel the need to be offended
at
 alternative suggestions :)

 Of course, the method I use (Eclipse/MTASC) really is The
 Best Practice,
 as in my infinite wisdom and experience have found that every
other
 method is simply inferior, and only suitable for ignorant
lemmings.
 You're all lemmings, you hear me!!  ;)

 Regards,
 Grant Cox


 Anggie Bratadinata wrote:



 On 2/3/06, Mark Winterhalder [EMAIL PROTECTED] wrote:




 (to open) a can of worms, idiom: to ask for general
 stylistic advice
 on a professional mailing list, often resulting in
contradicting
 advises that turn into flame wars, ending with somebody crying
 and
 repeated demands for the thread to be discontinued.




 Ugh, I didn't mean to start another flame war. I just wanna
 learn from
 you, folks
 I'm sorry if my question was considered a can of worms. If
 there's
 any Indonesian Flash mailing list that is as good as this one,
I'd
 turn to them instead, keeping the worms in Indonesia.

 --
 Anggie Bratadinata
 Graphic|Web|Flash
 Jl. Raya Langsep 21
 Malang - East Java
 I N D O N E S I A
 www.ibshastautama.com
 www.nextrand.co.id
 

RE: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Scott Hyndman
It's not when you don't want the movieclip to be on the highest depth.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Nathan Derksen
Sent:   Fri 2/3/2006 11:07 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] How do you code your Flash applications?

getNextHighestDepth() is your friend :-)

Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 2:05 AM, ryanm wrote:



Another little bit of advice you may find useful, don't put  
 depths right next to each other, leave room between them. When  
 developing a UI, I often put them 10 depths apart, as in navigation  
 container at 10, content container at 20, footer container at 30,  
 etc, instead of at 1, 2, and 3. That way, if I need to add a new  
 section, or if I need to drop in additional elements like a  
 scrollbar, etc, I have a depth available without having to go  
 through the code and increment all the subsequent depths. Since  
 there are 65k depths available and I rarely use more than a dozen  
 on any given timeline, I figure spacing them out is safer than  
 putting them right next to each other.

 ryanm
 ___
 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] Question about xpath and cdata

2006-02-03 Thread Mark Burvill

Anyone?

:o)

Mark Burvill wrote:


Hi everyone,

I'm still a bit new to using xml with flash, and I'm just starting to 
dig into xfactorstudio's xpath for AS2.
I'm generally loving the way it's clearly going to save me loads of 
time in searching through my xml docs, but I'm having a bit of a 
probem getting html formatted text from a CDATA tag to display 
properly


Say this is my xml file:

content
   biog
   ![CDATA[Lorem ipsum dolorbrbrsit amet.]]
   /biog
/content

What I'm trying to do is get the Lorem ipsum text and display it in 
an html text field in Flash.


I would normally do something like this:
var myText:String =  myXML.firstChild.firstChild.firstChild.nodeValue;

Using nodeValue makes sure that the text gets treated as html, and 
the line breaks work properly rather than doing:

var myText:String =  myXML.firstChild.firstChild.firstChild;
... which would display Lorem ipsum dolorbrbrsit amet. in my 
textfield - not good.


My question is, how do I get the same result using xpath?

Doing this:
XPath.selectNodes (myXML, /content/biog/text());
..gives me the right text, but won't treat it as html.

Thanks!

Mark.



--
*Mark Burvill*
Interactive designer
www.eyegas.com http://www.eyegas.com

*Work:* 0117 953 0100
*Mobile*: 07780 608498

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


Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Nathan Derksen
Ah yes, that's a fun issue. Unfortunately, once you load an SWF  
inside another, there is no way that I know of to get the original  
published stage size. I would love to be proved wrong, though, but I  
have looked hard for a way to do that as well. All you can really do  
is keep xscale and yscale to 100, and use a fixed size mask so that  
anything outside of the area you have set aside for the clip is  
hidden (in case stuff goes outside the bounds of the stage).


Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 8:06 AM, Éric Thibault wrote:

I already do that... but the width and height of the container clip  
takes into account any instances outside the boundary of the loaded  
SWF's stage...
So I'm getting the total with and height but want only the stage  
dimentions of the loaded SWF!


I want to align the loaded SWF'stage in the loading flash

If it was just for me, i would not put anything outside the stage  
of the loaded SWF but I'm not the producer of those swf...


And having the stage dimentions would help because the loaded SWF's  
dimentions only takes into account the instances present on frame  
1... (mc_square 100*100 at (0,0) on a stage of 300*300 results in a  
container clip of 100*100!)


A+

j.c.wichman wrote:


Hi,
If you use something like:
var my_mcl:MovieClipLoader = new MovieClipLoader();

var myListener:Object = new Object();

myListener.onLoadInit = function(target_mc:MovieClip) {
  trace(target_mc._width);
};  my_mcl.addListener(myListener);
my_mcl.loadClip(YOUR path to SWF here eg test.swf, path
to container here_root.dummy);

It should trace the width of your clip upon load. Is that what you  
mean?


Greetz
Hans

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: Friday, February 03, 2006 3:11 PM
To: Flashcoders Mailing List
Subject: RE:[Flashcoders] LoadClip and centering new content

Hello again...

My problem is : how to know the stage's dimentions of a loaded SWF  
to center

it correctly in its container?

Here's my tests on that particular problem

1. Set _lockroot inside the loaded SWF : no effect.
2. Set Stage.scaleMode = |noScale : no effect.

|When I execute the loaded SWF independently, the Stage dimentions  
are
OK but once loaded inside another Flash movie, the Stage's  
dimentions are

those of the main movie.

I was looking to include a mc with the same dimentions as the  
stage inside

the loaded SWF but there will be a lot of SWF and not all made by me!

I there a way to retreive this kind of information or is it  
impossible?


Thanks a million.
___
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] Question about xpath and cdata

2006-02-03 Thread Merrill, Jason
This is the only thing I have found that works:

XMLNode((XPath.selectNodes(myXML,root/node/text())[0])).nodeValue;

Ugly isn't it?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mark Burvill
Sent: Friday, February 03, 2006 11:20 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Question about xpath and cdata

Anyone?

:o)

Mark Burvill wrote:

 Hi everyone,

 I'm still a bit new to using xml with flash, and I'm just starting
to
 dig into xfactorstudio's xpath for AS2.
 I'm generally loving the way it's clearly going to save me loads of
 time in searching through my xml docs, but I'm having a bit of a
 probem getting html formatted text from a CDATA tag to display
 properly

 Say this is my xml file:

 content
biog
![CDATA[Lorem ipsum dolorbrbrsit amet.]]
/biog
 /content

 What I'm trying to do is get the Lorem ipsum text and display it
in
 an html text field in Flash.

 I would normally do something like this:
 var myText:String =
myXML.firstChild.firstChild.firstChild.nodeValue;

 Using nodeValue makes sure that the text gets treated as html, and
 the line breaks work properly rather than doing:
 var myText:String =  myXML.firstChild.firstChild.firstChild;
 ... which would display Lorem ipsum dolorbrbrsit amet. in my
 textfield - not good.

 My question is, how do I get the same result using xpath?

 Doing this:
 XPath.selectNodes (myXML, /content/biog/text());
 ..gives me the right text, but won't treat it as html.

 Thanks!

 Mark.


--
*Mark Burvill*
Interactive designer
www.eyegas.com http://www.eyegas.com

*Work:* 0117 953 0100
*Mobile*: 07780 608498

___
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


Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Helen Triolo
Looks like that info is in the swf header (Northcode pulls from that to 
do its getStageSize) but I don't know how you can access the header of a 
loaded swf from within Flash itself.


Helen

Éric Thibault wrote:

I already do that... but the width and height of the container clip 
takes into account any instances outside the boundary of the loaded 
SWF's stage...
So I'm getting the total with and height but want only the stage 
dimentions of the loaded SWF!


I want to align the loaded SWF'stage in the loading flash

If it was just for me, i would not put anything outside the stage of 
the loaded SWF but I'm not the producer of those swf...


And having the stage dimentions would help because the loaded SWF's 
dimentions only takes into account the instances present on frame 1... 
(mc_square 100*100 at (0,0) on a stage of 300*300 results in a 
container clip of 100*100!)


A+

j.c.wichman wrote:


Hi,
If you use something like:
var my_mcl:MovieClipLoader = new MovieClipLoader();
   
var myListener:Object = new Object();


myListener.onLoadInit = function(target_mc:MovieClip) {
  trace(target_mc._width);
}; my_mcl.addListener(myListener);
my_mcl.loadClip(YOUR path to SWF here eg test.swf, path
to container here_root.dummy);

It should trace the width of your clip upon load. Is that what you mean?

Greetz
Hans





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


[Flashcoders] site check plese (possible preloading issue) - or is it just me ?

2006-02-03 Thread Dominic Fee
Hi all,

 

Sorry for off topic posting.

 

I was wondering if anyone on the list can post back any comments on a
preloading bug issues they may encounter when visiting www.themillbank.com
http://www.themillbank.com/  which I've just finished.

 

I'm using a loderclass and not sure weather it's this or myself whose broke
my firefox cache config settings.

As it only appears in firefox on one certain machine ive tested (not sure if
it's a particular firefox build on that machine)

 

Basically the site preloads fine however the content will not show up until
a navigation button is clicked.

If anyone has any preloading issue, could they let me know. I think its just
my firefox build, but better safe than sorry.

 

Please ignore the menus section as this is incomplete with content, design
and a few tween bugs here and there.

Client wanted it launching regardless These should be finished Mon, Tue.

 

Cheers 

Dom

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


RE: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Ryan Potter
Eric-

I have run into the same problem before.  the only way I found to force a clip 
to have a certain dimension is to put a graphic in at the size you want the 
clip to be.  I realize that you don't have control over the swfs that are being 
created but I have never been able to solve this either.  The width and height 
of the clip always equate to the width and height of the content in the clip.

The Only way I have been able to solve this is to use onLoadInit and set vars 
on the child that state the width and height explicitly.  But this requires 
having access to the fla.

Child Swf in the first frame:
this.w = 300;
this.h = 300;

Parent centering function called from the loader.onLoadInit

function centerClip(clip){
var w = clip.w;
var h = clip.h;
clip._x = Stage.width/2-(w/2);
clip._y = Stage.height/2-(h/2);
}



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault
Sent: Friday, February 03, 2006 9:06 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LoadClip and centering new content

I already do that... but the width and height of the container clip 
takes into account any instances outside the boundary of the loaded 
SWF's stage...
So I'm getting the total with and height but want only the stage 
dimentions of the loaded SWF!

I want to align the loaded SWF'stage in the loading flash

If it was just for me, i would not put anything outside the stage of the 
loaded SWF but I'm not the producer of those swf...

And having the stage dimentions would help because the loaded SWF's 
dimentions only takes into account the instances present on frame 1... 
(mc_square 100*100 at (0,0) on a stage of 300*300 results in a container 
clip of 100*100!)

A+

j.c.wichman wrote:

Hi,
If you use something like:
   var my_mcl:MovieClipLoader = new MovieClipLoader();
   
   var myListener:Object = new Object();

   myListener.onLoadInit = function(target_mc:MovieClip) {
 trace(target_mc._width);
   }; 
   my_mcl.addListener(myListener);
   my_mcl.loadClip(YOUR path to SWF here eg test.swf, path
to container here_root.dummy);

It should trace the width of your clip upon load. Is that what you mean?

Greetz
Hans

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: Friday, February 03, 2006 3:11 PM
To: Flashcoders Mailing List
Subject: RE:[Flashcoders] LoadClip and centering new content

Hello again...

My problem is : how to know the stage's dimentions of a loaded SWF to center
it correctly in its container?

Here's my tests on that particular problem

1. Set _lockroot inside the loaded SWF : no effect.
2. Set Stage.scaleMode = |noScale : no effect.

|When I execute the loaded SWF independently, the Stage dimentions are
OK but once loaded inside another Flash movie, the Stage's dimentions are
those of the main movie.

I was looking to include a mc with the same dimentions as the stage inside
the loaded SWF but there will be a lot of SWF and not all made by me!

I there a way to retreive this kind of information or is it impossible?

Thanks a million.
___
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] How do you code your Flash applications?

2006-02-03 Thread Andreas Rønning
Surprised at the lack of support for Primalscript on this list :) It's 
easily the most comprehensive and solid scripting IDE out there, and for 
mid to large scale flash development i don't see how i could do without 
it. In particular the dynamic code completion and code hinting for your 
own methods as you write them is really really nice to have. Another 
thing that's nice about something NOT being open source and NOT being 
modified by every geek on the block is that you have actual customer 
support heh. Like when i first tried out Primalscript 3 and found that 
it handled alt gr keys in such a way as to make scripting 
near-impossible on norwegian keyboards (alt gr+7 through alt gr+0 for 
brackets and curly braces, and the alt gr key was invariably setting 
keyboard focus to the menu bar). I notified them, immediatly got a 
message back that they had ordered a norwegian keyboard and was going to 
fix it asap. Was fixed within the week. Raw.


Never caught on to se|py unfortunately, mostly because i change the 
colors on my code highlighting to run on a black background (black with 
light grey letters is easier on my eyes in the long run. Less staring at 
the sun), and se|py has line highlighting that's black, making the 
current line invisible ;P Couldn't work with that. Funny how simple i am.


- Andreas

Nathan Derksen wrote:
Yah, I really like it too, but it does the same thing for me. I save 
constantly anyways, so I rarely lose anything. I have yet to get the 
Mac version to actually run, which is a shame.


Nathan
http://www.nathanderksen.com


On Feb 2, 2006, at 9:12 PM, Merrill, Jason wrote:

I love Sepy, except for the fact that it seems to have a memory leak 
as it keeps shutting down every now and then with no warning, causing 
me to lose whatever work I had not saved - even though I have the 
latest version.  It did it in the previous version too.  Maybe its 
just an anomoly and doesn't happen to anyone else.  For that reason, 
I went back to SciTE|Flash and the Actionscript editor.  Eclipse was 
just too much for me, (though in Flexbuilder 2, its' great) -  it's 
great for what it does if you're at or almost at guru level and can 
figure out all those project workspaces and junk, but sometimes, I 
just want to write a class and be done with it.


Anyway, Anggie, I think maybe what I was getting at, (and honestly 
I'm very sorry if my little joke about it being a can of worms 
somehow made you feel bad), was that perhaps you could sharpen the 
question a little more so as to be not quite so broad.  What is an 
example of a specific problem you're trying to solve other than 
write clean code?  I guess when I saw your question, my thought 
was, where would anyone begin to answer that question effectively 
without writing a book on the subject.  Could you give an example of 
something you've struggled with, which maybe people here could assist 
you in designing it better, making it more efficient?  It probably 
won't be me that will help though, I'm still trying to get better at 
this stuff myself.


Jason Merrill











-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bjorn
Schultheiss
Sent: Thursday, February 02, 2006 10:09 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] How do you code your Flash applications?


9-5 I've been working on the same Flash RIA for the last 3 months.
For this I have adopted to Sepy as this is what the rest of
the dev team are
using.

Prior to that I was an Eclipse / MTASC k.i.d.

Though when I get home and the collar comes and I'm
UNLEASHEDtm into the
flex beast that lays dormant during the day time within Flash Lemming.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Grant Cox
Sent: Friday, 3 February 2006 1:58 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How do you code your Flash applications?

Are you actually deploying Flex 2 applications?  Doesn't it still
require the alpha/beta Flash 8.5 player?


Bjorn Schultheiss wrote:


The enlightened Lemming would also like to add some comments.
/*
* Begin
*
* Flex 2 kicks ass. Any app dev I will work with flex.
* Any GUI component / animation works I'll use Flash
*
* Thank you
*
* The end
*/


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf

Of Grant Cox

Sent: Friday, 3 February 2006 1:44 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How do you code your Flash applications?

Don't feel bad Anggie, I think it is an interesting topic

that is worthy

of discussion.  The problem is that best practices are quite
subjective, and as such some people feel the need to be offended at
alternative suggestions :)

Of course, the method I use (Eclipse/MTASC) really is The

Best Practice,

as in my infinite wisdom and experience have found that every other
method is simply inferior, and only suitable for ignorant lemmings.
You're all lemmings, you hear me!!  ;)


Re: [Flashcoders] Question about xpath and cdata

2006-02-03 Thread Mark Burvill

Ugly indeed - but at least it works!

Thanks Jason - you're a star!

--
*Mark Burvill*
Interactive designer
www.eyegas.com http://www.eyegas.com


Merrill, Jason wrote:


This is the only thing I have found that works:

XMLNode((XPath.selectNodes(myXML,root/node/text())[0])).nodeValue;

Ugly isn't it?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mark Burvill
Sent: Friday, February 03, 2006 11:20 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Question about xpath and cdata

Anyone?

:o)

Mark Burvill wrote:

 


Hi everyone,

I'm still a bit new to using xml with flash, and I'm just starting
   


to
 


dig into xfactorstudio's xpath for AS2.
I'm generally loving the way it's clearly going to save me loads of
time in searching through my xml docs, but I'm having a bit of a
probem getting html formatted text from a CDATA tag to display
properly

Say this is my xml file:

content
  biog
  ![CDATA[Lorem ipsum dolorbrbrsit amet.]]
  /biog
/content

What I'm trying to do is get the Lorem ipsum text and display it
   


in
 


an html text field in Flash.

I would normally do something like this:
var myText:String =
   


myXML.firstChild.firstChild.firstChild.nodeValue;
 


Using nodeValue makes sure that the text gets treated as html, and
the line breaks work properly rather than doing:
var myText:String =  myXML.firstChild.firstChild.firstChild;
... which would display Lorem ipsum dolorbrbrsit amet. in my
textfield - not good.

My question is, how do I get the same result using xpath?

Doing this:
XPath.selectNodes (myXML, /content/biog/text());
..gives me the right text, but won't treat it as html.

Thanks!

Mark.

   


--
*Mark Burvill*
Interactive designer
www.eyegas.com http://www.eyegas.com

*Work:* 0117 953 0100
*Mobile*: 07780 608498

___
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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Nathan Derksen
No, but what Ryan describes is exactly what getNextHighestDepth() is  
for.


Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 8:19 AM, Scott Hyndman wrote:


It's not when you don't want the movieclip to be on the highest depth.

Scott

-Original Message-
From:	[EMAIL PROTECTED] on behalf of Nathan  
Derksen

Sent:   Fri 2/3/2006 11:07 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] How do you code your Flash applications?

getNextHighestDepth() is your friend :-)

Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 2:05 AM, ryanm wrote:




   Another little bit of advice you may find useful, don't put
depths right next to each other, leave room between them. When
developing a UI, I often put them 10 depths apart, as in navigation
container at 10, content container at 20, footer container at 30,
etc, instead of at 1, 2, and 3. That way, if I need to add a new
section, or if I need to drop in additional elements like a
scrollbar, etc, I have a depth available without having to go
through the code and increment all the subsequent depths. Since
there are 65k depths available and I rarely use more than a dozen
on any given timeline, I figure spacing them out is safer than
putting them right next to each other.

ryanm


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Nathan Derksen
I always have a movie clip as a base. Gives a better platform for  
moving everything around together if I need, and getNextHighestDepth 
() works as advertised.


Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 8:23 AM, Bart Wttewaall wrote:


And certainly not when you work within the _root.
It will give depths at which you can't remove movieclips.

2006/2/3, Scott Hyndman [EMAIL PROTECTED]:
It's not when you don't want the movieclip to be on the highest  
depth.


Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of  
Nathan Derksen

Sent:   Fri 2/3/2006 11:07 AM
To: Flashcoders mailing list
Cc:
Subject:Re: [Flashcoders] How do you code your Flash  
applications?


getNextHighestDepth() is your friend :-)

Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 2:05 AM, ryanm wrote:




   Another little bit of advice you may find useful, don't put
depths right next to each other, leave room between them. When
developing a UI, I often put them 10 depths apart, as in navigation
container at 10, content container at 20, footer container at 30,
etc, instead of at 1, 2, and 3. That way, if I need to add a new
section, or if I need to drop in additional elements like a
scrollbar, etc, I have a depth available without having to go
through the code and increment all the subsequent depths. Since
there are 65k depths available and I rarely use more than a dozen
on any given timeline, I figure spacing them out is safer than
putting them right next to each other.

ryanm
___
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] Question about xpath and cdata

2006-02-03 Thread Ryan Potter
Have you tried not using cdata at all?  If your html text is xml
compliant (XHTML) then you can use xpath to get the value of the node
and return it.  Then you load the text.  I just had to solve the same
problem and it worked beautifully.  

XPath select Nodes returns an array of child nodes.  Take the returned
array and join it using and empty string and you now have a string of
html text. Then use css to mark it up and you're done.  


Here is the function that loads the xml:

function loadXml(){
//trace(load xml called);

this.xml = new XML();
this.xml.ignoreWhite = true;
this.xml._parent = this;

this.xml.onLoad = function () {
//trace(xml loaded);
this._parent.headertext =
XPath.selectNodesAsString(this, /page/h1/text());
var c  = XPath.selectNodes(this,
/page/content/node());
this._parent.contenttext = c.join();
//trace(header text :: +this._parent.headertext);
//trace(content text :: +this._parent.contenttext);

// resume the load manager to load the next item 
this._parent.loadManager.resume();
}
// this.datafile is just the path to the xml file
this.xml.load(this.datafile);
}


Here is the xml:

?xml version=1.0 encoding=iso-8859-1??xml version=1.0
encoding=iso-8859-1?

page
h1This is the name of the page/h1
content


h2This is a second level header/h2br/

pblah lbha lbhh Blah /pbr/

h2This is a header/h2br/

pmore content/pbr/

h2another header/h2br/

pblah blah /pbr/

/content
/page



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, February 03, 2006 9:31 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Question about xpath and cdata

This is the only thing I have found that works:

XMLNode((XPath.selectNodes(myXML,root/node/text())[0])).nodeValue;

Ugly isn't it?

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mark Burvill
Sent: Friday, February 03, 2006 11:20 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Question about xpath and cdata

Anyone?

:o)

Mark Burvill wrote:

 Hi everyone,

 I'm still a bit new to using xml with flash, and I'm just starting
to
 dig into xfactorstudio's xpath for AS2.
 I'm generally loving the way it's clearly going to save me loads of
 time in searching through my xml docs, but I'm having a bit of a
 probem getting html formatted text from a CDATA tag to display
 properly

 Say this is my xml file:

 content
biog
![CDATA[Lorem ipsum dolorbrbrsit amet.]]
/biog
 /content

 What I'm trying to do is get the Lorem ipsum text and display it
in
 an html text field in Flash.

 I would normally do something like this:
 var myText:String =
myXML.firstChild.firstChild.firstChild.nodeValue;

 Using nodeValue makes sure that the text gets treated as html, and
 the line breaks work properly rather than doing:
 var myText:String =  myXML.firstChild.firstChild.firstChild;
 ... which would display Lorem ipsum dolorbrbrsit amet. in my
 textfield - not good.

 My question is, how do I get the same result using xpath?

 Doing this:
 XPath.selectNodes (myXML, /content/biog/text());
 ..gives me the right text, but won't treat it as html.

 Thanks!

 Mark.


--
*Mark Burvill*
Interactive designer
www.eyegas.com http://www.eyegas.com

*Work:* 0117 953 0100
*Mobile*: 07780 608498

___
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


Re: [Flashcoders] Question about xpath and cdata

2006-02-03 Thread Chris Allen
Why not use Xpath.selectSingleNode() if you are only looking for one node?

mySting = XPath.selectSingleNode(myXML,
/content/biog).firstChild.nodeValue;

Works fine in my application in a node with CDATA content.

-Chris

On 2/3/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 This is the only thing I have found that works:

 XMLNode((XPath.selectNodes(myXML,root/node/text())[0])).nodeValue;

 Ugly isn't it?

 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Mark Burvill
 Sent: Friday, February 03, 2006 11:20 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Question about xpath and cdata
 
 Anyone?
 
 :o)
 
 Mark Burvill wrote:
 
  Hi everyone,
 
  I'm still a bit new to using xml with flash, and I'm just starting
 to
  dig into xfactorstudio's xpath for AS2.
  I'm generally loving the way it's clearly going to save me loads of
  time in searching through my xml docs, but I'm having a bit of a
  probem getting html formatted text from a CDATA tag to display
  properly
 
  Say this is my xml file:
 
  content
 biog
 ![CDATA[Lorem ipsum dolorbrbrsit amet.]]
 /biog
  /content
 
  What I'm trying to do is get the Lorem ipsum text and display it
 in
  an html text field in Flash.
 
  I would normally do something like this:
  var myText:String =
 myXML.firstChild.firstChild.firstChild.nodeValue;
 
  Using nodeValue makes sure that the text gets treated as html, and
  the line breaks work properly rather than doing:
  var myText:String =  myXML.firstChild.firstChild.firstChild;
  ... which would display Lorem ipsum dolorbrbrsit amet. in my
  textfield - not good.
 
  My question is, how do I get the same result using xpath?
 
  Doing this:
  XPath.selectNodes (myXML, /content/biog/text());
  ..gives me the right text, but won't treat it as html.
 
  Thanks!
 
  Mark.
 
 
 --
 *Mark Burvill*
 Interactive designer
 www.eyegas.com http://www.eyegas.com
 
 *Work:* 0117 953 0100
 *Mobile*: 07780 608498
 
 ___
 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


Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Nathan Derksen
Not that I know of. If the first frame was representative of the size  
as a whole, then iterating through the movie clips looking for clips  
with negative x/y values could be done, however it's sort of a moot  
point as soon as everything moves around in subsequent frames. I also  
don't think that will work if some of the symbols are graphic symbols  
instead of movie clips. You basically need to know in advance what  
the size of the clip is going to be, then code that into your  
positioning code. Not pretty, but it's doable.


Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 8:40 AM, Éric Thibault wrote:


Mmm...

The funiest thing is that if I want to center my loaded SWF that  
has instances outside the loaded SWF'stage, it gets shifted :'(


Is there a way to know the nomber of pixels to the left, top,  
bottom and right of the registration point (0,0) of a container?  I  
could than compensate for the extras of the SWF inside of it...


Say that my container is 200px in width but I know that it has 50px  
extra to the left (-50px), my real width is then 150px??


A+


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread elibol

 I meditate on the 3 base chakra's during 4-7am whilst considering the
 coherence between my left and right testicles. At a certain point I
 discharge conceptual code forward through foreign elements into sepy and
 charge an application with the spirit of that which I AM.

 PEACE hehe


Deep.

Anggie, my immediate advice would be to design your application API before
you begin unit testing your functions; break down and generalize the
internal communication of the application, use your own diagramming dialect
to describe the application on paper. If you're gonna be hardcore about it,
begin reading a book on UML diagramming. I would say about 70 percent of
programming is knowing what you're going to do, and how everything will
communicate via object API ( this is where design patterns come in ).

It's important to consider design patterns, I would highly recommend reading
Actionscript 2.0 essentials. It's important that you move away from
programming in actionscript 1.0 (frame code). I would further recommend
Design Patterns by Gamma, Helm, Johnson, Vlissides (the GOF). It is a
timeless classic that has less to do with code and more to do with the way
things should be constructed and thought about.

I'm not sure what the others wrote, so I may be repeating what they've
already elaborated. There was too much bs for me to keep reading, except for
what Bjorn wrote, whom hence forth I shall refer to as Yoda. Some of the
other replies were so long that I was frightened. I preach concision to my
fellow programmers.

And to contradict my preaching concision, I feel compelled to mention that
it's more intelligent to take advice then to give it, so, keep on keeping
on, as the North American southerners would say. It will make sense when you
read it to yourself with a 'hick' accent. Go ahead, try it.

Good luck,

M.

On 2/2/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote:

 I meditate on the 3 base chakra's during 4-7am whilst considering the
 coherence between my left and right testicles. At a certain point I
 discharge conceptual code forward through foreign elements into sepy and
 charge an application with the spirit of that which I AM.

 PEACE hehe


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Grant Cox
 Sent: Friday, 3 February 2006 11:37 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] How do you code your Flash applications?

 I personally use Eclipse / MTASC, so all code is class based.  In my
 Flash file all symbols that need functionality have a linkage id, and
 almost all of my symbols are only a single frame (unless shape tweening
 is needed).  To make the Flash compile faster, none of these symbols are
 linked to Classes in the Library, this is all done in the external code
 using Object.registerClass.

 I find it a lot cleaner to have all of my code in a nice external
 structure, in a decent IDE.  My code is all right where I need it, I can
 control all animation simply (using an animation / tweening library like
 Fuse), and I can let the designers do almost whatever they like to the
 Flash file without worrying about them stuffing code up.  And, of
 course, I get decent version control on the source files.

 After using this for a few months, I just wouldn't code inside the Flash
 IDE any more.  Movieclip spaghetti is a bitter dish.

 Regards,
 Grant Cox


 Anggie Bratadinata wrote:

 Hi expert coders,
 
 Just a simple question,
 How do you develop your Flash applications? How do you write clean,
 readable, and reusable codes?
 
 The reason I'm asking this is because, so often, I got lost in
 MovieClips spaghetti. Different depth/levels/timelines drive me nuts
 and in the end, after reviewing my codes, I can't help re-writing
 everything from scratch in order to make it much cleaner. So, on the
 same project, I always work twice. :(
 
 What I do so far is write-then-test every single function in my
 codes;if it works then I'll write another function. And I tend to
 write everything in a single frame.
 
 I'd be more than happy if you, experts, can tell me the right way to
 code/develop Flash applications.
 
 TIA,
 --
 Anggie Bratadinata
 Graphic|Web|Flash
 Jl. Raya Langsep 21
 Malang - East Java
 I N D O N E S I A
 www.ibshastautama.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

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


RE: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Merrill, Jason
Surprised at the lack of support for Primalscript on this list :) 

Its probably just the cost of Primalscript, that's all - its competing
with Eclipse, SEPY, SciTE Flash, which are all free.

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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Nathan Derksen

Free is always nice to have  :-) That's pretty wicked support, though.

I considered it, but I like to support SEPY partially because they  
are at least working on a Mac version, while PrimalScript is not that  
I know of.


Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 8:41 AM, Andreas Rønning wrote:

Surprised at the lack of support for Primalscript on this list :)  
It's easily the most comprehensive and solid scripting IDE out  
there, and for mid to large scale flash development i don't see how  
i could do without it. In particular the dynamic code completion  
and code hinting for your own methods as you write them is really  
really nice to have. Another thing that's nice about something NOT  
being open source and NOT being modified by every geek on the block  
is that you have actual customer support heh. Like when i first  
tried out Primalscript 3 and found that it handled alt gr keys in  
such a way as to make scripting near-impossible on norwegian  
keyboards (alt gr+7 through alt gr+0 for brackets and curly braces,  
and the alt gr key was invariably setting keyboard focus to the  
menu bar). I notified them, immediatly got a message back that they  
had ordered a norwegian keyboard and was going to fix it asap. Was  
fixed within the week. Raw.


Never caught on to se|py unfortunately, mostly because i change the  
colors on my code highlighting to run on a black background (black  
with light grey letters is easier on my eyes in the long run. Less  
staring at the sun), and se|py has line highlighting that's black,  
making the current line invisible ;P Couldn't work with that. Funny  
how simple i am.


- Andreas

Nathan Derksen wrote:
Yah, I really like it too, but it does the same thing for me. I  
save constantly anyways, so I rarely lose anything. I have yet to  
get the Mac version to actually run, which is a shame.


Nathan
http://www.nathanderksen.com


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


[Flashcoders] As2 Event Broadcasting for fp 6.0

2006-02-03 Thread Giles Taylor
Hi All,
I'm trying to figure out the best way to do events in as2 published for
fp6.0.
Something like Brandon Halls EventBroadcaster would be perfect, but in
as2 obviously.

Does anybody have any ideas?

BTW: I'm trying to stay away from AsBroadcaster/ASBroadcaster, if pos.

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


Re: [Flashcoders] International Address to Map position

2006-02-03 Thread clark slater
Thanks Ian - that's a great idea I haven't yet looked into the Google maps
API, will check it out now.

Clark


On 2/3/06, Ian Thomas [EMAIL PROTECTED] wrote:

 Quick sideways thought - does it have to be Flash? You can embed the
 Google
 Maps code on your own site, and the API allows you to layer your own data
 over the world map, or even substitute your own map. All the
 zooming/latitude/longitude/place marker on map location code is already
 built in.

 Cheers,
 Ian

 On 2/3/06, clark slater [EMAIL PROTECTED] wrote:
 
  Hey Folks,
 
  I'm working on an application that has a requirement for generating a
  world
  map showing outlets for a particular product. There are *lots* of
 outlets
  and they are updated very frequently so the spec is that the map should
 be
  able to render a new outlet in the correct location on the world map
 based
  on address only.
 
  Anyone done this before and care to offer any suggestions? Right now I
 am
  thinking I will need to acquire a db of city/long/lat or else find a
  public
  webservice that accepts an international address and returns long/lat
  info.
  Then I'm thinking I'll just need a scale map in my swf that approximates
  to
  the long/lat grid so can place the new outlet in the right position.
 
  Any advice or tales of woe appreciated.
 
  Clark
  ___
  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] How do you code your Flash applications?

2006-02-03 Thread j.c.wichman
Only when you use v2 components on the root as well ithink?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bart
Wttewaall
Sent: Friday, February 03, 2006 5:24 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How do you code your Flash applications?

And certainly not when you work within the _root.
It will give depths at which you can't remove movieclips.

2006/2/3, Scott Hyndman [EMAIL PROTECTED]:
 It's not when you don't want the movieclip to be on the highest depth.

 Scott

 -Original Message-
 From:   [EMAIL PROTECTED] on behalf of Nathan
Derksen
 Sent:   Fri 2/3/2006 11:07 AM
 To: Flashcoders mailing list
 Cc:
 Subject:Re: [Flashcoders] How do you code your Flash applications?

 getNextHighestDepth() is your friend :-)

 Nathan
 http://www.nathanderksen.com


 On Feb 3, 2006, at 2:05 AM, ryanm wrote:


 
 Another little bit of advice you may find useful, don't put 
  depths right next to each other, leave room between them. When 
  developing a UI, I often put them 10 depths apart, as in navigation 
  container at 10, content container at 20, footer container at 30, 
  etc, instead of at 1, 2, and 3. That way, if I need to add a new 
  section, or if I need to drop in additional elements like a 
  scrollbar, etc, I have a depth available without having to go 
  through the code and increment all the subsequent depths. Since 
  there are 65k depths available and I rarely use more than a dozen on 
  any given timeline, I figure spacing them out is safer than putting 
  them right next to each other.
 
  ryanm
  ___
  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] As2 Event Broadcasting for fp 6.0

2006-02-03 Thread Rich Rodecker
does EventDispatcher not compile to fp 6?  i thought it did.

On 2/3/06, Giles Taylor [EMAIL PROTECTED] wrote:

 Hi All,
 I'm trying to figure out the best way to do events in as2 published for
 fp6.0.
 Something like Brandon Halls EventBroadcaster would be perfect, but in
 as2 obviously.

 Does anybody have any ideas?

 BTW: I'm trying to stay away from AsBroadcaster/ASBroadcaster, if pos.

 Cheers,
 Giles
 ___
 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] LoadClip and centering new content

2006-02-03 Thread Éric Thibault

Thanks erery one for all the solutions and support

I'll put a note in my component that the centering function can 
sometimes produce indesirable results depending on the SWF loaded.  I'll 
strongly suggest to activate my mask option and align top-left to make 
sure everything is OK...


As for my own SWF, i'll go with Ryan's solution.

Thanks again!

Ryan Potter wrote:


Eric-

I have run into the same problem before.  the only way I found to force a clip 
to have a certain dimension is to put a graphic in at the size you want the 
clip to be.  I realize that you don't have control over the swfs that are being 
created but I have never been able to solve this either.  The width and height 
of the clip always equate to the width and height of the content in the clip.

The Only way I have been able to solve this is to use onLoadInit and set vars 
on the child that state the width and height explicitly.  But this requires 
having access to the fla.

Child Swf in the first frame:
this.w = 300;
this.h = 300;

Parent centering function called from the loader.onLoadInit

function centerClip(clip){
var w = clip.w;
var h = clip.h;
clip._x = Stage.width/2-(w/2);
clip._y = Stage.height/2-(h/2);
}



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault
Sent: Friday, February 03, 2006 9:06 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LoadClip and centering new content

I already do that... but the width and height of the container clip 
takes into account any instances outside the boundary of the loaded 
SWF's stage...
So I'm getting the total with and height but want only the stage 
dimentions of the loaded SWF!


I want to align the loaded SWF'stage in the loading flash

If it was just for me, i would not put anything outside the stage of the 
loaded SWF but I'm not the producer of those swf...


And having the stage dimentions would help because the loaded SWF's 
dimentions only takes into account the instances present on frame 1... 
(mc_square 100*100 at (0,0) on a stage of 300*300 results in a container 
clip of 100*100!)


A+

j.c.wichman wrote:

 


Hi,
If you use something like:
var my_mcl:MovieClipLoader = new MovieClipLoader();

var myListener:Object = new Object();

myListener.onLoadInit = function(target_mc:MovieClip) {
  trace(target_mc._width);
		}; 
		my_mcl.addListener(myListener);

my_mcl.loadClip(YOUR path to SWF here eg test.swf, path
to container here_root.dummy);

It should trace the width of your clip upon load. Is that what you mean?

Greetz
Hans

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: Friday, February 03, 2006 3:11 PM
To: Flashcoders Mailing List
Subject: RE:[Flashcoders] LoadClip and centering new content

Hello again...

My problem is : how to know the stage's dimentions of a loaded SWF to center
it correctly in its container?

Here's my tests on that particular problem

1. Set _lockroot inside the loaded SWF : no effect.
2. Set Stage.scaleMode = |noScale : no effect.

|When I execute the loaded SWF independently, the Stage dimentions are
OK but once loaded inside another Flash movie, the Stage's dimentions are
those of the main movie.

I was looking to include a mc with the same dimentions as the stage inside
the loaded SWF but there will be a lot of SWF and not all made by me!

I there a way to retreive this kind of information or is it impossible?

Thanks a million.
___
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] ActionScript equivalent of embed/object BASE tag

2006-02-03 Thread Rich Rodecker
You could do it manually. Create a variable and prepend(not a word!) it to
all your loadMovie(), load() etc. calls.

damn, i always thought prepend was a real word.

anyway, I dont know of a way to set the BASE tag in actionscript, and this
sounds like the solution i would go with.  PREPEND all your calls with a
variable so they would look like xml.load(baseURL+myfile.xml)...this way
if the baseURL variable doesn't exist, the call will still work. Then, if
you wanted to, you could pass in the baseURL value through flashvars or
something, so you wouldnt have to recompile whenever you wanted to change
it.





On 2/3/06, Jan Schluenzen [EMAIL PROTECTED] wrote:

 Unfortunately _lockroot doesn't fix the path problem. Even if the _root is
 being changed through _lockroot, the base path is still the one of the
 wrapping SWF. I guess I'll have to go with Ade's suggestion unless
 somebody
 has another idea...


 On 2/2/06, Cédric Muller [EMAIL PROTECTED] wrote:
 
  did you try '_lockroot' ?
 
  cedric
 
 
 
   You could do it manually. Create a variable and prepend(not a
   word!) it to
   all your loadMovie(), load() etc. calls.
  
   Ade
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Behalf Of Jan
   Schluenzen
   Sent: 02 February 2006 10:23
   To: Flashcoders mailing list
   Subject: [Flashcoders] ActionScript equivalent of embed/object BASE
   tag
  
  
   Hi-
  
   does anyone know of an ActionScript equivalent of accomplishing the
   effect
   of the BASE tag (part of the embed and object tags in HTML)?
   The problem is, I have a flash application that loads XMLs and SWFs
   relative
   to the application's base SWF index.swf.
   Now I need to load my index.swf into another container, a stand-
   alone
   projector. I don't want to fix all paths within my application so
   that they
   are relative to the new container (which is outside my actual
   application
   folder). Is there some way to set the basepath through actionscript?
  
   To clarify, here's the structure of my app:
  
   + root
 index.swf
 some.swf
 other.swf
 + content/
   foo.xml
   bar.xml
  
   Now with the new container, it will look like this:
  
   + root
 container.exe (Stand-alone Flash projector)
 + data
   index.swf
   some.swf
   other.swf
   + content/
 foo.xml
 bar.xml
  
  
   Since all paths for loading files are now relative to the
   container.exeinstead of
   index.swf, everything's broken..
   Is there an easy fix?
  
   Jan
   ___
   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] ActionScript equivalent of embed/object BASE tag

2006-02-03 Thread Rich Rodecker
The beginning or to add to the beginning. To prefix a header onto a packet
means to place the header characters in front of the packet. To prefix is
the opposite of to append characters at the end. As a verb, prefix is not
English. The correct word is prepend, but computer people are notorious
for turning any English word into a computer term.

http://computing-dictionary.thefreedictionary.com/prefix



On 2/3/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 You could do it manually. Create a variable and prepend(not a word!) it
 to
 all your loadMovie(), load() etc. calls.

 damn, i always thought prepend was a real word.

 anyway, I dont know of a way to set the BASE tag in actionscript, and this
 sounds like the solution i would go with.  PREPEND all your calls with a
 variable so they would look like xml.load(baseURL+myfile.xml)...this way
 if the baseURL variable doesn't exist, the call will still work. Then, if
 you wanted to, you could pass in the baseURL value through flashvars or
 something, so you wouldnt have to recompile whenever you wanted to change
 it.





 On 2/3/06, Jan Schluenzen [EMAIL PROTECTED] wrote:
 
  Unfortunately _lockroot doesn't fix the path problem. Even if the _root
  is
  being changed through _lockroot, the base path is still the one of the
  wrapping SWF. I guess I'll have to go with Ade's suggestion unless
  somebody
  has another idea...
 
 
  On 2/2/06, Cédric Muller [EMAIL PROTECTED] wrote:
  
   did you try '_lockroot' ?
  
   cedric
  
  
  
You could do it manually. Create a variable and prepend(not a
word!) it to
all your loadMovie(), load() etc. calls.
   
Ade
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ]On Behalf Of Jan
Schluenzen
Sent: 02 February 2006 10:23
To: Flashcoders mailing list
Subject: [Flashcoders] ActionScript equivalent of embed/object BASE
tag
   
   
Hi-
   
does anyone know of an ActionScript equivalent of accomplishing the
effect
of the BASE tag (part of the embed and object tags in HTML)?
The problem is, I have a flash application that loads XMLs and SWFs
relative
to the application's base SWF index.swf.
Now I need to load my index.swf into another container, a stand-
alone
projector. I don't want to fix all paths within my application so
that they
are relative to the new container (which is outside my actual
application
folder). Is there some way to set the basepath through actionscript?
   
To clarify, here's the structure of my app:
   
+ root
  index.swf
  some.swf
  other.swf
  + content/
foo.xml
bar.xml
   
Now with the new container, it will look like this:
   
+ root
  container.exe (Stand-alone Flash projector)
  + data
index.swf
some.swf
other.swf
+ content/
  foo.xml
  bar.xml
   
   
Since all paths for loading files are now relative to the
container.exeinstead of
index.swf, everything's broken..
Is there an easy fix?
   
Jan
___
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] online export paths to illustrator or eps

2006-02-03 Thread Derek Lords

Hello,

Is there any library tools, compiled clips or SWC files currently in use 
that enable a live swf to export vector paths to adobe illustrator, 
encapsulated postscript, etc.?


The user would like to be able to drag vector objects around on the screen, 
press export or save and be able to take vector art to the printer for 
production.


Thank you,

--
Derek Lords
http://www.itsnyc.net/


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


[Flashcoders] online export paths to illustrator or eps

2006-02-03 Thread Derek Lords

Hello,

Is there any library tools, compiled clips or SWC files currently in use 
that enable a live swf to export vector paths to adobe illustrator, 
encapsulated postscript, etc.?


The user would like to be able to drag vector objects around on the screen, 
press export or save and be able to take vector art to the printer for 
production.


Thank you,

--
Derek Lords
http://www.itsnyc.net/


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread ryanm

No, but what Ryan describes is exactly what getNextHighestDepth() is  for.

   Not at all. If you have a content container at 1, a navigation container 
at 2 (so that drop downs lay on top of the content), and a footer container 
at 3, and you need to add another content container (for rotating ads or 
something), you want it to be next to the other content in depth so that 
it's under the navigation. I avoid getNextHighestDepth like the plague, it 
is an evil monkey living in your closet that wants to kill you. Or at least 
be a major pain in the ass while you try to figure out why you can't control 
the z-position of your elements. I don't even use it in loops when I'm 
generating a bunch of movie clips, like rows in a select box or something, I 
use the iterator for the loop, that way their depth and their index in the 
array is always the same. The only time I've ever used getNextHighestDepth 
was in one-off projects where I didn't know or care where the elements ended 
up because they were created and forgotten. Anything that might have to be 
referenced or moved later should probably have its depth set explicitly.


ryanm 


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


[Flashcoders] OT I did pull out the electronic can opener with that _global question didn't I

2006-02-03 Thread Manuel Saint-Victor
Jason,

My bad on that _global can I left open.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Q:creating a 'snappable' class

2006-02-03 Thread bitstreams
Hi
I'm creating a 'snappable' class, that would work with a predefined set of x,y 
pairs or 'hotspots'.
When a dragged movieclip was within a 'offset' distance of any of these 
hotspots it would 'snap to' and stop drag.
The best way of doing this I thought would be to simply pass an array of 
predefined x,y pairs as an object into the class when it was instantiated.
However, having to cycle thru an array, especially if there are a huge number 
of 'hotspots', while dragging doesn't seem very efficientcan anyone suggest 
a better way of approaching this?

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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Daniel Cascais
I completely agree with what Ryan says, but if you still want to use
getNextHighestDepth(), as Nathan commented, you could do something
like this and get a similar result:

...getNextHighestDepth() + 10;

Daniel

On 2/3/06, ryanm [EMAIL PROTECTED] wrote:
  No, but what Ryan describes is exactly what getNextHighestDepth() is  for.
 
 Not at all. If you have a content container at 1, a navigation container
 at 2 (so that drop downs lay on top of the content), and a footer container
 at 3, and you need to add another content container (for rotating ads or
 something), you want it to be next to the other content in depth so that
 it's under the navigation. I avoid getNextHighestDepth like the plague, it
 is an evil monkey living in your closet that wants to kill you. Or at least
 be a major pain in the ass while you try to figure out why you can't control
 the z-position of your elements. I don't even use it in loops when I'm
 generating a bunch of movie clips, like rows in a select box or something, I
 use the iterator for the loop, that way their depth and their index in the
 array is always the same. The only time I've ever used getNextHighestDepth
 was in one-off projects where I didn't know or care where the elements ended
 up because they were created and forgotten. Anything that might have to be
 referenced or moved later should probably have its depth set explicitly.

 ryanm

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



--
Daniel Cascais
Tel: +56 (0)2  4589495
Cel: +56 (0)9  9417355
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Attn: John Grden

2006-02-03 Thread Manuel Saint-Victor
My bad- I missed the big ATNN subject: hectic day

On 2/3/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 It has not changed- You can email me at this address?

 Sorry- Been kinda swamped this week.


 M

 On 2/3/06, ryanm  [EMAIL PROTECTED] wrote:
 
  I emailed you offlist and didn't get a response, so I'm wondering if
 
  your email address has changed. Email me, I have a question for you.
 
  ryanm
 
  ___
  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] Attn: John Grden

2006-02-03 Thread hank williams
hmm...

Does John Grden = Manuel Saint-Victor?


On 2/3/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
 It has not changed- You can email me at this address?

 Sorry- Been kinda swamped this week.


 M

 On 2/3/06, ryanm [EMAIL PROTECTED] wrote:
 
  I emailed you offlist and didn't get a response, so I'm wondering if
  your email address has changed. Email me, I have a question for you.
 
  ryanm
 
  ___
  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] Creating Components - What am I over looking?

2006-02-03 Thread Charles Parcell
Another great resource! Thanks a ton guys!! I didn't see if off the page
from the previous link.

Charles P.


On 2/3/06, Julien Vignali [EMAIL PROTECTED] wrote:

 Charles,
 I think you should also look into Joey Lott's framework called ASCB,
 which is a really great source of inspiration while creating your own
 components, or at least understand them better. It saved me a lot of
 time ;-)

 http://www.person13.com/ascblibrary

 Julien


 Charles Parcell a écrit :
  Great resource. Everything I was finding was on how to build from the v2
  framework. I think that was really messing me up.
 
  Thanks
 
  Charles P.
 
 
  On 2/1/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
 
 Check Joey Lott's tutorial on building components that subclass
 MovieClip
 
 
 http://www.person13.com/articles/components/creatingcomponents.html
 
 
 Mani
 
 On 2/1/06, Charles Parcell [EMAIL PROTECTED] wrote:
 
 OK, I really am at a lose. There is some sort of property and or
 event/function that is getting called that I just am missing.
 
 I have created a simple component that extends MovieClip (NOT UIObject
 
 or
 
 UIComponent). If I scale the component in Flash (the IDE) there is no
 visible change to the component. Once I publish the component is
 scaled.
 
 I
 
 can accept that.
 
 But in my code, I have the visual part of my component size itself (via
 _width and _height) on EnterFrame. This is completely ignored. OR and
 
 here
 
 is where I might be all messed up, the component is being scaled as a
 whole
 after all the internal parts of the component are drawn. If this is the
 case
 how can I communicate with these top level component properties s that
 I
 can
 draw my component properly? I have tried getting the component _xscale
 
 and
 
 _width with no luck.
 
 Please school me. I want to pull my hair out and the documentation
 
 within
 
 Flash is not helping me.
 
 Thanks,
 Charles P.
 
 ___
 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] FFMPEG info

2006-02-03 Thread Corban Baxter
Could you guys help me out for a second I am looking for some good
information on FFMPEG the system that google uses to convert all video
formats to flv's for video.google.com. I am one looking for the download
and two looking for any information people have posted about there
experiences with FFMPEG. Thanks!

//cb


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


Re: [Flashcoders] Q:creating a 'snappable' class

2006-02-03 Thread Martin Wood



[EMAIL PROTECTED] wrote:

Hi
I'm creating a 'snappable' class, that would work with a predefined set of x,y 
pairs or 'hotspots'.
When a dragged movieclip was within a 'offset' distance of any of these 
hotspots it would 'snap to' and stop drag.
The best way of doing this I thought would be to simply pass an array of 
predefined x,y pairs as an object into the class when it was instantiated.
However, having to cycle thru an array, especially if there are a huge number 
of 'hotspots', while dragging doesn't seem very efficientcan anyone suggest 
a better way of approaching this?


theres a fair few spatial partitioning approaches around these days, but i guess 
you could do something easy with quadtrees. It depends on how many hotspots you 
have and what shapes the objects are etc..I think the first thing to do is some 
performance tests to see if checking the whole array is too expensive.


If you do need them then quadtree's are quite simple, basically you divide the 
screen into 4, then you can recursively subdivide each section, stopping when 
you think you have a small enough resolution.


Then when you are dragging this clip around you will only need to test for 
proximity to items contained within certain nodes of the tree, not everything on 
screen.


I dont know of any AS2 implementations, but its quite fun to code :)

i've found a few references that should help explain :

http://www.gamedev.net/reference/articles/article1303.asp

http://www.ece.eps.hw.ac.uk/~dml/cgonline/hyper00/model/spacediv.html

theres even a paper on macromedia.com that covers quadtrees

http://www.macromedia.com/devnet/director/articles/collision_detection/collision_detection_lingo.pdf

good luck

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


Re: [Flashcoders] FFMPEG info

2006-02-03 Thread Mark Winterhalder
On 2/3/06, Corban Baxter [EMAIL PROTECTED] wrote:
 Could you guys help me out for a second I am looking for some good
 information on FFMPEG the system that google uses to convert all video
 formats to flv's for video.google.com. I am one looking for the download
 and two looking for any information people have posted about there
 experiences with FFMPEG. Thanks!

hi Corban,

two ways to get a ffmpeg binary for windows:
build one yourself, or use the version that comes with the GUI
(http://www.videohelp.com/tools?tool=434).

not sure about the mac. for linux, proceed normally.

my guess is that there might be potential patent issues and that
that's why nobody dares to provide a binary. i don't know, though.

i also don't know if that's really what google uses. it's probably
just a rumor, because it's the only server-side tool people know of.

mark

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OT I did pull out the electronic can opener with that _global question didn't I

2006-02-03 Thread Mark Winterhalder
On 2/3/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
 Jason,

 My bad on that _global can I left open.

i'm not Jason, but think it was perfectly legitimate question (as was
Anggie's, btw). where else would you ask it if not here? you're not
responsible for some people's incapability to keep discussions on a
professional (read: non-personal) level.

besides, i find reading flamewars entertaining :)

mark

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Attn: John Grden

2006-02-03 Thread Michael Stuhr

hank williams schrieb:

hmm...

Does John Grden = Manuel Saint-Victor?




you mean like John Grden === Manuel Saint-Victor ?

seems not the case

micha


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


RE: [Flashcoders] OT I did pull out the electronic can opener withthat _global question didn't I

2006-02-03 Thread Merrill, Jason
i'm not Jason, but think it was perfectly legitimate question (as was
Anggie's, btw). 

I'm Jason and never said either question wasn't legit.  For the _global
thread, I wasn't responding to the question, I was responding to people
calling each other idiots.  

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mark Winterhalder
Sent: Friday, February 03, 2006 5:17 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT I did pull out the electronic can opener
withthat
_global question didn't I

On 2/3/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
 Jason,

 My bad on that _global can I left open.

i'm not Jason, but think it was perfectly legitimate question (as was
Anggie's, btw). where else would you ask it if not here? you're not
responsible for some people's incapability to keep discussions on a
professional (read: non-personal) level.

besides, i find reading flamewars entertaining :)

mark

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
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] Re: online export paths to illustrator or eps

2006-02-03 Thread Jack Doyle
You could print to a PDF file and then open the resulting PDF in Illustrator
to access all the vectors, etc. I'm not sure it works in all cases, but it
has worked on several occasions for me. 

Jack



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


Re: [Flashcoders] Attn: John Grden

2006-02-03 Thread Chris Allen
On 2/3/06, Michael Stuhr [EMAIL PROTECTED] wrote:

 hank williams schrieb:
  hmm...
 
  Does John Grden = Manuel Saint-Victor?
 
 

 you mean like John Grden === Manuel Saint-Victor ?

 seems not the case

 micha


Good point Micha,

I think Hank was setting John to be Manuel.  A typical syntax error, which
might have evaluated to true in the end, and not to mention it would have
been tough to debug. :-) Yikes, what a thought.

Have a great weekend.

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


Re: [Flashcoders] Attn: John Grden

2006-02-03 Thread hank williams
It  was a pascal snippet.

Hank

On 2/3/06, Chris Allen [EMAIL PROTECTED] wrote:
 On 2/3/06, Michael Stuhr [EMAIL PROTECTED] wrote:
 
  hank williams schrieb:
   hmm...
  
   Does John Grden = Manuel Saint-Victor?
  
  
 
  you mean like John Grden === Manuel Saint-Victor ?
 
  seems not the case
 
  micha


 Good point Micha,

 I think Hank was setting John to be Manuel.  A typical syntax error, which
 might have evaluated to true in the end, and not to mention it would have
 been tough to debug. :-) Yikes, what a thought.

 Have a great weekend.

 -Chris
 ___
 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] FLV Encoders

2006-02-03 Thread Troy Rollins


On Feb 3, 2006, at 8:48 AM, John Giotta wrote:


Just as a note. I heard from a co-worker yesterday that Sorenson
Squeeze's price jumped $100 USD


Still kinda buggy for that money. And the interface... I'd much  
rather have a straightforward HIG compliant kind of thing. Like a  
real compression utility, not a toy. I realize that many of us on  
this list specialize in custom interfaces, but I'd prefer standard OS  
windows and buttons in my compression utility.


--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


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


Re: [Flashcoders] Attn: John Grden

2006-02-03 Thread Manuel Saint-Victor
I think it's more along the lines of:
var correctEmail:Boolean= manueSaintVictor.canMultiTask();

It was one of those days.

M

On 2/3/06, hank williams [EMAIL PROTECTED] wrote:

 It  was a pascal snippet.

 Hank

 On 2/3/06, Chris Allen [EMAIL PROTECTED] wrote:
  On 2/3/06, Michael Stuhr [EMAIL PROTECTED] wrote:
  
   hank williams schrieb:
hmm...
   
Does John Grden = Manuel Saint-Victor?
   
   
  
   you mean like John Grden === Manuel Saint-Victor ?
  
   seems not the case
  
   micha
 
 
  Good point Micha,
 
  I think Hank was setting John to be Manuel.  A typical syntax error,
 which
  might have evaluated to true in the end, and not to mention it would
 have
  been tough to debug. :-) Yikes, what a thought.
 
  Have a great weekend.
 
  -Chris
  ___
  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] How do you code your Flash applications?

2006-02-03 Thread Bryan Thompson
Here here!  Another negative vote for getNextHighestDepth().  The
_root.removeMovieClip() gotcha when using v2 components wasted several hours
of my time when first learning AS2.0 ... why the he!! can't I remove those
clips!

I use a custom class to assign depth just to spite Flash.

/--
| Bryan Thompson
| Cyberian Tiger Multimedia
\--  

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of ryanm
 Sent: Friday, February 03, 2006 12:35 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] How do you code your Flash applications?
 
  No, but what Ryan describes is exactly what 
 getNextHighestDepth() is  for.
 
 Not at all. If you have a content container at 1, a 
 navigation container at 2 (so that drop downs lay on top of 
 the content), and a footer container at 3, and you need to 
 add another content container (for rotating ads or 
 something), you want it to be next to the other content in 
 depth so that it's under the navigation. I avoid 
 getNextHighestDepth like the plague, it is an evil monkey 
 living in your closet that wants to kill you. Or at least be 
 a major pain in the ass while you try to figure out why you 
 can't control the z-position of your elements. I don't even 
 use it in loops when I'm generating a bunch of movie clips, 
 like rows in a select box or something, I use the iterator 
 for the loop, that way their depth and their index in the 
 array is always the same. The only time I've ever used 
 getNextHighestDepth was in one-off projects where I didn't 
 know or care where the elements ended up because they were 
 created and forgotten. Anything that might have to be 
 referenced or moved later should probably have its depth set 
 explicitly.
 
 ryanm 
 
 ___
 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] site check plese (possible preloading issue) - or is it just me ?

2006-02-03 Thread Anggie Bratadinata
No problem in my FF 1.0.7.
It's a beautiful site, btw.

--
Anggie Bratadinata
Graphic|Web|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
www.ibshastautama.com
www.nextrand.co.id

On 2/3/06, Dominic Fee [EMAIL PROTECTED] wrote:

 Hi all,



 Sorry for off topic posting.



 I was wondering if anyone on the list can post back any comments on a
 preloading bug issues they may encounter when visiting www.themillbank.com
 http://www.themillbank.com/  which I've just finished.



 I'm using a loderclass and not sure weather it's this or myself whose
 broke
 my firefox cache config settings.

 As it only appears in firefox on one certain machine ive tested (not sure
 if
 it's a particular firefox build on that machine)



 Basically the site preloads fine however the content will not show up
 until
 a navigation button is clicked.

 If anyone has any preloading issue, could they let me know. I think its
 just
 my firefox build, but better safe than sorry.



 Please ignore the menus section as this is incomplete with content, design
 and a few tween bugs here and there.

 Client wanted it launching regardless These should be finished Mon, Tue.



 Cheers

 Dom

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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Anggie Bratadinata
On 2/4/06, elibol [EMAIL PROTECTED] wrote:

 Anggie, my immediate advice would be to design your application API before
 you begin unit testing your functions; break down and generalize the
 internal communication of the application, use your own diagramming
 dialect
 to describe the application on paper. If you're gonna be hardcore about
 it,
 begin reading a book on UML diagramming. I would say about 70 percent of
 programming is knowing what you're going to do, and how everything will
 communicate via object API ( this is where design patterns come in ).

 It's important to consider design patterns, I would highly recommend
 reading
 Actionscript 2.0 essentials. It's important that you move away from
 programming in actionscript 1.0 (frame code). I would further recommend
 Design Patterns by Gamma, Helm, Johnson, Vlissides (the GOF). It is a
 timeless classic that has less to do with code and more to do with the way
 things should be constructed and thought about.


Ugh, I haven't finished reading the GOF's book.
I think I need brain vitamins. Could you suggest one? ;)


In your experience, are patterns useful in small projects? You know, I've
been learning patterns through
C#.NET Design Patterns and so far, to me, patterns only useful in big
projects (in small ones, it might make
things overcomplicated). Correct me if I'm wrong, please.


I'm not sure what the others wrote, so I may be repeating what they've
 already elaborated. There was too much bs for me to keep reading, except
 for
 what Bjorn wrote, whom hence forth I shall refer to as Yoda. Some of the
 other replies were so long that I was frightened. I preach concision to my
 fellow programmers.

 And to contradict my preaching concision, I feel compelled to mention that
 it's more intelligent to take advice then to give it, so, keep on keeping
 on, as the North American southerners would say. It will make sense when
 you
 read it to yourself with a 'hick' accent. Go ahead, try it.

 Good luck,




Thanks

--
Anggie Bratadinata
Graphic|Web|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
www.ibshastautama.com
www.nextrand.co.id
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread ryanm

I completely agree with what Ryan says, but if you still
want to use getNextHighestDepth(), as Nathan
commented, you could do something like this and get a
similar result:

...getNextHighestDepth() + 10;



   No! Bad bad bad! Now you *really* have no way to find your objects. Why 
not just do this:


getNextHighestDepth()+10*152/36%23*Math.random()*362;

   ... it would be equally as useful. The whole idea is that you keep 
things at *predictable*, and whenever possible explicitly defined, depths so 
that things are easy to manage. If you need getNextHighestDepth, that means 
you don't know what the current highest depth being used is, and that means 
you aren't in control of the z-depth of your objects. That's a bad thing. At 
any given time, you should be able to say I know that objects A, B, C, and 
D are at depths 35, 36, 37, and 38, so it is safe to put this new object at 
40, and so on. And even better is to set constants in the class that 
defines those objects, that way you can just add a new constant for the new 
object, and you can see what the other depths are for reference when you are 
defining it.


ryanm 


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


Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Troy Rollins


On Feb 3, 2006, at 11:17 AM, Merrill, Jason wrote:


Yeah, the sudden shut downs has frustrated me enough times that I just
plain stopped using it, even though it's a better editor than SciTe
Flash.


Same. Sepy will not run on my Macs. Basically crashes on launch.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


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


[Flashcoders] Any one can explain about Flash media server

2006-02-03 Thread hidayath q
Hi guyz,

I want to know about the Flash media server and how to create and small
application using it.

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


RE: [Flashcoders] site check plese (possible preloading issue) - oris it just me ?

2006-02-03 Thread Ryan Potter
Worked great on IE 6 on a PC.  

-Original Message- 
From: [EMAIL PROTECTED] on behalf of Anggie Bratadinata 
Sent: Fri 2/3/2006 7:08 PM 
To: Flashcoders mailing list 
Cc: 
Subject: Re: [Flashcoders] site check plese (possible preloading issue) 
- oris it just me ?



No problem in my FF 1.0.7.
It's a beautiful site, btw.

--
Anggie Bratadinata
Graphic|Web|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
www.ibshastautama.com
www.nextrand.co.id

On 2/3/06, Dominic Fee [EMAIL PROTECTED] wrote:

 Hi all,



 Sorry for off topic posting.



 I was wondering if anyone on the list can post back any comments on a
 preloading bug issues they may encounter when visiting 
www.themillbank.com
 http://www.themillbank.com/  which I've just finished.



 I'm using a loderclass and not sure weather it's this or myself whose
 broke
 my firefox cache config settings.

 As it only appears in firefox on one certain machine ive tested (not 
sure
 if
 it's a particular firefox build on that machine)



 Basically the site preloads fine however the content will not show up
 until
 a navigation button is clicked.

 If anyone has any preloading issue, could they let me know. I think 
its
 just
 my firefox build, but better safe than sorry.



 Please ignore the menus section as this is incomplete with content, 
design
 and a few tween bugs here and there.

 Client wanted it launching regardless These should be finished Mon, 
Tue.



 Cheers

 Dom

___
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