Re: [Flashcoders] Uncompress a gzipped file

2006-08-10 Thread Nicolas Cannasse

My progress in this has stalled. I'm pretty confident now the last two
bits in a ByteStream compressed with compress() are a checksum, and
I'm almost completely sure it's a crc-16 checksum (although it's
always off by one, I can't say I know why).


I'm busy ATM, but I will have a look at it as soon as haXe supports Flash9.

Nicolas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Uncompress a gzipped file

2006-08-10 Thread Claus Wahlers

Max,

not sure if this helps but it's worth a try.

I was trying to uncompress files from zip archives a while ago. The most 
common compression method used in zip is deflate (as you already know) 
so theroretically it shouldn't be a problem to uncompress() files in a 
zip, BUT.. the thing is, although both Flash and the common 3rd party 
zip tools use the same compression method, they use different checksums.


Zlib (Flash) uses an ADLER32 checksum, see RFC 1950 [1], whereas zip 
uses CRC-32 [2]. The checksum is calculated over the uncompressed file 
so imho it's impossible to uncompress a file in a 3rd party created zip 
archive (you don't have the ADLER32 checksum that Flash needs - the dog 
bites its tail there), which really is a pity.


Please let me know if you find a way around that, i'd be very 
interested. I'll do the same. Maybe we should joint our efforts there.


Cheers,
Claus.

[1] http://www.gzip.org/zlib/rfc-zlib.html
[2] http://tinyurl.com/an7mj


Max wrote:


Shouldn't there be more interest in this? Flash's compress() and
uncompress() features use DEFLATE, which is the same algorithim used
in zip files and png images. Imagine compressing XML files to a tiny
fraction of their original size and decompressing them within flash!
The uses are endless, especially when you start to think about
compressing files within flash and sending them other places.

My progress in this has stalled. I'm pretty confident now the last two
bits in a ByteStream compressed with compress() are a checksum, and
I'm almost completely sure it's a crc-16 checksum (although it's
always off by one, I can't say I know why).

Gzip actually includes a checksum, but it's crc-32, not crc-16. It's
not as if you can know what the crc-16 checksum is without
decompressing the file first. So basically, flash needs the checksum
before it will decompress the binary data, and you don't have it with
a normal gzip file. Now I'm starting to think gzip is a dead end and a
custom format would probably be more useful.

Anyway, making a custom format is out of my league it seems. I tried
working something out with Python but I can't pull it off. Surely the
throngs of people interested in this would figure something out,
unless I'm alone...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DK - destroying objects from a class using array notation

2006-08-10 Thread dnk
Hi there! I have a class in which a few objects are created from my library 
(loader
component instances and a button instance). They were created sequenciually (IE 
hit0,
hit1, hit2, etc) At any rate - I need to destroy them abd then recreate them.

I am having some issues finding the proper syntax to use destroyObject

For example I tried.


(from within my class)


function killElements() 
{
  for (var i:Number = 0; i  35; i++)
{
  this._targetMc.destroyObject(slidemenu[theThumb + i]);
  this._targetMc.destroyObject(slidemenu[theHit + i]);
}
}

this obviously does not work


My target hierarchy is

_root._targetMc.slidemenu (with the button and loader objects created in here).

Ideas?

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


RE: [Flashcoders] LoadMovie library

2006-08-10 Thread Bart Albrecht
Tony,
 You just have to access them from the scope they where born to.
I can access them indeed in the scope where they are created. But the
problem is that I can't add other assets (movieclips) to that scope. 

I want this because I want to separate code from viewing assets, and import
different templates. 
I want for example to put my video object on the scope of my imported assets
so I can mask my video object. I want to use a mask of the imported assets
and I want to put some imported assets like a shadow border on top of my
video. This is only possible if I get my video object on the same scope as
the imported assets or if I get the assets that I want on top of the video
object in a different movieclip (duplicatemovieclip).



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
Sent: donderdag 10 augustus 2006 6:49
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LoadMovie library

Bart,
 I don't find a
 solution where I can get my movieclips away of the library container to
some
 movieclip on the main.swf.
   
I think if you look at the technotes you'll find that it can't be done.

That doesn't mean you can't use loaded movie library assets. You just 
have to access them from the scope they where born to.

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

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

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

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


Re: [Flashcoders] Uncompress a gzipped file

2006-08-10 Thread ryanm

Imagine compressing XML files to a tiny
fraction of their original size and decompressing them within flash!

   No need, you can do this now. If you gzip a file and send it via post 
response (sendAndLoad), the browser will decompress it for you automatically 
(as long as the header says it's compressed). I implemented it in an app I 
built almost 2 years ago, where all XML data from the server was compressed. 
The only downside is that you lose the ability to getBytesLoaded, because 
the browser can't uncompress the file until it is completely loaded, and 
flash doesn't get any of the file until it is uncompressed.



The uses are endless, especially when you start to think about
compressing files within flash and sending them other places.

   The problem there is that the CPU power required to zip any sizeable 
amount of data with any reasonably good compression scheme will bring the 
Flash player to its knees. And if the data isn't that large, it doesn't 
really need to be compressed, does it? I, too, am working on some 
compression classes, but I'm pretty busy with other stuff right now and 
haven't had time lately to mess with it.



Anyway, making a custom format is out of my league it seems. I tried
working something out with Python but I can't pull it off. Surely the
throngs of people interested in this would figure something out,
unless I'm alone...

   I wrote an RLE class a while back, but it's not useful for anything 
large, and for smaller stuff the compression isn't that great. And you would 
also have to write the same class on the server side if you wanted to use it 
anywhere but flash. It's mostly useful for storing large, repetitive blocks 
of text for reuse in Flash later.


ryanm 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Uncompress a gzipped file

2006-08-10 Thread Claus Wahlers

ryanm wrote:

Imagine compressing XML files to a tiny fraction 
of their original size and decompressing them within flash!
No need, you can do this now. If you gzip a file and send it via post 
response (sendAndLoad), the browser will decompress it for you 
automatically 



A possible use case: You need to load themes into your application at 
runtime. Those themes potentially consist of many assets of different 
type (xml, bitmap, swf, etc) and people should be able to create those 
assets using their favourite tools which may or may not include flash.


In order to minimize requests to the server you could offer a way to 
pack them together accompanied by a catalog xml file (think swc). Again, 
users should be able to use their favourite zip tool to do that.


As FP9 supports runtime un/compressing of ByteArrays, it is 
theoretically possible to let it load zip archives and uncompress the 
contained files at runtime, with minimal processor load.


The problem however is that zip and zlib use different checksum methods, 
you thus can't uncompress files contained in zip archives created by 3rd 
party tools. You probably would have to write your own zip-like tool 
that uses either FP9 or a zlib library to compress files, and use 
ADLER32 checksums instead of the usual CRC-32 checksums.


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


RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-10 Thread Giles Taylor
I did it by getting the index in the textField, as you described, then
looping through every character in the html and counting the characters
that are not in tags. When (number of characters not in tags) == (the
index in the textfield) then you have your index in the html.
Mmm, nice!

;)

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 19:15
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

You have to take out all the html, amend it (using html) and then 
re-assign it all to the textfield.

Ok, but even doing that, you would have to use something like
Selection.getCaretIndex() to know where in the Textfield you are so you
can insert the IMG tag in the right place, but that wouldn't seem to
work because in the tests I did it Selection.getCaretIndex() gives you
the position in the string shown as it is in the textfield, not the HTML
code.  So the index # is way off because of the hidden HTML tags are
counted.  How would you know where in the HTML code (not in the rendered
HTML) the user placed their caret so you can insert the IMG tag?  

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders- 
[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Wednesday, August 09, 2006 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

Yes, but you should be writing to the .htmlText property not the .text

property as that will then keep all the styling in place via html
code.
You have to take out all the html, amend it (using html) and then 
re-assign it all to the textfield.

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: 09 August 2006 16:36
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow 
onquestion

To insert an image you need to process the text as text. So you
first

Yes, I understand that, :) but in doing that:

since writing to the text property of a TextField object destroys any

custom formatting associated with the field (i.e. the interal style 
profiles), [you] have to use the TextField.replaceSel() function (p.
889
in Moock's ASDG for FlashMX).

So with your TextFormat destroyed, you've sacrificed the user's
ability
to continue to format the text in order to add an image.  At least, 
that's how I understand it.  TextFormat does not have IMG as an 
available style.


Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions






-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-

[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
Sent: Wednesday, August 09, 2006 11:02 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

To insert an image you need to process the text as text. So you
first
need to get the html text (textfield.htmlText), insert the image
using

string functions and then re-insert the text into the textfield.

Because you know where the cursor is in the textfield text but not
in
the html text, you need to insert some kind of marker at the
cursor
position, and then replace that marker inside the html text with the
img
tag. That will do the trick.

On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 OK - follow me here for a fun mental exercise:

 I think the major issue I'm running into with this is the
TextFormat

 class relies on the text field's visual formatting described by
the
 Flash Players internal style profiles.  And since the TextFormat
class
 does not support an IMG tag, I cannot use TextFormat to insert
an
 image, I have to insert the IMG tag as a string. AND SO since
writing
 to the text property of a TextField object destroys any custom 
 formatting associated with the field (i.e. the interal style
profiles),
 I have to use the TextField.replaceSel() function (p. 889 in
Moock's

 ASDG for FlashMX).  AND since the replaceSel() function encodes
the
 IMG markup, you can't have it render the image!

 So it seems to be a catch-22 and I'm screwed using TextFormat and
trying
 to let the user also add an inline image.  Unless someone knows 
 otherwise, I am going to have to use a movieClip container instead
of an
 IMG tag.  That will not be ideal, but it might fly for this
project.

 I really wish they would make the HTML editing capabilities of
Flash

 better, but it doesn't look like that will happen any time soon.

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions

 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of John Grden
 Sent: Wednesday, August 09, 2006 9:04 AM
 To: Flashcoders mailing list
 

Re: [Flashcoders] LoadMovie library

2006-08-10 Thread Anthony Lee



I want this because I want to separate code from viewing assets, and import
different templates. 
  

I feel your pain Bart. Unfortunately it's a no can do:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1519.html

Do a text search for library and scan the page,  you should get the idea.

I want for example to put my video object on the scope of my imported assets
so I can mask my video object. I want to use a mask of the imported assets
and I want to put some imported assets like a shadow border on top of my
video. This is only possible if I get my video object on the same scope as
the imported assets or if I get the assets that I want on top of the video
object in a different movieclip (duplicatemovieclip).
  
I see what you mean. I think it'd take some serious monkey business to 
make that work.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] LoadMovie library

2006-08-10 Thread Bart Albrecht
I think I will be forced to use the bitmap class of flash 8 to take a bitmap
of the imported assets and copy thos bitmaps on to the stage :-s
This has 2 big disadvantages:
- processor overkill, first load a movieclip into a container, take a bitmap
copy of that movieclip, create new movieclip, put that bitmap into the new
movieclip, remove the movieclip from the container (imagine this for 500
assets ...)
- the quality of a bitmap is not that of a vector, so I will have to make
the vector movieclips quit big so I don't lose to much detail when I make a
bitmap and a user scales his window to a bigger screen.

I'm getting disappointed by Flash, how old is this program? And you can
still don't have a good working runtime external library.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
Sent: donderdag 10 augustus 2006 11:38
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LoadMovie library


 I want this because I want to separate code from viewing assets, and
import
 different templates. 
   
I feel your pain Bart. Unfortunately it's a no can do:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=Flash_MX_2004file=1519.html

Do a text search for library and scan the page,  you should get the idea.
 I want for example to put my video object on the scope of my imported
assets
 so I can mask my video object. I want to use a mask of the imported assets
 and I want to put some imported assets like a shadow border on top of my
 video. This is only possible if I get my video object on the same scope as
 the imported assets or if I get the assets that I want on top of the video
 object in a different movieclip (duplicatemovieclip).
   
I see what you mean. I think it'd take some serious monkey business to 
make that work.

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

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

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

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


Re: [Flashcoders] crossdomain

2006-08-10 Thread Kenneth Kawamoto

On 8/9/06, jcanistrum jcanistrum at gmail.com 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders wrote:

/ I´m reading but I fell I´m going to have problems since I´d like to have and

// app running as an .exe in the desktop loading these banners inside and the
// way it was shown there the settings would have to be set for each manchine
// the runs, is that true ?

/If you're creating a Projector, the local Sandbox rule won't apply, 
i.e. you can load remote contents without setting anything specifically.

That's my understanding.

Kenneth Kawamoto
http://www.materiaprima.co.uk


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Prefixing property names with underscore - conventions?

2006-08-10 Thread Adrian Park

I've googled for some enlightenment on this but haven't really found many
answers...

I've noticed many class authors prefix property names with an underscore, or
2 underscores or none at all. I often see all three of these prefix 'styles'
in one class. I haven't been able to figure out what the convention is.

Please show me the light.

Thanks
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


[Flashcoders] Flash Extension Package

2006-08-10 Thread Ravi Marella


Hi list,
I've got a problem while packaging a component I've developed..it's a
rotating menu component which will display any number of menu item
around a circle, the fla is working properly but when I package it to
.mxp the menu is not rotating and also the component parameters are not
getting displayed properly...can someone out there plz helpme with
this...please check the link for zip folder containing all the files
 
 
http://www.geocities.com/ravi_marella/rotatingmenu.zip
 
best regards,
Ravi
 
   
  
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Set Focus with JAWS running

2006-08-10 Thread Michael A. Jordan
There is a helpful, and timely, post on the Adobe Accessibility blog
regarding this issue:
http://blogs.adobe.com/accessibility/2006/08/moving_screen_reader_focus_in.h
tml

-- Michael

-Original Message-
From: vivek [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 07, 2006 9:35 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Set Focus with JAWS running

Hi,

 

Is there any way in flash where we can get the focus to the desired location
on click of a button?

 

For Example:  Suppose, we have 3 text fields and 3 buttons on a stage. When
we run the application with JAWS running, on click of button_1, the focus
should go to text1_txt and jaws should start reading the text from that
text field. Same applies to rest of the buttons and text fields.

 

Can we do this using action script or java script is required?

 

 

Regards,
Vivek Gaikwad - Accessibility Developer

Net Systems Informatics (I) Pvt. Ltd.
Tel: 022-26860485/6 Extension: 24

 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Ian Thomas

We tend to use them to specify private properties.

class MyClass
{
 private var _something1:Number;
 public var something2:Number;
}

Partly because it then makes replacing a public property with a
getter/setter pair easy:
class MyClass
{
 private var _something1:Number;
 private var _something2:Number;
 public function get something2():Number {return _something2;}
 public function set something2(num:Number):Void {_something2=num;}
}

and partly because it's easier to think up names in situations like:

class MyClass
{
 private var _something1:Number;

 public function MyClass(something1:Number)
 {
   _something1=something1;
 }
}

It's a just a convention we use in-house; there aren't any
Actionscript Community wide hard-and-fast rules about it.

Of course, Macromedia themselves vary whether they use underscores or
not for public variables, and I've never figured out the rhyme and
reason. Why _x and _y and _visible but not _enabled? Why not just x
and y?

Cheers,
 Ian


On 8/10/06, Adrian Park [EMAIL PROTECTED] wrote:

I've googled for some enlightenment on this but haven't really found many
answers...

I've noticed many class authors prefix property names with an underscore, or
2 underscores or none at all. I often see all three of these prefix 'styles'
in one class. I haven't been able to figure out what the convention is.

Please show me the light.

Thanks
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


[Flashcoders] Opening Flash 8 breaks pc sound

2006-08-10 Thread Paul Steven
Experiencing a weird problem with Flash 8 PC. When I open Flash 8, it
appears to stop all sound working on my PC such that when I close Flash 8,
no audio works in any app on my PC.

Anyone else experienced this problem and have any fixes?

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


Re: [Flashcoders] Prefixing property names with underscore - conventions?

2006-08-10 Thread Adrian Park

Thanks Claus and Johannes - I can see some benefit in that.

A.

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


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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Flash 8 breaks pc sound

2006-08-10 Thread Paul Steven
Not sure why but uninstalling iTunes seems to have fixed it for now. I did
this because I read about a problem on macs with iTunes, and this is the
only app I have installed since the sound was working properly

Hmm

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 10 August 2006 12:37
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Opening Flash 8 breaks pc sound

Experiencing a weird problem with Flash 8 PC. When I open Flash 8, it
appears to stop all sound working on my PC such that when I close Flash 8,
no audio works in any app on my PC.

Anyone else experienced this problem and have any fixes?

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DK - destroying objects from a class using arraynotation

2006-08-10 Thread Andy Stone
Have you tried...
 
this._targetMc.destroyObject(eval(slidemenu.theThumb + i));


Sometimes I find eval works when [] doesn't. -Andy



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Thursday, August 10, 2006 3:07 AM
To: Flashcoders mailing list
Subject: [Flashcoders] DK - destroying objects from a class using
arraynotation

Hi there! I have a class in which a few objects are created from my library
(loader
component instances and a button instance). They were created sequenciually
(IE hit0,
hit1, hit2, etc) At any rate - I need to destroy them abd then recreate
them.

I am having some issues finding the proper syntax to use destroyObject

For example I tried.


(from within my class)


function killElements() 
{
  for (var i:Number = 0; i  35; i++)
{
  this._targetMc.destroyObject(slidemenu[theThumb + i]);
  this._targetMc.destroyObject(slidemenu[theHit + i]);
}
}

this obviously does not work


My target hierarchy is

_root._targetMc.slidemenu (with the button and loader objects created in
here).

Ideas?

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


[Flashcoders] Movement in an oval shape

2006-08-10 Thread Paul Steven
I have written some code to move some stars in a circle.

This is a snippet of the code:

vStar_Object._x = (Math.cos((vStar_Object.circlePos/180)*Math.PI))*160 +
vStar_Object.centerX;
vStar_Object._y =
(Math.sin((vStar_Object.circlePos/180)*Math.PI))*160 + vStar_Object.centerY;


vStar_Object.circlePos =
vStar_Object.circlePos + vStar_Object.speed;


if (vStar_Object.circlePos == 360) {
vStar_Object.circlePos = 0;
}

if (vStar_Object._alpha  100) {
vStar_Object._alpha +=1;
}

This seems to work just fine.

Anyway I need to change this so they move in an oval shape (like an egg on
its side)

Not being a mathematics expert I wondered if anyone can suggest how I can
amend my code to do so.

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


Re: [Flashcoders] Movement in an oval shape

2006-08-10 Thread Jim Berkey
Check out the '3d Carousels' tutorials
http://www.gotoandlearn.com/

jimbo

*** REPLY SEPARATOR  ***

On 8/10/2006 at 2:05 PM Paul Steven wrote:

I have written some code to move some stars in a circle.

This is a snippet of the code:

vStar_Object._x = (Math.cos((vStar_Object.circlePos/180)*Math.PI))*160 +
vStar_Object.centerX;
   vStar_Object._y =
(Math.sin((vStar_Object.circlePos/180)*Math.PI))*160 +
vStar_Object.centerY;


   vStar_Object.circlePos =
vStar_Object.circlePos + vStar_Object.speed;


if (vStar_Object.circlePos == 360) {
   vStar_Object.circlePos = 0;
}

if (vStar_Object._alpha  100) {
   vStar_Object._alpha +=1;
}

This seems to work just fine.

Anyway I need to change this so they move in an oval shape (like an egg on
its side)

Not being a mathematics expert I wondered if anyone can suggest how I can
amend my code to do so.

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



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Movement in an oval shape

2006-08-10 Thread Andy Stone

You can fake in with _xscale/_yscale changes...

var inc = 3;

_root.onEnterFrame = function() {
vStar_Object._x =
(Math.cos((vStar_Object.circlePos/180)*Math.PI))*160+vStar_Object.centerX;
vStar_Object._y =
(Math.sin((vStar_Object.circlePos/180)*Math.PI))*160+vStar_Object.centerY;
vStar_Object.circlePos = vStar_Object.circlePos+vStar_Object.speed;
//
if (vStar_Object.circlePos180) {
vStar_Object._xscale -= inc;
vStar_Object._yscale = vStar_Object._xscale;
} else {
vStar_Object._xscale += inc;
vStar_Object._yscale = vStar_Object._xscale;
}
if (vStar_Object.circlePos == 360) {
vStar_Object.circlePos = 0;
}
if (vStar_Object._alpha100) {
vStar_Object._alpha += 1;
}
};


-Andy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: Thursday, August 10, 2006 9:06 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Movement in an oval shape

I have written some code to move some stars in a circle.

This is a snippet of the code:

vStar_Object._x = (Math.cos((vStar_Object.circlePos/180)*Math.PI))*160 +
vStar_Object.centerX;
vStar_Object._y =
(Math.sin((vStar_Object.circlePos/180)*Math.PI))*160 + vStar_Object.centerY;


vStar_Object.circlePos =
vStar_Object.circlePos + vStar_Object.speed;


if (vStar_Object.circlePos == 360) {
vStar_Object.circlePos = 0;
}

if (vStar_Object._alpha  100) {
vStar_Object._alpha +=1;
}

This seems to work just fine.

Anyway I need to change this so they move in an oval shape (like an egg on
its side)

Not being a mathematics expert I wondered if anyone can suggest how I can
amend my code to do so.

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Uncompress a gzipped file

2006-08-10 Thread Max

Zlib (Flash) uses an ADLER32 checksum, see RFC 1950 [1], whereas zip
uses CRC-32 [2]. The checksum is calculated over the uncompressed file
so imho it's impossible to uncompress a file in a 3rd party created zip
archive (you don't have the ADLER32 checksum that Flash needs - the dog
bites its tail there), which really is a pity.


Yeah, the same think happened with gzip for me. I wasn't aware that
Adler32 was being used though, thanks.


No need, you can do this now. If you gzip a file and send it via post
response (sendAndLoad), the browser will decompress it for you automatically
(as long as the header says it's compressed). I implemented it in an app I
built almost 2 years ago, where all XML data from the server was compressed.
The only downside is that you lose the ability to getBytesLoaded, because
the browser can't uncompress the file until it is completely loaded, and
flash doesn't get any of the file until it is uncompressed.


Yeah but only so many browsers support this, IE6 doesn't, that's 90%
of the Internet right there.


The problem there is that the CPU power required to zip any sizeable
amount of data with any reasonably good compression scheme will bring the
Flash player to its knees. And if the data isn't that large, it doesn't
really need to be compressed, does it? I, too, am working on some
compression classes, but I'm pretty busy with other stuff right now and
haven't had time lately to mess with it.



Not as much as you'd think (I think), flash files are commonly
compressed themselves, and it's not much for Flash to decompress them
on the spot. It's not as if I'm not expecting a little extra loading
time here, but I'm not writing the decompressor in Actionscript, the
whole point of this is to make Flash do the hard work.



I wrote an RLE class a while back, but it's not useful for anything
large, and for smaller stuff the compression isn't that great. And you would
also have to write the same class on the server side if you wanted to use it
anywhere but flash. It's mostly useful for storing large, repetitive blocks
of text for reuse in Flash later.



Personally the ideal situation for me would be a customized version of
something like gzip, only one that provided the proper checksums that
Flash wants. Expecting the server to compress this might be too much,
all i had in mind were pre-compressed files. Choosing whether or not
to compress them is a choice based on the advantages versus the
disadvantages. In my case it's a huge advantage, since even the
fastest compression shrinks my particular file by 60%, I'm sure most
huge text/xml files could easily beat that.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] RE: WSIWYG HTML text editor in Flash

2006-08-10 Thread dave matthews


maybe this post could be TRIMMED a bit girls?


--

Message: 20
Date: Thu, 10 Aug 2006 09:58:44 +0100
From: Giles Taylor [EMAIL PROTECTED]
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain;   charset=us-ascii

I did it by getting the index in the textField, as you described, then
looping through every character in the html and counting the characters
that are not in tags. When (number of characters not in tags) == (the
index in the textfield) then you have your index in the html.
Mmm, nice!

;)

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 19:15
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

You have to take out all the html, amend it (using html) and then 
re-assign it all to the textfield.


Ok, but even doing that, you would have to use something like
Selection.getCaretIndex() to know where in the Textfield you are so you
can insert the IMG tag in the right place, but that wouldn't seem to
work because in the tests I did it Selection.getCaretIndex() gives you
the position in the string shown as it is in the textfield, not the HTML
code.  So the index # is way off because of the hidden HTML tags are
counted.  How would you know where in the HTML code (not in the rendered
HTML) the user placed their caret so you can insert the IMG tag?

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders- 
[EMAIL PROTECTED] On Behalf Of Giles Taylor

Sent: Wednesday, August 09, 2006 12:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


Yes, but you should be writing to the .htmlText property not the .text



property as that will then keep all the styling in place via html

code.
You have to take out all the html, amend it (using html) and then 
re-assign it all to the textfield.


Giles

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

Merrill,

Jason
Sent: 09 August 2006 16:36
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow 
onquestion



To insert an image you need to process the text as text. So you

first

Yes, I understand that, :) but in doing that:

since writing to the text property of a TextField object destroys any


custom formatting associated with the field (i.e. the interal style 
profiles), [you] have to use the TextField.replaceSel() function (p.

889

in Moock's ASDG for FlashMX).

So with your TextFormat destroyed, you've sacrificed the user's

ability
to continue to format the text in order to add an image.  At least, that's 
how I understand it.  TextFormat does not have IMG as an available 
style.



Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-



[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
Sent: Wednesday, August 09, 2006 11:02 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


To insert an image you need to process the text as text. So you

first

need to get the html text (textfield.htmlText), insert the image

using



string functions and then re-insert the text into the textfield.

Because you know where the cursor is in the textfield text but not

in

the html text, you need to insert some kind of marker at the

cursor

position, and then replace that marker inside the html text with the

img

tag. That will do the trick.

On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason 
[EMAIL PROTECTED] wrote:



OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the

TextFormat



class relies on the text field's visual formatting described by

the

Flash Players internal style profiles.  And since the TextFormat

class

does not support an IMG tag, I cannot use TextFormat to insert

an

image, I have to insert the IMG tag as a string. AND SO since

writing
to the text property of a TextField object destroys any custom 
formatting associated with the field (i.e. the interal style

profiles),

I have to use the TextField.replaceSel() function (p. 889 in

Moock's



ASDG for FlashMX).  AND since the replaceSel() function encodes

the

IMG markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and

trying
to let the user also add an inline image.  Unless someone knows 
otherwise, I am going to have to use a movieClip container instead

of an

IMG tag.  That will not be ideal, but it might fly for 

Re: [Flashcoders] flash and sessions

2006-08-10 Thread Matthew Ganz
hi tony. thanks for the response. i understand i can do it that way, but can 
i get the jsession id from the response header?


thanks. -- matt.
- Original Message - 
From: Anthony Lee [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, August 10, 2006 12:33 AM
Subject: Re: [Flashcoders] flash and sessions




does anyone have any experience using flash and sessions? specifically, 
i'm trying to get flash to read the jsession id from the http header.
You can just push it into flash from the object tag when the page is 
written:


myFlash.swf?jsession_id=woof

Turns up in Flash at:

_root.jsession

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem with escape sequenz in AMFPHP

2006-08-10 Thread Peter Oliver Geller
Hi list,
 
i want a linebreak in my flashapplication but it doesn´t work.
 
In my Database i have the following string Back´s\n.Pure frische. bla bla
bla,
i have the escape sequenz (\n) in there to force a linebreak in my flash
textfield,
but it doesn´t work. 
 
I get the data via amfphp newest version and pull it into my textfield from
the recordset.
But flash show me the whole string from my database instead of a linebreak.
 
Should i write me a function to displace me the string or can i set
something in the amfphp gateway.php?
 
 
Don´t know whats the best way for that?
 
Thanks for help
 
Pete
 
::
Peter Oliver Geller

virtual effects artist
interactive design  development
 
Lindenstr. 14 50674 Cologne 
0221 - 92 42 81 52 phone
 
 http://www.pixel-gallery.com/ www.pixel-gallery.com
 mailto:[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] Web Services Classes

2006-08-10 Thread Patrick Jean
Hello. I don't think it's possible, but just in case I'm wrong, I'm taking a
chance and posting it.

 

I have a Web Service that is used as an interface to an API. Some of the
methods of the web service requires as parameters some classes defined as
public in the web service.

 

I doubt it's doable, but is there any way in flash to create a class using a
definition stored elsewhere than within flash or withing an .as page ?

 

thanks a lot

 

Pat

 

 

Patrick Jean

Directeur de projets internet

Monac'OH Data Mercantour

http://www.monacoh.com

 

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

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


RE: [Flashcoders] Problem with escape sequenz in AMFPHP

2006-08-10 Thread André Goliath
try \r instead of \n

Normalerweise unterstütze ich ja keine Bierwerbung ;)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Oliver
Geller
Sent: Thursday, August 10, 2006 4:33 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Problem with escape sequenz in AMFPHP

Hi list,
 
i want a linebreak in my flashapplication but it doesn´t work.
 
In my Database i have the following string Back´s\n.Pure frische. bla bla
bla,
i have the escape sequenz (\n) in there to force a linebreak in my flash
textfield,
but it doesn´t work. 
 
I get the data via amfphp newest version and pull it into my textfield from
the recordset.
But flash show me the whole string from my database instead of a linebreak.
 
Should i write me a function to displace me the string or can i set
something in the amfphp gateway.php?
 
 
Don´t know whats the best way for that?
 
Thanks for help
 
Pete
 
::
Peter Oliver Geller

virtual effects artist
interactive design  development
 
Lindenstr. 14 50674 Cologne 
0221 - 92 42 81 52 phone
 
 http://www.pixel-gallery.com/ www.pixel-gallery.com
 mailto:[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


RE: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-10 Thread Subba Chalamalasetty
Hey chris,

Thank you very much for your help and time.I have good news about this
program. focusIn and focusOut events worked and now as long as I am not
using onRollOver, onROllOut, onPress, onRelease the program is working
fine. But there is one problem when I use focus in and out..i.e when I
click on the textinput, I am getting the rollover and also could enter
data, but when I come out (focus out)...untill I click somewhere else,
that rollover is getting carried. If that small problem is solved..that
will be a huge conquer for me. I am trying different ways to get it. If
you have time, can you please suggest me some ideas from your side. Once
again thank you very much for your help...here is the code

  txt.addEventListener(focusIn,Delegate.create(this,txtOver));

  txt.addEventListener(focusOut,Delegate.create(this,txtPress));

private function txtOver(){
tt786 = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt786.showTip(Total sales.);

}

private function txtPress(){
tt786.removeTip();
 // TRIED onRollOut also
   tx.onKillFocus = function(){
tt786.removeTip();
trace(is it coming out?);
   }   
}


Thanks,
Subba
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 6:23 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

wow, ok, I've spent way too much time on this so I have to get back to 
work. But here's what my last hour showed me:

txt has no onPress, onRelease, etc.
You cannot determine if the TextField inside a TextInput is rolled over 
or out. There are no onRollOver/onRollOut methods to use.
You can determine if the TextInput receives focus(ie is clicked in or 
tabbed to) with
txt.addEventListener(focusIn,this);
txt.addEventListener(focusOut,this);

You can consistently determine a way to show the clip by putting an 
invisible button above the text field. But this stops the text field 
from receiving input, and so you must set _visible=false on the button 
after its rolled over. But now we have no way of determining when we've 
rolled off the textfield, and so there's no way to turn off the tooltip.

I never realized how broken this whole thing is. But it seems like 
TextField (not TextInput) objects don't have any event handling, and 
instead whatever behind them will receive onRollOver/Out events. This 
makes it really hard to do anything like a tooltip with them.

Sorry I couldn't give you a better answer!
Chris



Subba Chalamalasetty wrote:

I did change it when using it for the first time...I noticed the
function names are different and changed them so that they are same.
I also tried this

txt.onRollOver = txt.onPress = Delegate.create(this, txtOver);
txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

private function txtOver(){
   tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
   tt.showTip(Total sales.);
   
   }

private function txtPress(){
   tt.removeTip();
   oldOnPress.apply(txt);
}

I am still having the same problem.

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Subba
Chalamalasetty
Sent: Wednesday, August 09, 2006 5:07 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Tooltip rollovers for textinput..help plss



I tried this also...still same problem..

Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

This:

   txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

   txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that works,
Chris


Subba Chalamalasetty wrote:

  

Hi Chris,

I tried using Delegate and i am still having the same problem.
I used your code and tried to save the onpress handler,but didn't work
import mx.utils.Delegate;
class test {
   private var txt:TextInput;
   private var oldOnPress:Function;
   private var tt:ToolTip;
   private function onLoad(){
  oldOnPress = txt.onPress;
  txt.onRollOver = Delegate.create(this, txtOver);
  txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
   }

   private function txtOver(){
  tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip(Total sales.);
   }

   private function txtOut(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }
}

it is still having the same problem.Am I using the right event?.I am
totally lost and donno y it is not working(I also used TeoToolTip
component and it was giving me the same problem too).can you help me

AW: [Flashcoders] Problem with escape sequenz in AMFPHP

2006-08-10 Thread Peter Oliver Geller
I tried it before, but doesn´t work also.

Gave me the same ouptut like the \n thing!

Becks ist nur zum testen da :]

Cheers

Pete

::
Peter Oliver Geller

virtual effects artist
interactive design  development
 
Ricarda-Huch-Str. 7 50858 Cologne 
02234 - 99 52 63 phone
0163 - 63 66 088 mobile
 
www.pixel-gallery.com
[EMAIL PROTECTED]
:: 
 

»» -Ursprüngliche Nachricht-
»» Von: [EMAIL PROTECTED] 
»» [mailto:[EMAIL PROTECTED] Im 
»» Auftrag von André Goliath
»» Gesendet: Donnerstag, 10. August 2006 16:37
»» An: 'Flashcoders mailing list'
»» Betreff: RE: [Flashcoders] Problem with escape sequenz in AMFPHP
»» 
»» try \r instead of \n
»» 
»» Normalerweise unterstütze ich ja keine Bierwerbung ;)
»» 
»» -Original Message-
»» From: [EMAIL PROTECTED]
»» [mailto:[EMAIL PROTECTED] On Behalf 
»» Of Peter Oliver Geller
»» Sent: Thursday, August 10, 2006 4:33 PM
»» To: 'Flashcoders mailing list'
»» Subject: [Flashcoders] Problem with escape sequenz in AMFPHP
»» 
»» Hi list,
»»  
»» i want a linebreak in my flashapplication but it doesn´t work.
»»  
»» In my Database i have the following string Back´s\n.Pure 
»» frische. bla bla bla, i have the escape sequenz (\n) in 
»» there to force a linebreak in my flash textfield, but it 
»» doesn´t work. 
»»  
»» I get the data via amfphp newest version and pull it into my 
»» textfield from the recordset.
»» But flash show me the whole string from my database instead 
»» of a linebreak.
»»  
»» Should i write me a function to displace me the string or 
»» can i set something in the amfphp gateway.php?
»»  
»»  
»» Don´t know whats the best way for that?
»»  
»» Thanks for help
»»  
»» Pete
»»  
»» ::
»» Peter Oliver Geller
»» 
»» virtual effects artist
»» interactive design  development
»»  
»» Lindenstr. 14 50674 Cologne
»» 0221 - 92 42 81 52 phone
»»  
»»  http://www.pixel-gallery.com/ www.pixel-gallery.com  
»» mailto:[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
»» 
»» 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Reporting load success from a delegate

2006-08-10 Thread Darren Bowers
Wat is the easiest way to report back success or failure at the time the
class (myClass) is instantiated?
Since doSomething() has taken control of the load handling, I cant pass a
value back via the constructor function of load success. Any help would be
appreciated.
 
import mx.utils.Delegate;

class myClass
{

private var myxml:XML;

public function myClass()
{
this.myxml = new XML();
this.myxml.ignoreWhite = true;
this.myxml.onLoad = Delegate.create(this,DoSomething);
this.myxml.load(test.xml);
}

private function doSomething(success:Boolean)
{
trace(success= +success);
//do something
}

}

CAUTION  DISCLAIMER: The information contained in this e-mail message
and/or any accompanying data or documents contain information that is 
confidential and subject to legal privilege. The information is intended
only for the recipient named in this message. The sender is excluded from
any liability arising from any further use, dissemination, distribution,
transmission or copying of this information and /or accompanying data by
the recipient. If you are not the intended recipient, you must immediately
erase the information along with all copies of this message and accompanying
data and notify the sender. Views expressed in this message are those of the
original sender, and are not necessarily the views of WestOne Services.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem with escape sequenz in AMFPHP

2006-08-10 Thread André Goliath
Are you seeing the \r in the text field? I´ve never worked with amfphp,
but maybe try to re-escape the string such as

input_str = input_str.split(\\r).join(\r);  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Oliver
Geller
Sent: Thursday, August 10, 2006 4:44 PM
To: 'Flashcoders mailing list'
Subject: AW: [Flashcoders] Problem with escape sequenz in AMFPHP

I tried it before, but doesn´t work also.

Gave me the same ouptut like the \n thing!

Becks ist nur zum testen da :]

Cheers

Pete

::
Peter Oliver Geller

virtual effects artist
interactive design  development
 
Ricarda-Huch-Str. 7 50858 Cologne 
02234 - 99 52 63 phone
0163 - 63 66 088 mobile
 
www.pixel-gallery.com
[EMAIL PROTECTED]
:: 
 

»» -Ursprüngliche Nachricht-
»» Von: [EMAIL PROTECTED] 
»» [mailto:[EMAIL PROTECTED] Im 
»» Auftrag von André Goliath
»» Gesendet: Donnerstag, 10. August 2006 16:37
»» An: 'Flashcoders mailing list'
»» Betreff: RE: [Flashcoders] Problem with escape sequenz in AMFPHP
»» 
»» try \r instead of \n
»» 
»» Normalerweise unterstütze ich ja keine Bierwerbung ;)
»» 
»» -Original Message-
»» From: [EMAIL PROTECTED]
»» [mailto:[EMAIL PROTECTED] On Behalf 
»» Of Peter Oliver Geller
»» Sent: Thursday, August 10, 2006 4:33 PM
»» To: 'Flashcoders mailing list'
»» Subject: [Flashcoders] Problem with escape sequenz in AMFPHP
»» 
»» Hi list,
»»  
»» i want a linebreak in my flashapplication but it doesn´t work.
»»  
»» In my Database i have the following string Back´s\n.Pure 
»» frische. bla bla bla, i have the escape sequenz (\n) in 
»» there to force a linebreak in my flash textfield, but it 
»» doesn´t work. 
»»  
»» I get the data via amfphp newest version and pull it into my 
»» textfield from the recordset.
»» But flash show me the whole string from my database instead 
»» of a linebreak.
»»  
»» Should i write me a function to displace me the string or 
»» can i set something in the amfphp gateway.php?
»»  
»»  
»» Don´t know whats the best way for that?
»»  
»» Thanks for help
»»  
»» Pete
»»  
»» ::
»» Peter Oliver Geller
»» 
»» virtual effects artist
»» interactive design  development
»»  
»» Lindenstr. 14 50674 Cologne
»» 0221 - 92 42 81 52 phone
»»  
»»  http://www.pixel-gallery.com/ www.pixel-gallery.com  
»» mailto:[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
»» 
»» 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


AW: [Flashcoders] Problem with escape sequenz in AMFPHP

2006-08-10 Thread Peter Oliver Geller
Super!

That was the function i´m searching for!!!
Never used the a split.join combo before :]

Thanks 

::
Peter Oliver Geller

virtual effects artist
interactive design  development
 
Ricarda-Huch-Str. 7 50858 Cologne 
02234 - 99 52 63 phone
0163 - 63 66 088 mobile
 
www.pixel-gallery.com
[EMAIL PROTECTED]
:: 
 

»» -Ursprüngliche Nachricht-
»» Von: [EMAIL PROTECTED] 
»» [mailto:[EMAIL PROTECTED] Im 
»» Auftrag von André Goliath
»» Gesendet: Donnerstag, 10. August 2006 16:51
»» An: 'Flashcoders mailing list'
»» Betreff: RE: [Flashcoders] Problem with escape sequenz in AMFPHP
»» 
»» Are you seeing the \r in the text field? I´ve never worked 
»» with amfphp, but maybe try to re-escape the string such as
»» 
»» input_str = input_str.split(\\r).join(\r);  
»» 
»» 
»» -Original Message-
»» From: [EMAIL PROTECTED]
»» [mailto:[EMAIL PROTECTED] On Behalf 
»» Of Peter Oliver Geller
»» Sent: Thursday, August 10, 2006 4:44 PM
»» To: 'Flashcoders mailing list'
»» Subject: AW: [Flashcoders] Problem with escape sequenz in AMFPHP
»» 
»» I tried it before, but doesn´t work also.
»» 
»» Gave me the same ouptut like the \n thing!
»» 
»» Becks ist nur zum testen da :]
»» 
»» Cheers
»» 
»» Pete
»» 
»» ::
»» Peter Oliver Geller
»» 
»» virtual effects artist
»» interactive design  development
»»  
»» Ricarda-Huch-Str. 7 50858 Cologne
»» 02234 - 99 52 63 phone
»» 0163 - 63 66 088 mobile
»»  
»» www.pixel-gallery.com
»» [EMAIL PROTECTED]
»» :: 
»»  
»» 
»» »» -Ursprüngliche Nachricht-
»» »» Von: [EMAIL PROTECTED]
»» »» [mailto:[EMAIL PROTECTED] Im »» 
»» Auftrag von André Goliath »» Gesendet: Donnerstag, 10. 
»» August 2006 16:37 »» An: 'Flashcoders mailing list'
»» »» Betreff: RE: [Flashcoders] Problem with escape sequenz in 
»» AMFPHP »» »» try \r instead of \n »» »» Normalerweise 
»» unterstütze ich ja keine Bierwerbung ;) »» »» -Original 
»» Message- »» From: [EMAIL PROTECTED]
»» »» [mailto:[EMAIL PROTECTED] On 
»» Behalf »» Of Peter Oliver Geller »» Sent: Thursday, August 
»» 10, 2006 4:33 PM »» To: 'Flashcoders mailing list'
»» »» Subject: [Flashcoders] Problem with escape sequenz in 
»» AMFPHP »» »» Hi list, »» »» i want a linebreak in my 
»» flashapplication but it doesn´t work.
»» »»
»» »» In my Database i have the following string Back´s\n.Pure 
»» »» frische. bla bla bla, i have the escape sequenz (\n) in 
»» »» there to force a linebreak in my flash textfield, but it 
»» »» doesn´t work. 
»» »»
»» »» I get the data via amfphp newest version and pull it into 
»» my »» textfield from the recordset.
»» »» But flash show me the whole string from my database 
»» instead »» of a linebreak.
»» »»
»» »» Should i write me a function to displace me the string or 
»» »» can i set something in the amfphp gateway.php?
»» »»
»» »»
»» »» Don´t know whats the best way for that?
»» »»
»» »» Thanks for help
»» »»
»» »» Pete
»» »»
»» »» ::
»» »» Peter Oliver Geller
»» »»
»» »» virtual effects artist
»» »» interactive design  development
»» »»
»» »» Lindenstr. 14 50674 Cologne
»» »» 0221 - 92 42 81 52 phone
»» »»
»» »»  http://www.pixel-gallery.com/ www.pixel-gallery.com »» 
»» mailto:[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 »» »» 
»» 
»» ___
»» Flashcoders@chattyfig.figleaf.com
»» To change your subscription options or search the archive:
»» http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
»» 
»» Brought to you by Fig Leaf Software
»» Premier Authorized Adobe Consulting and Training 
»» http://www.figleaf.com http://training.figleaf.com
»» 
»» ___
»» Flashcoders@chattyfig.figleaf.com
»» To change your subscription options or search the archive:
»» http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
»» 
»» Brought to you by Fig Leaf Software
»» Premier Authorized Adobe Consulting and Training 
»» http://www.figleaf.com http://training.figleaf.com
»» 

Re: [Flashcoders] DK - destroying objects from a class using arraynotation

2006-08-10 Thread dnk

Andy Stone wrote:

Have you tried...
 
this._targetMc.destroyObject(eval(slidemenu.theThumb + i));



Sometimes I find eval works when [] doesn't. -Andy




I have not tried that - I will give it a go in a few hours.


Thanks!

d
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Reporting load success from a delegate

2006-08-10 Thread Jeroen Beckers
You can use the EventDispatcher.

import mx.utils.Delegate;
//import the EventDispatcher class
import mx.events.EventDispatcher;
class myClass
{

private var myxml:XML;
   
//declare the functions
private var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;

public function myClass()
{
//initialize EventDispatcher
EventDispatcher.initialize(this);
this.myxml = new XML();
this.myxml.ignoreWhite = true;
this.myxml.onLoad = Delegate.create(this,DoSomething);
this.myxml.load(test.xml);
}

private function doSomething(success:Boolean)
{
trace(success= +success);
   
//create the object to be dispatched
var myObject:Object = new Object();
//add the type
myObject.type = onXMLLoad;
   
/*
* This property isn't mandatory, but it is recommended
* to add it to the object. It tells the user what class
* dispatched the event.
*/
myObject.success = success;
myObject.target = this;
dispatchEvent(myObject);
}
}

And in your .fla:

var foo:myClass = new myClass();
foo.addEventListener(onXMLLoad, this);
function onXMLLoad(eObj:Object):Void
{
trace(Success? +eObj.success);
}

Ps: It's a good practice to start your classes with a capital letter
(MyClass in stead of myClass).

Darren Bowers wrote:
 Wat is the easiest way to report back success or failure at the time the
 class (myClass) is instantiated?
 Since doSomething() has taken control of the load handling, I cant pass a
 value back via the constructor function of load success. Any help would be
 appreciated.
  
 import mx.utils.Delegate;

 class myClass
 {

 private var myxml:XML;

 public function myClass()
 {
 this.myxml = new XML();
 this.myxml.ignoreWhite = true;
 this.myxml.onLoad = Delegate.create(this,DoSomething);
 this.myxml.load(test.xml);
 }

 private function doSomething(success:Boolean)
 {
 trace(success= +success);
 //do something
 }

 }
   
 

 
 CAUTION  DISCLAIMER: The information contained in this e-mail message
 and/or any accompanying data or documents contain information that is 
 confidential and subject to legal privilege. The information is intended
 only for the recipient named in this message. The sender is excluded from
 any liability arising from any further use, dissemination, distribution,
 transmission or copying of this information and /or accompanying data by
 the recipient. If you are not the intended recipient, you must immediately
 erase the information along with all copies of this message and accompanying
 data and notify the sender. Views expressed in this message are those of the
 original sender, and are not necessarily the views of WestOne Services.
 

   
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] need help in drawing arrow

2006-08-10 Thread Rutul Patel

Hi people,
anybody know how to write AS of drawing arrow.
if anybody has can anybody tell me how?.
thanks
Rutul Patel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DK - destroying objects from a class using arraynotation

2006-08-10 Thread Arul Prasad M L

If its mx.core.UIObject's destroyObject that you are talking about,
destroyObject takes the instanceName of the object, not the instance
reference. you'll just have to pass the instance name as a string.

So, your code should look somethng like:

function killElements()
{
for (var i:Number = 0; i  35; i++)
  {
this._targetMc.slidemenu.destroyObject(theThumb + i);
this._targetMc.slidemenu.destroyObject(theHit + i);
  }
}

Hope that helps!

~Arul Prasad
http://arulprasad.blogspot.com



On 8/10/06, dnk [EMAIL PROTECTED] wrote:


Andy Stone wrote:
 Have you tried...

 this._targetMc.destroyObject(eval(slidemenu.theThumb + i));


 Sometimes I find eval works when [] doesn't. -Andy



I have not tried that - I will give it a go in a few hours.


Thanks!

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

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


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

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


Re: [Flashcoders] Reporting load success from a delegate

2006-08-10 Thread Jeroen Beckers
Oh, sorry, i switched 2 lines, the explanation is about the .target
property, not the .success property.



Jeroen Beckers wrote:
 You can use the EventDispatcher.

 import mx.utils.Delegate;
 //import the EventDispatcher class
 import mx.events.EventDispatcher;
 class myClass
 {

 private var myxml:XML;

 //declare the functions
 private var dispatchEvent:Function;
 public var addEventListener:Function;
 public var removeEventListener:Function;

 public function myClass()
 {
 //initialize EventDispatcher
 EventDispatcher.initialize(this);
 this.myxml = new XML();
 this.myxml.ignoreWhite = true;
 this.myxml.onLoad = Delegate.create(this,DoSomething);
 this.myxml.load(test.xml);
 }

 private function doSomething(success:Boolean)
 {
 trace(success= +success);

 //create the object to be dispatched
 var myObject:Object = new Object();
 //add the type
 myObject.type = onXMLLoad;

 /*
 * This property isn't mandatory, but it is recommended
 * to add it to the object. It tells the user what class
 * dispatched the event.
 */
 myObject.success = success;
 myObject.target = this;
 dispatchEvent(myObject);
 }
 }

 And in your .fla:

 var foo:myClass = new myClass();
 foo.addEventListener(onXMLLoad, this);
 function onXMLLoad(eObj:Object):Void
 {
 trace(Success? +eObj.success);
 }

 Ps: It's a good practice to start your classes with a capital letter
 (MyClass in stead of myClass).

 Darren Bowers wrote:
   
 Wat is the easiest way to report back success or failure at the time the
 class (myClass) is instantiated?
 Since doSomething() has taken control of the load handling, I cant pass a
 value back via the constructor function of load success. Any help would be
 appreciated.
  
 import mx.utils.Delegate;

 class myClass
 {

 private var myxml:XML;

 public function myClass()
 {
 this.myxml = new XML();
 this.myxml.ignoreWhite = true;
 this.myxml.onLoad = Delegate.create(this,DoSomething);
 this.myxml.load(test.xml);
 }

 private function doSomething(success:Boolean)
 {
 trace(success= +success);
 //do something
 }

 }
   
 

 
 CAUTION  DISCLAIMER: The information contained in this e-mail message
 and/or any accompanying data or documents contain information that is 
 confidential and subject to legal privilege. The information is intended
 only for the recipient named in this message. The sender is excluded from
 any liability arising from any further use, dissemination, distribution,
 transmission or copying of this information and /or accompanying data by
 the recipient. If you are not the intended recipient, you must immediately
 erase the information along with all copies of this message and accompanying
 data and notify the sender. Views expressed in this message are those of the
 original sender, and are not necessarily the views of WestOne Services.
 

   
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Form validation, stuck with old code for this old subject

2006-08-10 Thread elibol

Hi guys,

I searched the archives for some code but it's all outdated, like people
appending functions for String.prototype and such.

I was wondering if there is any code as2 that validates form fields?

Thank you,

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


Re: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-10 Thread Chris Hill
Yeah, I tried a lot of methods to attempt to get the tooltip to 
disappear and ran into just too many problems. I'm sure there's a way 
tho using some ridiculous workaround. If you find the answer, please 
post it!


And, perhaps I should've mentioned this earlier, but I do have a ToolTip 
class available on my website:

http://ubergeek.tv/article.php?pid=96

I just updated it with the latest version, which has a couple 
fixes/features added. For my own projects, I don't actually use 
onRollOver/Out etc. for toolitps because they generally muck up event 
handling elsewhere. I don't recommend my method necessarily but it has 
worked for me in the past better than mucking with event handling. 
Adding a tooltip to a TextInput using my method is as simple as this:


ToolTip.getInstance().addClip(txt, My tooltip text);

You can download the zip, check out the fla, and install and modify the 
packages if it works for you.


C

Subba Chalamalasetty wrote:


Hey chris,

Thank you very much for your help and time.I have good news about this
program. focusIn and focusOut events worked and now as long as I am not
using onRollOver, onROllOut, onPress, onRelease the program is working
fine. But there is one problem when I use focus in and out..i.e when I
click on the textinput, I am getting the rollover and also could enter
data, but when I come out (focus out)...untill I click somewhere else,
that rollover is getting carried. If that small problem is solved..that
will be a huge conquer for me. I am trying different ways to get it. If
you have time, can you please suggest me some ideas from your side. Once
again thank you very much for your help...here is the code

 txt.addEventListener(focusIn,Delegate.create(this,txtOver));

 txt.addEventListener(focusOut,Delegate.create(this,txtPress));

private function txtOver(){
tt786 = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt786.showTip(Total sales.);

}

private function txtPress(){
   tt786.removeTip();
 // TRIED onRollOut also
  tx.onKillFocus = function(){
tt786.removeTip();
trace(is it coming out?);
	   }   
   }



Thanks,
Subba
	 
-Original Message-

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 6:23 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

wow, ok, I've spent way too much time on this so I have to get back to 
work. But here's what my last hour showed me:


txt has no onPress, onRelease, etc.
You cannot determine if the TextField inside a TextInput is rolled over 
or out. There are no onRollOver/onRollOut methods to use.
You can determine if the TextInput receives focus(ie is clicked in or 
tabbed to) with

txt.addEventListener(focusIn,this);
txt.addEventListener(focusOut,this);

You can consistently determine a way to show the clip by putting an 
invisible button above the text field. But this stops the text field 
from receiving input, and so you must set _visible=false on the button 
after its rolled over. But now we have no way of determining when we've 
rolled off the textfield, and so there's no way to turn off the tooltip.


I never realized how broken this whole thing is. But it seems like 
TextField (not TextInput) objects don't have any event handling, and 
instead whatever behind them will receive onRollOver/Out events. This 
makes it really hard to do anything like a tooltip with them.


Sorry I couldn't give you a better answer!
Chris



Subba Chalamalasetty wrote:

 


I did change it when using it for the first time...I noticed the
function names are different and changed them so that they are same.
I also tried this

txt.onRollOver = txt.onPress = Delegate.create(this, txtOver);
txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

private function txtOver(){
tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt.showTip(Total sales.);

}

  private function txtPress(){
 tt.removeTip();
 oldOnPress.apply(txt);
  }

I am still having the same problem.

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Subba
Chalamalasetty
Sent: Wednesday, August 09, 2006 5:07 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Tooltip rollovers for textinput..help plss



I tried this also...still same problem..

Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

This:

 txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

 txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that 

Re: [Flashcoders] Madobe certified professional - still recommend?

2006-08-10 Thread Kevin Newman
I was also interesting in hearing some responses to this question, or 
even if Adobe/Macromedia certification is useful in general. Anyone?


Thanks,

Kevin N.


André Goliath wrote:

Hello List,

I´m thinking about becoming a certifed Macromedia(?) Flash MX04 Developer,
but I wonder if this qualification is still of any worth, what do you think?
Have you profited in any way from your certification?

Is there anything in the pipeline for Flash 8/9 or will there ever be?

Flash MX04 certified sounds a bit outdated IMHO,...

Thanks for any and all thoughts,

André
  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: *** Spam *** Re: [Flashcoders] New Flash based website

2006-08-10 Thread Aaron Buchanan
Hi Tony,

I am using it on a site I am doing now, http://build.lab-media.com/mpvs

Cheers!
Aaron


On 8/9/06 9:26 PM, Anthony Lee [EMAIL PROTECTED] wrote:

 
 use javascript to resize the swf's object
 height attribute, so that when your user opens a section that will increase
 your stage height beyond the window height,
 Hi Aaron,
 
 I noticed a site doing that just this morning. Switching the swf
 attributes from Javascript doesn't mess with the application's state?
 Does anyone have any sample code they could point at?
 
 Tony
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


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

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


Re: [Flashcoders] New Flash based website

2006-08-10 Thread Aaron Buchanan
Hi Bjorn,

There is an issue that occurs when users with smaller monitors (13
macbooks) accessing 100% flash content. Say you do not want to scale the
content down to 13. You also do not want to write a flash scroller, because
the browser has excellent support and performance for this, and Flash might
have a harder time.

So my solution is that I detect the window height/width, and if they are
less than my minimum, I set the swf object to my minimum height, otherwise I
allow it to be 100% with noScale.

You can see an example of this at a site I am working on (still in dev):
http://build.lab-media.com/mpvs

Cheers!

-- 
Aaron Buchanan | Flash Developer, Lab-Media.com | T 909 702 1368



On 8/9/06 10:28 PM, Bjorn Schultheiss [EMAIL PROTECTED]
wrote:

 Tone,
 
 noScale  showAll? They are not mutually exclusive?
 
 Typing without thinking to hard.
 
 
 What will this do for me? If you're using showAll then Stage.height etc.
 is lost? Is that why you have to get the values from the browser?
 
 Here's the cool part,
 Say you want to display a video fullscreen.. The stage could be 1px x 1px,
 it doesn't matter.
 Let js pass in the window values and have an flash method equate the corrent
 xywh coords.
 
 What I'm basically saying is you can drop your reliance on the stage
 completely rather than having to worry about resizing that bitch ;[
 
 
 
 Regards,
  
 Bjorn Schultheiss
 Senior Flash Developer
 QDC Technologies
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
 Sent: Thursday, 10 August 2006 3:06 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] New Flash based website
 
 Hi Bjorn,
 There's a better way to do it.
 Have you seen swfObject?
   
 Seen it. Use it. Love it.
 Insert the swf into the html with noscale and showall, then you are
 not limited to a stage size.
   
 noScale  showAll? They are not mutually exclusive?
 Have a listener set up in js for onResize and pass it into flash via
 swfObject.
 What will this do for me? If you're using showAll then Stage.height etc.
 is lost? Is that why you have to get the values from the browser?
 
 Tony
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


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

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


Re: [Flashcoders] DK - destroying objects from a class using arraynotation

2006-08-10 Thread dnk

Arul Prasad M L wrote:

snip

If its mx.core.UIObject's destroyObject that you are talking about,
destroyObject takes the instanceName of the object, not the instance
reference. you'll just have to pass the instance name as a string.

snip

I did in fact realize that this morning once I read up more on the 
destroyObject function.


I did get it working (to a point).

Now for some reason the command is working to remove my component loader 
instances, but not my buttons. I think it would be important to mention 
that my button instances are NOT a component button. They are simply a 
regular button (transparent) that is attached from the library with a 
linkage identifiers. So I just need to get them destroyed as well. I 
suspect there is a different command to do that since they are not 
components I am searching, but have not yet found out how to... so 
if anyone knows - it would be appreciated.


Thanks in advance!

d

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: *** Spam *** Re: [Flashcoders] New Flash based website

2006-08-10 Thread jcanistrum

I have this old one from Jason M. Batchelor if you google it perhaps you
find something newer


script
function writeFlash() {
   // Jason M. Batchelor
   // [EMAIL PROTECTED]
   // Determine what client we're using...
   NS4=(document.layers);

   // The only reason we have to do this based on client-type, is
because IE does not
   // support the use of the onResize event when there is an ActiveX
control on a page.
   // If you want IE to automatically reload on a resize, you'll have
to set up a
   // frameset like the one that this is contained within.
   if (NS4) onresize = location.reload();

   // If it's Netscape, use innerWidth, if IE,
document.body.clientWidth, to ascertain
   // the amount of screen space you have available.Do the same to
retrieve the height
   // of the page.
   var winWid = (NS4) ? innerWidth : document.body.clientWidth;
   // -25 takes into account scrollbars. Take this out if you don't
have to worry about
   // scrollbars on your page.
   winWid = winWid - 25;
   var winHgt = (NS4) ? innerHeight : document.body.clientHeight;
   winHgt = winHgt - 32;

   // Create a string that contains the OBJECT and EMBED code for
your Flash movie.
   // I've omitted the CODEBASE and PLUGINPAGE attributes, as you can
get the latest attributes
   // when you first generate your object and embed code from
within Flash.
   var imStr = OBJECT
classid='clsid:D27CDB6E-AE6D-11cf-96B8-44455354' codebase='
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'
+  WIDTH=' + winWid + ' HEIGHT=' + winHgt + ' align='left' +  PARAM
NAME=movie VALUE='index.swf?scaleX= + winWid + scaleY= + winHgt + ' +
 PARAM NAME=quality VALUE=high +  PARAM NAME=bgcolor VALUE=#0699ff +
 param name='SCALE' value='exactfit' +  EMBED src='index.swf?scaleX=
+ winWid + scaleY= + winHgt + ' +  quality=high bgcolor=#0699ff
WIDTH=' + winWid + ' +  HEIGHT=' + winHgt + ' pluginspage='
http://www.macromedia.com/go/getflashplayer'
TYPE='application/x-shockwave-flash' +  align='left' scale='exactfit' +
 /EMBED  +  /OBJECT;

   // Now, with all the above plugged in, tell Javascript to write out
the plugin code.
   document.write(imStr);
}
writeFlash(); // Call the routine, above.
/script




2006/8/10, Aaron Buchanan [EMAIL PROTECTED]:


Hi Tony,

I am using it on a site I am doing now, http://build.lab-media.com/mpvs

Cheers!
Aaron


On 8/9/06 9:26 PM, Anthony Lee [EMAIL PROTECTED] wrote:


 use javascript to resize the swf's object
 height attribute, so that when your user opens a section that will
increase
 your stage height beyond the window height,
 Hi Aaron,

 I noticed a site doing that just this morning. Switching the swf
 attributes from Javascript doesn't mess with the application's state?
 Does anyone have any sample code they could point at?

 Tony
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] New Flash based website

2006-08-10 Thread dnk

Aaron Buchanan wrote:

Hi Bjorn,

There is an issue that occurs when users with smaller monitors (13
macbooks) accessing 100% flash content. Say you do not want to scale the
content down to 13. You also do not want to write a flash scroller, because
the browser has excellent support and performance for this, and Flash might
have a harder time.

So my solution is that I detect the window height/width, and if they are
less than my minimum, I set the swf object to my minimum height, otherwise I
allow it to be 100% with noScale.

You can see an example of this at a site I am working on (still in dev):
http://build.lab-media.com/mpvs

Cheers!



Are there any good tutorials on this subject?

d
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Uncompress a gzipped file

2006-08-10 Thread ryanm

Personally the ideal situation for me would be a customized version of
something like gzip, only one that provided the proper checksums that
Flash wants. Expecting the server to compress this might be too much,
all i had in mind were pre-compressed files. Choosing whether or not
to compress them is a choice based on the advantages versus the
disadvantages. In my case it's a huge advantage, since even the
fastest compression shrinks my particular file by 60%, I'm sure most
huge text/xml files could easily beat that.

   To me, the most useful thing would be a a standardized implementation, 
so that it could be compressed at runtime or in advance, so that it can be 
used with packages like you were describing, or individual (possibly 
dynamic) files compressed by the server. Something like that will have to 
use the same CRC as the other common implementations of the same 
compression, so it will likely have to be entirely AS and not use the built 
in player compression.


ryanm 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] New Flash based website

2006-08-10 Thread Aaron Buchanan
I'm not sure, I actually just found this solution through playing around
with some ideas. Which is why I haven't been able to get it to work for
safari yet. But have tested modern IE, FF, on osx and xp to work ok.

Luckily the adverse of this not working will still allow users to interact
with the site, the only limitation being that the site will assume a
absolute height.

But the concept is fairly simple and I will look around to see if there is.
If I cant find anything I can post a little write up. But there has to be
something out there from someone smarter than I, hehe :)

Cheers!
Aaron


On 8/10/06 11:04 AM, dnk [EMAIL PROTECTED] wrote:

 Aaron Buchanan wrote:
 Hi Bjorn,
 
 There is an issue that occurs when users with smaller monitors (13
 macbooks) accessing 100% flash content. Say you do not want to scale the
 content down to 13. You also do not want to write a flash scroller, because
 the browser has excellent support and performance for this, and Flash might
 have a harder time.
 
 So my solution is that I detect the window height/width, and if they are
 less than my minimum, I set the swf object to my minimum height, otherwise I
 allow it to be 100% with noScale.
 
 You can see an example of this at a site I am working on (still in dev):
 http://build.lab-media.com/mpvs
 
 Cheers!
 
 
 Are there any good tutorials on this subject?
 
 d
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

-- 
Aaron Buchanan | Flash Developer, Lab-Media | T 909 702 1368


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] (no subject)

2006-08-10 Thread marius ferraton

je ve minscrire a chapatiz

_
MSN Hotmail sur i-mode™ : envoyez et recevez des e-mails depuis votre 
téléphone portable ! http://www.msn.fr/hotmailimode/


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] (no subject)

2006-08-10 Thread marius ferraton

je valide

_
Découvrez Windows Live Messenger : le futur de MSN Messenger ! 
www.windowslivemessenger.fr


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Invalid gateway URL

2006-08-10 Thread Todd Hivnor


In AS2.0, the Remotinng Connection object has an onStatus method which can be 
overridden. If the server is unreachable, the onStatus method will get called.

See http://sourceforge.net/mailarchive/message.php?msg_id=15173267


David Rorex [EMAIL PROTECTED] wrote: Perhaps when your compent loads, have it 
call a remote method like
ping or test or something, and if that method is not successful,
show an error saying can't connect to gateway

-David R

On 8/8/06, Wade Arnold  wrote:
 I am looking for actually detecting it in the program. I have a couple of
 components that use remoting and people always seem to not place the proper
 remoting URL into the inspectable property. This leaves us with a lot of
 the component doesn't work

 Wade


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Wade Arnold
 Sent: Wednesday, August 02, 2006 2:56 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Invalid gateway URL

 I was wondering if there is a way to capture the error that happens when you
 do not have a proper gateway URL for flash remoting. Flash just traces out
 that it can not open the url. Is there a way to do this or should I try and
 use getURL before I run the remoting service?



 Thanks;

 Wade

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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



-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Uncompress a gzipped file

2006-08-10 Thread Claus Wahlers

ryanm wrote:

To me, the most useful thing would be a a standardized implementation, 
so that it could be compressed at runtime or in advance, so that it 
can be used with packages like you were describing, or individual 
(possibly dynamic) files compressed by the server. Something 
like that will have to use the same CRC as the other common 
implementations of the same compression, so it will likely have 
to be entirely AS and not use the built in player compression.


ZIP is extendable through the use of implementation specific 'extra 
fields', so you could define your own extra field that holds the 
additional ADLER32 checksum.


If you compress at runtime in Flash, you'd just have to calculate the 
CRC-32 checksum. If you compress on the server, you'd just have to 
calculate the ADLER32 checksum.


Then if you uncompress your ZIP files at runtime in Flash, you'd get the 
ADLER32 checksum for your file from the extra field. Any other ZIP tool 
should still be able to uncompress that archive as is.


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


[Flashcoders] JOB: ActionScript/Flash Developer needed in Denver

2006-08-10 Thread Susan Hausman
JBCharles is working with a client who has asked for assistance in having us
recruit for a Senior Software Engineer with ActionScript and Flash
experience for a contract-to-hire position. I'm having a tough time
networking with the right type of people in this area (I'm finding more Web
Developers).  I thought the Flashcoders site may provide some good
resources.



Our client looking for someone to design, code and debug user interface
components for a large-scale enterprise application.  They'd like someone
who is more than a front-end developer - someone who is passionate about
technology, has at least 5 years of software development experience
(Java/C++/OO) and proven ActionScript experience.



Can someone point me in the right direction?  Thank you in advance!

Susan Hausman
Senior Technical Recruiter
JBCharles, Inc. - IT Resource Solutions
303.390.4567 x19
800.224.4412 x19
[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


RE: [Flashcoders] New Flash based website

2006-08-10 Thread Ryan Potter
Good explanation of how it works.  The code is commented.

http://hossgifford.com/downloads.htm

Also email me off-list and I can give you a proof of concept I did based
on this that is really simple and easy to figure out.  







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Buchanan
Sent: Thursday, August 10, 2006 12:15 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] New Flash based website

I'm not sure, I actually just found this solution through playing around
with some ideas. Which is why I haven't been able to get it to work for
safari yet. But have tested modern IE, FF, on osx and xp to work ok.

Luckily the adverse of this not working will still allow users to
interact
with the site, the only limitation being that the site will assume a
absolute height.

But the concept is fairly simple and I will look around to see if there
is.
If I cant find anything I can post a little write up. But there has to
be
something out there from someone smarter than I, hehe :)

Cheers!
Aaron


On 8/10/06 11:04 AM, dnk [EMAIL PROTECTED] wrote:

 Aaron Buchanan wrote:
 Hi Bjorn,
 
 There is an issue that occurs when users with smaller monitors (13
 macbooks) accessing 100% flash content. Say you do not want to scale
the
 content down to 13. You also do not want to write a flash scroller,
because
 the browser has excellent support and performance for this, and Flash
might
 have a harder time.
 
 So my solution is that I detect the window height/width, and if they
are
 less than my minimum, I set the swf object to my minimum height,
otherwise I
 allow it to be 100% with noScale.
 
 You can see an example of this at a site I am working on (still in
dev):
 http://build.lab-media.com/mpvs
 
 Cheers!
 
 
 Are there any good tutorials on this subject?
 
 d
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

-- 
Aaron Buchanan | Flash Developer, Lab-Media | T 909 702 1368


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

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

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

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


RE: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-10 Thread Subba Chalamalasetty


Hi chris,

I got an idea and when I implemented it worked very good(except for
small bugs).
I added a movieclip(invisible) behind the textinput and and used
rollover and rollout by using the coordinates of the movie clip.
It is working good as I could see the rollover and enter the data and
also when out of the textinput,rollover is disappearing.The small bug is
that when I drag the mouse very fast out of the textinput,the rollover
is getting carried and randomly(maybe once in 15-20 times) dragging out
of the textinput,rollover is staying...atleast for sometime...it is
perfect and is working what we wanted.Here is the code.

var txt_invisible_mc:MovieClip;
Function onLoad() {

txt_invisible_mc.onRollOver = Delegate.create(this,function()
{
if(tt == undefined)
{
tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,50,10,15,20);
tt.showTip(Total Annual sales);
}
});

  txt_invisible_mc.onRollOut = txt_invisible_mc.onDragOut =
Delegate.create(this,function()
{
if(_xmouse = txt_invisible_mc._x || 
_xmouse = txt_invisible_mc._x +
txt_invisible_mc._width ||
_ymouse = txt_invisible_mc._y ||
_ymouse = txt_invisible_mc._y +
txt_invisible_mc._height)
{
trace(tool tip hidden);
tt.removeTip();
tt = undefined;
}
});
}


Everything is working good except for sometime, the rollovers are
getting carried...

Thanks,
Subba




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Thursday, August 10, 2006 11:59 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

Yeah, I tried a lot of methods to attempt to get the tooltip to 
disappear and ran into just too many problems. I'm sure there's a way 
tho using some ridiculous workaround. If you find the answer, please 
post it!

And, perhaps I should've mentioned this earlier, but I do have a ToolTip

class available on my website:
http://ubergeek.tv/article.php?pid=96

I just updated it with the latest version, which has a couple 
fixes/features added. For my own projects, I don't actually use 
onRollOver/Out etc. for toolitps because they generally muck up event 
handling elsewhere. I don't recommend my method necessarily but it has 
worked for me in the past better than mucking with event handling. 
Adding a tooltip to a TextInput using my method is as simple as this:

ToolTip.getInstance().addClip(txt, My tooltip text);

You can download the zip, check out the fla, and install and modify the 
packages if it works for you.

C

Subba Chalamalasetty wrote:

Hey chris,

Thank you very much for your help and time.I have good news about this
program. focusIn and focusOut events worked and now as long as I am not
using onRollOver, onROllOut, onPress, onRelease the program is working
fine. But there is one problem when I use focus in and out..i.e when I
click on the textinput, I am getting the rollover and also could enter
data, but when I come out (focus out)...untill I click somewhere else,
that rollover is getting carried. If that small problem is solved..that
will be a huge conquer for me. I am trying different ways to get it. If
you have time, can you please suggest me some ideas from your side.
Once
again thank you very much for your help...here is the code

  txt.addEventListener(focusIn,Delegate.create(this,txtOver));

  txt.addEventListener(focusOut,Delegate.create(this,txtPress));

private function txtOver(){
   tt786 = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
   tt786.showTip(Total sales.);
   
   }

private function txtPress(){
tt786.removeTip();
// TRIED onRollOut also
   tx.onKillFocus = function(){
   tt786.removeTip();
   trace(is it coming out?);
  }   
}


Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 6:23 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

wow, ok, I've spent way too much time on this so I have to get back to 
work. But here's what my last hour showed me:

txt has no onPress, onRelease, etc.
You cannot determine if the TextField inside a TextInput is rolled over

or out. There are no onRollOver/onRollOut methods to use.
You can determine if the TextInput receives focus(ie is clicked in or 
tabbed to) with
txt.addEventListener(focusIn,this);
txt.addEventListener(focusOut,this);

You can 

RE: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-10 Thread Chuck.Lewis
Would creating a catch-all full screen invisible MC work for you?
Similar to the invisible clip you are using now, just have the full
screen clip on a lower layer catch the onRollOver and destroy the
tooltip.

Just a thought.

-- Chuck
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Uncompress a gzipped file

2006-08-10 Thread Max

Bingo! I've put together a hack that shows this is possible. I tried
doing this with Python, but then I noticed php has the same features
and I'm no good with Python.

Here's how to do it. Make a php file that uses gzcompress, something
like this...

header('Content-Type: application/octet-stream');
pri​nt gzcompress(this is a test string,9);

Run the page through your browser and save the file somewhere. Then
create a class that opens and uncompress()'s the file. It seriously
works. I'm posting my sample here, I hope email doesn't mangle it.

package {
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
import flash.utils.ByteArray;
import flash.events.Event;
import flash.events.IOErrorEvent;

public class Testify {
static private var url:String = testfile;

private var urlLoader:URLLoader;

public function Testify() {
trace(Loading +url);
urlLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.addEventListener(Eve​nt.COMPLETE,onComplete);

urlLoader.addEventListener(IOE​rrorEvent.IO_ERROR,onError);
urlLoader.load(new URLRequest(wadUrl));
}
private function onComplete(e:Event):void {
trace(Loaded);
var data:ByteArray = urlLoader.data;
urlLoader.data = null;
urlLoader.close();
urlLoader = null;

data.uncompress();

data.position = 0;
trace(data.readUTFBytes(data.b​ytesAvailable));
}
private function onError(e:Event):void {
trace(Error);
}
}
}

It worked for me. Zlib files are a standard I suppose, any language
with access to zlib could probably pull it off.

Also, Claus, I didn't think of that at all, if you could create a
flash-compatible zip file a wide range of assets could be compressed
into a single file and decompressed within Flash. That's easily the
most intriguing idea I've heard yet.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: WSIWYG HTML text editor in Flash

2006-08-10 Thread Merrill, Jason
maybe this post could be TRIMMED a bit girls?

We girls are sorry Mom. 

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


[Flashcoders] DK - redrawing interface elements after destruction

2006-08-10 Thread dnk
Hi there - I have two methods in a class - one that creates a bunch of 
thumbnails, and one that wipes them out to be redrawn again at a later 
time (due to requiring a different number of thumbnails).


At any rate - when i create my thumbnails, all works fine the first 
time, but after they have been wiped out, and I recall my method to 
re-draw the thumbnails, for some reason my buttons are not working. Now 
I did a bunch of tracing tests to see if:


1) they were created properly
2) if they were put into the proper x  y locations
3) if the buttons created were actually there by the proper instance names
4) the buttons were actually the proper type (ie instanceof)
5) if the MC's created were actually there by the proper instance names
6) the MC's were actually the proper type (ie instanceof)

