Re: [Flashcoders] AS3 - Serial?

2007-09-10 Thread Johannes Nel
i doubt it. you can get around this with a simple app and apolo, but
directly from an adobe product 

On 9/10/07, eric e. dolecki [EMAIL PROTECTED] wrote:

 I am curious if anyone has seen an AS3 class or knows how to go about
 having
 AS3 talk to a serial port (like Zinc). Is this possible without a
 Zinc-like
 wrapper?

 - eric
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] General question about data management

2007-08-31 Thread Johannes Nel
storing the xml in memory is fine, personally i prefer using models, that
way when the xml changes i just need to update the query which retrieves it
and the function which writes xml again.
also in the flex2 paradigm with databinding models are better to work with
than xml IMO.

On 8/31/07, Paul Steven [EMAIL PROTECTED] wrote:

 I am creating a desktop application using Flash and Zinc. The first time
 it
 runs, it retrieves all the data by calling a series of scripts on a
 server.
 The data is returned as xml data.

 My question is, can I just store all the info in memory as xml data or do
 I
 need to create classes to store the info?

 I need to store all this data locally so that users can use the
 application
 later even if they are not online so I was planning on writing xml files
 to
 the users hard drive.

 Basically the application stores details of examinations and the students
 associated with each exam.

 I am currently reading in the xml data about each exam and using an
 examination class to create instances of each exam to store the
 properties.
 Likewise I am reading in all the data for each student and using a student
 class to create instances of each student to store the properties of each
 student.

 I am thinking that this is not necessary and that I could just read in the
 xml and use this xml data whilst the application is running. Any changes
 made by the user could directly change the xml data. Then when they choose
 to save their work, I would write the xml data to a text file.

 Any advice on this much appreciated as I am getting a bit confused and
 have
 spent days writing classes to deal with all the data management.

 Thanks

 Paul

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Johannes Nel
i think teaching someone OOP from the begining is not a bad idea, you are
still teching them to code but around classes. you do not need to introduce
more advanced concepts until later.  the best free book i think is thinking
in java by bruce eckel and should be easily adaptable for your needs.
i also think as3 is a good place to start, you would be equipping them with
a better language while still allowing them to do graphics. those who want
to learn more coding will slot easier into languages like java, c# etc.

On 8/20/07, Ricky Bacon [EMAIL PROTECTED] wrote:

 Steven Sacks wrote:
  I think you should consider teaching programming basics, focusing on
  clean code, best practices, naming conventions, etc. and touch on OOP
  towards the end.  The people who are most interested will seek out more
  information, but I think you will lose people if you try to teach OOP
  concepts right out the gate before they even know how to iterate through
  an Array, or before they know what a subroutine is.

 LISP?  Just sayin...

 -Ricky
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Will Flash cache streaming mp3s?

2007-08-16 Thread Johannes Nel
what you are describing sounds like a load and not streaming. streaming is
when something like fms or red5 comes into play, but downloading it via
http://lala.com/lala.mp3, yes it should cache depending on how you query it
(a query string will cause some issues with using the cached version if the
querystring changes) but otherwise the browser should serve from the cache.
its not flash caching its the host of the active x control.

On 8/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hiya, just a quick question I can't seem to find in the documentation. I
 am making an online flash app that streams mp3s. Once the user has listened
 to a song play once and then the function to loadSound is triggered again to
 play the streaming mp3 again, will Flash download the mp3 again from the
 server (thus using more bandwidth!) or will it play from a cached version?
 if so, how much is the default cache?
 Thanks!
 Dan

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Pls suggest some good source for video streaming with media server

2007-08-14 Thread Johannes Nel
snip
I have idea of streaming, xml, php etc. But i need some insight to use them
together effectively for this
/snip
thats not really streaming.
snip
1. video uploads over hired media server through dynamic admin
/snip
file upload
snip
for dynamic online video
streaming live as well as from stored videos.
/snip
progressive vs streaming. for streaming you need an active netconnection the
other you don't
snip
2. Dynamic calling of videos
/snip
progressive and streaming are slighty different in this regard but its all
the netstream object
snip. automatic run of videos after on another as listed by dynamic admin
panel.
/snip
playlist
snip
I need some good book
/snip
people's books that come recomended  lisa larson, bill sanders, stefan
richter (http://www.flashcomguru.com/) he also has the best fms list going
around.
check out red5, fms and woza perhaps.



On 8/14/07, creativity [EMAIL PROTECTED] wrote:

 Hi,

 I need some good book or online resource to utilize for dynamic online
 video
 streaming live as well as from stored videos. I f somebody can help in
 this
 regard it will be great. I need somme of these features

 1. video uploads over hired media server through dynamic admin
 2. Dynamic calling of videos
 3. Bandwidth detection and streaming as per user bandwidth
 4. automatic run of videos after on another as listed by dynamic admin
 panel.

 I have idea of streaming, xml, php etc. But i need some insight to use
 them
 together effectively for this

 --
 Abhishek Kumar
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Pls suggest some good source for video streaming with media server

2007-08-14 Thread Johannes Nel
http://www.wowzamedia.com/index.html

On 8/14/07, Jer Brand [EMAIL PROTECTED] wrote:

 Confused lurker...

 Red 5 check. FMS check. WOZA == ??

 On 8/14/07, Johannes Nel [EMAIL PROTECTED] wrote:
 
  snip
  I have idea of streaming, xml, php etc. But i need some insight to use
  them
  together effectively for this
  /snip
  thats not really streaming.
  snip
  1. video uploads over hired media server through dynamic admin
  /snip
  file upload
  snip
  for dynamic online video
  streaming live as well as from stored videos.
  /snip
  progressive vs streaming. for streaming you need an active netconnection
  the
  other you don't
  snip
  2. Dynamic calling of videos
  /snip
  progressive and streaming are slighty different in this regard but its
 all
  the netstream object
  snip. automatic run of videos after on another as listed by dynamic
  admin
  panel.
  /snip
  playlist
  snip
  I need some good book
  /snip
  people's books that come recomended  lisa larson, bill sanders, stefan
  richter (http://www.flashcomguru.com/) he also has the best fms list
 going
  around.
  check out red5, fms and woza perhaps.
 
 
 
  On 8/14/07, creativity [EMAIL PROTECTED] wrote:
  
   Hi,
  
   I need some good book or online resource to utilize for dynamic online
   video
   streaming live as well as from stored videos. I f somebody can help in
   this
   regard it will be great. I need somme of these features
  
   1. video uploads over hired media server through dynamic admin
   2. Dynamic calling of videos
   3. Bandwidth detection and streaming as per user bandwidth
   4. automatic run of videos after on another as listed by dynamic admin
   panel.
  
   I have idea of streaming, xml, php etc. But i need some insight to use
   them
   together effectively for this
  
   --
   Abhishek Kumar
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 
 
  --
  j:pn
  http://www.memorphic.com/news/
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS 2.0 constructor inheritance

2007-08-14 Thread Johannes Nel
the constructer gets invoked automatically (and its the only function which
does all other overrides this is not the case for) but the super class's
constructer is being called without arguments so whats happening on a code
level is this

super();

On 8/14/07, Alan MacDougall [EMAIL PROTECTED] wrote:

 Compare these two situations:

 class SuperClass
 {
 private var list:Array;

 public function SuperClass()
 {
list = new Array();
 }
 }

 class SubClass extends SuperClass
 {
 // when instantiated, the list variable is automatically initialized
 }

 This is as it should be. The superclass constructor is executed when the
 subclass is instantiated, as long as the subclass doesn't override it.

 class Button
 {
 private var clip:MovieClip;

 public function Button(clip:MovieClip)
 {
clip.onRelease = Delegate.create(this, handlerMethod);
 }
 }

 class SpecialButton extends Button
 {
 // does not override the superclass constructor
 }

 In this case, code such as var foo:Button = new SpecialButton(clip);
 does NOT execute the superclass constructor. Instead, I need this:

 class SpecialButton extends Button
 {
 public function SpecialButton(clip:MovieClip)
 {
super(clip);   // now it works
 }
 }

 My understanding of inheritance is that I should not need to explicitly
 call the superclass constructor as long as I'm not overriding or
 extending that method of the superclass. What gives? Is it a language
 quirk?

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Issues with Limelight/Streaming Video

2007-08-14 Thread Johannes Nel
charles doe snot say anothing past the innitial connection
also port 80 you need to use the rtmpt protocol

On 8/14/07, Sean Scott [EMAIL PROTECTED] wrote:

 Will,

 Sounds like their RTMP port is allowing you to handshake but it's not
 pushing any kind of data.

 Have you tried using Charles to see what kind of data you are receiving?

 Hope this helps

 you've tried port 1935, 443  80?

 Hope that helps
 Sean

 On 8/14/07, Will McHenry [EMAIL PROTECTED] wrote:
 
  *The Problem:
  *Currently we're using Limelight as our CDN for streaming video, and
  we've randomly been getting these strange
  'blackouts' - you load the file, the netConnection is successful, the
  netStream connects correctly, you load the movie, then ... nothing. Just
  a blank screen, no video at all. I've traced out the status of each
  step, and nothing is throwing and error - it all thinks it's working
  correctly - except nothing plays. The kicker is that the SAME file,
  untouched, will be working fine - then all of a sudden, for two hours,
  it's not - then, it's working again. We've tested this with Adobe's FLV
  playback compononet, custom classes, custom players,
  barebones-4-line-actionscript, etc.
 
  We've talked to Limelight support, they have no idea and have offered no
  suggestions. We've checked our internal network for port blocking, etc -
  and it's all fine, correct ports open.
 
 
  *The Question:*
  Now before we all say Limelight sucks, I was wondering if anyone has
  had any problems like this with Limelight or any other CDN before? Or
  can offer any suggestions for troubleshooting?
 
 
 
  Many thanks for your help!
  -will-
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] array copy with random order

2007-08-13 Thread Johannes Nel
in as3 you could just dish it up using a for each loop

On 8/13/07, Cedric Muller [EMAIL PROTECTED] wrote:

 Hi,

 There's that good old shuffleArray, don't know if that will be
 sufficient:

 function shuffleArray (arr_p:Array):Array {
 var len:Number = arr_p.length, mixed:Array = arr_p.slice(),
 rn:Number, it:Number, el:Object;
 for (it = 0; itlen; it++) {
 el = mixed[it];
 mixed[it] = mixed[rn = random(len)];
 mixed[rn] = el;
 }
 return mixed;
 }

 var myArr = new Array(40, 32, 90, 76, 66);
 var rdnArr = shuffleArray(myArr);
 //  or
 myArr = shuffleArray(myArr);

 hth,
 cedric


  Hi
 
  I have one Array with random numbers [40,32,90,76,66]
 
  I need copy of this array but the order should be different and
  random.
  Something like this: [76,90,40,32,66]. How can this be done?
  Thanks for any help.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-13 Thread Johannes Nel
i have not tested it, but in an as3 (or even a flex) project when you use
the fl.motion jobbies you need to extend movieclip (i read it somewhere, but
thinking about it i have used them in uicomponents so... this is prob wrong)
instead of sprite. thinking about it i am wrong most prob about that, but i
def read it on the adobe livedocs in regards to the fl.motion package
jobbies.

On 8/13/07, Ron Wheeler [EMAIL PROTECTED] wrote:

 I do not believe that we have had to extend MovieClip in any application
 so far.
 We tend to treat Movie Clips as a stage where you put things that you
 want rendered rather that a functional object.

 I am not sure that I know the high level theoretical argument but one
 does see a lot of really strange code and problems come through the
 forum from people who have tried to bend a MovieClip into something that
 it really was never intended to be.

 When you are trying to decide what Object to subclass, look at the basic
 tenets of OOP and decide if your new class is really an extension of a
 MovieClip or just a View object that needs a MovieClip to draw on.

 If you just want to draw something on a MovieClip then create an Object
 that has a function/method that gets a MovieClip object as a parameter
 and draws on it. This makes your Object much easier to write and
 understand and  is likely a lot more reusable.

 Ron


 Michael Trim wrote:
  Not all classes have to extend MovieClip (in fact, most shouldn't, and
 
  some would argue none should).
 
  Just as an aside, I'd be interested to hear why some would argue that
  you should never extend MovieClip? (Surely you have to for the Document
  class) or is this a higher level theoretical argument?
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Prevent flash from caching the loaded assets

2007-08-06 Thread Johannes Nel
using openAMF i tested sending back more than 3mb of data at a time to a
as2/flex1.5 client

On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote:

 AS2 for the moment...

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens Ian Thomas
 Verzonden: maandag 6 augustus 2007 21:38
 Aan: flashcoders@chattyfig.figleaf.com
 Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded assets

 Niels,
   Is this AS2 or AS3?

 Ian

 On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote:
  It seems to me that the swf is easy to decompile and the photo also...
 
  We were working on sending an array with amfphp which contains the pixel
  information and use BitmapData setPixel to plot the image.
  But it seems that AMFPHP isn't able to send such a large array
 (800x600pix).
 
  Has anyone done somthing like this before?
 
 
  -Oorspronkelijk bericht-
  Van: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Namens eric e.
 dolecki
  Verzonden: maandag 6 augustus 2007 20:51
  Aan: flashcoders@chattyfig.figleaf.com
  Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded
 assets
 
  http://foo.domain.com/images/imageContainer.swf?e=; + getDate()
 
  all images could be in 1 swf and called out.
 
 
  On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote:
  
   That's a wonderfully neat idea. :-D
  
   Ian
  
   On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote:
If you're able to store the images in SWF format instead of
 something
   like
JPG, you could set up your SWFs so that they're covered with a black
rectangle MovieClip by default and then you flip the _visible
 property
   to
false in your application when you load them in. That way, if people
 try
   to
look at the SWF from the browser's cache, they'll just see a big
 black
rectangle but within your app, the photo is visible.
   
Just a thought.
   
Jack
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to Avoid Terminate Script Message

2007-07-26 Thread Johannes Nel
you change change the timeout of the swf before you make it a projector with
a tool such as flasm

On 7/26/07, Rákos Attila [EMAIL PROTECTED] wrote:


 Split the parsing process into chunks (e.g. parse maximum n nodes in a
 frame). Or if your data is static and will not change (e.g. it is
 distributed on CD-ROM, etc.), convert the XML into an AS source file of
 arrays and objects, and compile it into the main SWF or into a
 separate movie, which can be loaded by the main movie (this eliminates
 parsing at all).

   Attila


 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 From:Jorge Antonio Diaz Gutierrez [EMAIL PROTECTED]
 To:  flashcoders@chattyfig.figleaf.com 
 flashcoders@chattyfig.figleaf.com
 Date:Thursday, July 26, 2007, 8:24:11 PM
 Subject: [Flashcoders] How to Avoid Terminate Script Message

 --===--
 Hello there people:

 I'm creating a projector that parses a XML DataBase but parsing takes
 about 10 seconds, so Terminate Script Windows came up each time I launch
 my app.

 Any suggestion?? Is there any way to set it disabled on my Projector.

 Thanks
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Object Detection AS3

2007-07-19 Thread Johannes Nel

if(myObj.stage)
will give you back if its on the siplay tree otherwise
myObj.parent == parentObj

On 7/19/07, Michael Trim [EMAIL PROTECTED] wrote:


Hi Flashcoders,

Learning AS3 in the deep end at the moment, so excuse the questions if
too newb for this list.

In AS2 I may have done something like the following.

_1___

if(myObject){

myObject.removeMovieClip();

}

this.attachMovie(MyObject,myObject,1);
_


What would similar code look like in AS3? As


_2

removeChild(myObject);
_

fails if myObject doesn't exist yet as does


_3___

if(myObject)
_

Which I don't think you can do anyway?

It's the last one I'm really interested in, how do you detect if
something exists?

Thanks

Michael
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Object Detection AS3

2007-07-19 Thread Johannes Nel

it should be fine, but i come from a background where catching an error is
not considered a sollution.
its an error and you should deal with it, not a very real and potential use
case

On 7/19/07, Sunil Jolly [EMAIL PROTECTED] wrote:


If you use the try, catch method that shouldn't be a problem.

---
try {
removeChild(myObject);
} catch (e:Error) {
//object doesn't exist as a child, do nothing
}
-

That should fail unless myObject has been added to the stage.

Or am I missing something here?

Sunil


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes
Nel
Sent: 19 July 2007 15:40
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Object Detection AS3

the problem with your approach is that if the object does exist but is
not
on the display tree it will fail


On 7/19/07, Sunil Jolly [EMAIL PROTECTED] wrote:


 This works for me:

 -

 var myObject:Object;

 if (myObject) {
 removeChild(myObject);
 }

 ---

 Another method would be to catch the error:

 -

 try {
 removeChild(myObject);
 } catch (e:Error) {
 //do nothing
 }

 --

 Or you can compare it to null:

 --

 if (myObject != null) {
 removeChild(myObject);
 }

 --

 Sunil

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
Michael
 Trim
 Sent: 19 July 2007 13:58
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Object Detection AS3

 Hi Flashcoders,

 Learning AS3 in the deep end at the moment, so excuse the questions if
 too newb for this list.

 In AS2 I may have done something like the following.

 _1___

 if(myObject){

 myObject.removeMovieClip();

 }

 this.attachMovie(MyObject,myObject,1);
 _


 What would similar code look like in AS3? As


 _2

 removeChild(myObject);
 _

 fails if myObject doesn't exist yet as does


 _3___

 if(myObject)
 _

 Which I don't think you can do anyway?

 It's the last one I'm really interested in, how do you detect if
 something exists?

 Thanks

 Michael
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Object Detection AS3

2007-07-19 Thread Johannes Nel

the problem with your approach is that if the object does exist but is not
on the display tree it will fail


On 7/19/07, Sunil Jolly [EMAIL PROTECTED] wrote:



This works for me:

-

var myObject:Object;

if (myObject) {
removeChild(myObject);
}

---

Another method would be to catch the error:

-

try {
removeChild(myObject);
} catch (e:Error) {
//do nothing
}

--

Or you can compare it to null:

--

if (myObject != null) {
removeChild(myObject);
}

--

Sunil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Trim
Sent: 19 July 2007 13:58
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Object Detection AS3

Hi Flashcoders,

Learning AS3 in the deep end at the moment, so excuse the questions if
too newb for this list.

In AS2 I may have done something like the following.

_1___

if(myObject){

myObject.removeMovieClip();

}

this.attachMovie(MyObject,myObject,1);
_


What would similar code look like in AS3? As


_2

removeChild(myObject);
_

fails if myObject doesn't exist yet as does


_3___

if(myObject)
_

Which I don't think you can do anyway?

It's the last one I'm really interested in, how do you detect if
something exists?

Thanks

Michael
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Sending Base64 Encoded Data As XML Data

2007-07-12 Thread Johannes Nel

its simple string concatenation after the base64 encoding, although you
never create a xml object, which makes me wonder why do you not just send
and blob text instead of xml.

On 7/12/07, Paul Steven [EMAIL PROTECTED] wrote:


Thanks for the advice Johannes

Does that mean my code looks ok to you?




 var dataStrEncoded:String=Base64.Encode(ByteLoader.data);

 var XMLString:String;

 XMLString = ?xml version=\1.0\ encoding=\UTF-8\?;
 XMLString += file;
 XMLString += ![CDATA[ + dataStrEncoded + ]];
 XMLString += dataStrEncoded;
 XMLString += /file;

 loader = new URLLoader();
 loader.addEventListener(Event.COMPLETE, xmlLoaded);

 var request:URLRequest = new URLRequest(ScriptPath);

 request.method = URLRequestMethod.POST;

 var variables:URLVariables = new URLVariables()
 variables.xml = XMLString;

 request.data = variables

 loader.load(request);

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Sending Base64 Encoded Data As XML Data

2007-07-11 Thread Johannes Nel

some servers have inbuilt max post size limits (which are mostly alterable),
you could be running into that

On 7/11/07, Paul Steven [EMAIL PROTECTED] wrote:


I would appreciate if anyone can take a look at this code and let me know
if
I am on the right tracks. Basically I am uploading a file to a server by
converting the binary data to Base64 and sending this as xml data.

I am getting an error from the server saying file type is not supported so
I
am wondering if my code is correct especially the bit that creates the xml
data to send.

Thanks in advance


var dataStrEncoded:String=Base64.Encode(ByteLoader.data);

var XMLString:String;

XMLString = ?xml version=\1.0\ encoding=\UTF-8\?;
XMLString += file;
XMLString += ![CDATA[ + dataStrEncoded + ]];
XMLString += dataStrEncoded;
XMLString += /file;

loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, xmlLoaded);

