Re: [Flashcoders] as2lib logging setup.

2007-06-26 Thread Hans Wichman

Hi,
any reason you dont want to use asunit for that?

kind regards,
JC


On 6/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hello people,

I pulled down the as2lib and want to use it for unit testing.

i also pulled down the tdd_mocks_in_practice sample files to test and see
how it works.

I can get it to compile but can seem to get any logging.

Can any one help me setup the logging or point me in the right direction.

thanks Tom


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 custom mouse pointer from library impossible??

2007-06-26 Thread Digg Yeah

Creating a custom mouse pointer by attaching [addchild ] from library seems
impossible in as3. Everytime i do it,the mouse actually shows up over the
pointer movieclip if i move the mouse fast!

Did anyone try using addchild to create mouse pointers from library ? I
tried a lot, never works .[it works with simple geometrical objcts created
with as , as shown in CS3 documentation ]

Thanks in advance.

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

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


Re: [Flashcoders] how to get controls and anchors of curve, gradients, etc.

2007-06-26 Thread Matthias Dittgen

Hello Andrew, Burak and Peter!

@Peter: nice to 'meet you'! Beside the fact, you code links are dead
now, it is hard to get through to you. ;-)

I have looked for those classes some time ago, and Burak and other
helped me out. I also found some nice transformation objects that can
be applied to Arrays based on the 'ASVDrawing' format.
I always wonder, why this format has not experienced wider
distribution, especially in the open source community, because when
using a mtasc/compiler-only based workflow, it makes sense to draw
vectors on runtime, I think. One could e.g. implement components and
skin them using different 'ASVDrawing' formatted arrays.

Greetings from the stormy black forest in Germany,
Matthias


2007/6/26, Burak KALAYCI [EMAIL PROTECTED]:

Hi,

Yes, Peter's classes ship with ASV along with Ivan's AS2 class. Both of the
main class codes are also duplicated in ASV help file, available online.

I can send the class code to anyone interested, just email me and have ASV
in the subject line else I may miss it.

One can get Peter's code and see pages through http://www.archive.org .

http://web.archive.org/web/20040813055937/http://www.peterjoel.com/ActionScript/index.php?go=asvdrawingtransform

Best regards,
Burak
www.asvguy.com

Burak KALAYCI, Manitu Group
http://www.buraks.com
http://www.manitugroup.com

