[Flashcoders] Re: AS3 agnostic custom trace

2007-08-06 Thread Zárate
Hi there,

Sorry to bring this up again, I don't even know if this arrived with
the list breakdown.

Thanks!

On 8/2/07, Zárate [EMAIL PROTECTED] wrote:
 Hi list,

 I'm trying to find out a way to have custom traces in AS3. With the
 agnostic bit I mean I want to keep using trace in my code, but I
 want the compiler to pre-process it and change trace with something
 else. Exactly as -trace works in MTASC.

 I want to keep it agnostic because in the team different people use
 different tracing systems. Therefore a compiler flag comes really
 handy.

 Is this possible? What I've found is people hardcoding their custom
 trace systems.

 Cheers,

 Juan

 --
 Juan Delgado - Zárate
 http://zarate.tv
 http://dandolachapa.com
 http://loqueyosede.com



-- 
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.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] Timeline instance problem

2007-08-06 Thread Johan Nyberg
I have somewhat of a headache when it comes to instances of MovieClips 
that haven't appeared on the timeline, and hence have not been 
instanciated yet...


I try to keep as much code as possible on one frame on the _root 
timeline, or preferably, in an external class file for a movie clip that 
contains all content (that I usually call main_mc and that resides on 
the _root level of the movie).


My problem comes down to that much of the code is dealing with defining 
code for different events for movie clips in my movie. But a lot of 
these movie clips have not yet appeared on the timeline when the movie 
start, and when the constructor for main_mc is run.


Please don't tell me to create the movie clips programatically. This is 
not possible, since my movies are heavy with graphics and animation, and 
I have to be able to place things on the stage.


I have solved this problem with some hacks: like putting one instance on 
the stage, but outside the visible area. Or turning the visibility off 
with code, and then on when it should be visible. But all this is 
cumbersome and makes me think it is easier to put some code inside movie 
clips, than going to lengths trying to make this work.


I am grateful for any help I can get regarding this!


Regards,

/Johan Nyberg



--
Johan Nyberg

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


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

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


Re: [Flashcoders] Timeline instance problem

2007-08-06 Thread Hans Wichman
Hi,

are you using as 1 or as 2?

greetz
JC


On 8/6/07, Johan Nyberg [EMAIL PROTECTED] wrote:

 I have somewhat of a headache when it comes to instances of MovieClips
 that haven't appeared on the timeline, and hence have not been
 instanciated yet...

 I try to keep as much code as possible on one frame on the _root
 timeline, or preferably, in an external class file for a movie clip that
 contains all content (that I usually call main_mc and that resides on
 the _root level of the movie).

 My problem comes down to that much of the code is dealing with defining
 code for different events for movie clips in my movie. But a lot of
 these movie clips have not yet appeared on the timeline when the movie
 start, and when the constructor for main_mc is run.

 Please don't tell me to create the movie clips programatically. This is
 not possible, since my movies are heavy with graphics and animation, and
 I have to be able to place things on the stage.

 I have solved this problem with some hacks: like putting one instance on
 the stage, but outside the visible area. Or turning the visibility off
 with code, and then on when it should be visible. But all this is
 cumbersome and makes me think it is easier to put some code inside movie
 clips, than going to lengths trying to make this work.

 I am grateful for any help I can get regarding this!


 Regards,

 /Johan Nyberg



 --
 Johan Nyberg

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

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

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

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

2007-08-06 Thread Muzak


 My problem comes down to that much of the code is dealing with defining code 
 for different events for movie clips in my movie. But 
 a lot of these movie clips have not yet appeared on the timeline when the 
 movie start, and when the constructor for main_mc is 
 run.


Don't use the constructor to get things done. Use the MovieClip.onLoad method.


class Application extends MovieClip {

function Application(){
// don't do anything here
// except for setting certain MovieClip properties, like:
tabEnabled = false;
tabChildren = true;
_focusrect = false;
}

function onLoad():Void {
// child assets on stage will be ready
}

}

regards,
Muzak


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

2007-08-06 Thread Omar Fouad
Folks i was just wondering how to create a circular preloader with
actionscript. I thought about drawing many wedges increasing each time the
angle accodring the percentage loaded, but how can i include an easing
effect to this rotating motion?

Regards

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Casting to Array

2007-08-06 Thread Hans Wichman
btw one more compilaltion error circumventing hack that seems to work:

[yourObj][0]

;-S

greetz
JC


On 7/24/07, Danny Kodicek [EMAIL PROTECTED] wrote:


   That's a fair point. It's more the principle of the thing - it was
   frustrating not to be *able* to make it strict. But yes, leaving off
   the :Object would be a better solution.
 
  Well, you can't do argument overloading in AS2 (nor AS3, I believe), so
  you can't have pure polymorphism in Flash the way you can in other
  languages like Java.  Such is life.
 
  Alternatively, you could write your own class for the argument that
 could
  be an array or an object and then cast it strictly as that class.

 Well, it would work just as well to have

 Class StrictArray extends Array {
 }

 Ought to work perfectly (although I'd be interested to see whether bracket
 access still works). But yes, why bother? :)

 Danny

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

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

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

2007-08-06 Thread Ivan Dembicki
Hello Omar,

try this:
http://proto.layer51.com/d.aspx?f=388


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

2007-08-06 Thread Omar Fouad
Testing...

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Flash/Flex database editor component

2007-08-06 Thread Alex McCabe
Can anyone recommend a good Flash database viewer/editor component?
Ideally I'd like to give access to a client to edit a largish mysql database
from his browser. Database might be about 100 pieces of data, with 2000
rows. He wants the ability to move throught the data quickly, updating it as
he goes - similar as to how you might update data in Excel.
I really like this one -
http://www.jorin.com/shed/flash-excel-editor/index.php
but there's no information on availability / licensing yet.

Anybody know anything similar?

Thanks,

-- 
Alexander McCabe,
Question Writer Development and Support
http://www.questionwriterblog.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] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Woah!!! too complicated...

On 8/6/07, Ivan Dembicki [EMAIL PROTECTED] wrote:

 Hello Omar,

 try this:
 http://proto.layer51.com/d.aspx?f=388


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

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




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Omar Fouad
that example is not working.,.

On 8/6/07, Omar Fouad [EMAIL PROTECTED] wrote:

 Woah!!! too complicated...

 On 8/6/07, Ivan Dembicki [EMAIL PROTECTED] wrote:
 
  Hello Omar,
 
  try this:
  http://proto.layer51.com/d.aspx?f=388
 
 
  --
  iv
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Ivan Dembicki
Hello Omar,

possible... it's very old example.
try at this:

function drawSegment(target, rx, ry, x, y, sgm, s1, s2) {
var rad = Math.PI/180;
if (!s1 and !s2 or s1 == s2) {
var grad = 360;
var segm = grad/sgm;
var x1 = rx+x;
var y1 = y;
target.moveTo(x1, y1);
} else {
s1s2 ? s1 -= 360 : ;
var x1 = rx*Math.cos(s1*rad)+x;
var y1 = ry*Math.sin(s1*rad)+y;
var grad = s2-s1;
var segm = grad/sgm;
target.moveTo(x, y);
target.lineTo(x1, y1);
}
for (var s = segm+s1; s(grad+.1+s1); s += segm) {
var x2 = rx*Math.cos((s-segm/2)*rad)+x;
var y2 = ry*Math.sin((s-segm/2)*rad)+y;
var x3 = rx*Math.cos(s*rad)+x;
var y3 = ry*Math.sin(s*rad)+y;
// begin tnx 2 Robert Penner
var cx = 2*x2-.5*(x1+x3);
var cy = 2*y2-.5*(y1+y3);
target.curveTo(cx, cy, x3, y3);
// end tnx 2 Robert Penner :)
x1 = x3;
y1 = y3;
}
if (grad != 360) {
target.lineTo(x, y);
}
};


_root.onEnterFrame = function() {
_root.clear();
_root.lineStyle(0);
_root.beginFill(0xFF);
a= a||0
b=b||0
a=360 ? a -= 360 : a += 2;
b=360 ? b -= 360 : b += 3;
drawSegment(_root, 150, 100, 200, 250, 8, a, b);
_root.endFill();
_root.lineStyle(0);
_root.beginFill(0xFF00FF);
drawSegment(_root, 150, 100, 200, 200, 8, a, b);
_root.endFill();
};



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

2007-08-06 Thread Andreas R
Out of curiosity, what are the right ways to calculate oscillations 
like triangle, sawtooth and pulse? Ideally oscillation would work in 
parallel with sine, so when sin=1, triangle=1, taking radians as the 
frequency parameter.


Any takers?

- Andreas R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Prevent flash from caching the loaded assets

2007-08-06 Thread Niels Endlich
We are making a game in which people have to quess what's on a photo
while viewing it through a little moveable hole. The images will be
loaded from the server. The problem is caching. To cheat is easy...
watch the cached files. Is there a way to prevent flash from caching the
loaded assets or does anyone has an other solution?

 

Thanks,

 

Niels

 

 

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Fwd: Flash/Flex database editor component

2007-08-06 Thread Alex McCabe
Can anyone recommend a good Flash database viewer/editor component?
Ideally I'd like to give access to a client to edit a largish mysql database
from his browser. Database might be about 100 pieces of data, with 2000
rows. He wants the ability to move throught the data quickly, updating it as
he goes - similar as to how you might update data in Excel.
I really like this one -
http://www.jorin.com/shed/flash-excel-editor/index.php
but there's no information on availability / licensing yet.

Anybody know anything similar?

Thanks,

-- 
Alexander McCabe,
Question Writer Development and Support
http://www.questionwriterblog.com


-- 
Alexander McCabe,
Question Writer Development and Support
http://www.questionwriterblog.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] Coding a circular preloader

2007-08-06 Thread Omar Fouad
ok i got something better and faster.

I downloaded some methods from
http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html.
in this library there is an .as file wich lets u draw wedges easily (
drawWedges.as) but infortunately it doesnt support easing yet..

I am trying to add an easeOut effect to it, and i tried this way

#include drawWedge.as
d_mc = _root.createEmptyMovieClip(drawing_layer,1);

angle=0
function wedge() {
this.onEnterFrame = function () {

newAngle = angle++

d_mc.clear();
d_mc.beginFill(0xFF0067, 100);
d_mc.drawWedge(200, 200, 90, newAngle, 100);
d_mc.endFill();

if(newAngle =100) {
delete this.onEnterFrame;
}
}
};

wedge();

this way the wedge grows until the angle reaches 100. how can I add a
simple  easing equation to this?

I always used  mcTween and  for some loadbar preloader i  used to ease the
loadbar by adding

loadBar._xscale +=percent - loadBar._xscale/3; /// this way the loadBar
tweens with an easeOut Effect..
I tried to apply the same principle to the wedge but without results..

Any ideas?


-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

2007-08-06 Thread Andy Herrman
I think the caching is controlled by the browser, not Flash itself, so
I don't believe there's a way within flash to prevent caching.

Maybe you could do some trickery with the images that makes it harder
for the person looking at the cached stuff to see it.  Like, split up
the main image into multiple ones and maybe apply some transformations
to the images, and then have the flash movie undo the transformations
and compose the images back into the main one?

  -Andy

On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote:
 We are making a game in which people have to quess what's on a photo
 while viewing it through a little moveable hole. The images will be
 loaded from the server. The problem is caching. To cheat is easy...
 watch the cached files. Is there a way to prevent flash from caching the
 loaded assets or does anyone has an other solution?



 Thanks,



 Niels







 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Fwd: Flash/Flex database editor component

2007-08-06 Thread R�kos Attila

http://osflash.org/flashmyadmin

 But giving direct access to the database seems to me a little bit
 dangerous (eg. what if the client screws up the database, deletes or
 changes some essential things?)

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Alex McCabe [EMAIL PROTECTED]
To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:Monday, August 6, 2007, 4:48:16 PM
Subject: [Flashcoders] Fwd: Flash/Flex database editor component
--===--
Can anyone recommend a good Flash database viewer/editor component?
Ideally I'd like to give access to a client to edit a largish mysql database
from his browser. Database might be about 100 pieces of data, with 2000
rows. He wants the ability to move throught the data quickly, updating it as
he goes - similar as to how you might update data in Excel.
I really like this one -
http://www.jorin.com/shed/flash-excel-editor/index.php
but there's no information on availability / licensing yet.

Anybody know anything similar?

Thanks,

-- 
Alexander McCabe,
Question Writer Development and Support
http://www.questionwriterblog.com


-- 
Alexander McCabe,
Question Writer Development and Support
http://www.questionwriterblog.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] Reusable Playback System in flash

2007-08-06 Thread Prince Xian
Hi,

I have one project that involves creating a reusable playback system - xml, 
video, slides, cuepoints, next/back, etc.

If anybody knows any open source files that I can edit or worked on simillar 
projects, please help me.

Any help greatly appreciated!

With high regards,

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

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


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

2007-08-06 Thread Ian Thomas
If you're using AS3, then load the image via flash.net.Socket (a
direct socket connection to the server) rather than via the normal
image loading mechanism - then use loadBytes() on the Loader class?

I think that gets around it.

Ian

On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote:
 We are making a game in which people have to quess what's on a photo
 while viewing it through a little moveable hole. The images will be
 loaded from the server. The problem is caching. To cheat is easy...
 watch the cached files. Is there a way to prevent flash from caching the
 loaded assets or does anyone has an other solution?



 Thanks,



 Niels







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