They all traced back properly. But for some reason the buttons do not 
work (the cursor does not change into the hand). And no onPress events 
are fired.


I loop through a database result to build the buttons within empty MC's 
also created at runtime. While it loops it is also creating runtime 
loader components and assigning thumbnails to them.
Then when a person clicks for the next page of thumbnails, another 
function is called which uses destroyObject to remove my loader 
instances, and then uses unloadMovie to remove MC's which contain my 
buttons. Then the recordset is incremented and the function is called 
all over to build the next pages of thumbnails.


ideas?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tooltip rollovers for textinput..help plss

2006-08-10 Thread Subba Chalamalasetty



Hi Chuck,

Thank you very much for giving this idea.Even our designer had the same
thought and we got it working now.We are having a catch-all movie clip
and textinput on them and all the small movie clips(for textinputs) are
behind this big movie clip...and it is working grea.!!!

I also thank Chris who helped me all this way to get this thing working
perfect.
Cheers to Chris and Chuck.

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 2:23 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Tooltip rollovers for textinput..help plss

Would creating a catch-all full screen invisible MC work for you?
Similar to the invisible clip you are using now, just have the full
screen clip on a lower layer catch the onRollOver and destroy the
tooltip.

Just a thought.

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

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

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


Re: [Flashcoders] Flash Extension Package

