RE: [Flashcoders] Newbie question: SHIFT+TAB

2005-11-08 Thread Neil Gibbons
 
Lol.
The problem seemed to be with my use of the FocusManager.

I was creating an instance of it and passing into drawing
functions that were creating the TextInput1 fields:

objFocusManager = new FocusManager();

Then use the nextTabIndex to set fields tabIndex:

txtUsername.tabIndex = objApp.objFocusManager.nextTabIndex;
txtPassword.tabIndex = objApp.objFocusManager.nextTabIndex;

When I traced this out, I noticed that it always returned 1?

Anyway, I removed the FocusManger and simply added 1,2,3,etc and
evreything appears to be fine now.


Neil 


[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 07 November 2005 18:23
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB

Did you create a new focus manager you could share ?  :)

Grant

- Original Message -
From: Scott Hyndman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 11/7/05 11:50 AM
Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB

 What I did on one project was to use __proto__ and override the
FocusManager's class at runtime. It worked quite well.
 
 Scott
 
 -Original Message-
 From: [EMAIL PROTECTED] on behalf of Muzak
 Sent: Mon 11/7/2005 9:14 AM
 To:   Flashcoders mailing list
 Cc:   
 Subject:  Re: [Flashcoders] Newbie question: SHIFT+TAB
 And what exactly is TextInput1?
 A custom class I suppose. Which class does it extend?
 
 For tabbing to work propertly with other v2 components, you don't have

 much choice other than extending UIComponent (or any of the
 v2 core classes).
 
 I've said it before, the FocusManager is not one of the best v2