var request:URLRequest = new URLRequest(ScriptPath);

request.method = URLRequestMethod.POST;

var variables:URLVariables = new URLVariables()
variables.xml = XMLString;

request.data = variables

loader.load(request);

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.memorphic.com/news/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Passing Text From Flash To ASP

2007-06-27 Thread Johannes Nel

if its a post a request.form or if its a get a request.querystring

On 6/27/07, vivek [EMAIL PROTECTED] wrote:


Hi,



I was doing some RD on sending data from flash to Access database. Got
one
example on the net, i tried modifying it and it worked. Now the problem is
I
can't pass the text field values of flash to asp.



If I do it statically it works.



set objrecord=objconn.execute(insert into mydbdata(firstName,lastName)
values('john','Miranda')) //ASP code



What should be done to replace 'john' and 'Miranda' with actual values
from
flash text fields?







Thanks  Regards,

Vivek Gaikwad

Flash Accessibility Developer







___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] clicks on flvs with alpha channels

2007-06-15 Thread Johannes Nel

if the video is not streaming you can grab the bitmapdata underneath the
mouse, if it is streaming, well there are workarounds but they are not very
neat

On 6/15/07, kevin dowd [EMAIL PROTECTED] wrote:


Hello,

I am displaying an flv with an alpha channel. ( flash 8 player )

I notice that the onPress event registers across the whole video not
just the visible parts of the video.

Is it possible to only click the visible parts of the video - ie the
bits allowed by the alpha channel?


regards
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FLV Streaming causes browser crash when closing a window

2007-06-12 Thread Johannes Nel

its a problem with a netconnection, either when connnecting or innitial
buffereing. sucks dunnit.

On 6/12/07, Olaf Schmidtmann [EMAIL PROTECTED] wrote:


Hi coders,

we are currently working on a media player for streaming video
playback. The stream comes from a FMS.
Our customers are working with Windows and every time they close the
popup containing the player the browser crashes badly. We could
reproduce this *only* on Windows for IE6, IE7, Firefox 1.5x and
Firefox 2.x.
This does not happen every time but often enough to be annoying
(dependent on the player in one out of five tests). The critical
moment seems to be the time when the stream is buffering before it is
playing the first time. When the clip is running a crash seems to be
less likely (1 out of 15 times). Even if the browser does not crash it
takes a noticably long amount of time for the popup window to close.
We even checked this behavior for other players, e.g. the popular
flash media player (http://www.jeroenwijering.com) and with a simple
test file built with MM components. The results have been the same. In
fact our player seems to be the most stable.

Here are two test pages that open a popup:

flash media player: http://www.rocket54.de/player/test_fmp.php
simple MM component test: http://www.rocket54.de/player/test_comp.php


Using progressive FLV (not streamed) everything works fine – it seems
to be a problem with/when streaming only.

Could this be a problem with the FLVs or the FMS? Does anybody have a
clue on this?

Thanks
Olaf
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FLV Streaming causes browser crash when closing a window

2007-06-12 Thread Johannes Nel

for me its difficult to determine which port it is on as we open connections
on rtmp 1935,443,80 and rtmpt 80 concurrently. it mostly occurs for me when
i try to close a browser where none of connections have succeeded (obviously
if one succeeds all the others get closed).
I have not found a sollution for this, but I have observed it for a fair
while now (doing lots of video stuff)

On 6/12/07, Olaf Schmidtmann [EMAIL PROTECTED] wrote:


Hi Johannes,

this is a little bit vague. Could you be a little more precise?
Right now we have the impression that it has to do with a stream using
port 80. Our streaming server uses the standard port 1935 (rtmp) and
in some configurations port 80 (rtmpt).
Does anybody have any idea?

Cheers
Olaf


On 6/12/07, Johannes Nel [EMAIL PROTECTED] wrote:
 its a problem with a netconnection, either when connnecting or innitial
 buffereing. sucks dunnit.

 On 6/12/07, Olaf Schmidtmann [EMAIL PROTECTED] wrote:
 
  Hi coders,
 
  we are currently working on a media player for streaming video
  playback. The stream comes from a FMS.
  Our customers are working with Windows and every time they close the
  popup containing the player the browser crashes badly. We could
  reproduce this *only* on Windows for IE6, IE7, Firefox 1.5x and
  Firefox 2.x.
  This does not happen every time but often enough to be annoying
  (dependent on the player in one out of five tests). The critical
  moment seems to be the time when the stream is buffering before it is
  playing the first time. When the clip is running a crash seems to be
  less likely (1 out of 15 times). Even if the browser does not crash it
  takes a noticably long amount of time for the popup window to close.
  We even checked this behavior for other players, e.g. the popular
  flash media player (http://www.jeroenwijering.com) and with a simple
  test file built with MM components. The results have been the same. In
  fact our player seems to be the most stable.
 
  Here are two test pages that open a popup:
 
  flash media player: http://www.rocket54.de/player/test_fmp.php
  simple MM component test: http://www.rocket54.de/player/test_comp.php
 
 
  Using progressive FLV (not streamed) everything works fine – it seems
  to be a problem with/when streaming only.
 
  Could this be a problem with the FLVs or the FMS? Does anybody have a
  clue on this?
 
  Thanks
  Olaf
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 j:pn
 http://www.lennel.org
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] IE7 Crashing on FileReference.download()

2007-06-07 Thread Johannes Nel

have you checked to see what happens when she uploads in an html form?

On 6/7/07, Joshua Buhler [EMAIL PROTECTED] wrote:


For 99% of our users, they can download images just fine via
FileReference.download().

However, one user in particular is using IE7, Windows XP, and without
fail, anytime FileReference.download() is called, IE will crash.
Doesn't matter whether it's our site, or other sites that allow
downloads that we've directed her to to test.

Anybody see a similar problem, or have any ideas?

She's using FP 9.0.45

- Josh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Upgrading to Windows Vista

2007-06-04 Thread Johannes Nel

we are having some issues with flex builder's plugin version and eclipse 3.2and
3.3 on vista

On 6/4/07, Paul Steven [EMAIL PROTECTED] wrote:


A client is reporting problems running a flash CDROM (packaged with Zinc)
on
windows vista so I need to upgrade to Windows Vista to enable me to debug
the problem (I am currently on Windows XP Home edition).

Just wanted to know if there are any general problems relating to
upgrading
to Vista I need to be aware of and what version of Vista is recommended.
Also where is the best place to purchase Windows Vista?

Thanks

Paul

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] functions for other classes within a class

2007-05-25 Thread Johannes Nel

use mx.utils.Delegate to assign the function
  this.portfolio.onInit = Delegate.create(this,portfolioOnInit);

On 5/25/07, Giles Roadnight [EMAIL PROTECTED] wrote:


Hi All

I have this code within a class:

class com.tequila.canon.PosterArtist.Controller {

private var portfolio:MovieClip;

public function Controller()
{
trace(Controller constructor:  + this.portfolio);

this.portfolio.addEventListener(onClick,this);

this.portfolio.onInit = this.portfolioOnInit;
}

private function portfolioOnInit():Void
{
trace(onInit:  + this);
this.flipCorner(bottom_right);
}

}

But I get a compile error saying that flipCorner does not exist. It
doesn't
exist in COntroller but it does exist in portfolio.

How do I get around this?

Many Thanks

Giles.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] limits to EI and Local Connection calls

2007-05-23 Thread Johannes Nel