2006-08-10 Thread Jeroen Beckers
The .zip isn't working...

Ravi Marella wrote:
 Hi list,
 I've got a problem while packaging a component I've developed..it's a
 rotating menu component which will display any number of menu item
 around a circle, the fla is working properly but when I package it to
 .mxp the menu is not rotating and also the component parameters are not
 getting displayed properly...can someone out there plz helpme with
 this...please check the link for zip folder containing all the files
  
  
 http://www.geocities.com/ravi_marella/rotatingmenu.zip
  
 best regards,
 Ravi
  

   
  
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] print question

2006-08-10 Thread Flash guru

Hey,

Can anyone tell me if it's possible to print a swf?

this is what im thinking

var myPrinter = new Printer();
myPrinter.printFile(/swfs/plan1.swf);

Side questions?

Is something like that in existance?
Can you do this through the builtin classes?


thanks 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


Re: [Flashcoders] print question

2006-08-10 Thread Chris Hill
Not to sound like a jerk, but you really should check google before 
posting such beginner questions:


http://www.devx.com/webdev/Article/27318

Peace
Chris

Flash guru wrote:


Hey,

Can anyone tell me if it's possible to print a swf?

this is what im thinking

var myPrinter = new Printer();
myPrinter.printFile(/swfs/plan1.swf);