- Original Message -
From: Peter Hall [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 26, 2007 12:43 AM
Subject: Re: [Flashcoders] how to get controls and anchors of
curve,gradients, etc.


I think those links are dead now. I lost some files a couple of years
 back, during an ill-planned move. They are possibly lurking somewhere
 on an old backup. But I think all the AS files ship with ASV anyway,
 or else are available somewhere on buraks.com. It's worth asking Burak
 for them.

 Peter

 On 6/25/07, Matthias Dittgen [EMAIL PROTECTED] wrote:
 If you can't find all necessary files and classes, I can probably help
 you out.

 But I have not bought ASV yet myself - but I like the ASVDrawing
 format. It is also used by Helen Triolos classes to draw SVG using
 Actionscript.
 So if Flash would save directly as SVG (does Flash CS3?) your workflow
 would include using SVG. ;-)

 You're probably right about old Illustrator format. It is near to be
 human readably though, isn't it? At least it is (well) documented.

 You might want to ask Burak (the ASV Guy) yourself, what ASV could do for
 you.

 Matthias

 2007/6/25, Andrew Sinning [EMAIL PROTECTED]:
  Thanks Matthias.  I'll look into ASVDrawing.
 
  If I'm not mistaken, old Illustrator uses cubic-beziers, whereas Flash
  uses quadratic.  There are some algorithms for approximating a
  conversion, but I'd rather not go down that road
 
  Matthias Dittgen wrote:
 
   Hi,
  
   if your artist produced vector graphics using Flash, you could use
   the
   commercial version of ASV (http://www.buraks.com/asv/). ASV can
   export
   these graphics and produces an intermediate format for them based on
   Array.
  
   You can use this Array directly in your AS Code and draw the graphics
   via script using the Drawing API methods of Actionscript. You can
   easily modify the data in the Array before you draw them to screen.
  
   See the links below or search for ASVDrawing:
   http://www.peterjoel.com/ActionScript/ASVDrawing.as
   http://www.peterjoel.com/Samples/?go=logoskew
  
   If using dynamic drawing via Actionscript is an option for you, you
   could export your data to Actionscript also using other detours,
   e.g. exporting to 'easy to parse' vector formats like old Illustrator
   formats and importing/converting them afterwards to Actionscript.
  
   hth,
   Matthias
  
   2007/6/24, Andrew Sinning [EMAIL PROTECTED]:
  
   Our artist has built a set of graphics using Flash.  Now I need to
   derive a set of algoriths to reproduce the different graphic
   elements at
   any scale or hue.  Is there any way to get curve, gradiet, and
   fill
   data about the various layers of a movie clip using AS2?  What about
   AS3?
  
   My goal is to create a skin.  Am I going about this the wrong way?
   The
   online literature about skinning AS2 components is pretty weak.  Are
   there any great books on this subject?
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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
   

Re: [Flashcoders] Convert URLs in a string to links

2007-06-26 Thread jtgxbass

Well, simplest is to use one of the many regex classes out there, failing
that

8--8--8--8--8--8--8--8--

var test = Some link http://test.com and another
http://www.berty.co.uklets test.;
var markedUp = ;
var h = test.split(http://;);
var idx = test.indexOf(http://;);
var i = idx == 0 ? 0 : 1;
if(idx != -1)
{
   for(; ih.length; i++)
   {
   var t = h[i].split( );
   var href = t[0];
   var r = ;
   if(t.length  1)
   {
   href = t.shift();
   r = t.join( );
   }
   h[i] = a href=\http://; + href + \ + href + /a  + r;
   }
   markedUp = h.join();
}
else
   markedUp = test;

trace(markedUp);

8--8--8--8--8--8--8--8--

On 6/26/07, Mick G [EMAIL PROTECTED] wrote:


Can anyone think of an efficient way to convert a URL (or multiple URLs)
in
a string to a link.

eg. myString = this website http://www.this.com is really cool;
would convert to: this website a href='http://www.this.com'
http://www.this.com/a is really cool.

I tried splitting the string at http://; the splitting that again at a
space and... anyway, no luck here :)

Any help appreciated.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Huge problems with preloader

2007-06-26 Thread Ricardo Sánchez

Hi all,

It seems it's taking time to connect with the server or something. I'm
trying this from spain and the server is in USA, so that might be the
problem, I don't know.

Anyway, what happens is when I try to load a swf of arround 130Kb and try to
print something with onLoadProgress on screen it takes a while to start
printing anything at all but then it prints like ten passes through that
method and loads the file all at once.

Let me explain myself, this is what happens.

I click to load the file
... nothing happens
... nothing happens
... nothing happens
... nothing happens
(for a second or two)
It prints the preloader information I told it to print when it gets throught
onLoadProgress (like if it had passed through it 10 times or so) and it
shows the loaded file. Everything very very fast.

So I'm waiting for it to start showing the upload progress and when it
finally does the file has already been loaded but it shows the progress it
followed anyway.

If the file is larger more or less the same happens, but then I do get to
see the loader printing on screen, I only miss the first part.

Also, if the file is 123Kb, Why does getBytesTotal show 1347693 ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Attaching a change handler to a dynamically generated comboBox

2007-06-26 Thread Carl Welch

Hello List,

I am having an issue with attaching a change handler to a ComboBox
that is being dynamically generated. What is wrong with this code I am
using?

var myComboBox =
myScrollBox.createClassChildAtDepth(mx.controls.ComboBox,
DepthManager.kTop, {_x:10, _y:10});


myComboBox.addItem({label:Foo, data:FooBar});


function comboDisplay(component) {
   trace(myComboBox.getSelectedItem().data);
}
myComboBox.setChangeHandler(comboDisplay);



As a test, I tried:

myComboBox.onPress = function() {
trace(myComboBox.getSelectedItem().data);
}

... and it did trace the first item, but of course it wouldn't work as
a dropdown anymore.



Thanks.


--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Huge problems with preloader

2007-06-26 Thread R�kos Attila

May be the delay at the beginning is caused by a slow connection, e.g.
when you try to download a file, the browser sends a request to the
server in order to ask whether the file already stored in the
browser's cache is updated on the server or not. If the server's
response is not modified, the browser takes the file from the cache,
which will take almost no time. But if the connection is slow, the
request for checking modification may take a longer time.

RS Also, if the file is 123Kb, Why does getBytesTotal show 1347693 ?

SWFs are mostly compressed files, but getBytesTotal() returns the
uncompressed size of the Flash movie, instead of the actual file size.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Ricardo Sánchez [EMAIL PROTECTED]
To:  flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com
Date:Tuesday, June 26, 2007, 11:38:02 AM
Subject: [Flashcoders] Huge problems with preloader
--===--
Hi all,

It seems it's taking time to connect with the server or something. I'm
trying this from spain and the server is in USA, so that might be the
problem, I don't know.

Anyway, what happens is when I try to load a swf of arround 130Kb and try to
print something with onLoadProgress on screen it takes a while to start
printing anything at all but then it prints like ten passes through that
method and loads the file all at once.

Let me explain myself, this is what happens.

I click to load the file
... nothing happens
... nothing happens
... nothing happens
... nothing happens
(for a second or two)
It prints the preloader information I told it to print when it gets throught
onLoadProgress (like if it had passed through it 10 times or so) and it
shows the loaded file. Everything very very fast.

So I'm waiting for it to start showing the upload progress and when it
finally does the file has already been loaded but it shows the progress it
followed anyway.

If the file is larger more or less the same happens, but then I do get to
see the loader printing on screen, I only miss the first part.

Also, if the file is 123Kb, Why does getBytesTotal show 1347693 ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Huge problems with preloader

2007-06-26 Thread Hans Wichman

Hi,

if you generate your swf with a size report (see publish settings), how many
bytes do you exported in the first frame?

greets
JC


On 6/26/07, Ricardo Sánchez [EMAIL PROTECTED] wrote:


Hi all,

It seems it's taking time to connect with the server or something. I'm
trying this from spain and the server is in USA, so that might be the
problem, I don't know.

Anyway, what happens is when I try to load a swf of arround 130Kb and try
to
print something with onLoadProgress on screen it takes a while to start
printing anything at all but then it prints like ten passes through that
method and loads the file all at once.

Let me explain myself, this is what happens.

I click to load the file
... nothing happens
... nothing happens
... nothing happens
... nothing happens
(for a second or two)
It prints the preloader information I told it to print when it gets
throught
onLoadProgress (like if it had passed through it 10 times or so) and it
shows the loaded file. Everything very very fast.

So I'm waiting for it to start showing the upload progress and when it
finally does the file has already been loaded but it shows the progress it
followed anyway.

If the file is larger more or less the same happens, but then I do get to
see the loader printing on screen, I only miss the first part.

Also, if the file is 123Kb, Why does getBytesTotal show 1347693 ?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Attaching a change handler to a dynamically generated comboBox

2007-06-26 Thread R�kos Attila

As far I remember setChangeHandler() was used in v1 component library
for Flash 6. Are you surely using v1 components? I don't think so,
since there was no createClassChildAtDepth(), mx.controls.ComboBox
class, etc. In v2 components there is an other way of attaching event
handlers (addEventListener, change event).

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Carl Welch [EMAIL PROTECTED]
To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:Tuesday, June 26, 2007, 11:46:14 AM
Subject: [Flashcoders] Attaching a change handler to a dynamically generated 
comboBox
--===--
Hello List,

I am having an issue with attaching a change handler to a ComboBox
that is being dynamically generated. What is wrong with this code I am
using?

var myComboBox =
myScrollBox.createClassChildAtDepth(mx.controls.ComboBox,
DepthManager.kTop, {_x:10, _y:10});


myComboBox.addItem({label:Foo, data:FooBar});


function comboDisplay(component) {
trace(myComboBox.getSelectedItem().data);
}
myComboBox.setChangeHandler(comboDisplay);



As a test, I tried:

myComboBox.onPress = function() {
 trace(myComboBox.getSelectedItem().data);
}

... and it did trace the first item, but of course it wouldn't work as
a dropdown anymore.



Thanks.


-- 
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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[2]: [Flashcoders] Huge problems with preloader

2007-06-26 Thread R�kos Attila

HW if you generate your swf with a size report (see publish settings), how many
HW bytes do you exported in the first frame?

Probably he wants to display loading status of an external SWF and not
the movie itself, since MovieClipLoader (and onLoadProgress) cannot
track loading of the main movie - so the first frame's content doesn't
affect the preloader.

  Attila

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

2007-06-26 Thread Muzak
show us some code.

where are you testing this? IDE, browser, local, server?

 123Kb, Why does getBytesTotal show 1347693 ?
compressed VS uncompressed size.

regards,
Muzak

- Original Message - 
From: Ricardo Sánchez [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 26, 2007 11:38 AM
Subject: [Flashcoders] Huge problems with preloader


 Hi all,

 It seems it's taking time to connect with the server or something. I'm
 trying this from spain and the server is in USA, so that might be the
 problem, I don't know.

 Anyway, what happens is when I try to load a swf of arround 130Kb and try to
 print something with onLoadProgress on screen it takes a while to start
 printing anything at all but then it prints like ten passes through that
 method and loads the file all at once.

 Let me explain myself, this is what happens.

 I click to load the file
 ... nothing happens
 ... nothing happens
 ... nothing happens
 ... nothing happens
 (for a second or two)
 It prints the preloader information I told it to print when it gets throught
 onLoadProgress (like if it had passed through it 10 times or so) and it
 shows the loaded file. Everything very very fast.

 So I'm waiting for it to start showing the upload progress and when it
 finally does the file has already been loaded but it shows the progress it
 followed anyway.

 If the file is larger more or less the same happens, but then I do get to
 see the loader printing on screen, I only miss the first part.

 Also, if the file is 123Kb, Why does getBytesTotal show 1347693 ?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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[2]: [Flashcoders] loading xml into flash in spanish(desperate)

2007-06-26 Thread R�kos Attila

Just for information: the character ranges you listed do not cover all
letters of Latin based scripts, even ones used in Europe (e.g.
Hungarian, Lithuanian, Ruminian, etc.). Latin 1 mostly contains special
characters of Western European languages only.

  Attila

M The char list that works for me when using non-english languages are these:
M 
M Uppercase
M Lowercase
M Numerals
M Punctuation
M Basic Latin
M Latin I


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

2007-06-26 Thread Mark Badger

Ben,
Thanks so much for trying this. In reading all of the documentation on 
3.0 it says no more ActionScript on MovieClip timelines at all which 
didn't bother me until I started thinking about the basic construction I 
use for starting out the Flash class. And I assumed stops counted as 
ActionScript but didn't test it.


thanks again

Mark

ben wrote

Can you elaborate on your question?  Not that I'll be able to answer, 
but I'm confused by what you said.  I haven't really tried much in the 
way of timeline stuff in AS3 as I just got Flash CS3 last week.  If I 
read you right, you're saying that I can't add a stop action to the end 
of an AS3 Flash 9 published SWF.  WellI did, and it worked.  I 
made a little motion tween and put a stop action at the end, and it 
stopped, as expected.  I did the same for the first frame and it didn't 
move.
I must be misunderstanding what you're getting at, but would really like 
to know if there are any unexpected things to watch out for!

fill me in?
Thanks!
ben

Mark Badger wrote:


 Hi,
 I'm re-writing a beginning Flash class for designers. I used Movie 
 Clips so that they would just adjust to using movie clips for 
 interactivity as they move on to more complex topics. Graphic symbols 
 vs. Movie Clips would just confuse students and added a layer of 
 confusion that made life harder.


 Now in AS 3 I can't add stops to the first frame of the movie clip. No 
 big deal, but then I can't add stops to the last frame of a Movie Clip 
 either. Is the only way to stop a Movie Clip from looping is to check 
 if  the last frame been reached and then stop it? This seems like an 
 overwhelming amount of thought for a newbie to grasp. And certainly 
 puts this poor teacher in tears trying to explain a conditional in the 
 second class of Flash.




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

2007-06-26 Thread Ricardo Sánchez

Ok, thanks all.

Knowing that it must be a delay to start getting the info of the file being
download what I do is meassure that delay and adapt the preloader
accordingly. With every new download my new preolader adapts and knows
better how long is it going to take it to start getting the info and how
much of the file will be already downloaded when that happens.

So the first part of the preloading is just an animation taking the time I
assume is going to take given the last downloads and the second part is the
real preloader of the bytes left.

Kind of tricky but it now works pretty well.


On 6/26/07, Muzak [EMAIL PROTECTED] wrote:


show us some code.

where are you testing this? IDE, browser, local, server?

 123Kb, Why does getBytesTotal show 1347693 ?
compressed VS uncompressed size.

regards,
Muzak

- Original Message -
From: Ricardo Sánchez [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 26, 2007 11:38 AM
Subject: [Flashcoders] Huge problems with preloader


 Hi all,

 It seems it's taking time to connect with the server or something. I'm
 trying this from spain and the server is in USA, so that might be the
 problem, I don't know.

 Anyway, what happens is when I try to load a swf of arround 130Kb and
try to
 print something with onLoadProgress on screen it takes a while to start
 printing anything at all but then it prints like ten passes through that
 method and loads the file all at once.

 Let me explain myself, this is what happens.

 I click to load the file
 ... nothing happens
 ... nothing happens
 ... nothing happens
 ... nothing happens
 (for a second or two)
 It prints the preloader information I told it to print when it gets
throught
 onLoadProgress (like if it had passed through it 10 times or so) and it
 shows the loaded file. Everything very very fast.

 So I'm waiting for it to start showing the upload progress and when it
 finally does the file has already been loaded but it shows the progress
it
 followed anyway.

 If the file is larger more or less the same happens, but then I do get
to
 see the loader printing on screen, I only miss the first part.

 Also, if the file is 123Kb, Why does getBytesTotal show 1347693 ?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] how to get controls and anchors of curve, gradients, etc.

2007-06-26 Thread Andrew Sinning

Thanks.  This is excellent.

Burak KALAYCI wrote:


Hi,

Yes, Peter's classes ship with ASV along with Ivan's AS2 class. Both 
of the main class codes are also duplicated in ASV help file, 
available online.


I can send the class code to anyone interested, just email me and have 
ASV in the subject line else I may miss it.


One can get Peter's code and see pages through http://www.archive.org .

http://web.archive.org/web/20040813055937/http://www.peterjoel.com/ActionScript/index.php?go=asvdrawingtransform 



Best regards,
Burak
www.asvguy.com

Burak KALAYCI, Manitu Group
http://www.buraks.com
http://www.manitugroup.com

- Original Message - From: Peter Hall 
[EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 26, 2007 12:43 AM
Subject: Re: [Flashcoders] how to get controls and anchors of 
curve,gradients, etc.




I think those links are dead now. I lost some files a couple of years
back, during an ill-planned move. They are possibly lurking somewhere
on an old backup. But I think all the AS files ship with ASV anyway,
or else are available somewhere on buraks.com. It's worth asking Burak
for them.

Peter

On 6/25/07, Matthias Dittgen [EMAIL PROTECTED] wrote:

If you can't find all necessary files and classes, I can probably 
help you out.


But I have not bought ASV yet myself - but I like the ASVDrawing
format. It is also used by Helen Triolos classes to draw SVG using
Actionscript.
So if Flash would save directly as SVG (does Flash CS3?) your workflow
would include using SVG. ;-)

You're probably right about old Illustrator format. It is near to be
human readably though, isn't it? At least it is (well) documented.

You might want to ask Burak (the ASV Guy) yourself, what ASV could 
do for you.


Matthias

2007/6/25, Andrew Sinning [EMAIL PROTECTED]:
 Thanks Matthias.  I'll look into ASVDrawing.

 If I'm not mistaken, old Illustrator uses cubic-beziers, whereas 
Flash

 uses quadratic.  There are some algorithms for approximating a
 conversion, but I'd rather not go down that road

 Matthias Dittgen wrote:

  Hi,
 
  if your artist produced vector graphics using Flash, you could 
use   the
  commercial version of ASV (http://www.buraks.com/asv/). ASV can 
  export
  these graphics and produces an intermediate format for them 
based on

  Array.
 
  You can use this Array directly in your AS Code and draw the 
graphics

  via script using the Drawing API methods of Actionscript. You can
  easily modify the data in the Array before you draw them to screen.
 
  See the links below or search for ASVDrawing:
  http://www.peterjoel.com/ActionScript/ASVDrawing.as
  http://www.peterjoel.com/Samples/?go=logoskew
 
  If using dynamic drawing via Actionscript is an option for you, you
  could export your data to Actionscript also using other detours,
  e.g. exporting to 'easy to parse' vector formats like old 
Illustrator

  formats and importing/converting them afterwards to Actionscript.
 
  hth,
  Matthias
 
  2007/6/24, Andrew Sinning [EMAIL PROTECTED]:
 
  Our artist has built a set of graphics using Flash.  Now I need to
  derive a set of algoriths to reproduce the different graphic  
 elements at
  any scale or hue.  Is there any way to get curve, gradiet, 
and   fill
  data about the various layers of a movie clip using AS2?  What 
about

  AS3?
 
  My goal is to create a skin.  Am I going about this the wrong 
way?   The
  online literature about skinning AS2 components is pretty 
weak.  Are

  there any great books on this subject?
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] AS3 custom mouse pointer from library impossible??

2007-06-26 Thread Digg Yeah

Thanks a lot for your reply Leandro.

To clarify the situation a bit more better, i have uploaded the most
relevant code along with a sample file at this thread:
http://www.kirupa.com/forum/showthread.php?t=265342.

It would be great if you could  look into the code and the attachment [its
just the most scaled down version to illustrate the mouse pointer issue]

Once again,thanks a lot for the response Leandro.

-Shane

On 6/26/07, Leandro Amano [EMAIL PROTECTED] wrote:


Hi Digg,
You do not obtain to attach from the Library or not obtain to manipulate
the
level? To attach the Display List it saw Library, it uses new Object, to
manipulate the niveis, uses setChildIndex (DisplayObject (object),
numChildren-1);

var mc = new Symbol();
addChildAt(mc, numChildren-1);

best regards
Leandro Amano

On 6/26/07, Digg Yeah [EMAIL PROTECTED] wrote:

 Creating a custom mouse pointer by attaching [addchild ] from library
 seems
 impossible in as3. Everytime i do it,the mouse actually shows up over
the
 pointer movieclip if i move the mouse fast!

 Did anyone try using addchild to create mouse pointers from library ? I
 tried a lot, never works .[it works with simple geometrical objcts
created
 with as , as shown in CS3 documentation ]

 Thanks in advance.

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

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




--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Revenue?

2007-06-26 Thread Christopher Wissmath
 I have been looking into a couple ways that you can make money with
flash content. I was thinking about making widgets over games, but since
I am so new, I figured the best thing to do was to come to the experts. 

1. What should I create? (game/widget)
2. How should I dustribute?
3. How could I make a decent amount of revenue?

...Would be interesting to get a good thread going, 

Thanks!

CW
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FMS, No event when client had lost connection?

2007-06-26 Thread Dennis - I Sioux
Hey guys,

Has anyone expierenced that the FMS server doesn't get an onDisconnect form a 
client that has lost his connection?
After a while (up to 10 min) the fms will throw the user out the list..
But by then the client could have reconnected again.. will get new Client ID 
and give trouble with the old ghost username in the peoplelist with people 
connected.

Off course this can be solved with ducktape and ping commands every now and 
then.. but has anyone got another approuch? Maybe server settings or something 
else?

This should be the 2.0.4 version

With kind regards,


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

2007-06-26 Thread Glen Pike

£0.02

Learn flash - get hired.

Learn it more - get hired to teach others.

Rant about flash - get hired by Adobe.

:)

Christopher Wissmath wrote:

 I have been looking into a couple ways that you can make money with
flash content. I was thinking about making widgets over games, but since
I am so new, I figured the best thing to do was to come to the experts. 


1. What should I create? (game/widget)
2. How should I dustribute?
3. How could I make a decent amount of revenue?

...Would be interesting to get a good thread going, 


Thanks!

CW
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] load image in livepreview?

2007-06-26 Thread John Grden

when you say load are you talking externally?  or embedded in the
component swc?  are we talking AS3? is this a new FLA based component for
AS3 or swc?

AS3 wraps the component at designtime with a livePreviewParent class and
it's running a swf essentially.  So, you should be able to load an external
file without a problem.  I'm building a component right now thats loading
XML and multiple images at design time in the IDE without any problem
without any special tricks.  Although, i will say, you have to use an
absolute path - relative won't work from where the FLA is saved if that's
what you're assuming.

C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript
3.0\Classes\fl\livepreview\LivePreviewParent.as

hth,

John

On 6/26/07, Mike Lyda [EMAIL PROTECTED] wrote:


I've been building components since.. well.. the Flash 5 days, and every
once
in a while I need a component to load an image and display it while the
component is in livepreview (on the stage, before test movie, etc).  Each
time
I dig around thinking this is just nuts.. there has to be a way, and most
of
the time I fake it and embed the image into the component or do some other
hokey workaround.

Well.. now I really need to have a component load an image during
livepreview
and I'm not finding a way.  bah!   Anybody out there have the
secret?  Or.. is
it just not possible?





Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





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

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


Re: [Flashcoders] Attaching a change handler to a dynamically generated comboBox

2007-06-26 Thread Carl Welch

I'm using Flash 9.

I just tried using this instead of setChangeHandler:


var myComboBox = myScrollBox.createClassChildAt Depth(mx.controls.ComboBox,
DepthManager.kTop, {_x:10, _y:10});


myCondition.change = function(eventObj){
//  combo = myComboBox.getSelectedItem().data;
 combo = myComboBox.selectedItem;
 trace(combo.label);
   }
myComboBox.addEventListener(change, myCondition);


... And it didn't work either. Any advice?

Thanks,

--Carl



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



As far I remember setChangeHandler() was used in v1 component library
for Flash 6. Are you surely using v1 components? I don't think so,
since there was no createClassChildAtDepth(), mx.controls.ComboBox
class, etc. In v2 components there is an other way of attaching event
handlers (addEventListener, change event).

  Attila


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Carl Welch [EMAIL PROTECTED]
To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:Tuesday, June 26, 2007, 11:46:14 AM
Subject: [Flashcoders] Attaching a change handler to a dynamically
generated comboBox

--===--
Hello List,

I am having an issue with attaching a change handler to a ComboBox
that is being dynamically generated. What is wrong with this code I am
using?

var myComboBox =
myScrollBox.createClassChildAtDepth(mx.controls.ComboBox,
DepthManager.kTop, {_x:10, _y:10});


myComboBox.addItem({label:Foo, data:FooBar});


function comboDisplay(component) {
trace(myComboBox.getSelectedItem().data);
}
myComboBox.setChangeHandler(comboDisplay);



As a test, I tried:

myComboBox.onPress = function() {
 trace(myComboBox.getSelectedItem().data);
}

... and it did trace the first item, but of course it wouldn't work as
a dropdown anymore.



Thanks.


--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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





--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] load image in livepreview?