yes, not sure about how much it is (we tested this and i forgot again i
think LC is 30kb or something)

On 5/23/07, Matthew Ganz [EMAIL PROTECTED] wrote:


Is there a KB limit to passing data via an External Interface call? and
for that matter, what about a local connection call?

i couldn't find anything about external interface.

thanks for any helpful tips. -- matt.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Fwd: [Flashcoders] limits to EI and Local Connection calls

2007-05-23 Thread Johannes Nel

my gut instinct on EL would be 1024 bytes as it would call getURL and a url
can only be 1024 bytes

On 5/23/07, Matthew Ganz  [EMAIL PROTECTED] wrote:


 thanks johannes. i couldn't find anything on EI limits but our tests on
LC show the same as you, approximately 40kb.



- Original Message -
 *From:* Johannes Nel [EMAIL PROTECTED]
*To:* Matthew Ganz [EMAIL PROTECTED] ;
flashcoders@chattyfig.figleaf.com
*Sent:* Wednesday, May 23, 2007 12:12 PM
*Subject:* Re: [Flashcoders] limits to EI and Local Connection calls

yes, not sure about how much it is (we tested this and i forgot again i
think LC is 30kb or something)

On 5/23/07, Matthew Ganz  [EMAIL PROTECTED] wrote:

 Is there a KB limit to passing data via an External Interface call? and
 for that matter, what about a local connection call?

 i couldn't find anything about external interface.

 thanks for any helpful tips. -- matt.
 ___
 Flashcoders@chattyfig.figleaf.com [EMAIL PROTECTED]
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.lennel.org





--
j:pn
http://www.lennel.org


--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to check if a URL is invalid?

2007-05-23 Thread Johannes Nel

as a side note. killing the stream (or calling stop) does not halt the
progressive download. you have to pass it a url that def does not exist.

On 5/23/07, Bob Wohl [EMAIL PROTECTED] wrote:


Hi Bruce,

So you're getting a path to the flv file via xml, correct?

you could create a video object, connect a netstream of the flv  and on
success kill the stream telling your function handler to load up the
component with the path to the url. With proper use of buffer time, this
route would be pretty close to weightless.


B.


On 5/23/07, Bruce Drummond [EMAIL PROTECTED] wrote:

 Hi,

 I have a Video Player application using the FLVPlayback component.
 I've already built the entire thing so building a custom video player
 component is out of the question.
 I want to build in an error handling capability, that will check a
 URL's validity before setting it as the FLVPlayback components
 contentPath. The URL is pulled out of an XML file. I'm trying to do
 this to avoid the component become unresponsive when an invalid URL
 is passed to it. It's recommended to use try-catch-finally but I just
 can't get anything to work. I'm getting very frustrated.
 Appreciate any help. Let me know if you need more information.

 Thanks,
 Bruce.

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and xpath

2007-05-17 Thread Johannes Nel

set it as html text

On 5/17/07, Jason Law [EMAIL PROTECTED] wrote:


I'm still getting the value returned as amp;. I'm starting to pull my
hair out cause of this. Could there be any other reason why this is
occurring? When I look at the file being loaded in from the output as a var
I see that even in there the ampersand is being shown as amp;.


-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Kerem Iseri
Sent: Wednesday, May 16, 2007 5:55 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flash and xpath

Use CDATA for that node inside the XML to make flash recognise everything
you write inside CDATA as html text.
You can even use  font size=12 color='#171717'/font or br for new
line
etc.

For example ..

item![CDATA[Field  Stream]]/item

Kerem İŞERİ
Trafo Intractive
www.trafo.com.tr



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Law
Sent: Wednesday, May 16, 2007 11:38 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] flash and xpath

Ok, so I was able to get it to work, but now I'm coming across another
issue.

I'm loading in xml using the old new XML() object and using xpath to
parse. One of the fields I have looks like this. itemField 
Stream/item. The issue is that the value I'm getting back from xpath
is Field amp; Stream and not Field  Stream.

The textfield that is being used to display is not showing the text as
html and fontEmbed is false. Is there anything that I could do to fix
this?

Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes
Nel
Sent: Wednesday, May 16, 2007 12:45 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] flash and xpath

it seems you want to get the text value of a node. try this


var item:String = XPathAPI.selectSingleNode(doc.firstChild,
/html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']/text()
)toString();


notice the text()

On 5/16/07, Jason Law [EMAIL PROTECTED] wrote:

 I'm wondering if this is possible within flash 8 using the xpath api
to
 do something like this.



 var item:String = XPathAPI.selectSingleNode(doc.firstChild,
 /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign'][2]
 ).firstChild.toString();



 now I know this works



 var item:String = XPathAPI.selectSingleNode(doc.firstChild,
 /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']
 ).firstChild.toString();



 but it seems that when you add any kind of nodeItem to the end of an
 item flash returns undefined.





 jason law, detroit

 organic, inc. | www.organic.com http://www.organic.com/
 retail tech lead | interface engineer
 e: [EMAIL PROTECTED] | p: 248.454.3387 | aim: jaylaw81






 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 This email is intended only for the person or entity to which it is
 addressed
 and may contain information that is privileged, confidential or
otherwise
 protected from disclosure. Dissemination, distribution or copying of
this
 email or the information herein by anyone other than the intended
 recipient,
 or an employee or agent responsible for delivering the message to the
 intended
 recipient, is prohibited. If you have received this email in error,
please
 immediately notify us by calling our Help Desk at (415) 581-5552 or
 by e-mailing us at [EMAIL PROTECTED]

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This email is intended only for the person or entity to which it is
addressed
and may contain information that is privileged, confidential or otherwise
protected from disclosure. Dissemination, distribution or copying of this
email or the information herein by anyone other than the intended
recipient,
or an employee or agent responsible for delivering the message to the
intended
recipient, is prohibited. If you have received this email in error, please
immediately notify us by calling our Help Desk at (415) 581-5552 or
by e-mailing us at [EMAIL PROTECTED]

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you

Re: [Flashcoders] flash and xpath

2007-05-16 Thread Johannes Nel

it seems you want to get the text value of a node. try this


var item:String = XPathAPI.selectSingleNode(doc.firstChild,
/html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']/text()
)toString();


notice the text()

On 5/16/07, Jason Law [EMAIL PROTECTED] wrote:


I'm wondering if this is possible within flash 8 using the xpath api to
do something like this.



var item:String = XPathAPI.selectSingleNode(doc.firstChild,
/html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign'][2]
).firstChild.toString();



now I know this works



var item:String = XPathAPI.selectSingleNode(doc.firstChild,
/html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']
).firstChild.toString();



but it seems that when you add any kind of nodeItem to the end of an
item flash returns undefined.





jason law, detroit

organic, inc. | www.organic.com http://www.organic.com/
retail tech lead | interface engineer
e: [EMAIL PROTECTED] | p: 248.454.3387 | aim: jaylaw81






- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This email is intended only for the person or entity to which it is
addressed
and may contain information that is privileged, confidential or otherwise
protected from disclosure. Dissemination, distribution or copying of this
email or the information herein by anyone other than the intended
recipient,
or an employee or agent responsible for delivering the message to the
intended
recipient, is prohibited. If you have received this email in error, please
immediately notify us by calling our Help Desk at (415) 581-5552 or
by e-mailing us at [EMAIL PROTECTED]

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Slow-Running Script alert

2007-05-11 Thread Johannes Nel

using flasm you can do that with all movies from player 7 upwards, but from
a user experience point of view its not nice

On 5/10/07, Jobe Makar [EMAIL PROTECTED] wrote:


Hi,

If a script takes more than 15 seconds to complete then you get that
error.
AS3/Flash 9 player allows you to modify that value.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message -
From: Marc Hoffman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 10, 2007 8:34 PM
Subject: [Flashcoders] Slow-Running Script alert


I have a complex web site that does some early xml loading as well as
loading another movie (an intro) in a higher level. On rare occasions,
I'm
getting the alert about a slow-running script in Flash, which freezes the
movie. Clicking yes to abort the script, then refreshing the page,
solves
the problem for that instance. By the way, this can happen even after a
successful loading of the movie, so it's NOT an issue of something not
being cached.

 I've tried a lot of restructuring of how things load, and the problem
now
 occurs less frequently, but it's still happening.

 Does anyone know exactly what that alert means? Is it ALWAYS a looping
 script, for instance? What other things might cause it? This is a tough
 one to troubleshoot.

 The problem is recently occurring in Win I.E. 7, but has been known to
 happen in FireFox 1.5 and in other browsers.

 thanks,
 Marc


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Customized shape of flash player

2007-05-11 Thread Johannes Nel

wmode=transparent

On 5/11/07, Waseem Shahzad [EMAIL PROTECTED] wrote:


How we can make a customized shape of flash player in the internet
explorer.
Not using masking. I want the flash player are show in the irregular shape
not in the rectangular shape of any size.
Please help.
Thanx in advance.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] if(color == X) {} looking for method.

2007-05-10 Thread Johannes Nel

you can test for colour by taking a bitmap data snapshot and using getPixel
or getPixel32 on it.

On 5/10/07, Danny Kodicek [EMAIL PROTECTED] wrote:


 ...I am wanting to run a color of instance test.   I am
 wondering if I can do this?

 attachMovie(shapes,shapes,num);

 if( shapes /*color*/  == 0x33){
   // action(s)
 }

 // this is sudo code but basically I want to know if I can
 test for color.

A library symbol doesn't have a colour - what exactly are you trying to
do?

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 8 OSX - Classpath woes SOLVED

2007-05-06 Thread Johannes Nel

no side effects apart from a slower compile time

On 5/6/07, Steven Sacks [EMAIL PROTECTED] wrote:


Hey all.  Well, it was an ASO issue.  I had to clear the ASO on my
Windows box, then create my MXP, then bring it over to my Mac box, clear
the ASO and then it worked from then on.  I'm hoping that people don't
run into this issue if they install my MXP.

Are there any negative effects that arise from deleting ASO files?  If
not, I could delete the ASO files with my JSFL panel easily enough.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using a flex2 swc in Flash CS3

2007-05-03 Thread Johannes Nel

we took our source and just compiled the swc in the flash ide. so now we
have a swc for flex and one for flash :(

On 5/1/07, Mike Mountain [EMAIL PROTECTED] wrote:


How do I go about using a flex 2 SWC library in Flash CS3? I tried
dropping
it into the components directory but no joy

Anyone help?

Cheers

M
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Any good XML api out there?

2007-05-03 Thread Johannes Nel

xpath statement to get all the artist names ./root/track/artist/text()

On 5/3/07, Johan Nyberg [EMAIL PROTECTED] wrote:


Hi, what I need is basically a class that puts all the data in an
associative array, or numeric, depending on if I'm storing values for
individual nodes, or a mothernode.

Now I find there is a lot of looping going on every time I have to parse
a XML, and XPath seems more like the thing you want to use if you're
looking for specific data inside the XML - I just want to put all the
data in an Array or Object...

For example:
root

track
name/name
artist/artist
/track

track
name/name
artist/artist
/track

/root

I would like it like this: root[track[n][artist]]

Regards,

/Johan

--
Johan Nyberg

Web Guide Partner
Sergels Torg 12, 8 tr
111 57 Stockholm
070 - 407 83 00

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Basic class for swf-question

2007-04-23 Thread Johannes Nel

hi

this works for specifying a class to be associated with root:
[code]
import memorphic.as2.ummyProject.Application
this.__proto__ = Application.prototype
Application.apply(this,null)
[/code]

old hack, still a hack but works
johan

On 4/23/07, Muzak [EMAIL PROTECTED] wrote:


In FCS 3 you'll be able to specify a class for the _root of an swf.
In Flash 8 and previous Flash versions there's no such option.

One way to deal with this is the MTASC-way (code taken from
http://www.mtasc.org/#usage)

class Tuto {
static var app : Tuto;
function Tuto() {
// creates a 'tf' TextField size 800x600 at pos 0,0
_root.createTextField(tf,0,0,0,800,600);
// write some text into it
_root.tf.text = Hello world !;
}
// entry point
static function main(mc) {
app = new Tuto();
}
}

When compiling with MTASC you can then specify the name of your main
class (Tuto.as) and which method to call on the class -- in
this case main()

mtasc -swf tuto.swf -main -header 800:600:20 Tuto.as

So what it does when you compile is invoke: Tuto.main();

The code looks a bit odd though, since main() seems to accept an argument
(mc) but it doesn't seem to get used and the constructor
simply uses _root as the target (which IMO isn't a good idea).


Without MTASC you could do the following:

class Tuto {
static var app : Tuto;
private static var target:MovieClip;

function Tuto() {
// creates a 'tf' TextField size 800x600 at pos 0,0
target.createTextField(tf,0,0,0,800,600);
// write some text into it
target.tf.text = Hello world !;
}
// entry point
static function main(mc:MovieClip) {
target = mc;
app = new Tuto();
}
}

And in the main timeline you'd call:

Tuto.main(this);

On top of that, when not using MTASC, you can simply dump the static
method entry point and use the new keyword

class App{
private var target:MovieClip;

function App(mc:MovieClip) {
target = mc;
target.createTextField(tf,0,0,0,800,600);
target.tf.text = Hello world !;
}
}

And in the main timeline:

var app:App = new App(this);

Ofcourse, to actually create a whole application, you'd do something else
in the class constructor instead of simply creating a
TextField.

Then there's the ARP way of doing things - which is what I use ;-)
http://osflash.org/arp/

Instead of using the main timeline as the root of your application, you
create a movieclip with a class assigned to it and place
it on stage.
This MovieClip+Class is usually called Application.
The rest of the flash app goes inside the Application MovieClip. By
placing the Application movieclip on stage, you don't have to
call anything from the main timeline to start the app.
This is very similar to creating a Flash Form Application fla by the
way, except that you're not forced to use the v2 Framework
(mx.screens.Form).
But the overall idea is the same: you create a tree-structure with the
Application Class/MovieClip as the main timeline and the
Application takes care of which child movieclip is shown/hidden.

regards,
Muzak

- Original Message -
From: Johan Nyberg [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 23, 2007 2:09 PM
Subject: [Flashcoders] Basic class for swf-question


 Hi, just wanted to know if there is a best practice when creating a
class for the mother movie (i.e. the flash-movie itself). Is
 this the way to go?

 var mother:MyFabFlashApp = new MyFabFlashApp();

 ..or is there a better way? Seems kind of a stupid question, but I
wanted to put it anyway in case I've missed something. ;-) I've
 put my main code on the first frame of the _root timeline for too long,
and want to move it into a class.


 Regards,

 /Johan

 --
 Johan Nyberg


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Make page ads refresh on Flash click events

2007-04-13 Thread Johannes Nel

its been replaced by FABridge

On 4/13/07, Alias™ [EMAIL PROTECTED] wrote:


Check out the Flash/Javascript integration kit.
http://weblogs.macromedia.com/flashjavascript/

HTH,
Alias

On 13/04/07, Marlon Harrison [EMAIL PROTECTED] wrote:
 I'm working on a flash app that will be embedded in a page that hold
three
 ad units.  The flash app holds alot of content so its been requested
that I
 set it up t to refresh the three ad units when a user clicks to a
different
 section of the app.  I've been googling this but haven't come up with a
good
 solution.  Has anyone come across this before? Is there some javascript
that
 I can ask to have included in the page that works across major browsers
that
 can accomplish this?
 ___
 [EMAIL PROTECTED]
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
[EMAIL PROTECTED]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
[EMAIL PROTECTED]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] You Tube + Progressive download of flvs

2007-04-10 Thread Johannes Nel

 Streaming would require the use of a
streaming server
http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two

from a cost perspective this is VERY
prohibitive.
http://code.google.com/p/haxevideo/
http://www.osflash.org/red5



On 4/10/07, [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote:


As far as I'm aware it's progressive. Streaming would require the use of a

streaming server and even from a cost perspective this is VERY
prohibitive.

FC

 Hi All



 Can any one tell me what YouTube is using for playing the flv's?
 Progressive download or Video Streaming.



 Regards

 Sumeet Kumar





 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] You Tube + Progressive download of flvs

2007-04-10 Thread Johannes Nel

', Google Video uses streaming.'
they use pseudo streaming. check the link i posted before.

On 4/10/07, Cay Garrido H. [EMAIL PROTECTED] wrote:


Its progressive download, Google Video uses streaming... You can check
it by jumping forward to a certain point in an unloaded clip and check
if it loads from the start of the video till that point, or if it loads
from that point on... the latter is streaming ;)

How YouTube is handling the large traffic with progressive download?
I think you should read a bit more about what the differences are between
progressive download and streaming, I think you'll get it then... ;)

Cheers,

Cay

Sumeet Kumar escribió:
 Hi All



 Can any one tell me what YouTube is using for playing the flv's?
 Progressive download or Video Streaming.



 Regards

 Sumeet Kumar





 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] You Tube + Progressive download of flvs

2007-04-10 Thread Johannes Nel

they have a lot of servers and tons of bandwidth. progresive is just a
normal http transfer. stefan richter (www.flashcomguru.com) also pointed out
to me a while a go how to terminate an exisiting http download (you tell the
netstream to load a file that does not exisist and handle your netstream not
found error)

On 4/10/07, Sumeet Kumar [EMAIL PROTECTED] wrote:


Any reference from where I can read this difference in detail.

-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Cay Garrido H.
Sent: Tuesday, April 10, 2007 5:47 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] You Tube + Progressive download of flvs