Side questions?

Is something like that in existance?
Can you do this through the builtin classes?


thanks 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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] print question

2006-08-10 Thread Steven Sacks | BLITZ
Especially a Flash guru ;)


BLITZ | Steven Sacks - 310-551-0200 x209

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Chris Hill
 Sent: Thursday, August 10, 2006 4:32 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] print question
 
 Not to sound like a jerk, but you really should check google before
 posting such beginner questions:
 
 http://www.devx.com/webdev/Article/27318
 
 Peace
 Chris
 
 Flash guru wrote:
 
  Hey,
 
  Can anyone tell me if it's possible to print a swf?
 
  this is what im thinking
 
  var myPrinter = new Printer();
  myPrinter.printFile(/swfs/plan1.swf);
 
  Side questions?
 
  Is something like that in existance?
  Can you do this through the builtin classes?
 
 
  thanks 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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] New Flash based website

2006-08-10 Thread Bjorn Schultheiss
Spot on!
I read the code, beautiful example...


Of course flex2 and as3 changes this a bit :) 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan Potter
Sent: Friday, 11 August 2006 4:59 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] New Flash based website

Good explanation of how it works.  The code is commented.

http://hossgifford.com/downloads.htm

Also email me off-list and I can give you a proof of concept I did based on
this that is really simple and easy to figure out.  







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Buchanan
Sent: Thursday, August 10, 2006 12:15 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] New Flash based website