2007-08-06 Thread jean philippe
test
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] stage.stageWidth annoyance

2007-08-06 Thread mario gonzalez
When I compile the SWF (flash 9 / as3.0) I have a function which uses 
stage.stageWidth to create a grid.


For the children of any object, I of course use Event.ADDED_TO_STAGE to 
avoid getting a null reference to stage. However this is for my document 
class.
The hacky work around that I have is to put the function on a timeout. I 
feel like this shouldn't have to be done, and there must be some way of 
getting the right dimensions of the stage from flash on creation.


Does this happen to other people?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Fwd: Flash/Flex database editor component

2007-08-06 Thread Alex McCabe
Thanks, but I think that interface would rather confuse my client. Looks
like a good replacement for phpMySQLAdmin though.

I'd like to offer the facility to edit the data rather than admin the
database - one slight error there and he could screw up the database as you
say. Less is definitely more.

Alex.


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


 http://osflash.org/flashmyadmin

 But giving direct access to the database seems to me a little bit
 dangerous (eg. what if the client screws up the database, deletes or
 changes some essential things?)

 Attila


 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 From:Alex McCabe [EMAIL PROTECTED]
 To:  Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Date:Monday, August 6, 2007, 4:48:16 PM
 Subject: [Flashcoders] Fwd: Flash/Flex database editor component

 --===--
 Can anyone recommend a good Flash database viewer/editor component?
 Ideally I'd like to give access to a client to edit a largish mysql
 database
 from his browser. Database might be about 100 pieces of data, with 2000
 rows. He wants the ability to move throught the data quickly, updating it
 as
 he goes - similar as to how you might update data in Excel.
 I really like this one -
 http://www.jorin.com/shed/flash-excel-editor/index.php
 but there's no information on availability / licensing yet.

 Anybody know anything similar?

 Thanks,

 --
 Alexander McCabe,
 Question Writer Development and Support
 http://www.questionwriterblog.com


 --
 Alexander McCabe,
 Question Writer Development and Support
 http://www.questionwriterblog.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




-- 
Alexander McCabe,
Question Writer Development and Support
http://www.questionwriterblog.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] Accordion-Labels problem...

2007-08-06 Thread Cristo @ Cryzto.ch
Hi Folks!

I've made a little example where I've got two Accordion- and 3
Button-Instances.

First I load two XMLs, one for each Accordion [navi_acc and model_acc].

When I push the 1.Button [models_btn], the 1. Accordion shows up [navi_acc].

Then when I push on one navi_acc-Element, the 2. Accordion shows up
[model_acc].

Now I've got two language-Buttons [German  English]. When I push on one of
these Buttons, each Accordion-Element is updated to the selected Lang.

The problem is: it works, the model_btn.label, all Button-Labels inside the
Accordions.but..

The labels of the Accordion-headers don't change.visually.but if I make a
trace of the labels'n names, they are!

You can see my example @  http://www.cryzto.ch/index2.html
www.cryzto.ch/index2.html !


Can someone helpme?

cryzto


  _  

Ich verwende die kostenlose Version von SPAMfighter,
die bei mir bis jetzt 1614 Spammails entfernt hat.
Fur private Anwender ist SPAMfighter vollig kostenlos!
Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Palmer, Jim

Just another bit of actionscript butchery here for a circular preloader that I 
use all over the place in my apps and pages...

http://www.overset.com/2006/09/27/flash-wait-animation-ie-browser-throbber/

--
Jim Palmer ! Mammoth Web Operations

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Omar
 Fouad
 Sent: Monday, August 06, 2007 2:24 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Coding a circular preloader
 
 
 Folks i was just wondering how to create a circular preloader with
 actionscript. I thought about drawing many wedges increasing 
 each time the
 angle accodring the percentage loaded, but how can i include an easing
 effect to this rotating motion?
 
 Regards
 
 -- 
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net
 
 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should 
 not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Fullscreen option for streaming flash video

2007-08-06 Thread Magro, Shay (Citco)
I have been trying to add the fullscreen option to a video player I
created which plays streaming flash video.

Right now, from a php page, I am calling the appropriate video based on
the variable passed in the code embedding the flash movie in the html. 

However, in trying to use the new skin in Flash 9 that has the
fullscreen toggle, I cannot seem to pass a variable to the flash swf
calling the video to stream from the html code.

I tried passing the variable streamName via FlashVars, however, the
swf is not identifying the variable, so the video will not play...

 

Here is the code I have in the swf right now:

 

import fl.video.*;

VideoPlayer.iNCManagerClass = fl.video.NCManagerNative;

videoName.text = streamName; //streamName is the variable passed from
the php page

 

//attachMovie(FLVPlayback, flvPlayer, 10, {width:320, 

//height:240, x:0, y:0});

var flvPlayer:FLVPlayback = new FLVPlayback();

addChild(flvPlayer);

//copy the skin file to the local directory for this to work

flvPlayer.skin = ./SkinOverAllNoCaption.swf

flvPlayer.source =
rtmp://4255bksl45g.rtmphost.com/vids/+videoName.text+.flv;

 

What code can I use on the html or php page that will pass a variable to
the swf to play the correct video? 

This code works fine if I hard code the video stream name for
flvPlayer.source, however, I need to dynamically populate that value.

 

Thanks for your help...

 

 

Shay Magro
Senior Web Designer
User Experience Strategy, Design, and Development




 



Disclaimer link.  To see it, click the link below, or copy and
paste it into your browser's address line.
http://www.citco.com/emaildisclaimer.htm
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Eric Walton
you could try this.

http://www.flashkit.com/movies/Animations/Vector_Animations/People/Dancing_-DrF-11618/index.php



On 8/6/07, Omar Fouad [EMAIL PROTECTED] wrote:

 Folks i was just wondering how to create a circular preloader with
 actionscript. I thought about drawing many wedges increasing each time the
 angle accodring the percentage loaded, but how can i include an easing
 effect to this rotating motion?

 Regards

 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




-- 
Eric Walton 9 / Edub9

To view more about
The Artwork of Eric Walton 9 / Edub9
please visit the following:
www.hollywoodfineart.com
www.myspace.com/ericwalton9_edub9
Providentia Marketing LLC
754-246-7620 Cel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

2007-08-06 Thread Jack Doyle
If you're able to store the images in SWF format instead of something like
JPG, you could set up your SWFs so that they're covered with a black
rectangle MovieClip by default and then you flip the _visible property to
false in your application when you load them in. That way, if people try to
look at the SWF from the browser's cache, they'll just see a big black
rectangle but within your app, the photo is visible. 

Just a thought.

Jack