Its progressive download, Google Video uses streaming... You can check
it by jumping forward to a certain point in an unloaded clip and check
if it loads from the start of the video till that point, or if it loads
from that point on... the latter is streaming ;)

How YouTube is handling the large traffic with progressive download?
I think you should read a bit more about what the differences are between
progressive download and streaming, I think you'll get it then... ;)

Cheers,

Cay

Sumeet Kumar escribió:
 Hi All



 Can any one tell me what YouTube is using for playing the flv's?
 Progressive download or Video Streaming.



 Regards

 Sumeet Kumar





 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Video delivery process ...

2007-04-04 Thread Johannes Nel

a normal GET should do the trick as the caching is done with the browser.

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


Hi,How do I preload video when the target player is 7?.The delivery
technique I'm using is progressive download.Should I be using a proxy SWF
to load an external FLV (because the Video class in Flash doesn't have
anyway of polling the size of an external FLV, or how much of that FLV is
loaded - unless I'm missing
something).Thanks.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] The great CS3 Swindle

2007-03-29 Thread Johannes Nel

does this apply if you bought studio 8 as well in the last 2 weeks :s

On 3/29/07, Joe Wheeler [EMAIL PROTECTED] wrote:


Unfortunately you can't update a European licence with a US update so I'd
have to transfer my existing licences to the US. I'm actually moving to
the
states in a few months so I'll just have to wait for a bit.

However there is one interesting thing I found out. Apparently Adobe will
be
offering a FREE update to CS3 for anyone that buys CS2 from now until CS3
is
available...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: 29 March 2007 02:46
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] The great CS3 Swindle



Hi Joe,  do you have friends in the US? someone with an address, you just
buy the programs in the US with your credit card and then your friends can
send this to you using dhl , fedex or ups, sounds logic?
I used to do that several times buying programs when I was living in
Ecuador, South America..or you can just go on vacation and shopping
Spree!!!

heheheh!

Regards


Gustavo Duenas


When I was living in the
On Mar 28, 2007, at 10:27 AM, Joe Wheeler wrote:

 Has anyone checked out the international prices on CS3?

 I can hardly believe how badly the UK is getting fleeced.

 I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design
 Premium. In the US that's $599.00 dollars, but in the UK pounds it
 works out to £703.82.
 Take the exchange rate into account and UK customers are paying...


 1,384.51 USD!!!

 Sales tax in the UK is 17.5% but the Adobe price hike is a whopping
 231% - W T F?

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] The great CS3 Swindle

2007-03-29 Thread Johannes Nel

the problem is that when you use your uk credit card you cannot buy from the
us store, so unless you have a us cc you be fooked.

On 3/29/07, Glen Pike [EMAIL PROTECTED] wrote:



 (My suspicion is that it's due to decisionmaking being both at the
 central and at the regional level... I think each region is
 responsible for its own prices and these are shaped, but not dictated,
 by the main office, so there's no single owner of pricing worldwide...
 that's just my best current guess of why I haven't been able to gain
 traction in getting this documented, though.)
Being as many of the people buying these products are above average
intelligence, they are soon going to work out that it is cheaper to buy
in USD or whatever currency suits them.  As many bank accounts now only
make small charges on transactions made in foreign currencies, maybe
regional offices are going to start taking a hit on their sales if
people shop elsewhere. Maybe they will then start fighting a bit more
for the consumer in their countries in order to sort out the price
disparity.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Entering hex number (a color) as component parameter

2007-03-22 Thread Johannes Nel

listen to that! the v2 components are sheet in flash unfortunately when
compared to flex 1.5. if however you are hell bent on using the v2
framework, invalidate will be the thing to use, i would (residual memory
kicking in) still have your own init flag.


On 3/22/07, Muzak [EMAIL PROTECTED] wrote:


That is if you're extending UIComponent, which 99.9% of the time I don't
;)

regards,
Muzak