classes out there (and I'm being nice here;-) ).
 
 regards,
 Muzak
 
 - Original Message -
 From: Neil Gibbons 
 To: Flashcoders mailing list 
 Sent: Monday, November 07, 2005 2:56 PM
 Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB
 
 
 
 Yes.
 I've used FocusManager.nextTabIndex() to set all tabIndexes, but there

 the following on screen, (in preferred tab order):
 
 1. A search box at the top
 2. Username field
 3. Password field
 4. A Login button
 5. A Register button
 
 TAB  SHIFT TAB works between the buttons, but only TAB( tabbing 
 forward), works on the fields.
 
 All text fields are type TextInput1. If I use the standard TextInput, 
 tabbing is fine.
 :(
 
 Neil
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

Scanned by MailDefender - managed email security from intY -
www.maildefender.net
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Newbie question: SHIFT+TAB

2005-11-08 Thread Thimon Sistermans [Us Media]
that was really newbie:p 
Great it is fixed



- Original Message - 
From: Neil Gibbons [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 08, 2005 10:01 AM
Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB



Lol.
The problem seemed to be with my use of the FocusManager.

I was creating an instance of it and passing into drawing
functions that were creating the TextInput1 fields:

objFocusManager = new FocusManager();

Then use the nextTabIndex to set fields tabIndex:

txtUsername.tabIndex = objApp.objFocusManager.nextTabIndex;
txtPassword.tabIndex = objApp.objFocusManager.nextTabIndex;

When I traced this out, I noticed that it always returned 1?

Anyway, I removed the FocusManger and simply added 1,2,3,etc and
evreything appears to be fine now.


Neil 



[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 07 November 2005 18:23
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB

Did you create a new focus manager you could share ?  :)

Grant

- Original Message -
From: Scott Hyndman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 11/7/05 11:50 AM
Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB


What I did on one project was to use __proto__ and override the

FocusManager's class at runtime. It worked quite well.


Scott

-Original Message-
From: [EMAIL PROTECTED] on behalf of Muzak
Sent: Mon 11/7/2005 9:14 AM
To: Flashcoders mailing list
Cc: 
Subject: Re: [Flashcoders] Newbie question: SHIFT+TAB

And what exactly is TextInput1?
A custom class I suppose. Which class does it extend?

For tabbing to work propertly with other v2 components, you don't have



much choice other than extending UIComponent (or any of the
v2 core classes).

I've said it before, the FocusManager is not one of the best v2

classes out there (and I'm being nice here;-) ).


regards,
Muzak

- Original Message -
From: Neil Gibbons 
To: Flashcoders mailing list 
Sent: Monday, November 07, 2005 2:56 PM

Subject: RE: [Flashcoders] Newbie question: SHIFT+TAB



Yes.
I've used FocusManager.nextTabIndex() to set all tabIndexes, but there



the following on screen, (in preferred tab order):

1. A search box at the top
2. Username field
3. Password field
4. A Login button
5. A Register button

TAB  SHIFT TAB works between the buttons, but only TAB( tabbing 
forward), works on the fields.


All text fields are type TextInput1. If I use the standard TextInput, 
tabbing is fine.

:(

Neil


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




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


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

Scanned by MailDefender - managed email security from intY -
www.maildefender.net
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


__ NOD32 1.1278 (20051107) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com


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


[Flashcoders] dispatching events through a chain of objects

2005-11-08 Thread Jan Schluenzen
How do you guys handle the following situation:

I have a class, let's say Dog that holds an instance of the class Leg.
Outside of Dog I have another class called Street that holds the dog.
Anyway, now I want street to find out whenever the dog's leg has
moved. The only way I can figure out how to do that is to send the
move event of the Leg class first to the holder of the Leg object
(in this case Dog) and then on to the holder of Dog, in this case
Street. I've ran into more complex cases when I've had to hand down
events through several classes...

Is there a common solution to this problem without the need to send
the event from one instance of a class to the next until it reaches
its final destination?

Below an example of what I mean...

class Street {
function Street() {
var myDog = new Dog();
myDog.addEventListener(move, this);
}
function move() {
trace(move event found!);
}
}

class Dog {
private var leg1:Leg;

function Dog() {
leg1 = new Leg();
leg1.addEventListener(move, this);
}
function move() {
dispatchEvent({type:move});
}
}

class Leg {

// this event is triggered through some other method of the Leg class.
function move() {
dispatchEvent({type:move});
}
}

var blah = new Street();



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


[Flashcoders] XML driven ticker tape

2005-11-08 Thread Paul Steven
I would like to create a ticker tape style text display along the bottom of
my flash movie. I would like the text to be read in from an xml file. The
text would basically just scroll from left to right across the screen.

Any tips / advice / code etc much appreciated.

Thanks

Paul


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


[Flashcoders] How to dynamically change background color of a DataGrid Row ?

2005-11-08 Thread Yaniv De Ridder

Hello,

I try to dynamically change the background color of a DataGrid row ,
i'm using already cellrenderer to have multiline rows and icons , but  
on my dataset , i have a parameter that can be true or false,
if its true i want that my datagrid row have another background  
color, it have to be set dynamically for each row

i tried few things but with no success

someone can help me, or give me a working example ?

thanks

/Yaniv



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


[Flashcoders] Character sets embedding

2005-11-08 Thread Dennis - I Sioux
Hey Guys,

I was wondering what the character sets are to embed if you want to display 
Polish Text.

And if someone might have a site with a list what languages uses which 
character sets in Flash.

Many Thanx


Dennis 
I Sioux B.V. 
Verlengde Zuiderloswal 4 
1216 BX   Hilversum 
T. +31 (0) 35 6216028 
F. +31 (0) 35 6223806 
E. [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


FW: [Flashcoders] Ajax and Flash

2005-11-08 Thread Weldon MacDonald
 
I'm skeptical of abstract technology discussions, unattached to a real
world need. Amen, but you have to keep up with the abstract discussions in
order to best deal with the real world problems. If you keep forcing new
solutions out of the same mould, your probably not creating the best
solutions.
In many ways Flash and Ajax compete, but Flash can also be an integral part
of Ajax. While Flash has many advantages, handling text rich content isn't
one of them. If your developing something that needs asynchrony for some
elements, but also includes a lot of text, you may have to mix things up. As
you say it depends on the problem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell
Sent: Monday, November 07, 2005 11:17 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Ajax and Flash

Weldon MacDonald wrote:
 Where does Flash fit in with the Ajax paradigm?

A lot depends on what the Ajax paradigm might be ;-)

I know that Flash and JavaScript have coexisted for about a decade now, and
that both are necessary clientside technologies. Both will also improve and
evolve, at their different rates of adoption and predictability.

In such discussions I usually look for the particular job under
consideration -- the tasks that must be done, the audience that must be
engaged, the client who knows the message they're trying to convey. The
technologies must serve these realworld needs to be useful, so I'm skeptical
of abstract technology discussions, unattached to a realworld need.

jd






--
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


[Flashcoders] JSFL and Component Definition

2005-11-08 Thread Dan Wood
Hi

Is there any way I can set the AS2 class in the component definition of a
symbol via JSFL? I've had a look through the docs and I can only see how to
set the linkageClass. This is not enough for what I'm trying to do
unfortunately.

I'm writing a script which will turn a textfield into a component and need
to have an Inspectable property. Failing this is there another way I can get
a value into the clip?

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


[Flashcoders] transparent color

2005-11-08 Thread Latcho


What would be the best and most appropriate (blend?) method/mode to
give a grey-rendered (so shadow-and gradient rich) 3D object the closest and 
correctly visual matching hex or rgb color skinned over it? The paint should look like

naturally applied, and not too much lighter or darker.
How would i best proceed ?

thanx,
Latcho



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


[Flashcoders] blank text bug in v2 components ?

2005-11-08 Thread Gavin Lilley
I seem to have a problem with v2 components, and I cannot get to the bottom
of the problem.

I have a medium sized app with Datagrid, TextArea and ComboBox components
poulated by PHPAMF data.

Certain sequences of events, eg. click on this1_mc and then this2_mc will
make the TextArea and ComboBox components blank. I can select and copy/paste
the etxt, edit the text but I cannot see the text.

If I apply a colour to the backgorund eg.
'myText.setStyle(backgroundColor, 0xFF);' I can see that the
text is visible and the
backgorund appears to be positioned in front of the text.

I have reinstalled Flash with the latest components.

I have recreated the movie from scratch and all is fine at first and then
the bug seems to rear its ugly head.

I have searched extensivly to find out about this problem and it seems that
it shoudl have been fixed in 7.2 and again in 8. I have also tried solutions
related toi masks (I have no masks in my movie) and embedded fonts (this
makes to differance).

Teh only workaround I can find is a cheat which appears to work. '
myText.depthChild0._alpha=0;' But I would prefer to try to understand this
problem and if I am going wrong.

Has anyone experienced simlar problems? Am I missing something?


--


Gavin Lilley
Technical Consultant
CrISPUK.NET Limited
t. +44 (0) 1905 779112
f. +44 (0) 1905 797666
e. [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Resizing Imported Images

2005-11-08 Thread Lehr, Theodore M.
Is there anyway to resize an image imported via loadMovie - not resizing
the mc it is loaded into - but the image itself?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Character sets embedding

2005-11-08 Thread Martin Klasson

I would like to state that I am VERY interested in this as well.
So please do share your knowledge!

/ martin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis -
I Sioux
Sent: den 8 november 2005 11:59
To: Flashcoders mailing list
Subject: [Flashcoders] Character sets embedding

Hey Guys,

I was wondering what the character sets are to embed if you want to
display Polish Text.

And if someone might have a site with a list what languages uses which
character sets in Flash.

Many Thanx


Dennis 
I Sioux B.V. 
Verlengde Zuiderloswal 4 
1216 BX   Hilversum 
T. +31 (0) 35 6216028 
F. +31 (0) 35 6223806 
E. [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Resizing Imported Images

2005-11-08 Thread Martin Wood

no, once its loaded in the mc is the image.

you can always use another mc as a container if you require it.

martin


Lehr, Theodore M. wrote:

Is there anyway to resize an image imported via loadMovie - not resizing
the mc it is loaded into - but the image itself?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
want to know what i think? probably not

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


Re: [Flashcoders] gotoAndStop(..); then accessing a movieclip.

2005-11-08 Thread Joseph Balderson
On your local frame, you'd have the money.amount.text field present, but 
either set _visisble=false with AS, or change the alpha to 0 in the property 
inspector. Then, when the playhead gets to remote, you'd change to 
_visible=true or the alpha back to 99.9 in the property inspector for the text 
field. That way you can set the field text without it showing in the first 
'frame'. It's a technique that works for almost any asset that needs to be 
updated/set X frames deep into a timeline.




Joseph Balderson
Interactive Media Design  Development
http://www.joeflash.ca

Faculty Member, Flash Development,
Humber College School of Media Studies
http://mediastudies.humber.ca


[EMAIL PROTECTED] wrote:
Let's say you have a MC with 2 frame labels (localPlayer and 
remotePlayer for example) and then you have different movie clips 
inside that MC. Something like this:


  |local|remote___
ammo  |x|
life  | |x
money | |x


Then you want to do something like this in your AS code (assuming you've 
previously stopped on local):


gotoAndStop(remote);
money.amount.text = $100;

This wouldn't work because you have to wait one frame before you'd be 
able to access money but what's your prefered way of waiting one frame? 
Is there a real easy way to do it without putting AS code in your 
timeline and without using setInterval(..) to wait one frame?


I hope I've just missed something that's real easy in flash.

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


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


RE: [Flashcoders] Resizing Imported Images

2005-11-08 Thread Adrian Lynch
Load it into a nested MC and resize that instead? Why don't you want to
resize the MC it's being loaded into?

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lehr,
Theodore M.
Sent: 08 November 2005 14:13
To: Flashcoders mailing list
Subject: [Flashcoders] Resizing Imported Images


Is there anyway to resize an image imported via loadMovie - not resizing
the mc it is loaded into - but the image itself?

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


RE: [Flashcoders] JSFL and Component Definition

2005-11-08 Thread Julian Dolce
Currently there is no way to access the component definition properties
through JSFL. But please go and request this for this on the macromedia
site. The more people request this the more likely we are to see it in
flash 9

http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform



Julian Dolce
Senior Creative Technologist
Fuel Industries, INC
[ p ] 613-224-6738 x241
 
-Original Message-
From: Dan Wood [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 08, 2005 7:13 AM
To: Flashcoders mailing list
Subject: [Flashcoders] JSFL and Component Definition

Hi

Is there any way I can set the AS2 class in the component definition of
a
symbol via JSFL? I've had a look through the docs and I can only see how
to
set the linkageClass. This is not enough for what I'm trying to do
unfortunately.

I'm writing a script which will turn a textfield into a component and
need
to have an Inspectable property. Failing this is there another way I can
get
a value into the clip?

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


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


RE: [Flashcoders] Resizing Imported Images

2005-11-08 Thread Lehr, Theodore M.
I don't mind resizing the one it is loading into but I can not get it to
work... I tried but it remains the size of the image...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian
Lynch
Sent: Tuesday, November 08, 2005 9:24 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Resizing Imported Images

Load it into a nested MC and resize that instead? Why don't you want to
resize the MC it's being loaded into?

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lehr,
Theodore M.
Sent: 08 November 2005 14:13
To: Flashcoders mailing list
Subject: [Flashcoders] Resizing Imported Images


Is there anyway to resize an image imported via loadMovie - not resizing
the mc it is loaded into - but the image itself?

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


Re: [Flashcoders] Character sets embedding

2005-11-08 Thread Muzak
These may help:
http://www.unicode.org/
http://www.unicode.org/charts/

http://www.columbia.edu/kermit/csettables.html
http://www.biega.com/special-char.html

regards,
Muzak

- Original Message - 
From: Dennis - I Sioux [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 08, 2005 11:59 AM
Subject: [Flashcoders] Character sets embedding


Hey Guys,

I was wondering what the character sets are to embed if you want to display 
Polish Text.

And if someone might have a site with a list what languages uses which 
character sets in Flash.

Many Thanx


Dennis
I Sioux B.V.


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


Re: [Flashcoders] XML driven ticker tape

2005-11-08 Thread Ron Wheeler

Should be easy.
Reading XML is simple.
The scrolling direction seems odd but you can probably figure out how to 
do it easier than someone can figure out how to read it.


http://www.developingwebs.net/flash/marquee.php

Ron

Paul Steven wrote:


I would like to create a ticker tape style text display along the bottom of
my flash movie. I would like the text to be read in from an xml file. The
text would basically just scroll from left to right across the screen.

Any tips / advice / code etc much appreciated.

Thanks

Paul


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


 


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


Re: [Flashcoders] XML driven ticker tape

2005-11-08 Thread Ron Wheeler

http://www.coolfocus.com/relocate.asp?page=flash/freestuff/marqueedesc.asp
another example

Ron

Paul Steven wrote:


I would like to create a ticker tape style text display along the bottom of
my flash movie. I would like the text to be read in from an xml file. The
text would basically just scroll from left to right across the screen.

Any tips / advice / code etc much appreciated.

Thanks

Paul


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


 


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


Re: [Flashcoders] gotoAndStop(..); then accessing a movieclip.

2005-11-08 Thread [EMAIL PROTECTED]
thanks for the help. for the next project i'll tell the designer that's 
how i want it done. problem is that i'm already 90% done with the 
project and i was hoping for a solution that didn't involve the designer 
at this stage. i could change everything myself but at this point it's 
too much work. thanks!


andreas


Joseph Balderson wrote:
On your local frame, you'd have the money.amount.text field present, 
but either set _visisble=false with AS, or change the alpha to 0 in the 
property inspector. Then, when the playhead gets to remote, you'd 
change to _visible=true or the alpha back to 99.9 in the property 
inspector for the text field. That way you can set the field text 
without it showing in the first 'frame'. It's a technique that works for 
almost any asset that needs to be updated/set X frames deep into a 
timeline.




Joseph Balderson
Interactive Media Design  Development
http://www.joeflash.ca

Faculty Member, Flash Development,
Humber College School of Media Studies
http://mediastudies.humber.ca


[EMAIL PROTECTED] wrote:
Let's say you have a MC with 2 frame labels (localPlayer and 
remotePlayer for example) and then you have different movie clips 
inside that MC. Something like this:


  |local|remote___
ammo  |x|
life  | |x
money | |x


Then you want to do something like this in your AS code (assuming 
you've previously stopped on local):


gotoAndStop(remote);
money.amount.text = $100;

This wouldn't work because you have to wait one frame before you'd be 
able to access money but what's your prefered way of waiting one 
frame? Is there a real easy way to do it without putting AS code in 
your timeline and without using setInterval(..) to wait one frame?


I hope I've just missed something that's real easy in flash.

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


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



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


[Flashcoders] FLV playing inside component

2005-11-08 Thread eric dolecki
In my init for a component, I am doing the traditional FLV play:

var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);

video_mc.__video.attachVideo(my_ns);
trace(video_mc.__video)
trace(my_ns)
trace(__videoPath)
my_ns.setBufferTime(0);
my_ns.play(__videoPath);

Everything traces out fine, everything is there, however with the play() -
the FLV loads and stops playing on Frame 1. I do have some drop shadow stuff
going on inside the component - I am wondering if that is somehow freezing
the FLV. Has anyone seen anything like this before?

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


Re: [Flashcoders] Resizing Imported Images

2005-11-08 Thread Ian Thomas
*sigh*

var mcl:MovieClipLoader();


should be

var mcl:MovieClipLoader=new MovieClipLoader();


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


Re: [Flashcoders] jsfl and xml

2005-11-08 Thread Danny Kodicek

Can't you use a flash panel to parse it for you then execute the JSFL
based on that? 


Ah - that makes sense. I knew there was some value in those windows! :)

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


Re: [Flashcoders] JSFL and Component Definition

2005-11-08 Thread Dan Wood
Damn.

There goes that idea then.

On 08/11/05, Muzak [EMAIL PROTECTED] wrote:
 Nope :/

 - Original Message -
 From: Dan Wood [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, November 08, 2005 1:12 PM
 Subject: [Flashcoders] JSFL and Component Definition


 Hi

 Is there any way I can set the AS2 class in the component definition of a
 symbol via JSFL? I've had a look through the docs and I can only see how to
 set the linkageClass. This is not enough for what I'm trying to do
 unfortunately.

 I'm writing a script which will turn a textfield into a component and need
 to have an Inspectable property. Failing this is there another way I can get
 a value into the clip?

 Thanks
 Dan


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

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


[Flashcoders] [ANN] FlashDevelop 2.0 beta5

2005-11-08 Thread Philippe
FlashDevelop 2.0 is a highly customizable script editor providing:
- advanced ActionScript 2 completion without any project configuration,
- Flash 8 and Flash MX2004 compatibility,
- MTASC code checking, building  preview,
- integrated socket logger,
- easy plugin extensibility.

FlashDevelop 2.0 is an opensource .NET project hosted on OSFlash.org.

Download  informations:
http://flashdevelop.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Client editable Flash exe as opposed to powerpoint

2005-11-08 Thread Andy Weisner

It can be done offline for sure .
The easiest way would be to make the client save the slides as jpgs in 
a folder next to the flash projector in a consistent resolution from 
photoshop ,maybe with numbered names like slide_1,slide_2.(or you could 
use the flash8 file upload dialog to make the client  get the paths easy 
if using a flash8 exe) .
Store the paths in a list as array or object best  ( or XML with DOM 
create nodes functions).
Then you can make a drag and drop like backend interface to load all the 
slides resized as thumbnails from the list . And the client can reorder  
them and add comments to each .Then this interface generates via a loop 
a object (or XML source with a string,shich can be parsed into XML obj 
or XML object  with the DOM if you want ) with all the order nad 
comments and paths . You store this obj or XML in a flash Local Shared 
Object and later for the presentation this obj or XML can be used in a 
interactive presentation or slideshow interface with loadmovie and 
transitions.


No need for Fla or zinc here.
Hope this helps

Andy


Kurt Dommermuth wrote:



Hi All,

On several occasions I have gotten the request from a client for a 
presentation done in flash as opposed to powerpoint.


The complications are:

1.  It is offline.
2.  They want to add and/or remove slides themselves. (the slides 
would be created in photo shop as 1 static image)


I've done this in the past where I'd pass along the FLA knowing that 
someone on the client side had some experience that would enable them 
to edit XML.


I don't have that option this time.

what I need to do, I think, is develop a tool for the client to 
upload a slide (a png, or a jpg) and add a comment. - and then 
generate/or edit existing XML that would save the appropriate info to 
be used by the presentation.


I've frequently loaded, parsed and used XML for various things, but 
I've never edited it from flash.


From the manual it looks like this can be done.  Can it be done 
offline?  is it advisable?  Is there a better way?


Would Zinc or some other third party tool be necessary?

thank you for any advice!

Kurt


 
___

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



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


Re: [Flashcoders] gotoAndStop(..); then accessing a movieclip.

2005-11-08 Thread JOR
Let the MC hold the state of the money and the dynamic text field 
reference it when needed since it doesn't persist.


In the MC declare the var:
var money:String;

Then set the dynamic text field's var to money

To make the change:
MC.money = $100;
MC.gotoAndStop(remote);


JOR




[EMAIL PROTECTED] wrote:
Let's say you have a MC with 2 frame labels (localPlayer and 
remotePlayer for example) and then you have different movie clips 
inside that MC. Something like this:


  |local|remote___
ammo  |x|
life  | |x
money | |x


Then you want to do something like this in your AS code (assuming you've 
previously stopped on local):


gotoAndStop(remote);
money.amount.text = $100;

This wouldn't work because you have to wait one frame before you'd be 
able to access money but what's your prefered way of waiting one frame? 
Is there a real easy way to do it without putting AS code in your 
timeline and without using setInterval(..) to wait one frame?


I hope I've just missed something that's real easy in flash.

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




--


___
===  James O'Reilly
===
===  SynergyMedia, Inc.
===  www.synergymedia.net

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


Re: [Flashcoders] gotoAndStop(..); then accessing a movieclip.

2005-11-08 Thread [EMAIL PROTECTED]
yeah but i want to keep code and design as separate as possible so the 
designer can change his design when he wants to and just keep the 
labels. but for the next project i'll ask him to change alpha instead.



JOR wrote:
Let the MC hold the state of the money and the dynamic text field 
reference it when needed since it doesn't persist.


In the MC declare the var:
var money:String;

Then set the dynamic text field's var to money

To make the change:
MC.money = $100;
MC.gotoAndStop(remote);


JOR




[EMAIL PROTECTED] wrote:
Let's say you have a MC with 2 frame labels (localPlayer and 
remotePlayer for example) and then you have different movie clips 
inside that MC. Something like this:


  |local|remote___
ammo  |x|
life  | |x
money | |x


Then you want to do something like this in your AS code (assuming 
you've previously stopped on local):


gotoAndStop(remote);
money.amount.text = $100;

This wouldn't work because you have to wait one frame before you'd be 
able to access money but what's your prefered way of waiting one 
frame? Is there a real easy way to do it without putting AS code in 
your timeline and without using setInterval(..) to wait one frame?


I hope I've just missed something that's real easy in flash.

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





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


Re: [Flashcoders] [ANN] FlashDevelop 2.0 beta5

2005-11-08 Thread [EMAIL PROTECTED]
wow, nice editor. never seen it before. code completition is sweet and 
the editor is only 1.5 Mb's big.




Philippe wrote:

FlashDevelop 2.0 is a highly customizable script editor providing:
- advanced ActionScript 2 completion without any project configuration,
- Flash 8 and Flash MX2004 compatibility,
- MTASC code checking, building  preview,
- integrated socket logger,
- easy plugin extensibility.

FlashDevelop 2.0 is an opensource .NET project hosted on OSFlash.org.

Download  informations:
http://flashdevelop.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


RE: [Flashcoders] flash scrollbar actionscript?

2005-11-08 Thread Ben Smeets
http://www.flashzone.nl/archives/000250.php

Cheers,

Ben 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ed
Hotchkiss
Sent: dinsdag 8 november 2005 8:32
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flash scrollbar actionscript?

does anyone have any actionscript for a scrollbar, that is mainly
comprised of actionscript? ie: a class or function that takes a
scrollbar clip, a range of motion and a bit of text to scroll, and
scrolls it ... yes, already checked various sites. thanks in advance.

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


[Flashcoders] file upload with flash 8 weirdness

2005-11-08 Thread Tom Rhodes
Hello all, 

i think my prob is in my php, but i'm uploading a file to the server, 
everything goes aok as far as flash is concerned, onProgress and onComplete 
both fire away happily.

but the file he no end up on server :(

why would flash say everything is cool and the file not end up there? 

the only slightly funky thing i'm doing is passing a filename to the upload php 
page for it to use when it moves the file from the browser temp to the server. 
like so

?php
if ($_FILES['Filedata']['name']) {
   $uploadDir = ../images/homepage;
   $uploadFile = $uploadDir . $_REQUEST['fileName'];
   $uploaded = move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadFile);
   echo $uploaded;
}
?

any ideas???

i have an urgent deadline approaching fast, and this is the last little thing i 
need to complete :(

tia,

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


Re: [Flashcoders] [ANN] FlashDevelop 2.0 beta5

2005-11-08 Thread eric dolecki
Its a decent start :)

ed

On 11/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 wow, nice editor. never seen it before. code completition is sweet and
 the editor is only 1.5 Mb's big.



 Philippe wrote:
  FlashDevelop 2.0 is a highly customizable script editor providing:
  - advanced ActionScript 2 completion without any project configuration,
  - Flash 8 and Flash MX2004 compatibility,
  - MTASC code checking, building  preview,
  - integrated socket logger,
  - easy plugin extensibility.
 
  FlashDevelop 2.0 is an opensource .NET project hosted on OSFlash.org.
 
  Download  informations:
  http://flashdevelop.org
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] file upload with flash 8 weirdness

2005-11-08 Thread Tom Rhodes

ah, ignore me, i panicked, no trailing slash on the directory.

*crawls back into dark place*

- Original Message - 
From: Tom Rhodes [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 08, 2005 5:09 PM
Subject: [Flashcoders] file upload with flash 8 weirdness


Hello all,

i think my prob is in my php, but i'm uploading a file to the server, 
everything goes aok as far as flash is concerned, onProgress and onComplete 
both fire away happily.


but the file he no end up on server :(

why would flash say everything is cool and the file not end up there?

the only slightly funky thing i'm doing is passing a filename to the upload 
php page for it to use when it moves the file from the browser temp to the 
server. like so


?php
if ($_FILES['Filedata']['name']) {
  $uploadDir = ../images/homepage;
  $uploadFile = $uploadDir . $_REQUEST['fileName'];
  $uploaded = move_uploaded_file($_FILES['Filedata']['tmp_name'], 
$uploadFile);

  echo $uploaded;
}
?

any ideas???

i have an urgent deadline approaching fast, and this is the last little 
thing i need to complete :(


tia,

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


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


Re: [Flashcoders] swf to svg

2005-11-08 Thread Ricky Bacon

rishi wrote:

Can some one suggest a way to convert swf to svg. I have multiple paths
in my swf for which I want an automated tool to provide me the svg.


There is an online tool that does it:

http://www.eprg.org/~sgp/swf2svg.html

and tool in Japanese:

http://www.game3rd.com/soft/action/

If you need to convert dynamically created images in a swf, you can feed 
data to a server and format it as an SVG.


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


Re: [Flashcoders] [ANN] FlashDevelop 2.0 beta5

2005-11-08 Thread [EMAIL PROTECTED]
yeah. after writing that i did find a couple of bugs so i might not make 
the switch just yet. :)


eric dolecki wrote:

Its a decent start :)

ed

On 11/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

wow, nice editor. never seen it before. code completition is sweet and
the editor is only 1.5 Mb's big.



Philippe wrote:

FlashDevelop 2.0 is a highly customizable script editor providing:
- advanced ActionScript 2 completion without any project configuration,
- Flash 8 and Flash MX2004 compatibility,
- MTASC code checking, building  preview,
- integrated socket logger,
- easy plugin extensibility.

FlashDevelop 2.0 is an opensource .NET project hosted on OSFlash.org.

Download  informations:
http://flashdevelop.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


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



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


[Flashcoders] [ANN] FlashDevelop 2.0 beta5

2005-11-08 Thread Philippe
 i did find a couple of bugs

You can submit bugs in the forum. We usually fix them quickly in the
online source repository.

Philippe,
http://flashdevelop.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Combobox stop working after resize

2005-11-08 Thread Martin Tremblay
 
The combobox seems to stop working (but I still receive the event) after an 
element been selected and the ComboBox.setSize() method is called.

If no selection been made before setSize, the combo is working just fine.

Is there a workaround other than re-attaching a new combo box?

See the example:
http://www.lvlstudio.com/bug/resizeCombo.html

Here's the code, to try it yourself:

resize_mc.delegate = this;
resize_mc.onRelease = function ()
{
this.delegate.resizeCombo();
}

this.resizeCombo = function ()
{
var nCurrentSize = this.test_cb._width;

this.test_cb.setSize(nCurrentSize == 100 ? 200 : 100);
}

Martin Tremblay


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 11/5/2005
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] jsfl and xml

2005-11-08 Thread Alan Queen
Can you guys elaborate on that one?
 Maybe an example somewhere?

 On 11/8/05, Danny Kodicek [EMAIL PROTECTED] wrote:

 Can't you use a flash panel to parse it for you then execute the JSFL
 based on that?

 Ah - that makes sense. I knew there was some value in those windows! :)

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




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


[Flashcoders] Not enough memory available on publish.

2005-11-08 Thread Brian Monds
I have a flash file I've been working on for a few months for a web site.
Everything has been working fine until I did some updates yesterday.  Now
when I run Publish or Test Movie it tries to export for about 5 minutes then
a message pops up saying I do not have enough memory.  Windows reports 300
megs of ram free during this and the .fla is only 15MB.  I check the .swf
that was created and it is 22 - 29MB (varies).  Is this a bug in flash?  The
last task I did was removing some unneeded movie clips from the library and
having it load 3 variables from the html to determine what contact
information to display (for tracking).  I've checked the knowledge base and
help files and couldn't find anything for memory issues, updates, or
publishing oddities in flash 8.

 

Thanks,

Brian

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


Re: [Flashcoders] [OTAnn] Feedback

2005-11-08 Thread g.wygonik
of course you realize that they have listed all of our names and email
addresses on the site as users...

i trust your spam filters are locked and loaded :-)

g.

On 11/7/05, Mike Britton [EMAIL PROTECTED] wrote:
 Wait -- I HEARD THIS WAS THE NEXT BIG THING!

 ;)

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


Re: [Flashcoders] jsfl and xml

2005-11-08 Thread Alan Queen
ok i got it now.. makes more sense anyway.. so i can have a ui to choose the
xml file, then let flash parse it and execute jsfl commands using
MMExecute...


 On 11/8/05, Danny Kodicek [EMAIL PROTECTED] wrote:

 Can you guys elaborate on that one?

 We're talking about creating a separate window which is opened by Flash as
 an interface and talks to your JSFL functions. Check out the Sample Trace
 Bitmap panel in the Flash help as a starting point.

 Danny

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




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


Re: [Flashcoders] passing mouse event

2005-11-08 Thread Éric Thibault
I must appologise to you H. because your droptarget solution works... 
the only thing was that the mouse pointer must be within the target to 
trigger the doptarget property!


It will be much easier to do that then test all the movieclips on the 
stage at every mousemove!


Thanks again

8-)

elibol wrote:


Hi Eric,

The _droptarget property changes before you 'release' a movieclip. It
changes whenever the majority of the area of the movieclip is over something
other than what is taking up the majority of the area at that instance. I
accually made sure this was the case before I posted because I was sure that
you would need the target before it was droped.

As for your other problems, you should gather as much information as you can
about the anatomy of the movieclips that need to be triggered if you arent
able to collaborate with your partners. If you're able to collaborate with
the developer that is creating the targets, you should have him construct an
abstract API for each target so you can 'question' any of the movieclips for
a movieclip group style identifier; which will allow you to differentiate
one target from the next without loops.

Good luck,

H


On 11/3/05, Éric Thibault [EMAIL PROTECTED] wrote:
 


Thanks

I've tried it with no success because the droptarget property is only
initialised once the dragged mc is droped! Is there another property
that can say over wich instance the dragged mc is?

Thanks a million!

elibol wrote:

   


Hi Eric,

Maybe a more optimized solution would be to have an onMouseMove event on
 


the
   


movieclip that is being dragged, which would be activated when the
 


movieclip
   


is dragged, that would run eval on the clips _droptarget property for
 


each
   


onMouseMove event. Each target could have a distinguishing public
 


property
   


that would be evaluated with the hitTest that would serve as the
 


exception
   


for triggering the onRollOver function. The dragging clip would also do a
onRollOut trigger on the last clip it was over once the clip is no longer
over the target.

I tested this:

var lastMC:MovieClip;

function onPress(){
this.startDrag();
onMouseMove = runOnMouseMove;
}

function runOnMouseMove(){
var t = eval(this._droptarget);
trace(t);
if(t!=lastMC){
if(lastMC.isTarget){
lastMC.onRollOut();
lastMC = undefined;
}
if(t.isTarget){
lastMC = t;
t.onRollOver();
}
}
}

function onRelease(){
this.stopDrag();
onMouseMove = undefined;
}

onReleaseOutside = onRelease;


Good luck,

H


On 11/2/05, Éric Thibault [EMAIL PROTECTED] wrote:


 


Hi all!

I have an application that uses startdrag events.

My problem is that I have about 20 targets with rollover events (each
hilighting a different portion of a radiography). When I drag an MC
over those targerts, the rollover dont get triggered! Is there a way to
pass the mouse event under my dragged MC to trigger my rollovers? To
temporary solve this (an get a demo working) I've put en onenterframe
inside each of my targets that checkes if the mouse is over them!

There must be a better way to do that!

Thanks a million! :-)