-Original Message-
Date: Mon, 6 Aug 2007 16:17:32 +0200
From: Niels Endlich [EMAIL PROTECTED]
Subject: [Flashcoders] Prevent flash from caching the loaded assets
To: flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain;   charset=US-ASCII

We are making a game in which people have to quess what's on a photo
while viewing it through a little moveable hole. The images will be
loaded from the server. The problem is caching. To cheat is easy...
watch the cached files. Is there a way to prevent flash from caching the
loaded assets or does anyone has an other solution?

Thanks,
 
Niels



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

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


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

2007-08-06 Thread Ian Thomas
That's a wonderfully neat idea. :-D

Ian

On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote:
 If you're able to store the images in SWF format instead of something like
 JPG, you could set up your SWFs so that they're covered with a black
 rectangle MovieClip by default and then you flip the _visible property to
 false in your application when you load them in. That way, if people try to
 look at the SWF from the browser's cache, they'll just see a big black
 rectangle but within your app, the photo is visible.

 Just a thought.

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

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


Re: [Flashcoders] Timeline instance problem

2007-08-06 Thread robert


On Aug 6, 2007, at 2:22 AM, Muzak wrote:

My problem comes down to that much of the code is dealing with  
defining code for different events for movie clips in my movie. But
a lot of these movie clips have not yet appeared on the timeline  
when the movie start, and when the constructor for main_mc is

run.



Don't use the constructor to get things done. Use the  
MovieClip.onLoad method.




beautiful and so obvious. for the longest time i had been using  
onEnterFrame or setinterval in my constructors...

you made my day, thank you
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Eric and Palmers thanks so much, i found something interesting here..
http://www.styluscanada.com/

Note the white preloader.. This is what i am talking about exactly...




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Steven Sacks
I jumped on this thread late, but it seems to me that the best/easiest 
way to accomplish that circular preloader like you saw on that 
photography site is with a 100 frame movieclip that contains a mask that 
goes from frame 1-100 revealing a circle underneath.  It would probably 
take you all of 5 minutes to make.


Sometimes the simplest solution is the best solution.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Omar Fouad
This way no there would be no easing... And ma boss say he wants it with
actionscript *GR^

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

 I jumped on this thread late, but it seems to me that the best/easiest
 way to accomplish that circular preloader like you saw on that
 photography site is with a 100 frame movieclip that contains a mask that
 goes from frame 1-100 revealing a circle underneath.  It would probably
 take you all of 5 minutes to make.

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

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




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Steven Sacks
Easing?  You're showing linear data.  A visual representation of a 
number from 0-100.  I'm not sure how easing fits into this.


Your boss sounds like a real genius because it's absolutely brilliant to 
force somebody to spend many hours building something that could be 
built in 5 minutes - really smart use of time and money.  He should 
write a book on how to be successful in business.

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

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


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

2007-08-06 Thread eric e. dolecki
http://foo.domain.com/images/imageContainer.swf?e=; + getDate()

all images could be in 1 swf and called out.


On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote:

 That's a wonderfully neat idea. :-D

 Ian

 On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote:
  If you're able to store the images in SWF format instead of something
 like
  JPG, you could set up your SWFs so that they're covered with a black
  rectangle MovieClip by default and then you flip the _visible property
 to
  false in your application when you load them in. That way, if people try
 to
  look at the SWF from the browser's cache, they'll just see a big black
  rectangle but within your app, the photo is visible.
 
  Just a thought.
 
  Jack
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


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

2007-08-06 Thread Troy Rollins


On Aug 6, 2007, at 2:50 PM, eric e. dolecki wrote:


http://foo.domain.com/images/imageContainer.swf?e=; + getDate()

all images could be in 1 swf and called out.


Of course, that doesn't really prevent caching as much as it prevents  
the broswer from handing Flash a cached copy the next time it is loaded.


Jack's concept of a swf with a black foreground is a good one tho'.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.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] Prevent flash from caching the loaded assets

2007-08-06 Thread Carl Welch
Can't you just put this in your page header:

meta http-equiv=cache-control content=no-cache

to prevent caching?

-carl.




On 8/6/07, eric e. dolecki [EMAIL PROTECTED] wrote:
 http://foo.domain.com/images/imageContainer.swf?e=; + getDate()

 all images could be in 1 swf and called out.


 On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote:
 
  That's a wonderfully neat idea. :-D
 
  Ian
 
  On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote:
   If you're able to store the images in SWF format instead of something
  like
   JPG, you could set up your SWFs so that they're covered with a black
   rectangle MovieClip by default and then you flip the _visible property
  to
   false in your application when you load them in. That way, if people try
  to
   look at the SWF from the browser's cache, they'll just see a big black
   rectangle but within your app, the photo is visible.
  
   Just a thought.
  
   Jack
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



-- 
Carl Welch
[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] keyboard shortcuts and flash v2 components

2007-08-06 Thread Chris Bare
Does anyone know of any tutorials etc discussing how to implement keyboard
shortcuts with flash v2 components? I'm talking about things like ctrl-c for
cut ctrl-v for paste etc.
I have tried using an onEnter function that uses the Key object to check for
combinations that interest me, but some of the v2 components will still see
the keys if they have focus. They even mis-interpret things, like ignoring the
ctrl key and just processing the v.
Any pointers would be appreciated.
-- 
Chris Bare
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

2007-08-06 Thread Niels Endlich
It seems to me that the swf is easy to decompile and the photo also...

We were working on sending an array with amfphp which contains the pixel
information and use BitmapData setPixel to plot the image.
But it seems that AMFPHP isn't able to send such a large array (800x600pix).

Has anyone done somthing like this before?
 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens eric e. dolecki
Verzonden: maandag 6 augustus 2007 20:51
Aan: flashcoders@chattyfig.figleaf.com
Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded assets

http://foo.domain.com/images/imageContainer.swf?e=; + getDate()

all images could be in 1 swf and called out.


On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote:

 That's a wonderfully neat idea. :-D

 Ian

 On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote:
  If you're able to store the images in SWF format instead of something
 like
  JPG, you could set up your SWFs so that they're covered with a black
  rectangle MovieClip by default and then you flip the _visible property
 to
  false in your application when you load them in. That way, if people try
 to
  look at the SWF from the browser's cache, they'll just see a big black
  rectangle but within your app, the photo is visible.
 
  Just a thought.
 
  Jack
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

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

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


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

2007-08-06 Thread Ian Thomas
Niels,
  Is this AS2 or AS3?

Ian