I'm not sure, I actually just found this solution through playing around
with some ideas. Which is why I haven't been able to get it to work for
safari yet. But have tested modern IE, FF, on osx and xp to work ok.

Luckily the adverse of this not working will still allow users to interact
with the site, the only limitation being that the site will assume a
absolute height.

But the concept is fairly simple and I will look around to see if there is.
If I cant find anything I can post a little write up. But there has to be
something out there from someone smarter than I, hehe :)

Cheers!
Aaron


On 8/10/06 11:04 AM, dnk [EMAIL PROTECTED] wrote:

 Aaron Buchanan wrote:
 Hi Bjorn,
 
 There is an issue that occurs when users with smaller monitors (13
 macbooks) accessing 100% flash content. Say you do not want to scale
the
 content down to 13. You also do not want to write a flash scroller,
because
 the browser has excellent support and performance for this, and Flash
might
 have a harder time.
 
 So my solution is that I detect the window height/width, and if they
are
 less than my minimum, I set the swf object to my minimum height,
otherwise I
 allow it to be 100% with noScale.
 
 You can see an example of this at a site I am working on (still in
dev):
 http://build.lab-media.com/mpvs
 
 Cheers!
 
 
 Are there any good tutorials on this subject?
 
 d
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

--
Aaron Buchanan | Flash Developer, Lab-Media | T 909 702 1368


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

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

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

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

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