- Original Message -
From: Alexander Farber [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 22, 2007 9:04 AM
Subject: Re: [Flashcoders] Entering hex number (a color) as component
parameter


 Looks wrong to me because the drawing code (the setBgColor())
 is called outside of the draw() method. Flash Help says to call
 invalidate() from the set methods instead...



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Entering hex number (a color) as component parameter

2007-03-21 Thread Johannes Nel

he checks if the component is init'd

On 3/21/07, Alexander Farber [EMAIL PROTECTED] wrote:


Thank you and sorry - I've missed the Color type in Flash help.

But what is the role of __hasInitialized in your example? Why can't I
just:

[Inspectable(defaultValue=#66,type=Color)]
public function get bgcolor():Number {
return __bgcolor;
}

public function set bgcolor(val:Number):Void {
__bgcolor = val;
invalidate();
}

(full source code in Bubble.* files @ http://preferans.de/flash/ )?

On 3/20/07, Muzak [EMAIL PROTECTED] wrote:
 [Inspectable(defaultValue=#66,type=Color)]
  public var bgcolor:Number = 0x66;

 You might be better off using a getter/setter since you will have to
redraw the rect_mc each time the color changes.


 private var rect_mc:MovieClip;
 private var __bgColor:Number = 0x66;
 private var __hasInitialized:Boolean = false;

 private function draw() {
 setBgColor();
 __hasInitialized = true;
 }

 private function setBgColor():Void {
 // draw stuff, using __bgColor
 rect_mc.clear();
 rect_mc.beginFill(__bgColor);
 // etc..
 rect_mc.endFill();
 }

 [Inspectable(defaultValue=#66,type=Color)]
 public function get bgColor():Number {
 return __bgColor;
 }
 public function set bgColor(val:Number):Void {
 __bgColor = val;
 if(__hasInitialized) setBgColor();
 }

Regards
Alex
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Entering hex number (a color) as component parameter

2007-03-20 Thread Johannes Nel

[Style(name=myName, type=uint, format=Color)]

On 3/20/07, Alexander Farber [EMAIL PROTECTED] wrote:


Hello flash coders,

I have a mostly working component (please see Bubble.*
in http://preferans.de/flash/ ), but wonder how to make
the background color to be a parameter. Currently I have:

class Bubble extends UIComponent
{
[Inspectable(defaultValue=0x66, type='Number')]
private var bgcolor:Number = 0x66;

private function draw():Void {
super.draw();

// draw a yellow rectangle: w x h
rect_mc.clear();
rect_mc.beginFill(bgcolor);
rect_mc.moveTo(0, 0);
rect_mc.lineTo(w, 0);
rect_mc.lineTo(w, h);
rect_mc.lineTo(0, h);
rect_mc.lineTo(0, 0);
rect_mc.endFill();


- but the component inspector (Alt-F7) won't allow me to enter
hexadecimal values like 0xFF into the bgcolor field. Only
decimal values will work (which is a bit awkward to use for colors).

How could I circumvent this? Use string?

Regards
Alex


--
http://preferans.de
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Entering hex number (a color) as component parameter

2007-03-20 Thread Johannes Nel

yes. i got confused for a second with the list. only when you posted your
code and i started writing a reply about the stylechanged method and
updatedisplaylist did i notice the flashcoders label :s

On 3/20/07, Muzak [EMAIL PROTECTED] wrote:


That's AS3 ;-)

- Original Message -
From: Johannes Nel [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 20, 2007 12:55 PM
Subject: Re: [Flashcoders] Entering hex number (a color) as component
parameter


 [Style(name=myName, type=uint, format=Color)]



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Order of events for function call

2007-03-14 Thread Johannes Nel

i understand that its a example, but using an enterframe beacon rather than
multiple enterframe handlers is better and might make this kind of thing
much easier to manage

On 3/14/07, Paul Steven [EMAIL PROTECTED] wrote:


This may be really basic but I can't understand.

The following is a simplified version of what I am trying to achieve.

Basically I am attaching an onEnterFrame function to 2 objects, say
object1
and object2.

I am attaching it to object1 first however it is calling the onEnterFrame
function for object2 first.

I would appreciate any advice on why this is happening.

When I test the movie, the Object2 enter frame trace is displaying
first.

Here is the code for my simplified test file:

object1 = attachMovie(ball_mc,ball_mc,1);
object2 = attachMovie(ball_mc,ball_mc2,2);

object1.onEnterFrame = function() {

trace (Object1 enter frame);

}

object2.onEnterFrame = function() {

trace (Object2 enter frame);

}

Many thanks

Paul

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Inspectable parameters ignored in my 1st component

2007-03-14 Thread Johannes Nel

[Inspectable(defaultValue=8, type=Number)]

On 3/14/07, Alexander Farber [EMAIL PROTECTED] wrote:


Hello Flash coders,

I'm trying to create a component representing a comic-like
chat bubble and while it mostly functions fine,
I have a problem, that the 2 parameters here are ignored
(full source code: http://preferans.de/flash/Bubble.as ):

class Bubble extends UIComponent {
...
private var __padding:Number = 8;
public var text_txt:TextField;
...
private function createChildren():Void {
...
text_txt = this.createTextField('text_txt',
this.getNextHighestDepth(), 0, 0, 200, 20);
with (text_txt) {
multiline = true;
autoSize = true;
//text = 'Only this works as default?';
}
size();
}
...
[Inspectable(defaultValue=8)]
function set padding(val:Number):Void {
__padding = val;
text_txt._x = text_txt._y = __padding / 2;
invalidate();
}

function get padding():Number {
return __padding;
}

[Inspectable(defaultValue='Set in Bubble.as')]
function set text(str:String):Void {
text_txt.text = str;

if (interval != 0)
clearInterval(interval);
interval = setInterval(this, 'hide', timeout * 1000);

_visible = true;
invalidate();
}

function get text():String {
return text_txt.text;
}
}

What I mean by ignored is that regardless of which
values  I enter into the Component Inspector (Alt+F7)
for padding and text - only the values from Bubble.as
will be taken (please see above):

private var __padding:Number = 8;

//text = 'Only this works as default?';

Does anybody have an idea what am I doing wrong here?
All files are at http://preferans.de/flash/  Thank you.

Regards
Alex
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Anyone hate flash 9 already?

2007-02-13 Thread Johannes Nel

drugs help

On 2/13/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:


BTW. I dont know why I hate things. For example I hate my parents and I
dont
know why.

On 2/13/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:

 I guess I just tired of it. I m wrong perhaps. I m tired of coding for
 sure. I m more designer/composer and I code my games just cuz who else
do
 it.

 On 2/13/07, Paul Andrews [EMAIL PROTECTED]  wrote:
 
  Well you have some reason and you don't mind asking others questions,
so
 
  we'd like to know what it is that is making you think like that!
 
  Is it that you're getting fed up of flash in general, or what is it
  specifically about flash 9 that irritates you?
 
  If people hate something they generally know why.
 
  Paul
 
  - Original Message -
  From: Arseniy Shklyaev [EMAIL PROTECTED] 
  To: Flashcoders mailing list  flashcoders@chattyfig.figleaf.com
  Sent: Tuesday, February 13, 2007 11:07 AM
  Subject: Re: [Flashcoders] Anyone hate flash 9 already?
 
 
  Why to be specific in such a question?
  I just dont like flash more and more. Intuitive feel.
  Perhaps cuz I do only games...
 
  On 2/13/07, Alias™ [EMAIL PROTECTED] wrote:
  
   Could you be more specific as to why one might do so?
  
   Curious,
   Alias
  
   On 13/02/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:
Anyone hate flash 9 already?
   
--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 
 
  --
  -Arseniy Shklyaev
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 -Arseniy Shklyaev




--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Anyone hate flash 9 already?

2007-02-13 Thread Johannes Nel

for depression. it might make you like something again

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


drugs help

On 2/13/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:

 BTW. I dont know why I hate things. For example I hate my parents and I
 dont
 know why.

 On 2/13/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:
 
  I guess I just tired of it. I m wrong perhaps. I m tired of coding for

  sure. I m more designer/composer and I code my games just cuz who else
 do
  it.
 
  On 2/13/07, Paul Andrews [EMAIL PROTECTED]  wrote:
  
   Well you have some reason and you don't mind asking others
 questions, so
  
   we'd like to know what it is that is making you think like that!
  
   Is it that you're getting fed up of flash in general, or what is it
   specifically about flash 9 that irritates you?
  
   If people hate something they generally know why.
  
   Paul
  
   - Original Message -
   From: Arseniy Shklyaev [EMAIL PROTECTED] 
   To: Flashcoders mailing list  flashcoders@chattyfig.figleaf.com
   Sent: Tuesday, February 13, 2007 11:07 AM
   Subject: Re: [Flashcoders] Anyone hate flash 9 already?
  
  
   Why to be specific in such a question?
   I just dont like flash more and more. Intuitive feel.
   Perhaps cuz I do only games...
  
   On 2/13/07, Alias™ [EMAIL PROTECTED] wrote:
   
Could you be more specific as to why one might do so?
   
Curious,
Alias
   
On 13/02/07, Arseniy Shklyaev  [EMAIL PROTECTED] wrote:
 Anyone hate flash 9 already?

 --
 -Arseniy Shklyaev
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
  
  
  
   --
   -Arseniy Shklyaev
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 
 
  --
  -Arseniy Shklyaev




 --
 -Arseniy Shklyaev
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.lennel.org





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Seeking in a Progressively Downloaded FLV - Return of

2007-02-07 Thread Johannes Nel

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

have you looked at red5?

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


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

Thanks,

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Iterate over all movieclips in a timeline

2006-10-09 Thread Johannes Nel

this will only do the current frame, you cannot do the entire timeline
(well you can in jsfl :) )

On 10/9/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


 I feel a bit boneheaded asking this... is there any way of iterating
 over all movie clips in a timeline?

for (var a in this) {
if (this[a] instanceof MovieClip) {
trace(this[a]._name);
}
}

BLITZ | Steven Sacks - 310-551-0200 x209

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] when classes die...

2006-10-03 Thread Johannes Nel

for movieclips i tend to override removemovieclip myself. just a personal
pref i suppose :)

On 10/3/06, Mike Keesey [EMAIL PROTECTED] wrote:


The term is a destructor; and, no, ActionScript doesn't have
destructors, only constructors. The closest it comes is
MovieClip.onUnload()--if your class is a subclass of MovieClip, then you
can just override that. If not, one common practice is to make a
function called destroy():

public function destroy():Void {
// Perform clean-up.
delete this;
}

Then replace all instances of delete instanceOfYourClass; with
instanceOfYourClass.destroy().

―
Mike Keesey

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of grimmwerks
 Sent: Monday, October 02, 2006 6:34 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] when classes die...

 Ok, I've got an app that uses a static variable; I've got 'templates'
 that use x instances of this class.

 When the user loads in a new template when a previous template has
 already existed, I get some 'leftover' variables.

 Is there a function that is called when a class is 'killed', ie the
 opposite of when a class is birthed with 'new'?

 --
 ---[ http://www.grimmwerks.com
 ---[ [EMAIL PROTECTED]
 ---[ [EMAIL PROTECTED]
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] when classes die...

2006-10-03 Thread Johannes Nel

onUnload is a better way to do it, make no mistake, it gets called a lot
more consistantly - i do agree with that completly.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] when classes die...

2006-10-03 Thread Johannes Nel

now i remember why i did removemovieclip instead of onUnload... sorry been
doing flex for a loong time...
if the parent is removed onUnload does not fire, with overriding
removemovieclip i could pick up all the child clips and call removemovieclip
on them allowing me to clean up bottom up and remove event listeners.

On 10/3/06, Johannes Nel [EMAIL PROTECTED] wrote:


onUnload is a better way to do it, make no mistake, it gets called a lot
more consistantly - i do agree with that completly.





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] opening flex projects in flash?

2006-09-28 Thread Johannes Nel

won't help as the flex components are differnet from the flash ones.

On 9/28/06, Arul Prasad M L [EMAIL PROTECTED] wrote:


flex compiler (mxmlc) has an option that would let you 'keep' the
generated
AS files. if thats what would interest you?

check out the docs for keep-generated-actionscript
~Arul Prasad.


On 9/28/06, til [EMAIL PROTECTED] wrote:

 Is it possible to convert Flex files into flash? I assume so... but no
 clue, never worked with Flex.

 ~Til
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Event bubbling in Flash like in Flex

2006-09-28 Thread Johannes Nel

personally i use a different mechanism, but this one by ralf bokelberg is
good
http://www.helpqlodhelp.com/blog/archives/000144.html

On 9/28/06, Van De Velde Hans [EMAIL PROTECTED] wrote:


Hi list,

a question that's in my mind since for a little while now :

how can you get event bubbling (cfr. Flex) in Flash?

I have a menu with nested bullet-movieclips.
A click on a bullet dispatches an event and my menu does not automatically
forward that event to the listeners on the menu
(sample : http://www.novio.be/downloads/showReel/showReel.zip)

 What I usually do is add an event handler at the level of the menu and
then
re-dispatch the event in that handler. This is a bit silly indeed, but how
to do better?

Thanks,
Hans.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Event bubbling in Flash like in Flex

2006-09-28 Thread Johannes Nel

but this is as2.

On 9/28/06, Merrill, Jason [EMAIL PROTECTED] wrote:


I've updated the sample with the static function initializeBubbling
in a separate class  all is well !

Actionscript 3.0 will have event bubbling.  Just FYI, not to burst your
bubble.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Implicit setters and exceptions in AS2.0

2006-09-28 Thread Johannes Nel

exceptions in async functions cause all sorts of conundrums at times. make
certain you have a strategy for handling that use case

On 9/28/06, David Bellerive [EMAIL PROTECTED] wrote:


Last week, I sent a message to the FlashCoders list
asking if validating the values passed to setter
methods (in custom classes) was a good practice.

After reading on how exceptions work in Java, here's
the solution I've decided to use in my setter methods
in AS2.0.

If the client (the programmer using my custom class)
breaks his part of the contract by supplying my setter
method with an illegal value, I display an alert in
the output window using the trace statement and abort
the implicit setter method without assigning the
illegal value that was passed to the method.

On the other hand, if the implicit setter method is
the one breaking the contract (it can't complete it's
task for whatever reason), I throw and exception.

I've decided to use this method because AS2.0 doesn't
support checked and unchecked exceptions like Java. In
AS2.0, all exceptions are unchecked, meaning the
client isn't forced to catch any exceptions. But when
an exception goes uncaught, the function call stack
completely aborts.

So, using this method, when the client is responsible
for breaking the contract (like passing an illegal
value to the setter method), he is alerted via the
output window in the Flash IDE. This way, he isn't
forced to respond to low-risk errors and the
function call stack won't abort under any
circumstance. However, the client cannot react to this
error at runtime.

However, when the setter method is the one responsible
for breaking the contract, an exception is thrown and
the client has to catch it to prevent the function
call stack from aborting completely. If the client
doesn't catch the exception, the function call stack
is emptied and the program probably won't work as
expected. However, if the exception is caught (and it
should), the client has the possibilty to react to it
at runtime.

In conclusion, when the error comes from the client
only alert the client. When the error comes from the
method, throw an exception.

Any thoughts or comments on this ?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Invert coded mask?

2006-09-21 Thread Johannes Nel

so you did this

a.setMask(b).

now go
a.setMask(null)
b.setMask(a)

no?

On 9/21/06, Ellen Sundh [EMAIL PROTECTED] wrote:


Hi!

I created a mask with setMask to mask another movieclip. I wonder if it
is possible with code to invert that mask? So instead of having a circle
as a mask, that circle becomes a hole in a square. Like punchhole style.

Thanks in advance!

Ellen

--
Ellen Sundh
Flash Developer

Great Works
. . . . . . . .  . . . .
Mobile: +46 73 200 40 73
Office: +46 8 528 077 76
Sveavägen 66
111 34 Stockholm
  /|_
,'  .\
,--'_,'
   /   /
  (   -.  |
  | ) |
 (`-.  '--.)
  `. )' Mjau..


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] extending built-in classes and scope

2006-09-17 Thread Johannes Nel

if you are extending the xml classes to get search capability look at
www.xfactorstudio.com 's xpath implementation

On 9/16/06, dc [EMAIL PROTECTED] wrote:


hi list -

I am trying to add some functions to built in classes.

Q1) Using the prototype syntax. Is this an AS1 method, is there a
better way to do this with AS2?

Q2) this works within my main movie script.
however, when i try to use the extended XML object within my own
classes, the compiler fails with a no such method error.

is there a scoping issue, or somehow i have to redefine the XML object
prototype within my own class, Again?

 main timeline this is OK:

XMLNode.prototype.findFirstNode = function (searchName) {
trace(searching for:  + searchName);
}

xml = new XMLNode;
xml.findFirstNode(test);  // fine up to here.

import pikkle.WireMenu;  // fails here

--

inside the pikkle.WireMenu i have exactly the same code,
xml.findFirstNode(test);

and there it fails, as if it forgot that it had added extra methods to
the XMLNode class.

thanks for any tips!

/dc
---
  David DC Collier
mailto:[EMAIL PROTECTED]
  +81 (0)80 6521 9559
  skype: callto://d3ntaku
---
  Pikkle 株式会社
  http://www.pikkle.com
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Close all brances in tree component

2006-09-12 Thread Johannes Nel

this is a cheat. reset your dataprovider.

On 9/12/06, Lieven Cardoen [EMAIL PROTECTED] wrote:


Does anybody have a function to close all branches in tree
component???(V2 component Flash)



Thx, Lieven Cardoen

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] {OT} Job Postings?

2006-09-12 Thread Johannes Nel

paul barnes-hogget had an argument about supply and demand in the
flex/flasharena which i thought is very apt. he stated that as flex and
flash is such a hot technology the demand is very high, thus with normal
market factors wages tend to rise. big companies want to use the technology,
but due to the cost and lack of supply they struggle to use it, thus making
them consider other alternatives.

personally we have started hirring developers who are skilled in other
areas, upskilling them into this one via peer programming and code reviews
in order to try and meet some of this demand, this unfortunatly is a slow
process, but one most companies have to do if they want to expand.

On 9/12/06, Zeh Fernando [EMAIL PROTECTED] wrote:


 I have been on this list for years and have seen all the job postings
and
 have posted some myself. I am looking to hire 5 Flex 2.0 and 3 flash
 developers. I have tried posting on dice and monster and have yet to
get
 resumes that come close to the qualifications that I need. So I have to
 ask
 where are people finding flash and flex guru's? If you are a flash or
 flex
 guru please email me your resume, we pay well!

I live in another world, but I can say the same about our (Brazilian)
market
aswell. There's an absurd lack of competent people, and trying to find
someone with the level you expect and that you can trust is an exercise in

frustration. I have to refuse almost daily, and inevitably I have to
repeat
the same choir over and over again - No, I can't do your specific job but
thanks, and no, I don't know anyone who could that I can point you at, I'm

sorry, that's the truth. I get baffled replies at best; people usually
think I'm bullsh*tting them.

Unfortunatelly it seems much of this is due to the nature and the history
of
Flash. Sure, there's a lot of people working with Flex and Flash from all
the walks of the design/IT life, but differently from other technologies
like, say, Java, the technology isn't seen as being integral part of a
dedicated field. Take as an example the school (university) I go to: we
have
design/interface design/multimedia bachelor degrees, as well as computer
science degrees. On the computer science courses, they learn C, C++,
Python,
Java, and stuff like that; on the other design courses, they learn basic
Flash (and I mean, *really* basic flash).

Sure, I'm not the one to trust blindly in school degrees (I've worked for
12
years and never had a degree) and I sure hope someone will come out of
graduation with 100 design patterns memorized. But the fact that no
university course around here sees Flash as a 'serious' programming field
speaks a lot when you see the absense of good professionals on the market.
You usually have a lot of 'hacks' that come from, say, the creative/design

area, and think they're good because they can tween a banner, but it's
hard
to someone that go a little further and actually wants to get better at
coding, or people from the 'cold coding' market moving into what's seen as
a
designerish tool. Sad but true.


Zeh

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: inline images in a textarea

2006-09-12 Thread Johannes Nel

they use on textfield per line and just leave a space in the text itself
cleverly done. this can be seen by selecting the line of text

On 9/12/06, Rich Rodecker [EMAIL PROTECTED] wrote:


wierd...how do you suppose they did it here then?:

http://www.mambers.com/chat/preloader.swf

i thought about picking the string apart and piecign together some new
movieclips/text fields to display the content, but that would get crazy
when
the text spans multiple lines.  the link above handles it pretty well
though.



On 9/8/06, Marcelo Volmaro [EMAIL PROTECTED] wrote:

 You can´t do that because flash doesn´t support images as in-line
 elements, only as block elements.

 On Fri, 08 Sep 2006 17:30:43 -0300, Rich Rodecker [EMAIL PROTECTED]
 wrote:

  thanks...its not the text thats going to the next line though...the
text
  is
  all appearing on one line, but the image is appearing on the next.
 
  so for instance when the image is supposed to be in the middle of the
  line
  of text:
 
  hey there img src=http://www.thewhole9.com/chat/smilies/smile.jpg;
  width=19 height=19 VSPACE=0 HSPACE=0 / hows it going?
 
  is turning into this (visually anyway, the html is still correct in
the
  textarea):
  hey there hows it going?
  img src=http://www.thewhole9.com/chat/smilies/smile.jpg; width=19
  height=19 VSPACE=0 HSPACE=0 /
 
  does that make sense?  thee image is appearing on the next line, after
  the
  line of text when it should be right in the middle.
 
  On 9/8/06, Lori Hutchek [EMAIL PROTECTED] wrote:
 
  Check that you are setting this VSPACE=0 HSPACE=0 it's the
vertical
  and horizontal space around the image which may be pushing the text
to
  next line
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Rich
  Rodecker
  Sent: Friday, September 08, 2006 12:55 PM
  To: Flashcoders mailing list
  Subject: [Flashcoders] Re: inline images in a textarea
 
  hmmm..anyone?  i know i've seen it done a couple of times, but I'm
  pretty
  stuck.
 
 
 
  On 9/7/06, Rich Rodecker [EMAIL PROTECTED] wrote:
  
   ok, i know working with images in a text area is only going to lead
 me
  to
   heartache, but I've seen this done and if anyone can point me in
the
  right
   direction that would be awesome.
  
   I have a chat app that im building with support for emoticons.
  everyhting
   works great except the smiley image always appears on the next line
  after
   the text, so I wind up with something like:
  
   here is my smiley
   :)
  
   when i really want:
  
   here is :) my smiley
  
   The one quirk i can see that might cause some wierdness is that i
am
   setting the contents of the textarea using the .text property,
though
  the
   textarea is set to html = true and everything renders out ok.  I
dont
  want
   to use .htmlText because I'm letting the user choose any font, and
  htmlText
   wont seem to render without the text embedded.
  
  
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com



 --
 _
 Marcelo Volmaro
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier 

Re: [Flashcoders] ns.onStatus calling a function

2006-09-12 Thread Johannes Nel

its a scope issue, try delegating the onstatus function

On 9/12/06, Christian Pugliese [EMAIL PROTECTED] wrote:


can't I call a function inside a ns.onStatus ?
ie:

ns.onStatus = function(info) {
if(info.code == NetStream.Play.Start) {
   trace(info.code);
callTheFunction();
}
}

the trace line executes, an any other event occurs normally, but the
callTheFunction() is never called?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ' Undo ' Feature in flash RIAs - any success stories?

2006-09-08 Thread Johannes Nel

read up on the memento design pattern
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flex and subversion don't play nice? - slightly OT

2006-09-07 Thread Johannes Nel

write your own ant script to compile

On 9/7/06, hank williams [EMAIL PROTECTED] wrote:


I havent figured it out yet, but I had to stop subversion with flex
because it just acted wierd and kept screwing up and preventing me
from updating. But I didnt work hard enough to figure out exactly what
the problem is. Sucks though.

Hank

On 9/7/06, Chris Hill [EMAIL PROTECTED] wrote:
 We've just started some as3 and flex projects and are having some pretty
 weird problems with Flex copying .svn directories and wreaking havoc.

 http://www.jessewarden.com/archives/2006/02/subversion_flex.html

 After much head-scratching, we determined that this is what's happening
 to us. We put our 'htm-template' folder under version control  and the
 deployment folder was being 'converted' into the html-template folder
 when the .svn dir was copied.

 In another unrelated project we had our source folder replaced(!) with
 the html-template folder. While the first project we've got a grasp on
 why it happened and will simply not put html-template under version
 control, we're still uncertain as to why the src folder had its .svn
 folder copied into it. The one difference is that this is a flex
 project, and the first is a pure as3 project.

 Does anyone use subversion with flex? Have you had similar issues? What
 is good and what isn't good to put under version control?

 Thanks,
 Chris Hill
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Slow performance of Flash 7 content in Flash Player 9

2006-09-05 Thread Johannes Nel

no, we don't have this problem and afaik player 9 is basically two players 8
and 9 with their respective vm's. or do you mean loading player 7/8 content
into a 9 movie?

On 9/5/06, Aaron Haines [EMAIL PROTECTED] wrote:


Hi

Does anyone have any solid information about the performance of SWFs
published as Flash 7 when playing in Flash Player 9?

There seems to be some anecdotal evidence that it runs very slowly and we
are seeing some eveidence of this.
I heard somewhere that FP9 runs F7 content in emulation which accounts for
the slow speed.

Is this really true?
Has anyone else had similar problems?

Thanks
Aaron.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Slow performance of Flash 7 content in Flash Player9

2006-09-05 Thread Johannes Nel

i am under the impression that the string performance increases are avm2
only.

On 9/5/06, Peter Hall [EMAIL PROTECTED] wrote:


In general, swf7 content should be the same or faster in FP8/9 than in
FP7. AVM2 is completely separate from AVM1, but some aspects are
shared. For example the incremental garbage collector, which was
introduced in FP8. It's *possible* that certain apps on certain
systems might appear to run slower, because of how they consume memory
and how that affects the GC, but this would apply to FP8 as well as 9.

Strings are stored and managed differently in AVM2, and I'm not sure
if that code change is shared with AVM1. This is supposedly an overall
performance improvement, vastly reducing memory usage when you do a
lot of string concatenation, but might be slightly slower in a few
cases.

When people discuss performance, they are usually talking about
rendering. As far as I am aware, this has hardly changed, with the
exception of new (optional) features, such as bitmap caching.

Peter



On 9/5/06, Scott Hyndman [EMAIL PROTECTED] wrote:
 Yes, that's what he's saying.

 On 05/09/06, Aaron Haines [EMAIL PROTECTED] wrote:
 
  No, I just mean playing a SWF published as Flash 7 in the F9 player.
 
  So if the F9 player is actually two players 8 and 9 as you say then
when you
  play a F7 SWF in FP9 it should actually be the same as playing it in
FP8?
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
Johannes Nel
  Sent: 05 September 2006 17:06
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Slow performance of Flash 7 content in
Flash
  Player9
 
  no, we don't have this problem and afaik player 9 is basically two
players 8
  and 9 with their respective vm's. or do you mean loading player 7/8
content
  into a 9 movie?
 
  On 9/5/06, Aaron Haines [EMAIL PROTECTED] wrote:
  
   Hi
  
   Does anyone have any solid information about the performance of SWFs
   published as Flash 7 when playing in Flash Player 9?
  
   There seems to be some anecdotal evidence that it runs very slowly
and
   we are seeing some eveidence of this.
   I heard somewhere that FP9 runs F7 content in emulation which
accounts
   for the slow speed.
  
   Is this really true?
   Has anyone else had similar problems?
  
   Thanks
   Aaron.
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com http://training.figleaf.com
  
 
 
 
  --
  j:pn
  http://www.lennel.org
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using Xpath in Flash Develop

2006-09-01 Thread Johannes Nel

not that i use flashdevelop, but copy it into your classpath?

On 9/1/06, Jorge Antonio Diaz Gutierrez [EMAIL PROTECTED]
wrote:


Hi there, could anyone tell me how do I:

use XfactorStudio's Classes for an Xpath parse of an XML. I'm Stopped due
to it.

Thanks a Lot


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Johannes Nel

the compiler adds it if it ain't there

On 8/29/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


You should make sure to call super(); in your subclass constructors,
too.


BLITZ | Steven Sacks - 310-551-0200 x209


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Chris Allen
 Sent: Tuesday, August 29, 2006 2:56 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Class inheritance and scope

 Hi Helmut,

 They don't need to be static at all. In fact if you want to access the
 parent class you can use the key word super. super.myMethodName() for
 example. Take a look at the documentation on that and hopefully that
 gets you pointed in the right direction.

 Good Luck.

 -Chris

 On 8/29/06, Helmut Granda [EMAIL PROTECTED] wrote:
  Hi,
 
  I have a class with 3 subclasses. in order for me to access a method
 from
  any of the subClasses they have to be static (or at least that is
the
 error
  that the compiler gives me) so i have made my methods static and now
 when i
  try to access somethig out of those methods flash tells me that
Instance
  variables cannot be accessed in static functions.
 
  Im a bit confused about this. i know that getting an answer from a
 mailing
  list might not be sufficient to explain the concept but any attempts
are
  welcome.
 
  TIA
  Helmut
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Johannes Nel

without being nasty now, don't be prescriptive. i was pointing something
out, nothing more nothing less. before attacking my code or my habits i
would advise you to know what they are and how it looks.

have a nice day:)

On 8/29/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


And one more thing - if the compiler complained to him to call super(),
then he wouldn't have had this problem would he?  I'll take a strict
compiler any day.  Don't encourage lazy coding; it only opens the door
for bugs and confusing results.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Class inheritance and scope

2006-08-29 Thread Johannes Nel

f the compiler required him to call super(), he would have had more

information to figure out what was wrong

no. there is nothing more in that as all classes extend at least object.

anyway this is pedantic.

helmut: i advise you to download thinking in java by bruce eckels and read
about OO, its free and will explain OO concepts very well.



On 8/29/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


You are being far too defensive.  I was not attacking you, I was
attacking lazy coding practices.  I didn't say YOU are a lazy coder, I
said taking advantage of a compiler's shortcoming is lazy coding.

If the compiler required him to call super(), he would have had more
information to figure out what was wrong.  My telling him to call
super() provides information to the relationship of inherited classes.
You saying that the compiler allows you to get away without calling
super() doesn't help him understand his problem nor is it good practice,
especially for somebody who is learning the ropes of OOP.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] clone object

2006-08-25 Thread Johannes Nel

shouldn't you boys be going out and getting a drink on blitz's account
instead of teasing each other like this?

On 8/25/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


Are you stalking me, Grden?  :)

 1.  I use block comments all the time - but if you think it's janky,