On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote:
 It seems to me that the swf is easy to decompile and the photo also...

 We were working on sending an array with amfphp which contains the pixel
 information and use BitmapData setPixel to plot the image.
 But it seems that AMFPHP isn't able to send such a large array (800x600pix).

 Has anyone done somthing like this before?


 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens eric e. dolecki
 Verzonden: maandag 6 augustus 2007 20:51
 Aan: flashcoders@chattyfig.figleaf.com
 Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded assets

 http://foo.domain.com/images/imageContainer.swf?e=; + getDate()

 all images could be in 1 swf and called out.


 On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote:
 
  That's a wonderfully neat idea. :-D
 
  Ian
 
  On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote:
   If you're able to store the images in SWF format instead of something
  like
   JPG, you could set up your SWFs so that they're covered with a black
   rectangle MovieClip by default and then you flip the _visible property
  to
   false in your application when you load them in. That way, if people try
  to
   look at the SWF from the browser's cache, they'll just see a big black
   rectangle but within your app, the photo is visible.
  
   Just a thought.
  
   Jack
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

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

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


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

2007-08-06 Thread Niels Endlich
AS2 for the moment...

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

Niels,
  Is this AS2 or AS3?

Ian

On 8/6/07, Niels Endlich [EMAIL PROTECTED] wrote:
 It seems to me that the swf is easy to decompile and the photo also...

 We were working on sending an array with amfphp which contains the pixel
 information and use BitmapData setPixel to plot the image.
 But it seems that AMFPHP isn't able to send such a large array
(800x600pix).

 Has anyone done somthing like this before?


 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens eric e. dolecki
 Verzonden: maandag 6 augustus 2007 20:51
 Aan: flashcoders@chattyfig.figleaf.com
 Onderwerp: Re: [Flashcoders] Prevent flash from caching the loaded assets

 http://foo.domain.com/images/imageContainer.swf?e=; + getDate()

 all images could be in 1 swf and called out.


 On 8/6/07, Ian Thomas [EMAIL PROTECTED] wrote:
 
  That's a wonderfully neat idea. :-D
 
  Ian
 
  On 8/6/07, Jack Doyle [EMAIL PROTECTED] wrote:
   If you're able to store the images in SWF format instead of something
  like
   JPG, you could set up your SWFs so that they're covered with a black
   rectangle MovieClip by default and then you flip the _visible property
  to
   false in your application when you load them in. That way, if people
try
  to
   look at the SWF from the browser's cache, they'll just see a big black
   rectangle but within your app, the photo is visible.
  
   Just a thought.
  
   Jack
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

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

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

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

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


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

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

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

 AS2 for the moment...

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

 Niels,
   Is this AS2 or AS3?

 Ian

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

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

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

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




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

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


[Flashcoders] garbage collection and asychronous execution

2007-08-06 Thread Hans Wichman
Hi,

hmm okay this might seem like a basic question, but this has been bothering
me for a while:)

Imagine i have a class that prints boo 10 seconds after it has been
created, but returns immediately, so eg:


public function doTest() {
 trace(here 1);
 new BooTest();
 trace(here 2);
}

doTest();

this will print:

here 1
here 2
boo

My question is how does the garbage collector works in this case?
Why isnt the BooTest object garbage collected before it executes since it
has long fallen out of scope?

I have no longer have any reference to the object, but still it is
executing.

My definition of BooTest:


class BooTest {

 public function BooTest() {
  setInterval (test, 1000);
 }

 public function test() {
  trace (boo);
 }


}
setInterval has a reference to the test function, but not to the object
itself.

Any ideas / pointers?

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

2007-08-06 Thread Glen Pike

Hi,

   There are not really any right ways - just the fastest way to get 
stuff out...


   http://www.flashbrighton.org/wordpress/?p=9

   http://www.flashbrighton.org/wordpress/?p=6

   Can't find the drum machine article - they built one as part of a 
contest with Flash Coders NY - source code here - check out the 
ToneGenerator and the specific SawGenerator etc.


   http://svn1.cvsdude.com/osflash/drummachine/PCMAudioLibrary/

   Andre-Michelle has done some nice stuff, but not much source.
  
   http://lab.andre-michelle.com/


   These are probably okay for simple one off sounds, but if you are 
building complex waveforms - e.g. adding lots of waves together at a 
certain frequency, you may be better off building a wavetable then 
reading sample values by interpolating - simple weighted addition of 2 
samples indexed from an array.  If you want some C++ code, then I can 
dig it out for you, but the PCMAudioLibrary looks adequate...


   You would have thought that FlashPlayer would have noise generators 
built in for sound - they have them for images which have an extra 
dimension, so are usually more processor intensive - c'mon Adobe, gimme 
some audio tools already. 


   Hope this helps.

   Glen

 
Andreas R wrote:
Out of curiosity, what are the right ways to calculate oscillations 
like triangle, sawtooth and pulse? Ideally oscillation would work in 
parallel with sine, so when sin=1, triangle=1, taking radians as the 
frequency parameter.


Any takers?

- Andreas R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread David Ngo
Uh, you could implement easing but I'm of the same opinion as Steve here
where it wouldn't make any sense to kill an ant with a sledgehammer. At any
rate, the easing would be based off a timer instead of frames. Pseudo code
AS2 using the Tween class would be:



var interval:Number = setInterval(this, 'showProgress', 100);

function showProgress():Void
{
new Tween(scope, 'property', Easetype, currentVal, newVal, 0.1,
true);
}


You could change the interval and have the Tween's seconds be either equal
to or less than the interval.

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
Sent: Monday, August 06, 2007 2:38 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Coding a circular preloader

Easing?  You're showing linear data.  A visual representation of a 
number from 0-100.  I'm not sure how easing fits into this.

Your boss sounds like a real genius because it's absolutely brilliant to 
force somebody to spend many hours building something that could be 
built in 5 minutes - really smart use of time and money.  He should 
write a book on how to be successful in business.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] full-screen mode and FLVPlayback component conflict

2007-08-06 Thread Stephen Downs

A follow-up and workaround for this issue, for those who care.

The issue of FLV blacking out the screen when a projector runs in  
full-screen mode seems to affect the Video class itself. I stand by  
my original guess that this occurs because of a security issue. The  
documentation for these security issues mention that they do not  
affect Flash projectors, but apparently they do.


It's less than ideal to rework the FLVPlayback instances in my Flash  
document into purely ActionScript invoked instances, the artist-types  
on the team won't like that. So for now I use a brute force global  
event listener to set the fullScreenTakeOver to false on any  
FLVPlayback instances, something like this:


// In main class constructor:
	primaryDisplayObject.stage.addEventListener(Event.ADDED,  
displayObjectAdded, true);	


// A little later in the main class:
// Listener when any display object is added to stage.
private static function displayObjectAdded(evt:Event):void {
if (evt.target is FLVPlayback) {
evt.target.fullScreenTakeOver = false;
}
}   


To summarize, I see two major flaws with this version (2.0.0.37) of  
the FLVPlayback component:


Flaw #1) In full-screen mode Flash projectors FLVPlayback instances  
completely black out the stage.