Re: [Flashcoders] New Flash based website

2006-08-10 Thread Anthony Lee

Hi Aaron,

There is an issue that occurs when users with smaller monitors (13
macbooks) accessing 100% flash content. Say you do not want to scale the
content down to 13. 
Agreed. I overcame this within Flash. It's just a mater of wrapping 
Stage in a class that has min values set. In my applications the UI 
elements ask the custom Canvas class how big the stage is and place 
themselves accordingly.

You also do not want to write a flash scroller, because
the browser has excellent support and performance for this, and Flash might
have a harder time.
  
The site you posted looks very professional but there is not window 
scroller.


I was interested in how this is done:
http://amnesia.com.au/site/index.html

Starts normally, then when the content panel gets larger than the 
viewable area the browser scroll bars appear.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DK - redrawing interface elements after destruction

2006-08-10 Thread Anthony Lee


At any rate - when i create my thumbnails, all works fine the first 
time, but after they have been wiped out, and I recall my method to 
re-draw the thumbnails, for some reason my buttons are not working. 
Now I did a bunch of tracing tests to see if:

Hi dnk,

This may not be a proper answer to your question, but when faced with 
this kind of headache I stick all the problem buttons, thumbnails etc in 
a single movieclip, delete that clip to clear them, and redraw the whole 
thing from scratch. Bad for the processor, good for my sanity.


Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: *** Spam *** Re: [Flashcoders] New Flash based website