--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality /
Advertencia de confidencialidad 
http://www.rec.ulaval.ca/lce/securite/confidentialite.htm

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



   


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



 


--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality /
Advertencia de confidencialidad 
http://www.rec.ulaval.ca/lce/securite/confidentialite.htm

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

   


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

 




--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, 

[Flashcoders] scrollbar actionscript issue

2005-11-08 Thread Ed Hotchkiss
i have a script which *should* take any clip named 'scrollable', and scroll
it. the scrollbar is named 'scrollbar' the range of motion for the scrollbar
is defined as 'gutter'. the mask is named 'mask'. for some reason, the
script does nothing. no errors, just does not do anything. all instance
names are named etc.

heres the code - lost in the water without a life preserver :/

// - BOF

// mask the scrollable text
scrollable.setMask(_root.mask);

// determine the bounding area for the scrollbar drag
gutterTop = gutter._y - 2;
gutterBottom = gutter._y + gutter._height - scrollbar._height - 2;
gutterLeft = gutter._y;
gutterRight = gutter._y + gutter._width;

// don't use the hand cursor when the mouse is over the scrollbar
scrollbar.useHandCursor = false;

// on entering the frame, see if the scrollbar is 'dragging'
onEnterFrame = function() {
if(dragging = true) {
ypos = ypos + SPEED;
if(ypos  gutterBottom || gutterTop) {
dragging = false;
}
scrollable._y = ypos;
}
else {
// do nothing, not dragging
dragging = true;
}
}