2007-06-26 Thread Mike Lyda

Sorry..  AS2, loading from external file

--- John Grden [EMAIL PROTECTED] wrote:

 when you say load are you talking externally?  or embedded in the
 component swc?  are we talking AS3? is this a new FLA based component for
 AS3 or swc?
 
 AS3 wraps the component at designtime with a livePreviewParent class and
 it's running a swf essentially.  So, you should be able to load an external
 file without a problem.  I'm building a component right now thats loading
 XML and multiple images at design time in the IDE without any problem
 without any special tricks.  Although, i will say, you have to use an
 absolute path - relative won't work from where the FLA is saved if that's
 what you're assuming.
 
 C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript
 3.0\Classes\fl\livepreview\LivePreviewParent.as
 
 hth,
 
 John
 


 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] load image in livepreview? [solution]

2007-06-26 Thread Mike Lyda

the hint from John Grden was good..  the path to the external file has to be
absolute to load the image in during livepreview.


   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


ADMIN: OT (was RE: [Flashcoders] Revenue?)

2007-06-26 Thread Dave Watts
  I have been looking into a couple ways that you can make 
 money with flash content. I was thinking about making widgets 
 over games, but since I am so new, I figured the best thing 
 to do was to come to the experts. 
 
 1. What should I create? (game/widget)
 2. How should I dustribute?
 3. How could I make a decent amount of revenue?
 
 ...Would be interesting to get a good thread going,