Flaw #2) The FLVPlayback component inspector should include a  
fullScreenTakeOver parameter.



SD



On 2007-08-02, at 7:28 AM, Stephen Downs wrote:

Problem: I am creating a Flash stand alone projector that relies on  
several FLVPlayback component instances to play some local file  
system flv video. When I am in full-screen mode and try to display  
a video (instructing a movie clip container to go to a particular  
frame where the video resides), the screen turns black. Pressing  
ESC exits full-screen mode, but displays no video. I then have to  
go to a frame where the movie clip container does not exist, then  
return, and video then appears. The problem is exhibited on both  
Mac OS X and Windows.


Expected behavior: I want to run a full-screen mode projector that  
displays flv assets non full-screen, in an appropriate aspect  
ratio, with controls like the ones FLVPlayback offers. Help!


I achieve full-screen mode like this:
// _target_mc is the main timeline movieclip:
_target_mc.stage.displayState = StageDisplayState.FULL_SCREEN;

I attempt to turn off full-screen playback for FLVPlayback  
instances using:

// vid is the FLVPlayback instance:
vid.fullScreenTakeOver = false;

I wouldn't be surprised if I am running up against a silly security  
limitation. The documentation mentions that FLVPlayback will fail  
silently if there is a security conflict, so I'm not sure I can  
listen for any security events. Any suggestions exploring this are  
appreciated.


I may end up dynamically creating and displaying FLVPlayback  
instances instead of relying on the easier stage layout method.  
Setting the fullScreenTakeOver property might have to be performed  
before the instance is added to the display list.


Details:
Flash 9, AS 3 fla published as Projector
flash.system.Security.sandboxType is localTrusted
FLVPlayback.VERSION is 2.0.0.37


thanks for your input,
Steve
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Lines in textArea

2007-08-06 Thread Alan MacDougall

Volker Scarpatetti - Advertis Interactiva wrote:

Hi !

Is there a way to know how many lines are written in a textArea component
when filling it up dynamically ?


  
This is not a perfect solution, but if you know the TextField.textHeight 
when there is a single line, you should be able to do a bit of division 
(possibly compensating for leading and such) to figure out the number of 
current lines.


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

2007-08-06 Thread David Ngo
Look into TextFormat.getTextExtent() as well.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan
MacDougall
Sent: Monday, August 06, 2007 4:41 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Lines in textArea

Volker Scarpatetti - Advertis Interactiva wrote:
 Hi !

 Is there a way to know how many lines are written in a textArea component
 when filling it up dynamically ?


   
This is not a perfect solution, but if you know the TextField.textHeight 
when there is a single line, you should be able to do a bit of division 
(possibly compensating for leading and such) to figure out the number of 
current lines.

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

2007-08-06 Thread Mark Hawley
That isn't a reference to a function -- it's a reference to a object method.
The object has to hang around.

On 8/6/07, Hans Wichman [EMAIL PROTECTED] wrote:

 Hi,

 hmm okay this might seem like a basic question, but this has been
 bothering
 me for a while:)

 Imagine i have a class that prints boo 10 seconds after it has been
 created, but returns immediately, so eg:


 public function doTest() {
  trace(here 1);
  new BooTest();
  trace(here 2);
 }

 doTest();

 this will print:

 here 1
 here 2
 boo

 My question is how does the garbage collector works in this case?
 Why isnt the BooTest object garbage collected before it executes since it
 has long fallen out of scope?

 I have no longer have any reference to the object, but still it is
 executing.

 My definition of BooTest:


 class BooTest {

 public function BooTest() {
   setInterval (test, 1000);
 }

 public function test() {
   trace (boo);
 }


 }
 setInterval has a reference to the test function, but not to the object
 itself.

 Any ideas / pointers?

 greetz
 JC
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Omar Fouad
Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have
it.. i'll try to convince my boss. But i would like to know the same how
that could be achieved like in the website.

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] textfield woes.

2007-08-06 Thread ilteris kaplan

Hello List,
Very basic question.
Basically I created a new font in my flash library and put this code  
in the timeline.


this.createTextField(mytext, this.getNextHighestDepth(), 10, 100,  
300, 200);

mytext.multiline = false;

mytext.type = input;
mytext.embedFonts = true;
mytext.restrict = 1,2,3,4,5,6,7,8,9,0;
mytext.border = true;
mytext.maxChars = 8;

var format1:TextFormat = new TextFormat();
format1.letterSpacing = 2;
format1.font = HelveticaNeue;


mytext.text =  ;
mytext.setTextFormat(format1);

my question is, this code works fine, creates a textfield and I can  
type numbers in that textfield without problems. Only problem is I do  
have a space in the textfield. So when I go ahead and change the line  
to mytext.text = ; now it doesn't have any space at all. but flash  
doesn't allow me to type anything on the text field.


Can someone confirm this for me? Please?

best,
ilteris



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

2007-08-06 Thread Palmer, Jim

Your mytext.restrict is wrong...
should be mytext.restrict = 0-9 ;

read: 
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary762.html

--
Jim Palmer ! Mammoth Web Operations

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of ilteris
 kaplan
 Sent: Monday, August 06, 2007 3:33 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] textfield woes.
 
 
 Hello List,
 Very basic question.
 Basically I created a new font in my flash library and put this code  
 in the timeline.
 
 this.createTextField(mytext, this.getNextHighestDepth(), 10, 100,  
 300, 200);
 mytext.multiline = false;
 
 mytext.type = input;
 mytext.embedFonts = true;
 mytext.restrict = 1,2,3,4,5,6,7,8,9,0;
 mytext.border = true;
 mytext.maxChars = 8;
 
 var format1:TextFormat = new TextFormat();
 format1.letterSpacing = 2;
 format1.font = HelveticaNeue;
 
 
 mytext.text =  ;
 mytext.setTextFormat(format1);
 
 my question is, this code works fine, creates a textfield and I can  
 type numbers in that textfield without problems. Only problem 
 is I do  
 have a space in the textfield. So when I go ahead and change 
 the line  
 to mytext.text = ; now it doesn't have any space at all. but flash  
 doesn't allow me to type anything on the text field.
 
 Can someone confirm this for me? Please?
 
 best,
 ilteris
 
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] textfield woes.

2007-08-06 Thread ilteris kaplan
restrict is wrong. you are right. but that didn't really effect it.  
but this truely did.


mytext.setNewTextFormat(format1);

nevertheless, thanks for the link.

On Aug 6, 2007, at 6:39 PM, Palmer, Jim wrote:



Your mytext.restrict is wrong...
should be mytext.restrict = 0-9 ;

read: http://www.adobe.com/support/flash/action_scripts/ 
actionscript_dictionary/actionscript_dictionary762.html


--
Jim Palmer ! Mammoth Web Operations


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