// when the scrollbar is pressed, start dragging
_root.scrollbar.onPress = function() {
_root.scrollbar.StartDrag(false, gutterLeft, guttterTop, gutterRight,
gutterBottom);
dragging = true;
scrollbar.onMouseMove = function() {
updateAfterEvent();
}
}

// when we let go of the scrollbar, throw the bar a little bit, then stop
the movement
scrollbar.onRelease = function() {
this.stopDrag();
}

// - EOF --



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


Re: [Flashcoders] AsUnit 3.0 alpha released!

2005-11-08 Thread Luke Bayes
Hey Eric,

Yep - AsUnit 3.x (all versions) will support only ActionScript 3.0. We do
plan to continue iterating on AsUnit 2.x which will continue to support
ActionScript 2.0. I need to get a build posted for 2.0 next week. I'm
waiting for Ali to get back from vacation as he was working on that build
last.

Please take a look at the AsUnit.as file in the zip bundle to see how a root
test fixture should look now. Essentially, you just extend
asunit.textui.TestRunner from a DocumentRoot ActionScript file and call the
start method with a reference to a TestCase class (not instance).

Thanks for the update on your name - I've been wondering! I'll get the site
updated this week!

;-)


Hi Luke,


 Is there any place that states for the new features ?
 Is it an as3 version only ?

 Please let me know.


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