Note that the name of this list is [Flashcoders]. Not [Flashhowtomakemoney].
This is OT, please drop it. Thanks!

Your friendly list administrator, 

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net

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

2007-06-26 Thread Paul Andrews
- Original Message - 
From: Martin Klasson [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, February 06, 2007 11:46 AM
Subject: [Flashcoders] Flash Lite 2.1




Hi Flashcoders,

Do you have tips on where to find the best sources of information about 
Flash Lite development outside the adobe.com domain?
Or is there a mailing-list, or is Flashcoders the place to talk and 
discuss Flash Lite problems and practices on?


Check out the flashlite group on yahoo..


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

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


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

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


[Flashcoders] detect if/when swf gets focus

2007-06-26 Thread Bob Wohl

Hi all,

is there a way in AS2 to tell when an swf gains focus? We're having an issue
when a user downloads a file via html link that when the download dialog box
finishes a swf gains focus on the page(at least I think it's the swf, cant
tell if i cant test). I've tried a few hacks trying to detect focus but
nothing seems to work.

:boggled:

B.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] fyi ... Adobe's Marketing Of Flash and Apollo Should Be Copied By Others

2007-06-26 Thread greg h

Following is a link for a blog post that is a nice, feel good piece for the
teams at Adobe and for the Adobe community:

Adobe's Marketing Of Flash and Apollo Should Be Copied By Others
http://blog.streamingmedia.com/the_business_of_online_vi/2007/06/adobes-marketin.html

I just hope competitors never figure out Adobe's secret  ;-)

g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-26 Thread Adam Pasztory

In ActionScript 2, I never used button symbols.  Instead I would create
buttons as MovieClips, give the frames of the buttons labels -- _up,
_down, _over -- and assign an event handler to them.

I tried this in AS3, but it didn't seem to work.  Is there some new secret
to MovieClip buttons in Flash 9?

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

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