kaplan
Sent: Monday, August 06, 2007 3:33 PM
To: Flashcoders mailing list
Subject: [Flashcoders] textfield woes.


Hello List,
Very basic question.
Basically I created a new font in my flash library and put this code
in the timeline.

this.createTextField(mytext, this.getNextHighestDepth(), 10, 100,
300, 200);
mytext.multiline = false;

mytext.type = input;
mytext.embedFonts = true;
mytext.restrict = 1,2,3,4,5,6,7,8,9,0;
mytext.border = true;
mytext.maxChars = 8;

var format1:TextFormat = new TextFormat();
format1.letterSpacing = 2;
format1.font = HelveticaNeue;


mytext.text =  ;
mytext.setTextFormat(format1);

my question is, this code works fine, creates a textfield and I can
type numbers in that textfield without problems. Only problem
is I do
have a space in the textfield. So when I go ahead and change
the line
to mytext.text = ; now it doesn't have any space at all. but flash
doesn't allow me to type anything on the text field.

Can someone confirm this for me? Please?

best,
ilteris



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

2007-08-06 Thread David Ngo
I'm not sure what you mean. What don't you have? The pseudo code I posted is
fairly easy to implement. If you're using the drawing API to render your
circle or partial circle, just tap into the Tween class' onMotionChanged
event to update your vector shape.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad
Sent: Monday, August 06, 2007 5:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Coding a circular preloader

Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have
it.. i'll try to convince my boss. But i would like to know the same how
that could be achieved like in the website.

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Jesse Graupmann

Using the arc prototype ( AS 1/2 ) from formequalsfunction draw methods;
http://www.formequalsfunction.com/downloads/drawmethods.html and Tweener (
AS 2 ) from http://code.google.com/p/tweener/ I put together a simple tween
version of the circle.

Assuming you have Tweener in the same directory, you can copy and paste this
example.

- JG



/*-
//
//  http://www.formequalsfunction.com/downloads/drawmethods.html
//
mc.drawArc is a method for drawing regular and eliptical 
arc segments. This method replaces one I originally 
released to the Flash MX beta group titled arcTo and contains
several optimizations based on input from the following 
people: Robert Penner, Eric Mueller and Michael Hurwicz.
-*/
MovieClip.prototype.drawArc = function(x, y, radius, arc, startAngle,
yRadius) {
// ==
// mc.drawArc() - by Ric Ewing ([EMAIL PROTECTED]) -
version 1.5 - 4.7.2002
// 
// x, y = This must be the current pen position... other values will
look bad
// radius = radius of Arc. If [optional] yRadius is defined, then r
is the x radius
// arc = sweep of the arc. Negative values draw clockwise.
// startAngle = starting angle in degrees.
// yRadius = [optional] y radius of arc. Thanks to Robert Penner for
the idea.
// ==
// Thanks to: Robert Penner, Eric Mueller and Michael Hurwicz for
their contributions.
// ==
if (arguments.length5) {
return;
}
// if yRadius is undefined, yRadius = radius
if (yRadius == undefined) {
yRadius = radius;
}
// Init vars
var segAngle, theta, angle, angleMid, segs, ax, ay, bx, by, cx, cy;
// no sense in drawing more than is needed :)
if (Math.abs(arc)360) {
arc = 360;
}
// Flash uses 8 segments per circle, to match that, we draw in a
maximum
// of 45 degree segments. First we calculate how many segments are
needed
// for our arc.
segs = Math.ceil(Math.abs(arc)/45);
// Now calculate the sweep of each segment
segAngle = arc/segs;
// The math requires radians rather than degrees. To convert from
degrees
// use the formula (degrees/180)*Math.PI to get radians. 
theta = -(segAngle/180)*Math.PI;
// convert angle startAngle to radians
angle = -(startAngle/180)*Math.PI;
// find our starting points (ax,ay) relative to the secified x,y
ax = x-Math.cos(angle)*radius;
ay = y-Math.sin(angle)*yRadius;
// if our arc is larger than 45 degrees, draw as 45 degree segments
// so that we match Flash's native circle routines.
if (segs0) {
// Loop for drawing arc segments
for (var i = 0; isegs; i++) {
// increment our angle
angle += theta;
// find the angle halfway between the last angle and
the new
angleMid = angle-(theta/2);
// calculate our end point
bx = ax+Math.cos(angle)*radius;
by = ay+Math.sin(angle)*yRadius;
// calculate our control point
cx =
ax+Math.cos(angleMid)*(radius/Math.cos(theta/2));
cy =
ay+Math.sin(angleMid)*(yRadius/Math.cos(theta/2));
// draw the arc segment
this.curveTo(cx, cy, bx, by);
}
}
// In the native draw methods the user must specify the end point
// which means that they always know where they are ending at, but
// here the endpoint is unknown unless the user calculates it on
their 
// own. Lets be nice and let save them the hassle by passing it
back. 
return {x:bx, y:by};
};


//
//  DRAW CIRCLE FROM OBJECT
//

function circle_draw ( obj:Object )
{
var mc = obj.mc;
mc.clear();
mc.moveTo ( obj.x, obj.y );
mc.beginFill.apply ( mc, obj.fillStyle );
mc.lineStyle.apply ( mc, obj.lineStyle );
mc.drawArc ( obj.x, obj.y, obj.radius, obj.arc, obj.startAngle,
obj.yRadius )
}


//
//  CENTER AND REDRAW CIRCLES
//