2006-08-10 Thread Aaron Buchanan
Ditto- thx I wasn't using the style method before and was having trouble
with safari, HG's version works well :)

http://build.lab-media.com/mpvs/

Cheers all!
Aaron

-- 
Aaron Buchanan | Flash Developer, Lab-Media | T 909 702 1368


On 8/10/06 5:37 PM, Anthony Lee [EMAIL PROTECTED] wrote:

 
 Good explanation of how it works.  The code is commented.
 
 http://hossgifford.com/downloads.htm
   
 Thanks for that Ryan.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


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

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


Re: [Flashcoders] DK - redrawing interface elements after destruction

2006-08-10 Thread dnk

Anthony Lee wrote:


At any rate - when i create my thumbnails, all works fine the first 
time, but after they have been wiped out, and I recall my method to 
re-draw the thumbnails, for some reason my buttons are not working. 
Now I did a bunch of tracing tests to see if:

Hi dnk,

This may not be a proper answer to your question, but when faced with 
this kind of headache I stick all the problem buttons, thumbnails etc 
in a single movieclip, delete that clip to clear them, and redraw the 
whole thing from scratch. Bad for the processor, good for my sanity.


Tony
Well that is essentially what I am doing. Although my code writes a 
bunch of empty MC's and then removes them after - and then tries to 
recreate it.