more
 power to you.

I have the power of Greyskull.  Block comments are for commenting out
*gasp* blocks of code.  I use block comments all the time for that very
purpose.  I use line comments to write internal commentary on my code,
though, so that anyone can comment out blocks without issue.


 2.  I prefer people to drop the curly brace down to the next line, not
 left up on the method declaration line.  But I don't give a rats ass
if
 they don't.

That's a tomayto tomahto thing.  I can read code just fine either way.


 3.  I think WWF wrestling is fake - but it's cool if others don't.

It's never cool to be willfully ignorant.  And while it is all fake,
it's not like it doesn't hurt getting slammed to the floor or doesn't
require a level of athleticism and endurance.  It might be a show, but
it takes a lot of work to put on that show and I'm sure there are real
injuries.


 4.  Drew Bledsoe will be out by the 3rd game of the regular season -
well,
 that's just a fact.

Baseball is boring.  Are you cool with me saying that?  ;)


 5.  Your mom.

Has a broken heart thanks to you.  Nice going, John, you tease.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-24 Thread Johannes Nel

ha, how old school. when in doubt wait a frame or 15...

On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote:


Okay,

I have fixed the problem. I would say that this is certainly bug with
Flash, but there is a work around. Thanks to Keith Peters for
mentioning this to me last night.

So here's the deal... Back in the day before MovieClipLoader when you
wanted to load and external SWF, you had to check a property of the
MovieClip to see if it existed before you could manipulate it. You
needed to create an interval that would check to see if it's
initialized in this way. This all makes sense to me, but what doesn't,
is that you can't just check that any property of MovieClip was set.
There is a magic property that seems to indicate that the MovieClip is
fully initialized. That property is _width.

So with this in mind I added a check to the onLoadProgress event like so:

private function handleLoadProgress(targetMC:MovieClip,
loadedBytes:Number, totalBytes:Number):Void
{
if (MovieAsset.HIDE_WHEN_LOADED)
{
if (targetMC._width != undefined ||
targetMC._width != 0)
{
targetMC._visible = false;
}
}
}

Now, how's that for obscure? It does fix the issue, and instanceof is
indeed a MovieClip once again. Oh, and even better, _visible works
like a charm.

Thanks again to all those that helped out with this one.

-Chris

On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote:
 Thanks for your help on this Ian.

 I'm not sure I understand all of what you found here, so let me
 summarize with some questions to see if I got it right.

 Flash 6 SWFs fail every time when loaded remotely? - This hasn't been
 my experience. I've been able to load some small ones (20K) without
 the issue.

 You think it may have to so with domain security in Flash?

 When loading from your files system the Flash 7 and 8 files load
 correctly but not Flash 6?

 Some findings I have made:

 The behavior is slightly different on a Macintosh versus a Windows
 machine. Which are you using?

 Altering nothing before the SWF is fully loaded screws up the
 instanceof stuff but all of the MovieClip properties work just fine.

 If I try to alter the _visible property before it's fully loaded it
 causes that property to no longer function once fully loaded.


 I have some other ideas to try out this morning and I will keep you
 posted on my progress. Thanks to all of you who tried to help.

 -Chris


 On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote:
  Oh, I should add - I get the same results when I throw the Fling code
  out completely and write a simple loader from scratch.
 
  Cheers,
Ian
 
  On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote:
 
   I'm certainly running out of ideas for a simple fix, here - and it's
   definitely not the loading code, it's a 'feature' or bug in the
Flash
   Player.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Johannes Nel

what happens if you cast it as a movieclip?

On 8/23/06, Chris Allen [EMAIL PROTECTED] wrote:


On 6/7/06, Jason Lutes [EMAIL PROTECTED] wrote:
 Can anyone suggest why a condition would be false for a test on a movie
 clip using instanceof MovieClip?

 I have a function that includes the line:

 if (graphicClip.highlighting instanceof MovieClip)
 graphicClip.highlighting._visible = false;

 If I precede the line with trace(typeof graphicClip.highlighting) I get
 movieclip in the Output panel. Nevertheless, the instanceof condition
 refuses to report correctly.