function updateCircle ( top_obj, bottom_obj )
{   
// redraw
if ( arguments.length  0 ) 
{
// center
var X = (Stage.width  1);
var Y = (Stage.height  1) - top_obj.yRadius ||
top_obj.radius; 

top_obj.x = X;
top_obj.y = Y;  
circle_draw ( top_obj );

if ( arguments.length  1 ) 
{
   

Re: [Flashcoders] garbage collection and asychronous execution

2007-08-06 Thread Mark Winterhalder
On 8/6/07, Mark Hawley [EMAIL PROTECTED] wrote:
 That isn't a reference to a function -- it's a reference to a object method.
 The object has to hang around.

No, it's a reference to a function. The VM doesn't know anything about methods.
The interval keeps a reference to the function, the object gets
garbage collected, then the function gets called. It doesn't need an
object. In fact, if you'd add a trace( this ), it would be undefined.

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

2007-08-06 Thread Cristo @ Cryzto.ch
Can someone help me?

 

I'm stuck and don't know what's the problem...

 

 

cryzto

 





 

Hi Folks!

 

I've made a little example where I've got two Accordion- and 3
Button-Instances.

 

First I load two XMLs, one for each Accordion [navi_acc and model_acc].

 

When I push the 1.Button [models_btn], the 1. Accordion shows up [navi_acc].

 

Then when I push on one navi_acc-Element, the 2. Accordion shows up
[model_acc].

 

Now I've got two language-Buttons [German  English]. When I push on one of
these Buttons, each Accordion-Element is updated to the selected Lang.

 

The problem is: it works, the model_btn.label, all Button-Labels inside the
Accordions.but..

 

The labels of the Accordion-headers don't change.visually.but if I make a
trace of the labels'n names, they are!

 

You can see my example @  http://www.cryzto.ch/index2.html

www.cryzto.ch/index2.html !

 

 

Can someone helpme?

 

cryzto


  _  

Ich verwende die kostenlose Version von SPAMfighter,
die bei mir bis jetzt 1626 Spammails entfernt hat.
Fur private Anwender ist SPAMfighter vollig kostenlos!
Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coding a circular preloader

2007-08-06 Thread Muzak

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, August 06, 2007 8:38 PM
Subject: Re: [Flashcoders] Coding a circular preloader


 Easing?  You're showing linear data.  A visual representation of a number 
 from 0-100.  I'm not sure how easing fits into this.

 Your boss sounds like a real genius because it's absolutely brilliant to 
 force somebody to spend many hours building something 
 that could be built in 5 minutes - really smart use of time and money.  He 
 should write a book on how to be successful in 
 business.

+10 ;-)

when I visited the site mentioned I didn't see any easing at all (I'm on a 
20mbit conn).



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

2007-08-06 Thread Jesse Graupmann
Another version using _xmouse to get a Stage.width factor so you can see
easing via onMouseMove. 

Nothing extra needed in this example - just copy/paste.

- JG





function drawArc ( mc, x, y, radius, arc, startAngle, yRadius) 
{
// http://www.formequalsfunction.com/downloads/drawmethods.html

if (arguments.length5) return;
if (yRadius == undefined) yRadius = radius;
var segAngle, theta, angle, angleMid, segs, ax, ay, bx, by, cx, cy;
if (Math.abs(arc)360) arc = 360;
segs = Math.ceil(Math.abs(arc)/45);
segAngle = arc/segs;
theta = -(segAngle/180)*Math.PI;
angle = -(startAngle/180)*Math.PI;
ax = x-Math.cos(angle)*radius;
ay = y-Math.sin(angle)*yRadius;
if (segs0) {
for (var i = 0; isegs; i++) {
angle += theta;
angleMid = angle-(theta/2);
bx = ax+Math.cos(angle)*radius;
by = ay+Math.sin(angle)*yRadius;
cx =
ax+Math.cos(angleMid)*(radius/Math.cos(theta/2));
cy =
ay+Math.sin(angleMid)*(yRadius/Math.cos(theta/2));
mc.curveTo(cx, cy, bx, by);
}
}
return {x:bx, y:by};
};

//
//  DRAW CIRCLE FROM OBJECT
//

function circle_draw ( obj:Object ):Void
{
var mc = obj.mc;
mc.clear();
mc.moveTo ( obj.x, obj.y );
mc.beginFill.apply ( mc, obj.fillStyle );
mc.lineStyle.apply ( mc, obj.lineStyle );
drawArc ( mc, obj.x, obj.y, obj.radius, obj.arc, obj.startAngle,
obj.yRadius )
}

//
//  SHOW PERCENTAGE IN TEXT
//

function setPer ( per ):Void
{
txt.text = per + ' %';
txt.setTextFormat(txt_fmt);
txt._x = Math.round(circle_holder._x - (txt._width1));
txt._y = Math.round(circle_holder._y + (circle_top.radius*2) +
circle_top.lineStyle[0]);
}

//
//  ADJUST TO NEW PERCENTAGE
//

function adjust_view () 
{
// per
var margin = 20;
var per = Math.max( 0 , Math.min ( 1, (this._xmouse - margin) /
(Stage.width-(margin*2;
var new_arc = Math.round( -360 * per );

// update
if ( new_arc != dest_arc ) 
{
dest_arc = new_arc;
circle_holder.onEnterFrame = function()
{
cur_arc += (dest_arc - cur_arc) * .1 ;
circle_top.arc = cur_arc;
circle_draw ( circle_top ); // circle
setPer (
Math.round(Math.abs(circle_top.arc)/360*100) ); // txt
if ( cur_arc == dest_arc ) delete
circle_holder.onEnterFrame;
}
}
}


//
//  CREATE
//

function INIT()
{

// circle
circle_holder = this.createEmptyMovieClip( circle_holder, 20 );
cur_arc = 0;
dest_arc = 0;

// top circle
circle_top = {
mc: circle_holder.createEmptyMovieClip( mc, 40 ),
x:0,
y:0,
radius:50,
arc: 0,
startAngle: 90,
yRadius: 50,
lineStyle: [ 15, 0xFF, 100 ],
fillStyle: [ ]
};

// add top glow
circle_top.mc.filters = [ new flash.filters.GlowFilter(0xFF, .8,
15, 15, 2, 3, false, false ) ];
// bottom circle
circle_bottom = {
mc: circle_holder.createEmptyMovieClip( mc2, 30  ),
arc: 360,
x: circle_top.x,
y: circle_top.y,
radius: circle_top.radius,
startAngle: circle_top.startAngle,
yRadius: circle_top.yRadius,
lineStyle: [ 13, 0xFF, 20 ],
fillStyle: circle_top.fillStyle
};  

// txt
txt = this.createTextField(txt, 100, 100, 100, 300, 100);
txt.multiline = false;
txt.autoSize= true;
txt.wordWrap = false;
txt_fmt = new TextFormat();
txt_fmt.color = 0xFF;


// stage
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
Stage.addListener( this );
bg = this.createEmptyMovieClip(bg, 10 );
onResize = function ()
{
var W = Stage.width;
var H = Stage.height;
bg.clear();
bg.beginFill(0x33, 100);
bg.moveTo(0, 0);
bg.lineTo(W, 0);
bg.lineTo(W, H);
bg.lineTo(0, H);
bg.lineTo(0, 0);
bg.endFill();

circle_holder._x = (W1);
circle_holder._y = (H1)- circle_top.radius;
}
circle_draw ( circle_top );
circle_draw ( circle_bottom );

   

[Flashcoders] Key repeating in AS3?

2007-08-06 Thread Martin Scott Goldberg
Has anyone noticed a change in key repeating rate (i.e. when the key is
held down) between as3 and as2?

I just transfered some game code over to as3 for controlling a ship.  I.E.
left arrow to turn left, right arrow to turn right.

In as2 the key starts repeating really quick when held down.  In as3 it
reads the key once, pauses for a bit and then finally repeats (and repeats
at a much quicker rate than in as2).

I need to get rid of that pause in between the initial keypress and the
repeat so I have a smooth control like I had in as2.  Anyone have any
insight?



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

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