create (simplified):

for (var i:Number = 0; i  35; i++) {
//create empty MC's to hold reg. buttons (non components)
this._targetMc.slidemenu.createEmptyMovieClip(btn_mc + i, 
this._targetMc.slidemenu.getNextHighestDepth());

//create loaders for thumbnails.
this._targetMc.slidemenu.createObject(Loader, theThumb + i, 
this._targetMc.slidemenu.getNextHighestDepth());

//create the actual btns from my library into the empty MC's
this._targetMc.slidemenu[btn_mc + i].createObject(HitDk, theHit + 
i, this._targetMc.slidemenu[btn_mc + i].getNextHighestDepth());

//add content to loaders
this._targetMc.slidemenu[theThumb + i].contentPath = this.baseURL + 
myThumb;

}

remove (simplified):

for (var i:Number = 0; i  35; i++) {
//remove the loader components
this._targetMc.slidemenu.destroyObject(theThumb + i);
//unload the MC's containing my non-component btns
this._targetMc.slidemenu[btn_mc + i].unloadMovie();
}

Now like i said - the 2nd time it runs the create portion, everything is 
messed up - which makes no sense to me. I mean if it worked the first 
time, why not a second? The only thing I can think of is it by chance 
the objects are not actually removed (even though a visual test says 
they are).


ideas?


Thanks.

d



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Reporting load success from a delegate

2006-08-10 Thread Darren Bowers
Cheers Jeroen - works great!



-Original Message-
From: Jeroen Beckers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 10 August 2006 11:42 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Reporting load success from a delegate

Oh, sorry, i switched 2 lines, the explanation is about the .target
property, not the .success property.



Jeroen Beckers wrote:
 You can use the EventDispatcher.

 import mx.utils.Delegate;
 //import the EventDispatcher class
 import mx.events.EventDispatcher;
 class myClass
 {

 private var myxml:XML;

 //declare the functions
 private var dispatchEvent:Function;
 public var addEventListener:Function;
 public var removeEventListener:Function;

 public function myClass()
 {
 //initialize EventDispatcher
 EventDispatcher.initialize(this);
 this.myxml = new XML();
 this.myxml.ignoreWhite = true;
 this.myxml.onLoad = Delegate.create(this,DoSomething);
 this.myxml.load(test.xml);
 }

 private function doSomething(success:Boolean)
 {
 trace(success= +success);

 //create the object to be dispatched
 var myObject:Object = new Object();
 //add the type
 myObject.type = onXMLLoad;

 /*
 * This property isn't mandatory, but it is recommended
 * to add it to the object. It tells the user what class
 * dispatched the event.
 */
 myObject.success = success;
 myObject.target = this;
 dispatchEvent(myObject);
 }
 }

 And in your .fla:

 var foo:myClass = new myClass();
 foo.addEventListener(onXMLLoad, this); function 
 onXMLLoad(eObj:Object):Void { trace(Success? +eObj.success); }

 Ps: It's a good practice to start your classes with a capital letter 
 (MyClass in stead of myClass).

 Darren Bowers wrote:
   
 Wat is the easiest way to report back success or failure at the time 
 the class (myClass) is instantiated?
 Since doSomething() has taken control of the load handling, I cant 
 pass a value back via the constructor function of load success. Any 
 help would be appreciated.
  
 import mx.utils.Delegate;

 class myClass
 {

 private var myxml:XML;

 public function myClass()
 {
 this.myxml = new XML();
 this.myxml.ignoreWhite = true;
 this.myxml.onLoad = Delegate.create(this,DoSomething);
 this.myxml.load(test.xml);
 }

 private function doSomething(success:Boolean) { trace(success= 
 +success); //do something }

 }
   
 -
 ---

 -
 --- CAUTION  DISCLAIMER: The information contained in this 
 e-mail message and/or any accompanying data or documents contain 
 information that is confidential and subject to legal privilege. The 
 information is intended only for the recipient named in this message. 
 The sender is excluded from any liability arising from any further 
 use, dissemination, distribution, transmission or copying of this 
 information and /or accompanying data by the recipient. If you are 
 not the intended recipient, you must immediately erase the 
 information along with all copies of this message and accompanying 
 data and notify the sender. Views expressed in this message are those 
 of the original sender, and are not necessarily the views of WestOne
Services.
 -
 ---

   
 -
 ---

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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

CAUTION  DISCLAIMER: The information contained in this e-mail message
and/or any accompanying data or documents contain information that is 
confidential and subject to legal privilege. The information is intended
only for the recipient named in this message. The sender is excluded from
any liability 

Re: [Flashcoders] Flash 9 ready for kiosk use?

2006-08-10 Thread Darren Cook
 I've just downloaded the Adobe Flash 9 Public alpha and used it to compile 
 one of my old kiosk
 projects. As far as I can see it has none of memory leak issues which 
 affected Flash 8 and stopped
 it being suitable for kiosks. This is great

This is very interesting. Is it just a matter of loading a Flash 8 fla,
and making a Flash 9 swf? Or would we need to convert from AS2 to AS3, etc.?

 I have no idea what memory leak issues you're talking about with the
 Flash player.  ...

There is one described here:
  http://www.gskinner.com/blog/archives/2005/10/major_flash_pla.html

And the one I've had problems with described in the thread here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-March/161859.html

Beyond what is written there I convinced myself it is a player bug
simply because it will correctly free up all memory if you minimize then
maximize the player window.

Without doing the minimize/maximize trick it seems like it does not do
certain types of garbage collection (but it does garbage collect
something, as I see the memory usage wobbling up and down).

Darren


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Extension Package

2006-08-10 Thread Ravi Marella
Sorry guys the last URL..i donno wat the problem is..yahoo has closed my
site...please check this link...
In that on the top frame, therez a link called RotatingMenu...its the
zip file...
http://www.geocities.com/flywithoutwings_4350/

As u can see in the bottom frame I've used the same component which is
working perfectly...please gimme some advice over this..


best regards
RaviKiran Marella



 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
Beckers
Sent: Friday, August 11, 2006 3:44 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Extension Package

The .zip isn't working...

Ravi Marella wrote:
 Hi list,
 I've got a problem while packaging a component I've developed..it's a
 rotating menu component which will display any number of menu item
 around a circle, the fla is working properly but when I package it to
 .mxp the menu is not rotating and also the component parameters are
not
 getting displayed properly...can someone out there plz helpme with
 this...please check the link for zip folder containing all the
files
  
  
 http://www.geocities.com/ravi_marella/rotatingmenu.zip
  
 best regards,
 Ravi
  

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

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

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

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

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


RE: [Flashcoders] need help in drawing arrow

2006-08-10 Thread Ravi Marella
I donno if itz really helpful 4 u but this link contains a package which
has different tools that include a arrow tool also...
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn110#loc=en_usvie
w=sn106viewName=Exchange%20Search%20Detailsauthorid=17863263page=0sc
rollPos=0subcatid=0snid=sn106itemnumber=0extid=1011121catid=0avm=1
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn110#loc=en_usvi
ew=sn106viewName=Exchange Search
Detailsauthorid=17863263page=0scrollPos=0subcatid=0snid=sn106itemn
umber=0extid=1011121catid=0avm=1 

best regards
RaviKiran Marella



 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rutul
Patel
Sent: Thursday, August 10, 2006 9:01 PM
To: Flashcoders mailing list
Subject: [Flashcoders] need help in drawing arrow

Hi people,
anybody know how to write AS of drawing arrow.
if anybody has can anybody tell me how?.
thanks
Rutul Patel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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


Re: [Flashcoders] Uncompress a gzipped file

2006-08-10 Thread Max

Okay, that last example wasn't very good, I've always got an Apache
server running on my computer, but that's probably just me. There's a
better example set up here...
http://tinyurl.com/sywqc

Also, it seems Flash isn't picky about zlib compression levels or
anything else, as long as the file is compressed in the zlib format
(http://www.gzip.org/zlib/rfc-zlib.html) it always decompresses in all
my tests so far.

Right now there's several things that could be done with this that I
can think of. Like Claus said, a tool could be created that takes
regular zip files and adds checksum info without damaging
compatibility.

A single file could be compressed into raw zlib data to be
decompressed within Flash, this wouldn't require any extra libraries.

And finally, a custom-made, non-standard format could contain multiple
files which are individually compressed as raw zlib data. I like this
one myself, but I'd like to hear other opinions.

In any case, the imported data could be translated into other things
like sounds, SWF files, images, text, pretty much anything. It could
be compressed more simply and effectively than using, say, Flex's
built-in embed feature. The only other way to access external files
without Flex's embed feature is to individually download them. I think
finding some way to effectively use Flash's compression features would
be a major advantage.

On 8/10/06, Max [EMAIL PROTECTED] wrote:

Bingo! I've put together a hack that shows this is possible. I tried
doing this with Python, but then I noticed php has the same features
and I'm no good with Python.

Here's how to do it. Make a php file that uses gzcompress, something
like this...

header('Content-Type: application/octet-stream');
pri​nt gzcompress(this is a test string,9);

Run the page through your browser and save the file somewhere. Then
create a class that opens and uncompress()'s the file. It seriously
works. I'm posting my sample here, I hope email doesn't mangle it.

package {
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
import flash.utils.ByteArray;
import flash.events.Event;
import flash.events.IOErrorEvent;

public class Testify {
static private var url:String = testfile;

private var urlLoader:URLLoader;

public function Testify() {
trace(Loading +url);
urlLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.addEventListener(Eve​nt.COMPLETE,onComplete);

urlLoader.addEventListener(IOE​rrorEvent.IO_ERROR,onError);
urlLoader.load(new URLRequest(wadUrl));
}
private function onComplete(e:Event):void {
trace(Loaded);
var data:ByteArray = urlLoader.data;
urlLoader.data = null;
urlLoader.close();
urlLoader = null;

data.uncompress();

data.position = 0;
trace(data.readUTFBytes(data.b​ytesAvailable));
}
private function onError(e:Event):void {
trace(Error);
}
}
}

It worked for me. Zlib files are a standard I suppose, any language
with access to zlib could probably pull it off.

Also, Claus, I didn't think of that at all, if you could create a
flash-compatible zip file a wide range of assets could be compressed
into a single file and decompressed within Flash. That's easily the
most intriguing idea I've heard yet.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [Ann-FlashDev-Syd] 14th Aug Sydney Flash Platform Developers Group study group

2006-08-10 Thread Chris Velevitch

The next meeting will be 14th August and we'll be continuing our study
of MXML with Dynamically Repeating Controls and Containers and
Representing Data (see
http://www.flashdev.org.au/program for topic references).

At the meeting, the moderator will lead discussion and with questions
about the topic. The meeting is on at 6:30pm for 7pm start and
finishes around 8:30pm.

Details about the group, venue and program are available from
http://www.flashdev.org.au. Please also note, the meetings and the use
of the club are free and Adobe will be providing beverages and/or
snacks.

Please RSVP at http://www.flashdev.org.au/rsvp. There will be lucky
door prizes for those who rsvp.

(Put yourself on the http://www.frappr.com/flexdevelopers map)


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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