[Flashcoders] Fwd: [flexcoders] AsUnit 3.0 alpha released!

2005-11-08 Thread Luke Bayes
Hey Robert,

Here's a great article on Test-Driven Development:
http://junit.sourceforge.net/doc/testinfected/testing.htm

Essentially, AsUnit 3.x is built directly from the JUnit source code. It is
a pure ActionScript framework that allows you to construct test fixtures for
your applications. It lets you build each encapsulated element of an
application, test it, gaurantee it's functionality and then through
continuous integration, grow your application over time with confidence. If
at any point, you break some long-forgotten entity, your test fixture will
notify you immediately with exactly what is broken and why it broke. If you
later expose issues (bugs) that went originally untested, you can develop a
new test that exposes the behavior, then fix it and be assured that it won't
be reintroduced.

This is an alternative approach to what's known as Waterfall development,
and without a clean unit test framework, it's very difficult to implement...

Thanks for asking!


Luke Bayes
www.asunit.com http://www.asunit.com


On 11/7/05, Robert Thompson wrote:

 Luke, could you please explain just what AsUnit does that's so special?
  thx

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


[Flashcoders] scrollbar actionscript issue

2005-11-08 Thread Ed Hotchkiss
i have a script which *should* take any clip named 'scrollable', and scroll
it. the scrollbar is named 'scrollbar' the range of motion for the scrollbar
is defined as 'gutter'. the mask is named 'mask'. for some reason, the
script does nothing. no errors, just does not do anything. all instance
names are named etc.

heres the code - lost in the water without a life preserver :/

// - BOF

// mask the scrollable text
scrollable.setMask(_root.mask);

// determine the bounding area for the scrollbar drag
gutterTop = gutter._y - 2;
gutterBottom = gutter._y + gutter._height - scrollbar._height - 2;
gutterLeft = gutter._y;
gutterRight = gutter._y + gutter._width;

// don't use the hand cursor when the mouse is over the scrollbar
scrollbar.useHandCursor = false;

// on entering the frame, see if the scrollbar is 'dragging'
onEnterFrame = function() {
if(dragging = true) {
ypos = ypos + SPEED;
if(ypos  gutterBottom || gutterTop) {
dragging = false;
}
scrollable._y = ypos;
}
else {
// do nothing, not dragging
dragging = true;
}
}

// when the scrollbar is pressed, start dragging
_root.scrollbar.onPress = function() {
_root.scrollbar.StartDrag(false, gutterLeft, guttterTop, gutterRight,
gutterBottom);
dragging = true;
scrollbar.onMouseMove = function() {
updateAfterEvent();
}
}

// when we let go of the scrollbar, throw the bar a little bit, then stop
the movement
scrollbar.onRelease = function() {
this.stopDrag();
}

// - EOF --

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


RE: [Flashcoders] Detecting when a swf loses focus

2005-11-08 Thread Steven Sacks
Use a 3rd party wrapper like mProjector.

http://www.binarynoise.com/

Way better than the buggy, unstable and CPU hogging Screenweaver.

-Steven  

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


Re: [Flashcoders] Detecting when a swf loses focus

2005-11-08 Thread JOR

Steven Sacks wrote:

Use a 3rd party wrapper like mProjector.

http://www.binarynoise.com/

Way better than the buggy, unstable and CPU hogging Screenweaver.

-Steven  


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



That's cool.  I like the rubber ball sample app.

Unfortunately, I need this to run inside of a web browser.


JOR


___
===  James O'Reilly
===
===  SynergyMedia, Inc.
===  www.synergymedia.net

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


RE: [Flashcoders] Detecting when a swf loses focus

2005-11-08 Thread Steven Sacks
You can use the browser (javascript) to determine if it has lost/gained
focus and send a message to Flash when it does.

-Steven
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of JOR
 Sent: Tuesday, November 08, 2005 2:24 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Detecting when a swf loses focus
 
 Steven Sacks wrote:
  Use a 3rd party wrapper like mProjector.
  
  http://www.binarynoise.com/
  
  Way better than the buggy, unstable and CPU hogging Screenweaver.
  
  -Steven  
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 That's cool.  I like the rubber ball sample app.
 
 Unfortunately, I need this to run inside of a web browser.
 
 
 JOR
 
 
 ___
 ===  James O'Reilly
 ===
 ===  SynergyMedia, Inc.
 ===  www.synergymedia.net
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Offline/Online Security in FP8

2005-11-08 Thread Mike West

Hello Flash Gurus...

We've run into what seems to be a pretty big issue with Flash Player  
8.  We have an application (swf) that is loaded from our website and  
plays flv files from the client's CDROM.  This worked fine in version  
7, but is broken in version 8 due to the new security model.  Has  
anyone run into this and if so, have you found out how to modify the  
security settings so that a website hosted swf can read flv's from a  
clients CDROM or hard drive?