I bet if you do trace(type:  + typeof(graphicClip.highlighting)); it
will trace movieclip (lowercase) instead of MovieClip as it
normally would.

John Grden was just asking if you ever figured this out because we are
having a very similar issue, in fact it might be the same issue. Our
instance doesn't respond to the _visible property any more when
retrieving a reference from our class. We are loading it from an
external SWF using MovieClipLoader. I have yet to be able to recreate
this issue with an FLA and the IDE. It only appears so far when using
our loading class and compiling with MTASC.

Anyway, any insight that anyone has into this would be greatly
appreciated.

Thanks,
Chris
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Johannes Nel

thats quite a hack. a normal cast then returns null i assume?

On 8/23/06, John Grden [EMAIL PROTECTED] wrote:


this is the only thing that seems to bring it back to life:

if(targetMC instanceof MovieClip == false) targetMC.__proto__ = new
MovieClip();

before calling MCL.loadClip(), the target is a bonified MovieClip, but as
soon as progress starts, it's not anymore.

On 8/23/06, Johannes Nel [EMAIL PROTECTED] wrote:

 what happens if you cast it as a movieclip?

 On 8/23/06, Chris Allen [EMAIL PROTECTED] wrote:
 
  On 6/7/06, Jason Lutes [EMAIL PROTECTED] wrote:
   Can anyone suggest why a condition would be false for a test on a
 movie
   clip using instanceof MovieClip?
  
   I have a function that includes the line:
  
   if (graphicClip.highlighting instanceof MovieClip)
   graphicClip.highlighting._visible = false;
  
   If I precede the line with trace(typeof graphicClip.highlighting) I
 get
   movieclip in the Output panel. Nevertheless, the instanceof
 condition
   refuses to report correctly.
  
  I bet if you do trace(type:  + typeof(graphicClip.highlighting)); it
  will trace movieclip (lowercase) instead of MovieClip as it
  normally would.
 
  John Grden was just asking if you ever figured this out because we are
  having a very similar issue, in fact it might be the same issue. Our
  instance doesn't respond to the _visible property any more when
  retrieving a reference from our class. We are loading it from an
  external SWF using MovieClipLoader. I have yet to be able to recreate
  this issue with an FLA and the IDE. It only appears so far when using
  our loading class and compiling with MTASC.
 
  Anyway, any insight that anyone has into this would be greatly
  appreciated.
 
  Thanks,
  Chris
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 j:pn
 http://www.lennel.org
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Johannes Nel

seeing you at the meeting tonight i take it :)

this is a world of pain by the looks of it... have you tried loading it in
without a loader, rather old style target.load(path) and see if that solves
the problem. i have had some weirdness in flex1.5 with loading content as
well and hacking it like this (which makes my stomach churn) has had the
desired result.


On 8/23/06, Chris Allen [EMAIL PROTECTED] wrote:


Hi Johannes,

Welcome back to Boston! (I didn't get a chance to say so on the BFPUG
list)

On 8/23/06, Johannes Nel [EMAIL PROTECTED] wrote:
 thats quite a hack. a normal cast then returns null i assume?

Yeah that's quite a hack indeed! We are casting the thing with a
normal cast as well and it just yields the same results; it doesn't
show up as null though. Even with the hack it's not allowing us to
manipulate the _visible property, or at least it doesn't show any
effect when viewed in the Flash player.

 On 8/23/06, John Grden [EMAIL PROTECTED] wrote:
 
  this is the only thing that seems to bring it back to life:
 
  if(targetMC instanceof MovieClip == false) targetMC.__proto__ = new
  MovieClip();
 
  before calling MCL.loadClip(), the target is a bonified MovieClip, but
as
  soon as progress starts, it's not anymore.
 
  On 8/23/06, Johannes Nel [EMAIL PROTECTED] wrote:
  
   what happens if you cast it as a movieclip?
  
   On 8/23/06, Chris Allen [EMAIL PROTECTED] wrote:
   
On 6/7/06, Jason Lutes [EMAIL PROTECTED] wrote:
 Can anyone suggest why a condition would be false for a test on
a
   movie
 clip using instanceof MovieClip?

 I have a function that includes the line:

 if (graphicClip.highlighting instanceof MovieClip)
 graphicClip.highlighting._visible = false;

 If I precede the line with trace(typeof graphicClip.highlighting)
I
   get
 movieclip in the Output panel. Nevertheless, the instanceof
   condition
 refuses to report correctly.

I bet if you do trace(type:  + typeof(graphicClip.highlighting));
it
will trace movieclip (lowercase) instead of MovieClip as it
normally would.
   
John Grden was just asking if you ever figured this out because we
are
having a very similar issue, in fact it might be the same issue.
Our
instance doesn't respond to the _visible property any more when
retrieving a reference from our class. We are loading it from an
external SWF using MovieClipLoader. I have yet to be able to
recreate
this issue with an FLA and the IDE. It only appears so far when
using
our loading class and compiling with MTASC.
   
Anyway, any insight that anyone has into this would be greatly
appreciated.
   
Thanks,
Chris
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
  
  
  
   --
   j:pn
   http://www.lennel.org
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 
 
  --
  [  JPG  ]
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 j:pn
 http://www.lennel.org
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Johannes Nel

yeah, i think i agree with peter that the problem is then that you do not
extend movieclip. we can get semantic about this tonight, but only once we
have a beer in hand...

;)

On 8/23/06, Chris Allen [EMAIL PROTECTED] wrote:


On 8/23/06, Peter Hall [EMAIL PROTECTED] wrote:
 Perhaps you have a class associated with the symbol, which does not
 extend MovieClip?

Well the instance of MovieClip, or whatever it is in this case, is a
part of a class that doesn't extend MovieClip (MovieAsset). MovieAsset
implemts and Asset interface and extends an AbstractAsset class that
does much of the general leg work. The MovieAsset class has a method
getResource() that returns an Object, in this particular case it's the
MovieClip in question. So when accessing this MovieClip using this
class you must call getResource() and cast it to MovieClip:

var movie:MovieClip = MovieClip(asset.getResource());
movie._visible = true;

You can take a look at what we are working on here:

http://svn1.cvsdude.com/osflash/fling/DEV_Source/classes/org/osflash/fling/util/assets/

To replicate the problem you have to set
MovieAsset.setHideWhenLoaded(true); then once the loadComplete event
is triggered you try to set the MovieClip to visible:
MovieClip(asset.getResource())._visible = true;

You should then see that it doesn't work.

Thanks for your help!

-Chris
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Slighty OT: phone suggestions?

2006-08-23 Thread Johannes Nel

i saw an awsome app on a nokia 6680 a couple of days ago, just sold me on
the phone :) bulky as hell though (you get a nice camera with it...). i have
a 7610 and that chokes a bit from time to time on flashlite 2 stuff, not
unusable though.

On 8/23/06, John Grden [EMAIL PROTECTED] wrote:


I was wondering if anyone had some suggestions/favorite cell phones that
run
Flash light 2.0 swf's?  Any that were easier to deal in development or
offer
more features overall?

Thanks!

--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.

2006-08-23 Thread Johannes Nel

also what bout the content you are loading in, have you tried changing that?

On 8/23/06, Ian Thomas [EMAIL PROTECTED] wrote:


Hi Chris,
  I've tried that (with a bit tweaking for syntax errors) and it all
works fine - instanceof returns the correct results. This is loading a
clip I created from scratch (Flash 8, WinXP) - if you have a sample
clip I can try that's failing for you, that's be good.

However, I did have to correct the trace statements:

trace(Is this a movieclip:+clip instanceof MovieClip); // Always
outputs 'false'
trace(Is this a movieclip:+(clip instanceof MovieClip)); // Always
gives the correct answer.

It's not something as simple and silly as that, is it? I assume not. :-)

Cheers,
  Ian

On 8/23/06, Chris Allen [EMAIL PROTECTED] wrote:
 Hi Ian,

 Thanks for looking into this.

 I did indeed try running it with Flash compiling. Try this in an FLA
 and you should see the same results:
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] delay when seeking in Video

2006-08-22 Thread Johannes Nel

if its a cdrom then progressive load is used and seek should in theory only
be affected for a very short time. you can consider loading the video
earlier, or using a interval of somekind 'and show a little load screen.

i had this problem for a bit when i used the mediaplayback component, but
when i swapped to the media display and a seperate media controller and set
the associated display this problem disapeared (weird eh?). this was flex
1.5 so... dunno iof that will help :)

On 8/22/06, Aaron Hedquist [EMAIL PROTECTED] wrote:


(Redirected by Xavier [EMAIL PROTECTED])
Hello

I am developing a CDROM with videos that use FLVPlayback Component. When I
load a video whith high duration and I want to make a seek advancing a
significant quantity of time, searching delays many seconds, like in an
streaming loading.

The fact is that when the video is very long the time of delay is
excessive.

I have tried to change the property bufferTime whithout success.

I would like to know if someone of this list already has met something
similar and has been capable of solving it.

Thank you very much

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] oop question kind of...

2006-08-21 Thread Johannes Nel

it sounds to me that you are using the same depth or instance name for a new
clip before removing the old one.

On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Have you tried using some kind of factory type approach
 to manage your deletion/creation?
yes, i use adts quite often...in fact i use the mvc pattern for quite a
few apps i create.  So i have views that instantiate whatever movieclips it
needs and deletes them when it doesn't need them.  the problem begins when a
view needs to go away either because it is being replaced by another view or
refreshed.  i noticed that the clips that were supposed to be deleted
weren't really...futhermore, when being reinstantiated, they won't accept
values...they exist, but they're undefined somehow...

b

-- Original message --
From: Alias [EMAIL PROTECTED]

 Hi there,

 For what it's worth...

 Previous to flash 8, the flash player uses both reference counting and
 mark/sweep garbage collection, which kicks in every 60 seconds or so,
 or when the number of allocated objects is increased by 20%. So the
 reference counting takes care of the objects without circular
 references, and the garbage collection takes care of the rest.

 removeMovieClip is problematic in that it's likely to leave lots of
 hanging references, and there's not a great deal you can do about that
 - it sounds like you have class dependancies outside of the movieclip
 object itself. Have you tried using some kind of factory type approach
 to manage your deletion/creation?

 Can you give more information about how your objects are being
corrupted?

 Alias


 On 8/21/06, [b) a d i wrote:
   Have you tried mc.removeMovieClip() ?
 
  yes...i should have mentioned it...
 
  a little background...
 
  this is a question i've had for a long time, but didn't have anyone to
ask
  it to :)...i've been on the macromedia forums, but most of the time i
don't
  get the answer i need or i get some wise-aker who feels the need to
  over-compensate...i say that to express gratitude at having found
  flashcoders...populated by real flash coders :)
 
 
  the problem i have is after calling removeMovieClip or delete is that
when i
  need to re-instantiate the object...it's either corrupt or not created
  properly...i was a little upset to find so many dangling pointers
after i
  went thru so much trouble to clean up after myself...
 
 
  thanks
 
  b
 
  - Original Message -
  From: Ramon Miguel M. Tayag
  To: Flashcoders mailing list
  Sent: Monday, August 21, 2006 8:50 AM
  Subject: Re: [Flashcoders] oop question kind of...
 
 
   Have you tried mc.removeMovieClip() ?
  
   On 8/21/06, [b) a d i wrote:
Hi,
i've noticed that just because you call delete on a movie clip or
even
  an
object doesn't mean that it totally goes away. Does anyone know
how to
destroy and object and really have it go away since there are no
  destructors
in as2?
   
thanks
   
b
  
   --
   Ramon Miguel M. Tayag
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Better XML parsin

2006-08-21 Thread Johannes Nel

xpath

On 8/21/06, Flash Mel [EMAIL PROTECTED] wrote:


Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Strong typing vs attachMovie

2006-08-14 Thread Johannes Nel

you cast
var UIClock:Clock = Clock (content.attachMovie(clock,uiclock1,1));
the cleanest way is prob to put a static create function on the class itself
IMO.
from the fdt template
public static function create(container : MovieClip,name : String,
   depth : Number, init : Object) : Clock{
   var mc : MovieClip = container.attachMovie(linkage, name, depth,
init);
   return Clock(mc);
   }
On 8/14/06, Andreas Rønning [EMAIL PROTECTED] wrote:


So say i have a movieClip in my library associated with the class Clock.
In my application i want an instance of Clock on stage, so i do
something like this:

var UIClock:Clock = content.attachMovie(clock,uiclock1,1);

naturally i'll get compiler errors, since attachMovie returns a MovieClip.

Is there a way to circumvent this? I really enjoy associating library
clips with classes and attaching them; aside from this issue i've had no
problems.

- A
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] how to not overwrite methods, but append functionality

2006-08-11 Thread Johannes Nel

var f:Function = mc.onRollOver

mx.onRollOver = function ()
{
f();
}

you might want  to look at function.apply to get it too call in the right
context.

On 8/11/06, Matthias Dittgen [EMAIL PROTECTED] wrote:


but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.

it's like that:

var mc:MovieClip = this.attachMovie(MyClipClass.SymbolName,mc,
this.getNextHighestDepth());

var tooltip:MyTooltipClass = new MyTooltipClass(mc, tooltiptext);


in MyClipClass, there is a public function onRollOver() {}, which
works well, as long as I don't apply MyTooltipClass.

in MyTooltipClass, there I call mc.onRollOver = function() {}, which
overwrites the former onRollOver. But I just want to add something to
the existing onRollOver.

Someone?


2006/8/11, Martin Wood [EMAIL PROTECTED]:


 Matthias Dittgen wrote:
  Hello list,
 
  my tooltip class uses code like this mc.onRollOver = function() {}
  to add its tooltip functionality to a movieclip mc. But this way it
  overwrites the onRollOver method of mc and disables the functionality
  like highlighting.
 
  So now my question (probably a really simple one): How is it possible
  to append functionality instead of overwriting? is there something
  like super() is for cunstructors?

 exactly.

 super.onRollOver()

 will call the method in the superclass.

 martin

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Prefixing property names with underscore - conventions?