Thanks for the help.
-Mike

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


Re: [Flashcoders] Detecting when a swf loses focus

2005-11-08 Thread JOR

Steven Sacks wrote:

You can use the browser (javascript) to determine if it has lost/gained
focus and send a message to Flash when it does.

-Steven
 



I made a simple test to show you what I mean:
http://www.synergymedia.net/downloads/focus.html

It's set up for IE only for now, but once I get it working in the IE 
browser I'll figure out code for others like Firefox.


If you click on the flash app it gains focus properly.
If you click inside the browser it loses focus properly.

But try clicking on the Flash app, then clicking on another open window. 
 The onBlur for the Flash app is never called and it never knows it 
lost focus.


JOR



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


[Flashcoders] XML and CData

2005-11-08 Thread Ron Wagner

Hi all,

Using Flash 8 Pro.

I am a little confused on whether or not Flash can import data in a  
CDATA through XML. I am just getting started with XML in Flash, so  
not sure if it's something I am doing or not, but I can get all my  
data in my XML except what is in a CDATA. When loading the schema in  
the Component Editor for an XMLConnector, the elements with CDATA  
data have type empty. The other elements have their proper types.


I've Googled my butt off today and found some people say that CDATA  
is supported, some say it is not supported, some say it is only  
supported on the way in and not the way out. What I'm trying to do is  
load data into an XMLConnector, then bind to a user interface  
component such as a DataGrid, eventually with a DataSet component in  
between.


Can CData be used through an XMLConnector? Do I have to do things  
manually via a new XML(), etc., or will even that not work?


Thanks,
Ron Wagner
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash interaction with C

2005-11-08 Thread sandeep


Hi all,

I just stumbled upon a site which provides a fairly good information on 
flash interaction with C. Please have a look at these:


- http://www.acmesystems.it/?id=47
- http://www.acmesystems.it/?id=39

Thanks to acmesystems http://www.acmesystems.it for these articles.

Cheers!
Sandeep


sandeep wrote:



Thanks for these Stathis. I should be able to get some help from 
these. Will update the group with any findings on my part on this topic.


Appreciate this help.

Regards,
Sandeep


Kaloudis Stathis wrote:


Hi, I've a few tutorials for embedding a flash movie using vb and
vb.net.
Hope these can help:

http://www.kirupa.com/developer/mx/flashvb.htm

http://pages.cpsc.ucalgary.ca/~saul/vb_examples/tutorial12/

and one for .NET using an external library(swf scout):
http://www.bytescout.com/swfscout_example_vb_net.html


Stathis.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of sandeep
Sent: Wednesday, October 19, 2005 6:14 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash interaction with C


Dear all,

Is there any tutorial or information that I could refer to for 
developing interaction with macromedia Flash and C. I am looking at 
embedded system User Interface development using Flash. Truly appreciate


this help!

Thanks in advance. :)

Cheers!
Sandeep

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

 


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


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


Re: [Flashcoders] XML and CData

2005-11-08 Thread Miles Thompson

At 09:03 PM 11/8/2005, you wrote:

Hi all,

Using Flash 8 Pro.

I am a little confused on whether or not Flash can import data in a
CDATA through XML. I am just getting started with XML in Flash, so
not sure if it's something I am doing or not, but I can get all my
data in my XML except what is in a CDATA. When loading the schema in
the Component Editor for an XMLConnector, the elements with CDATA
data have type empty. The other elements have their proper types.

I've Googled my butt off today and found some people say that CDATA
is supported, some say it is not supported, some say it is only
supported on the way in and not the way out. What I'm trying to do is
load data into an XMLConnector, then bind to a user interface
component such as a DataGrid, eventually with a DataSet component in
between.

Can CData be used through an XMLConnector? Do I have to do things
manually via a new XML(), etc., or will even that not work?

Thanks,
Ron Wagner
[EMAIL PROTECTED]



Ron,

I'm using this in MX 2004 to fetch the news for a given day from a MySQL 
database. feed_xml_story.php uses place CDATA tabs in the ouput stream so 
that the getNodes() function doesn't keep thinking that b or br are new 
XML tags.


function getStories(dtChosen)
{
var xmlReceiver:XML = new XML();
xmlReceiver.ignoreWhite = true;
var varSender:LoadVars = new LoadVars();
varSender.cacheKiller = new Date().getTime();
if( dtChosen ==  )
{
xmlReceiver.load( http://; + host + feed_xml_story.php);
}
else
{

xmlReceiver.load( http://; + host + 
feed_xml_story.php?dtDate=+ dtChosen);

}

//varReceiver.onLoad = function( )
xmlReceiver.onLoad = function( success:Boolean )
{

if (success)
{
// parse the content, getNodes comes from Steve 
Nelson's The Golden Mean.

arrHeads = getNodes( this, head);
arrStorys = getNodes( this, story);
displayContent(arrHeads);


} else
{
// Otherwise tell the user the vars couldn't be loaded.
txtNews.text = Load failed.;
} // end if (succes ..
}


I do not have Pro, but found Steve Nelson's discussion of an RSS Reader at 
his The Golden Mean site v. clear. Here's the URL:

http://www.thegoldenmean.com/technique/rssReader01.html

Well worth a look - Miles Thompson


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


Re: [Flashcoders] Resizing Imported Images

2005-11-08 Thread Fumio Nonaka
Most of MovieClip's properties are initialized when an external file is 
loaded into it.  But some properties including _x, _y, _xscale, and 
_yscale will hold their value.  Of course if you would like to calculate 
its scales based on the external file's actual size, you should do it 
after it is fully loaded.

_
Ian Thomas wrote:

You need to do the resizing after the image has fully loaded. The trouble is
if you just set the _xscale and _yscale (for example) and then call
.loadMovie(), the 'new movie' (the image) replaces all the attributes of the
old movie and you lose your _xscale and _yscale values.


Good luck,

Fumio Nonaka
Phone: +81-42-397-9452
Fax: +81-42-397-9452
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.org/

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


[Flashcoders] AsUnit XULUI alpha released!

2005-11-08 Thread Luke Bayes
As it turns out, I got a spare 1/2 hour this evening which was combined with
a miraculously simple fix for a problem that I thought would take hours...
With that - we're ready to announce the public alpha for the AsUnit XUL UI!

This is a completely tool-agnostic desktop application built on top of the
Mozilla XUL platform. The primary purpose of this tool set is to make it
much easier to automatically create a wide variety of class types,
TestCases, and automatically manage Test Suites for both ActionScript
2.0AND ActionScript
3.0 applications!.

This tool is a much more robust replacement for what used to be our
.mxp-based Flash IDE extension. It works beautifully alongside any and all
ActionScript development tools including, Sepy, X-Code, Textpad, ASDT, FDT,
Flex Builder 2.0 alpha, Flex Builder 1.0/1.5, Flash MX 2004, Flash 8 and
MTASC!

You can download the build here:
http://sourceforge.net/project/showfiles.php?group_id=108947package_id=168969

If you run into any issues or have any questions, please subscribe to our
mailing list at:
http://lists.sourceforge.net/lists/listinfo/asunit-users


Thanks,


Luke Bayes
www.asunit.org http://www.asunit.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AsUnit needs you!

2005-11-08 Thread Luke Bayes
Hey Folks,

I just posted an announcement for the XUL UI and wanted to follow up with
this request...

We have put in countless hours of development designing, building and
supporting AsUnit over the past couple of years. We are looking for a couple
of motivated individuals to help us with the following tasks:

a) Build a Mozilla .XPI (Cross-Platform-Installer) for AsUnit XUL UI and our
source releases.
b) Write up some documentation / quick start guides for AsUnit 3.x and XUL
UI.

Of course the pay is really low, the hours are probably longer than you
think and there aren't any medical or pension benefits... But we will put
your name up in lights (of the lcd variety) and do our best to say nice
things about you as often as possible!

Please let us know if you're interested in helping with either of these
tasks!


Thanks,


Luke Bayes
www.asunit.org http://www.asunit.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ROTATION - ROTATION

2005-11-08 Thread Manuel Gonzalez
Hi,
I'm trying to rotate a movieclip from its center point. The problem is I have 
loaded an image into the movieclip and it x and y is 0,0.
I know that you can not dynamically set the x,y of a movieclip. I would prefer 
to handle all the actions via actionscript, versus making a clip on stage 
centering its x,y and adding an empty Movieclip to load into. Has anyone 
accomplished this via actiionscript.
Leads?, solutions or ideas.
Thanks!

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


Re: [Flashcoders] ROTATION - ROTATION

2005-11-08 Thread JesterXL
- load the image into a child clip
- when done, move the child clip:

child_mc._x =  - (child_mc._width / 2);
child._mc._y = - (child_mc._height / 2);

- Original Message - 
From: Manuel Gonzalez [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 08, 2005 9:53 PM
Subject: [Flashcoders] ROTATION - ROTATION


Hi,
I'm trying to rotate a movieclip from its center point. The problem is I 
have loaded an image into the movieclip and it x and y is 0,0.
I know that you can not dynamically set the x,y of a movieclip. I would 
prefer to handle all the actions via actionscript, versus making a clip on 
stage centering its x,y and adding an empty Movieclip to load into. Has 
anyone accomplished this via actiionscript.
Leads?, solutions or ideas.
Thanks!

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

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


Re: [Flashcoders] scrollbar actionscript issue

2005-11-08 Thread Muzak
_root.scrollbar.StartDrag()

StartDrag -- startDrag

Muzak
ps: get rid of _root ;-)

- Original Message - 
From: Ed Hotchkiss [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 08, 2005 10:32 PM
Subject: [Flashcoders] scrollbar actionscript issue


i have a script which *should* take any clip named 'scrollable', and scroll
it. the scrollbar is named 'scrollbar' the range of motion for the scrollbar
is defined as 'gutter'. the mask is named 'mask'. for some reason, the
script does nothing. no errors, just does not do anything. all instance
names are named etc.



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


Re: [Flashcoders] Detecting when a swf loses focus

2005-11-08 Thread Muzak
Mmmm, mind explaining the buggy, unstable and CPU hogging?

If you have any problems with screenweaver you can always join the mailing list 
or visit the forum:
http://osflash.org/mailman/listinfo/screenweaver_osflash.org
http://www.screenweaver.org/forums/index.php

regards,
Muzak

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 08, 2005 11:00 PM
Subject: RE: [Flashcoders] Detecting when a swf loses focus


 Use a 3rd party wrapper like mProjector.

 http://www.binarynoise.com/

 Way better than the buggy, unstable and CPU hogging Screenweaver.

 -Steven


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


Re: [Flashcoders] XML and CData

2005-11-08 Thread Muzak
CDATA should be no problem, even for the schema.
It should be listed as String. Make sure your xml is valid.

The following simple xml:

?xml version=1.0 ?
content
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
/content

Looks like this when loaded as schema:

- results : XML
- content : Object
- node : Array
- [n] : String

regards,
Muzak

- Original Message - 
From: Ron Wagner [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 09, 2005 2:03 AM
Subject: [Flashcoders] XML and CData


 Hi all,

 Using Flash 8 Pro.

 I am a little confused on whether or not Flash can import data in a  CDATA 
 through XML. I am just getting started with XML in 
 Flash, so  not sure if it's something I am doing or not, but I can get all my 
  data in my XML except what is in a CDATA. When 
 loading the schema in  the Component Editor for an XMLConnector, the elements 
 with CDATA  data have type empty. The other 
 elements have their proper types.

 I've Googled my butt off today and found some people say that CDATA  is 
 supported, some say it is not supported, some say it is 
 only  supported on the way in and not the way out. What I'm trying to do is  
 load data into an XMLConnector, then bind to a user 
 interface  component such as a DataGrid, eventually with a DataSet component 
 in  between.

 Can CData be used through an XMLConnector? Do I have to do things  manually 
 via a new XML(), etc., or will even that not work?

 Thanks,
 Ron Wagner


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


RE: [Flashcoders] swf to svg

2005-11-08 Thread rishi
Hi Ricky

Thanks for the reply but this link no longer works

Regards
Rishi

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ricky
Bacon
Sent: Tuesday, November 08, 2005 9:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] swf to svg

rishi wrote:
 Can some one suggest a way to convert swf to svg. I have multiple
paths
 in my swf for which I want an automated tool to provide me the svg.

There is an online tool that does it:

http://www.eprg.org/~sgp/swf2svg.html

and tool in Japanese:

http://www.game3rd.com/soft/action/

If you need to convert dynamically created images in a swf, you can feed

data to a server and format it as an SVG.

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


Re: [Flashcoders] XML and CData

2005-11-08 Thread Ron Wagner

Hi Muzak,

Very interesting... I plugged in your sample xml and it worked. After  
looking for significant differences between yours and mine, I found that


?xml version=1.0 ?
content
node ![CDATA[Some cdata text.]]/node
node ![CDATA[Some cdata text.]]/node
node ![CDATA[Some cdata text.]]/node
node ![CDATA[Some cdata text.]]/node
/content

works, but

?xml version=1.0 ?
content
node![CDATA[Some cdata text.]]/node
node![CDATA[Some cdata text.]]/node
node![CDATA[Some cdata text.]]/node
node![CDATA[Some cdata text.]]/node
/content

does not. Only difference being the space between node and ! 
[CDATA. I can't find any requirement for there being a space before a  
CDATA, so unless someone else knows that the space is required it  
looks like a bug in Flash.


Thanks,
Ron


On Nov 8, 2005, at 11:07 PM, Muzak wrote:


CDATA should be no problem, even for the schema.
It should be listed as String. Make sure your xml is valid.

The following simple xml:

?xml version=1.0 ?
content
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
/content

Looks like this when loaded as schema:

- results : XML
- content : Object
- node : Array
- [n] : String

regards,
Muzak

- Original Message -
From: Ron Wagner [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 09, 2005 2:03 AM
Subject: [Flashcoders] XML and CData



Hi all,

Using Flash 8 Pro.

I am a little confused on whether or not Flash can import data in  
a  CDATA through XML. I am just getting started with XML in
Flash, so  not sure if it's something I am doing or not, but I can  
get all my  data in my XML except what is in a CDATA. When
loading the schema in  the Component Editor for an XMLConnector,  
the elements with CDATA  data have type empty. The other

elements have their proper types.

I've Googled my butt off today and found some people say that  
CDATA  is supported, some say it is not supported, some say it is
only  supported on the way in and not the way out. What I'm trying  
to do is  load data into an XMLConnector, then bind to a user
interface  component such as a DataGrid, eventually with a DataSet  
component in  between.


Can CData be used through an XMLConnector? Do I have to do things   
manually via a new XML(), etc., or will even that not work?


Thanks,
Ron Wagner



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



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


Re: [Flashcoders] XML and CData

2005-11-08 Thread Ron Wagner
I should add that with the space betwen the node and ![CDATA it  
works in the schema editor, but still does not work when viewing  
data. Used the same exact data to edit the schema as is being used  
when testing live. Going to try the method that Miles Thompson  
recommended in the morning.


Ron


On Nov 9, 2005, at 12:44 AM, Ron Wagner wrote:


Hi Muzak,

Very interesting... I plugged in your sample xml and it worked.  
After looking for significant differences between yours and mine, I  
found that


?xml version=1.0 ?
content
node ![CDATA[Some cdata text.]]/node
node ![CDATA[Some cdata text.]]/node
node ![CDATA[Some cdata text.]]/node
node ![CDATA[Some cdata text.]]/node
/content

works, but

?xml version=1.0 ?
content
node![CDATA[Some cdata text.]]/node
node![CDATA[Some cdata text.]]/node
node![CDATA[Some cdata text.]]/node
node![CDATA[Some cdata text.]]/node
/content

does not. Only difference being the space between node and ! 
[CDATA. I can't find any requirement for there being a space before  
a CDATA, so unless someone else knows that the space is required it  
looks like a bug in Flash.


Thanks,
Ron


On Nov 8, 2005, at 11:07 PM, Muzak wrote:


CDATA should be no problem, even for the schema.
It should be listed as String. Make sure your xml is valid.

The following simple xml:

?xml version=1.0 ?
content
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
 node
  ![CDATA[Some cdata text.]]
 /node
/content

Looks like this when loaded as schema:

- results : XML
- content : Object
- node : Array
- [n] : String

regards,
Muzak

- Original Message -
From: Ron Wagner [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, November 09, 2005 2:03 AM
Subject: [Flashcoders] XML and CData



Hi all,

Using Flash 8 Pro.

I am a little confused on whether or not Flash can import data in  
a  CDATA through XML. I am just getting started with XML in
Flash, so  not sure if it's something I am doing or not, but I  
can get all my  data in my XML except what is in a CDATA. When
loading the schema in  the Component Editor for an XMLConnector,  
the elements with CDATA  data have type empty. The other

elements have their proper types.

I've Googled my butt off today and found some people say that  
CDATA  is supported, some say it is not supported, some say it is
only  supported on the way in and not the way out. What I'm  
trying to do is  load data into an XMLConnector, then bind to a user
interface  component such as a DataGrid, eventually with a  
DataSet component in  between.


Can CData be used through an XMLConnector? Do I have to do  
things  manually via a new XML(), etc., or will even that not work?


Thanks,
Ron Wagner



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



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



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


RE: [Flashcoders] XML and CData

2005-11-08 Thread Phil Douglas
Maybe something to do with the ignoreWhite parameter?

Phil Douglas
Flash Developer
direct:  +61 2 9024 2655
mobile:  0423 691 722
email:   [EMAIL PROTECTED]  

phone:   +61 2 9211 4344
fax: +61 2 9211 6566
web: massmedia.com.au   Massmedia
Studios

The information transmitted may be confidential, is intended only for
the 
person to which it is addressed, and may not be reviewed, retransmitted,

disseminated or relied upon by any other persons. If you received this 
message in error, please contact the sender and destroy any paper or 
electronic copies of this message. Any views expressed in this  
communication are those of the individual sender, except where the
sender 
specifically states otherwise. MassMedia Studios does not represent, 
warrant or guarantee that the communication is free of errors, virus 
or interference.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ron
Wagner
Sent: Wednesday, 9 November 2005 5:11 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML and CData

I should add that with the space betwen the node and ![CDATA it  
works in the schema editor, but still does not work when viewing  
data. Used the same exact data to edit the schema as is being used  
when testing live. Going to try the method that Miles Thompson  
recommended in the morning.

Ron


On Nov 9, 2005, at 12:44 AM, Ron Wagner wrote:

 Hi Muzak,

 Very interesting... I plugged in your sample xml and it worked.  
 After looking for significant differences between yours and mine, I  
 found that

 ?xml version=1.0 ?
 content
 node ![CDATA[Some cdata text.]]/node
 node ![CDATA[Some cdata text.]]/node
 node ![CDATA[Some cdata text.]]/node
 node ![CDATA[Some cdata text.]]/node
 /content

 works, but

 ?xml version=1.0 ?
 content
 node![CDATA[Some cdata text.]]/node
 node![CDATA[Some cdata text.]]/node
 node![CDATA[Some cdata text.]]/node
 node![CDATA[Some cdata text.]]/node
 /content

 does not. Only difference being the space between node and ! 
 [CDATA. I can't find any requirement for there being a space before  
 a CDATA, so unless someone else knows that the space is required it  
 looks like a bug in Flash.

 Thanks,
 Ron


 On Nov 8, 2005, at 11:07 PM, Muzak wrote:

 CDATA should be no problem, even for the schema.
 It should be listed as String. Make sure your xml is valid.

 The following simple xml:

 ?xml version=1.0 ?
 content
  node
   ![CDATA[Some cdata text.]]
  /node
  node
   ![CDATA[Some cdata text.]]
  /node
  node
   ![CDATA[Some cdata text.]]
  /node
  node
   ![CDATA[Some cdata text.]]
  /node
 /content

 Looks like this when loaded as schema:

 - results : XML
 - content : Object
 - node : Array
 - [n] : String

 regards,
 Muzak

 - Original Message -
 From: Ron Wagner [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, November 09, 2005 2:03 AM
 Subject: [Flashcoders] XML and CData


 Hi all,

 Using Flash 8 Pro.

 I am a little confused on whether or not Flash can import data in  
 a  CDATA through XML. I am just getting started with XML in
 Flash, so  not sure if it's something I am doing or not, but I  
 can get all my  data in my XML except what is in a CDATA. When
 loading the schema in  the Component Editor for an XMLConnector,  
 the elements with CDATA  data have type empty. The other
 elements have their proper types.

 I've Googled my butt off today and found some people say that  
 CDATA  is supported, some say it is not supported, some say it is
 only  supported on the way in and not the way out. What I'm  
 trying to do is  load data into an XMLConnector, then bind to a user
 interface  component such as a DataGrid, eventually with a  
 DataSet component in  between.

 Can CData be used through an XMLConnector? Do I have to do  
 things  manually via a new XML(), etc., or will even that not work?

 Thanks,
 Ron Wagner


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


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


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

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


Re: [Flashcoders] sound fadeOut

2005-11-08 Thread brian groth
I made this object to take care of this autofade. You init it with the sound
mc and update interval i ms.
You can then call it with (target volume, length of fade time and delay)
 Hope you find it usefull:
 class SoundAuto extends Sound{

private var intervalId:Number
private var targetFadeVal:Number
private var startFadeVal:Number
private var fadeStep:Number
private var updateFreq:Number
public var onFadeChange:Function

function SoundAuto(pMc:MovieClip, pUpdateFreq:Number){
super(pMc)
updateFreq = pUpdateFreq

trace(Soundauto constructor)
}

public function fadeTo(pTargetVol:Number, pTime:Number, pDelay:Number):Void{
//clear interval
if (intervalId) {
clearInterval(intervalId)
}

//if delay comeback later
if(pDelay){
intervalId = setInterval(this, fadeTo, pDelay, pTargetVol, pTime)
return
}

var curVol = this.getVolume()
startFadeVal = curVol
targetFadeVal = pTargetVol
//vol step per ms
fadeStep = (targetFadeVal - curVol)/pTime

intervalId = setInterval(this, autoFade, updateFreq)

var newVol = Math.round(curVol + (fadeStep * (pTime/updateFreq)))
this.setVolume(newVol)

}

private function autoFade(Void):Void{
var curVol = this.getVolume()
var newVol = Math.round(curVol + (fadeStep * updateFreq))
this.setVolume(newVol)
if (startFadeVal  targetFadeVal){
if (newVol = targetFadeVal){
fadeComplete()
return
}
} else {
if (newVol = targetFadeVal){
fadeComplete()
return
}
}
//call onFade function
onFade()
}

private function fadeComplete(Void):Void{
this.setVolume(targetFadeVal)
onFadeChange(this.getVolume()); // execute callback for each change in fade
value, pass newVal to assigned function
clearInterval(intervalId)
intervalId = null
}

private function onFade(Void):Void{
onFadeChange(this.getVolume()); // execute callback for each change in fade
value, pass newVal to assigned function
}
}

Brian
  On 11/7/05, eric dolecki [EMAIL PROTECTED] wrote:

 Basically yes :)

 Flash has no notion of decibels - there are probably formulas out there to
 try and approximate that logarithmic curve and apply it to your audio to
 get
 a more natural response. Its a interesting topic at least ;)

 e.dolecki

 On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  ok. are you talking about decibels being logarithmic and not linear? ie.
  decibel * 2 doesn't mean heard volume * 2.
 
  anyway this is getting off topic but i'm sure you're right about this
  whole thing anyway :)..
 
 
  eric dolecki wrote:
   I guess I'm saying that any audio fading up or down should probably
 not
  be
   done linearly ever - while mathematically accurate, to the human ear
 it
   doesn't sound right. You'll notice no change and then zm... a
 really
   quick fade down... when what you wanted was something even if you
 know
   what I mean.
  
   e.dolecki
  
   On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   so then the code here would work since it's not linear.
  
   but i'm not sure what you mean by linear adjustments prove to sound
   highly inaccurate? in this case i don't think it matters anyway
 since
   it's just a small change of volume and he's probably not coding some
   online dj mixing software. or maybe he is.. :)
  
   andreas
  
  
   Eric E. Dolecki wrote:
   I've found that linear adjustments prove to sound highly inaccurate
 -
  or
   strange. You'll notice no difference, and then the change will be
  quite
   abrupt. So be careful with these kinds of things - linear is
 probably
   not the best way to go.
  
   e.dolecki
  
  
   On Nov 7, 2005, at 5:21 AM, [EMAIL PROTECTED] wrote:
  
   If you want to keep things simple, and the volume fade doesn't need
  to
   be linear, couldn't you just run a soundUpdate function and keep
  track
   of the volume in a variable. something like this:
  
  
   var volume = 0;
   var destVolume = 100;
  
   setInterval(soundUpdate, 100);
  
   function soundUpdate() {
   volume += (destVolume - volume) / 20;
   track.setVolume(volume);
   }
  
   then when you need the volume to change you could just do:
  
   on (rollOver) {
   destVolume = 0;
   }
  
   then maybe add another interval that sets destVolume back to 100.
 you
   could probably replace the volume += (destVolume .. with
 something
   better but at least it should work. :)
  
   Andreas
  
   MetaArt wrote:
   In my movie, I have a jingle, that is loaded by this code:
  
  
 
 code:---
   ---track = new Sound();
   track.loadSound(everybody.mp3, true);
   track.setVolume(0);
   vol = 0;
   fade = setInterval(fadeIn, 100);
   function fadeIn() {
   vol += 1;
   track.setVolume(vol);
   if (vol=90) {
   clearInterval(fade);
   }
  
  
 
 };--
   
   during playback of this jingle, is possible that happens an event
 (a
   rollOver action) by the user that start the playback of an other
   audio file,
   this time a talkin' human voice.
   The problem is that the jingle