2006-08-10 Thread Johannes Nel

tend to use to underscrores to indicate private one to indicate protected

On 8/10/06, Claus Wahlers [EMAIL PROTECTED] wrote:



 I've noticed many class authors prefix property names with an
 underscore, or 2 underscores or none at all.


It's often used in concert with getter/setters to prevent name collisions:

private var _myProperty:String;

public function set myProperty(value:String):Void {
_myProperty = value;
}

public function get myProperty():String {
return _myProperty;
}

Cheers,
Claus.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 faster ??

2006-07-07 Thread Johannes Nel

there are two VM's in the new player. the new VM is real snell.


On 7/7/06, jcarlos [EMAIL PROTECTED] wrote:


but the faster part should be F9 Player itself, insn´t it ?


- Original Message -
From: ben farrell [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 06, 2006 1:47 PM
Subject: Re: [Flashcoders] AS3 faster ??


 At my local Adobe user group, we had a Flex 2 demo which of course
 utilizes the Flash 9 Player and AS3.  The presenter had some code that
 draws fractals on screen.  Using Flash 8 AS2, the fractal took around 45
 seconds to render.  Then he ran the same thing in Flash 9 AS3, and it
 rendered instantaneously.
 So it was pretty damn impressive in my book.  I can't say that I've run
 into any daily problems where things don't compile fast enough, so I
guess
 I dont know or really care bout that!
 ben

 Patrick Matte wrote:
 Hi people, they say that AS3 is 10 times faster than AS2 but what does
 that
 really means ? Does that mean that my movies will play faster even if I
 have
 a few dozens movieclips with graphics flying all over the screen? Or
does
 it
 just mean that my .swf will be compiling 10 times faster?


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 faster ??

2006-07-07 Thread Johannes Nel

yes for as3 as well. no as2 in vm2.

On 7/7/06, Blumenthal, Peter [EMAIL PROTECTED] wrote:



 but the faster part should be F9 Player itself, insn´t it ?

F9 player includes VM1 and VM2. VM2 is the one with the performance
improvements. To use VM2, the SWF must be published for Flash Player 9
(presumably AS3?).

Peter



This email may contain confidential material.  If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 faster ??

2006-07-07 Thread Johannes Nel

the code does not execute if the parent movie is aimed at avm2.

On 7/7/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:


wonder what happens if you load a SWF published with as2.0
into a SWF publishes in as3.0, does it have to switch VMs?

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

 yes for as3 as well. no as2 in vm2.

 On 7/7/06, Blumenthal, Peter [EMAIL PROTECTED] wrote:
 
 
   but the faster part should be F9 Player itself, insn´t it ?
 
  F9 player includes VM1 and VM2. VM2 is the one with the performance
  improvements. To use VM2, the SWF must be published for Flash Player 9
  (presumably AS3?).
 
  Peter
 
 
 
  This email may contain confidential material.  If you were not an
  intended recipient, please notify the sender and delete all copies.
  We may monitor email to and from our network.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 j:pn
 http://www.lennel.org
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Johannes Nel

KISS is not inheritance over composition. KISS is the reverse. rule of thumb
always compose rather than extend so that it will be simple later on to
change things.

On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:


I draw my Countrys as movieclips without classes. Then create a
MovieClip with a Country class and put inside each movieClip
(Composition). Inside Country class, I have access to the parent
display object using the parent property and do something like an
Adapter pattern.

Ever heard of KISS ?


On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote:

 AS3 is really mature now, what is excellent! But there´s no reason to
 didn´t support it.
 Let´s think from other point of view.
 Each sprite on the flash screen, is an instance of some class. Flash
 ide is locking together View+Behavior, so I can´t have two differents
 Views with the same behavior.

 With Jcarlos tip, I found two ways to workaround this. But it´s didn´t
 seens right to me.

 I draw my Countrys as movieclips without classes. Then create a
 MovieClip with a Country class and put inside each movieClip
 (Composition). Inside Country class, I have access to the parent
 display object using the parent property and do something like an
 Adapter pattern.

 The other solution would be put all my countrys inside a MovieClip
 called World, and use a World class to access each country and assign
 the behavior.

 I´ll will upload my .fla files so you can understand.

 On 7/5/06, Adrian Park [EMAIL PROTECTED] wrote:
  I'm not sure this is really a 'feature' that is missing since the
 problem
  really boils down to OOP theory. For example, it could be argued that
it
 is
  incorrect for the country class to extend MovieClip since a country
*is
 not*
  a MovieClip but, rather,  *uses* a MovieClip for display. By this
 rational,
  it makes more sense to extend via composition - i.e. the country class
  simply gets a reference to a MovieClip that represents it's visual
  manifestation. This way, the same class is used for many MovieClips.
 
  If it was possible in AS2 and is no longer possible in AS3, I'd hope
 there
  is a very good reason why and I'd hope that the reason has something
to
 do
  with AS becoming a more mature language and doing things in a better
 way.
 
  Am I wrong?
 
  A.
 
  On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote:
  
   You got the point. But this silly task wasn´t needed on flash 8.
   That´s the point.
   Should it be on flash 9? I don´t think so.
   Isn´t this the time to ask Adobe to include this feature? But I need
   help from others developers to show that this feature is essential.
  
   On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
I'm not sure if it's entirely impossible to assign one class to
 multiple
movieclips, but if that's true than the easiest way to overcome
that
   problem
is make a baseclass 'Country' and have Brazil extends Country.
   
You still have the silly task of assigning all your countries to a
different class, but at least your code will be easy to manage.
   
good luck
-Meinte
   
On 7/4/06, Marcos Neves [EMAIL PROTECTED] wrote:

 Is this the place to talk about AS3? If not, where would be?

 The concept of any movieClip be a class is very powerfull, given
 the
 ability to do new ClassName to create a copy of any clip. But
the
 Auto
 Generated class and the fact that you can´t have two movieclips
 with
 the same class is something that is limiting flash capabilities.

 Example:
 I have a A world map where each country is a movieclip. And
every
 one
 will have the same behavior. Before flash 9, what I did is
assign
 a
 class called Country to each movie clip. This way, I can easy
 update
 the behavior of all at the same time.

 With Flash 9, I can´t assign a class with the same name and
can´t
 specify a base class to the Auto Generated extends.
 My suggestion is to do something like this:
 http://neves.bs2.com.br/flex/preview.jpg

 When ask for AutoGenerate, a check box would enable an different
 base
 class, and I would write on the textbox. So a movieClip called
 Brazil,
 would have a autoGenerated class called Brazil that extends the
 class
 Country, witch would be my base class.

 I´m shure no one can deny that this feature is essential.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to 

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Johannes Nel

i know exactly what the  acronym means, i disagree with your idea of what is
simple.

On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:


no I meant kiss=keep it simple stupid

On 7/5/06, Johannes Nel [EMAIL PROTECTED] wrote:

 KISS is not inheritance over composition. KISS is the reverse. rule of
 thumb
 always compose rather than extend so that it will be simple later on to
 change things.

 On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
 
  I draw my Countrys as movieclips without classes. Then create a
  MovieClip with a Country class and put inside each movieClip
  (Composition). Inside Country class, I have access to the parent
  display object using the parent property and do something like an
  Adapter pattern.
 
  Ever heard of KISS ?
 
 
  On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote:
  
   AS3 is really mature now, what is excellent! But there´s no reason
to
   didn´t support it.
   Let´s think from other point of view.
   Each sprite on the flash screen, is an instance of some class. Flash
   ide is locking together View+Behavior, so I can´t have two
differents
   Views with the same behavior.
  
   With Jcarlos tip, I found two ways to workaround this. But it´s
didn´t
   seens right to me.
  
   I draw my Countrys as movieclips without classes. Then create a
   MovieClip with a Country class and put inside each movieClip
   (Composition). Inside Country class, I have access to the parent
   display object using the parent property and do something like an
   Adapter pattern.
  
   The other solution would be put all my countrys inside a MovieClip
   called World, and use a World class to access each country and
assign
   the behavior.
  
   I´ll will upload my .fla files so you can understand.
  
   On 7/5/06, Adrian Park [EMAIL PROTECTED] wrote:
I'm not sure this is really a 'feature' that is missing since the
   problem
really boils down to OOP theory. For example, it could be argued
 that
  it
   is
incorrect for the country class to extend MovieClip since a
country
  *is
   not*
a MovieClip but, rather,  *uses* a MovieClip for display. By this
   rational,
it makes more sense to extend via composition - i.e. the country
 class
simply gets a reference to a MovieClip that represents it's visual
manifestation. This way, the same class is used for many
MovieClips.
   
If it was possible in AS2 and is no longer possible in AS3, I'd
hope
   there
is a very good reason why and I'd hope that the reason has
something
  to
   do
with AS becoming a more mature language and doing things in a
better
   way.
   
Am I wrong?
   
A.
   
On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote:

 You got the point. But this silly task wasn´t needed on flash 8.
 That´s the point.
 Should it be on flash 9? I don´t think so.
 Isn´t this the time to ask Adobe to include this feature? But I
 need
 help from others developers to show that this feature is
 essential.

 On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
  I'm not sure if it's entirely impossible to assign one class
to
   multiple
  movieclips, but if that's true than the easiest way to
overcome
  that
 problem
  is make a baseclass 'Country' and have Brazil extends Country.
 
  You still have the silly task of assigning all your countries
to
 a
  different class, but at least your code will be easy to
manage.
 
  good luck
  -Meinte
 
  On 7/4/06, Marcos Neves [EMAIL PROTECTED] wrote:
  
   Is this the place to talk about AS3? If not, where would be?
  
   The concept of any movieClip be a class is very powerfull,
 given
   the
   ability to do new ClassName to create a copy of any clip.
But
  the
   Auto
   Generated class and the fact that you can´t have two
 movieclips
   with
   the same class is something that is limiting flash
 capabilities.
  
   Example:
   I have a A world map where each country is a movieclip. And
  every
   one
   will have the same behavior. Before flash 9, what I did is
  assign
   a
   class called Country to each movie clip. This way, I can
easy
   update
   the behavior of all at the same time.
  
   With Flash 9, I can´t assign a class with the same name and
  can´t
   specify a base class to the Auto Generated extends.
   My suggestion is to do something like this:
   http://neves.bs2.com.br/flex/preview.jpg
  
   When ask for AutoGenerate, a check box would enable an
 different
   base
   class, and I would write on the textbox. So a movieClip
called
   Brazil,
   would have a autoGenerated class called Brazil that extends
 the
   class
   Country, witch would be my base class.
  
   I´m shure no one can deny that this feature is essential.
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription

Re: [Flashcoders] Grab IP address

2006-05-15 Thread Johannes Nel

problem with the webservice from as is that the sandbox will kick in. it has
to be proxied via the server (which then makes the java sollution valid) or
you have too hope that they have a crossdomain policy file.

On 5/15/06, Jim Tann [EMAIL PROTECTED] wrote:


This looks like what you might be looking for, I havnt tested it (or
even read passed the first page :) but I think that your best be t is to
find a free web service that you can access with actionscript.

http://www.strikeiron.com/ProductDetail.aspx?p=149

Jim


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MetaArt
Sent: 15 May 2006 10:14
To: Flashcoders mailing list
Subject: [Flashcoders] Grab IP address

There is a way, automate or based on any user input, that give a chance
to
grab the user IP address by a Flash movie?
I'm in search of something without use of any server-side language, so
just
full Flash, or Flash/JavaScript can be good.
Any suggest?
Link to .fla or tutorial are really appreciate

* Enrico Tomaselli
* web designer
[EMAIL PROTECTED]
http://www.metatad.it
* Skype: MetaArt
RSS: http://www.metatad.it/mnfeeder.php

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Johannes Nel

then obvisouly not. sepy is not a bad editor, but it should surely point out
things like that. fdt is the way :)

On 5/15/06, Kent Humphrey [EMAIL PROTECTED] wrote:


I'm using SEPY on OSX, good enough for you? ;

On 11 May 2006, at 14:06, Johannes Nel wrote:

 get a proper as editor i would say

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] xpath xml strangeness

2006-05-15 Thread Johannes Nel

yup. if its in the class path it picks it up (maybe sepy has that ability as
well, you just need to configure the classpaths).
we even use fdt for our flex 1.5 devlopment, it really is the sheet.

On 5/15/06, Kent Humphrey [EMAIL PROTECTED] wrote:


fdt?

Can it really notice the wrong case of a 3rd party class/function?

On 15 May 2006, at 13:10, Johannes Nel wrote:

 then obvisouly not. sepy is not a bad editor, but it should surely
 point out
 things like that. fdt is the way :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-13 Thread Johannes Nel

the dictionary object in as3 allows you to use a class as the key. it also
uses weak references for the keys (but not for the values).
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Stop loading

2006-05-13 Thread Johannes Nel

afaik there is no way to stop the actual load.

On 5/13/06, Patrick Matte [EMAIL PROTECTED] wrote:


Whats the best way to stop a sound from loading ? I fired the
Sound.loadsound() method but suddenly for a reason, I need to stop the
loading right away.

Same thing with MovieClipoader. Will the MovieClipLoader.unloadClip method
simply stop the downloading of the image ?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] xpath xml strangeness

2006-05-11 Thread Johannes Nel

get a proper as editor i would say

On 5/11/06, Serge Jespers [EMAIL PROTECTED] wrote:


You're welcome... I mixup capitals all the time so it was the first
thing I looked at ;-)

Serge

 Unbelievable!

 Thanks a lot Serge, you're a lifesaver :

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HashMap?

2006-05-10 Thread Johannes Nel

dictionary object.

On 5/10/06, Joshua Graham [EMAIL PROTECTED] wrote:


Is there an AS3 equivalent of the java HashMap?

Basically, I just need the ability to set key/value pairs quickly/
easily.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  1   2   3   >