Re: [Flashcoders] video seek ability

2008-12-10 Thread Muzak
If I'm not mistaken, there's a flaw in the logic, as the progress is based on bytesLoaded and bytesTotal, while the shuttle/scrubber 
is time based.

Only the beginning and end of both will match up (0% loaded = 0 time -- 100% 
loaded = total time).

Make sense?

Most video players out there do it that way though (as you described).

regards,
Muzak

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 6:20 AM
Subject: Re: [Flashcoders] video seek ability



Here's what you need to know to make a good scrubber for progressive download 
FLVs.

1. You need a background that shows the entire width of the bar.

2. You need a progress bar that shows how much of the video has loaded.  The width of this bar is the background.width * 
(ns.bytesLoaded / ns.bytesTotal);


3. You need a playback bar or shuttle which is updated on a timer. The width (bar) or position (shuttle) is the background.width * 
(ns.time / ns.metaData.duration).


4. You put the mouse events on the progress bar.  On press, you set a flag that you're seeking (so the update doesn't move the 
bar/shuttle but does keep the progress bar updated), you pause the video, and you start a timer that calls an update function.  In 
the update function, you track the mouseX and constrain the value  (via Math.min and Math.max) to values between 0 and the 
progress bar width, to which you set the position of the shuttle or width of the playback bar.  You take the position/width of the 
bar, divide it by the background.width, multiply that by the duration of the ns, round it, and that's your seek time. When you 
release, you unpause the video (assuming the video was playing when you pressed, you'll need to keep a separate flag for that).



If you do it like I've described, then the dragging is always constrained by the current loaded amount, not the loaded amount at 
the time you pressed, and you don't get that ugly stutter when you stay in one place (there's no reason to not pause the video 
when scrubbing).


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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks

Keyword: Old.

Hans Wichman wrote:

ps we're probably not the first ones discussing this old subject, has n1
found some good sources/references?
Most of the old CS textbooks sentence you to hell for using public variables
so let's not refer to those ;)

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


Re: [Flashcoders] video seek ability

2008-12-10 Thread Steven Sacks

 Make sense?

bytesTotal = 100% * width;
duration = 100% * width;

bytesLoaded / bytesTotal = 0%-100% * width
time / duration = 0%-100% * width

The relationship between bytesLoaded and time is 1 to 1, which is why my 
scrubber logic is flawless.  That's where you went off the track.  Eek, a pun!


-Steven


Muzak wrote:
If I'm not mistaken, there's a flaw in the logic, as the progress is 
based on bytesLoaded and bytesTotal, while the shuttle/scrubber is time 
based.
Only the beginning and end of both will match up (0% loaded = 0 time -- 
100% loaded = total time).


Make sense?

Most video players out there do it that way though (as you described).

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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks

And just to clarify:

Stand on the shoulders of giants, don't follow in their footsteps.


Steven Sacks wrote:

Keyword: Old.

Hans Wichman wrote:

ps we're probably not the first ones discussing this old subject, has n1
found some good sources/references?
Most of the old CS textbooks sentence you to hell for using public 
variables

so let's not refer to those ;)

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


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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
On Wed, Dec 10, 2008 at 4:01 AM, Steven Sacks [EMAIL PROTECTED] wrote:

 That being said, I don't abide by the retarded rule that you shouldn't have
 public vars in a class.  People who do this

 private var _foo:Boolean;
 public function get foo():Boolean { return _foo; }
 public function set foo(value:Boolean):void { _foo = value; }

 are masturbating and I'm not impressed by their bloated ego...I mean code.
 ;)

It is incredibly rare that I agree with Steven. :-) I do on this one,
as I said earlier - although I might not have expressed it like that.

That pattern - as above - which wraps a private property up as a
couple of methods is exactly what happens with explicit
setters/getters (getVar(), setVar()) _all the time_ in Java simply in
self defense, because changing from a public property to a
getter/setter breaks the API of your class (and so you need to rewrite
all the classes using it).

Which is why in this instance AS is head-and-shoulders over Java.

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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
In the programming languages used in the old CS textbooks, you didn't
have the option to switch from a public property to a getter/setter
pair without breaking the interface.

Ian

On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks [EMAIL PROTECTED] wrote:
 Keyword: Old.

 Hans Wichman wrote:

 ps we're probably not the first ones discussing this old subject, has n1
 found some good sources/references?
 Most of the old CS textbooks sentence you to hell for using public
 variables
 so let's not refer to those ;)

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

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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks

Thankfully, AS3 allows you to put implicit getters and setters into an 
interface.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] colour and transform matrices

2008-12-10 Thread allandt bik-elliott (thefieldcomic.com)
Hi guys

After a brief discussion with some of the devs where i'm working at the mo,
i was wondering if anyone could point me at a decent tutorial for using and
manipulating objects and colours using matrices. It seems to be one of those
things that people only learn a teeny bit of but could be immensly powerful
in the wrong... i mean right hands.

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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
For some vars, the bounds don't matter - so why not use a public? If
they do matter, use getters/setters. The beauty of Actionscript is -
to the designer - it doesn't matter or change anything. :-) And from
your PoV, you can flip between either when you need to add (or drop)
bounds checks. (Or traces, or whatever.)

:-)

Ian

On Wed, Dec 10, 2008 at 11:15 AM, Eric E. Dolecki [EMAIL PROTECTED] wrote:
 I usually take the private with getters and setters approach - I can check
 the bounds of the setting of the var. I am thinking more of designers here
 taking the code and using it than I am other developers. Although I have
 many times set up public vars that I tweak from outside the class(es) too.
 Eric

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


Re: [Flashcoders] colour and transform matrices

2008-12-10 Thread Hans Wichman
Hi,

have you seen this one:
http://www.quasimondo.com/archives/000565.php

Or are you looking behind the math of it?

greetz
JC

On Wed, Dec 10, 2008 at 12:25 PM, allandt bik-elliott (thefieldcomic.com) 
[EMAIL PROTECTED] wrote:

 Hi guys

 After a brief discussion with some of the devs where i'm working at the mo,
 i was wondering if anyone could point me at a decent tutorial for using and
 manipulating objects and colours using matrices. It seems to be one of
 those
 things that people only learn a teeny bit of but could be immensly powerful
 in the wrong... i mean right hands.

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

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


Re: [Flashcoders] colour and transform matrices

2008-12-10 Thread Vayu Robins
Dont know if this is what your looking for, but this guy does some nice
work:

http://blog.soulwire.co.uk/flash/actionscript-3/colourutils-bitmapdata-extra
ct-colour-palette/

Cordially
Vayu
flashkompagniet.dk

On 12/10/08 12:25 PM, allandt bik-elliott (thefieldcomic.com)
[EMAIL PROTECTED] wrote:

 Hi guys
 
 After a brief discussion with some of the devs where i'm working at the mo,
 i was wondering if anyone could point me at a decent tutorial for using and
 manipulating objects and colours using matrices. It seems to be one of those
 things that people only learn a teeny bit of but could be immensly powerful
 in the wrong... i mean right hands.
 
 thanks
 a
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread allandt bik-elliott (thefieldcomic.com)
any code amending outside the class can be avoided if you take the
(self-imposed) rule that internal/private class vars start with a leading
underscore but public ones don't - that way if you need to create getters
and setters, you just create the class var with the _ and the get/set
without

On Wed, Dec 10, 2008 at 9:43 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 In the programming languages used in the old CS textbooks, you didn't
 have the option to switch from a public property to a getter/setter
 pair without breaking the interface.

 Ian

 On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks [EMAIL PROTECTED]
 wrote:
  Keyword: Old.
 
  Hans Wichman wrote:
 
  ps we're probably not the first ones discussing this old subject, has n1
  found some good sources/references?
  Most of the old CS textbooks sentence you to hell for using public
  variables
  so let's not refer to those ;)
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Steven Sacks

It is incredibly rare that I agree with Steven.


I resemble that remark! ;)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Eric E. Dolecki
I usually take the private with getters and setters approach - I can check
the bounds of the setting of the var. I am thinking more of designers here
taking the code and using it than I am other developers. Although I have
many times set up public vars that I tweak from outside the class(es) too.
Eric

On Wed, Dec 10, 2008 at 5:14 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 I think we're saying the same thing there. :-)

 Such code amending is needed in languages like Java, because you can't
 go from a property to a getter/setter _without_ changing the
 interface. Which is why the Java getters and setters are used almost
 everywhere - like I said, it's programming in self-defense.

 Ian

 On Wed, Dec 10, 2008 at 10:05 AM, allandt bik-elliott
 (thefieldcomic.com) [EMAIL PROTECTED] wrote:
  any code amending outside the class can be avoided if you take the
  (self-imposed) rule that internal/private class vars start with a leading
  underscore but public ones don't - that way if you need to create getters
  and setters, you just create the class var with the _ and the get/set
  without
 
  On Wed, Dec 10, 2008 at 9:43 AM, Ian Thomas [EMAIL PROTECTED] wrote:
 
  In the programming languages used in the old CS textbooks, you didn't
  have the option to switch from a public property to a getter/setter
  pair without breaking the interface.
 
  Ian
 
  On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks [EMAIL PROTECTED]
 
  wrote:
   Keyword: Old.
  
   Hans Wichman wrote:
  
   ps we're probably not the first ones discussing this old subject, has
 n1
   found some good sources/references?
   Most of the old CS textbooks sentence you to hell for using public
   variables
   so let's not refer to those ;)
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
I think we're saying the same thing there. :-)

Such code amending is needed in languages like Java, because you can't
go from a property to a getter/setter _without_ changing the
interface. Which is why the Java getters and setters are used almost
everywhere - like I said, it's programming in self-defense.

Ian

On Wed, Dec 10, 2008 at 10:05 AM, allandt bik-elliott
(thefieldcomic.com) [EMAIL PROTECTED] wrote:
 any code amending outside the class can be avoided if you take the
 (self-imposed) rule that internal/private class vars start with a leading
 underscore but public ones don't - that way if you need to create getters
 and setters, you just create the class var with the _ and the get/set
 without

 On Wed, Dec 10, 2008 at 9:43 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 In the programming languages used in the old CS textbooks, you didn't
 have the option to switch from a public property to a getter/setter
 pair without breaking the interface.

 Ian

 On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks [EMAIL PROTECTED]
 wrote:
  Keyword: Old.
 
  Hans Wichman wrote:
 
  ps we're probably not the first ones discussing this old subject, has n1
  found some good sources/references?
  Most of the old CS textbooks sentence you to hell for using public
  variables
  so let's not refer to those ;)
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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


[Flashcoders] flash player detection

2008-12-10 Thread Paul Andrews
I have a client with a flash site  - targets FP 8, and works fine. I have 
FP10 installed.
If I make a copy of the html wrapper and then try and access the site using 
the copy, the detection of the player fails.


The html uses swfobject for player detection.

Paul 


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


RE: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Merrill, Jason
I tend to send this link on whenever this debate comes up, good article on 
public vars vs. getters and setters from a well respected Actionscript coder.

http://www.darronschall.com/weblog/2005/03/no-brain-getter-and-setters.cfm

And I also agree with Steve, Ian, the others, I used to be against public vars, 
but now I see when they don't need to have a brain i.e logic is run when they 
are called, and it's ok to allow them as a pair (i.e. both get and set), then 
there is no reason to not use public vars since from an interface perspective, 
they are exactly the same.  And if you ever need the brain inserted into 
getting or setting, it's extremely simple to add them afterwards.  Just writing 
out get and set for everything just bloats your code.  There is a place for 
both.  I code public vars all the time now, probably more than get/set pairs.  


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.



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


[Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi list,

I was wondering how you handle your assets in version control.

I usually follow a standard project setup something like:
trunk
branches
tags

The trunk contains for example sources, deploy, deploy/assets

Now especially the assets folder tends to get very large.
Each time I tag the trunk, the size multiplies.

I was wondering how others are handling this, and looking for a better way
to handle the assets.
Not sure if there is a quick solution to this though:)

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


Re: [Flashcoders] flash player detection

2008-12-10 Thread Sidney de Koning

Is this a question or an announcement?

Sid

On Dec 10, 2008, at 3:31 PM, Paul Andrews wrote:

I have a client with a flash site  - targets FP 8, and works fine. I  
have FP10 installed.
If I make a copy of the html wrapper and then try and access the  
site using the copy, the detection of the player fails.


The html uses swfobject for player detection.

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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


Re: [Flashcoders] flash player detection

2008-12-10 Thread Paul Andrews
- Original Message - 
From: Sidney de Koning [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 2:47 PM
Subject: Re: [Flashcoders] flash player detection



Is this a question or an announcement?


LOL, both. I'm wondering why the flash player detection is baulking if I 
just copy the html wrapper (content untouched), but working fine in the 
original html file.


Paul


Sid

On Dec 10, 2008, at 3:31 PM, Paul Andrews wrote:

I have a client with a flash site  - targets FP 8, and works fine. I 
have FP10 installed.
If I make a copy of the html wrapper and then try and access the  site 
using the copy, the detection of the player fails.


The html uses swfobject for player detection.

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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


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


Re: [Flashcoders] flash player detection

2008-12-10 Thread Sidney de Koning

Oke :)
If you need documentation make FP 10 work with detection by swfobject,  
then this is good read:

http://onflash.org/ted/2008/10/flash-player-10-update-your-detection.php

Good luck paul,

Greets,  Sid

On Dec 10, 2008, at 3:59 PM, Paul Andrews wrote:

- Original Message - From: Sidney de Koning [EMAIL PROTECTED] 


To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 2:47 PM
Subject: Re: [Flashcoders] flash player detection



Is this a question or an announcement?


LOL, both. I'm wondering why the flash player detection is baulking  
if I just copy the html wrapper (content untouched), but working  
fine in the original html file.


Paul


Sid

On Dec 10, 2008, at 3:31 PM, Paul Andrews wrote:

I have a client with a flash site  - targets FP 8, and works fine.  
I have FP10 installed.
If I make a copy of the html wrapper and then try and access the   
site using the copy, the detection of the player fails.


The html uses swfobject for player detection.

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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Hans Wichman
Hi,

yep that was the article, but the original poster asked a subtly different
question (unless I'm mistaken).
allandt asked about implicit vs explicit getters setters.

Darron talks about using public variables vs implicit no brain getters
setters.

First time I read that article I thought he was talking about implicit vs
explicit, to which my conclusion was: this article sucks. Rereading it and
seeing its about public variables vs implicit, it's a nice read ;). But
another discussion:).

greetz
JC

On Wed, Dec 10, 2008 at 3:42 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 I tend to send this link on whenever this debate comes up, good article on
 public vars vs. getters and setters from a well respected Actionscript
 coder.

 http://www.darronschall.com/weblog/2005/03/no-brain-getter-and-setters.cfm

 And I also agree with Steve, Ian, the others, I used to be against public
 vars, but now I see when they don't need to have a brain i.e logic is run
 when they are called, and it's ok to allow them as a pair (i.e. both get and
 set), then there is no reason to not use public vars since from an interface
 perspective, they are exactly the same.  And if you ever need the brain
 inserted into getting or setting, it's extremely simple to add them
 afterwards.  Just writing out get and set for everything just bloats your
 code.  There is a place for both.  I code public vars all the time now,
 probably more than get/set pairs.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Developer Community
 Interested in innovative ideas in Learning?  Check out the Innovative
 Learning Blog and subscribe.



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

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


Re: [Flashcoders] flash player detection

2008-12-10 Thread John R. Sweeney Jr
I wondered the same thing :)

John



on 12/10/08 8:47 AM, Sidney de Koning at [EMAIL PROTECTED] wrote:

 Is this a question or an announcement?
 
 Sid


===
John R. Sweeney Jr.([EMAIL PROTECTED])
Interactive Multimedia Developer/
Digital Media Specialist

OnDemand - Interactive, Inc.
847.651.4469 (cell)  847.310.5959 (office/fax)
=== 


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


RE: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Merrill, Jason
 yep that was the article, but the original poster asked a subtly different
question (unless I'm mistaken).
allandt asked about implicit vs explicit getters setters.
 Rereading it and
seeing its about public variables vs implicit, it's a nice read ;). But
another discussion:).

Uh, I guess you didn't notice, I was not responding to the original poster - we 
have deviated from that.  i.e. Ian's comment,  so why not use a public? If 
they do matter, use getters/setters.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.




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


Re: [Flashcoders] flash player detection

2008-12-10 Thread Paul Andrews
- Original Message - 
From: Sidney de Koning [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 3:06 PM
Subject: Re: [Flashcoders] flash player detection



Oke :)
If you need documentation make FP 10 work with detection by swfobject, 
then this is good read:

http://onflash.org/ted/2008/10/flash-player-10-update-your-detection.php

Good luck paul,


Thanks Sid - I'd taken a look but was trying to be lazy. I'm already using 
swfobject. It's the fact that copying the working html file into the same 
directory fails while the original carries on working happily.


Paul


Greets,  Sid

On Dec 10, 2008, at 3:59 PM, Paul Andrews wrote:

- Original Message - From: Sidney de Koning 
[EMAIL PROTECTED]


To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 2:47 PM
Subject: Re: [Flashcoders] flash player detection



Is this a question or an announcement?


LOL, both. I'm wondering why the flash player detection is baulking  if I 
just copy the html wrapper (content untouched), but working  fine in the 
original html file.


Paul


Sid

On Dec 10, 2008, at 3:31 PM, Paul Andrews wrote:

I have a client with a flash site  - targets FP 8, and works fine.  I 
have FP10 installed.
If I make a copy of the html wrapper and then try and access the   site 
using the copy, the detection of the player fails.


The html uses swfobject for player detection.

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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Hans Wichman
hmmm no guess I didn't, been pixelstaring too long already today;)

On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

  yep that was the article, but the original poster asked a subtly
 different
 question (unless I'm mistaken).
 allandt asked about implicit vs explicit getters setters.
  Rereading it and
 seeing its about public variables vs implicit, it's a nice read ;). But
 another discussion:).

 Uh, I guess you didn't notice, I was not responding to the original poster
 - we have deviated from that.  i.e. Ian's comment,  so why not use a
 public? If they do matter, use getters/setters.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Developer Community
 Interested in innovative ideas in Learning?  Check out the Innovative
 Learning Blog and subscribe.




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

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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Ian Thomas
I apologise for being deviant.

Oh, hang on...

:-P

Ian

On Wed, Dec 10, 2008 at 3:40 PM, Hans Wichman
[EMAIL PROTECTED] wrote:
 hmmm no guess I didn't, been pixelstaring too long already today;)

 On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason 
 [EMAIL PROTECTED] wrote:

  yep that was the article, but the original poster asked a subtly
 different
 question (unless I'm mistaken).
 allandt asked about implicit vs explicit getters setters.
  Rereading it and
 seeing its about public variables vs implicit, it's a nice read ;). But
 another discussion:).

 Uh, I guess you didn't notice, I was not responding to the original poster
 - we have deviated from that.  i.e. Ian's comment,  so why not use a
 public? If they do matter, use getters/setters.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Developer Community
 Interested in innovative ideas in Learning?  Check out the Innovative
 Learning Blog and subscribe.




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

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


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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Weyert de Boer

Oh, I just use GIT works really nice. Also see: http://gitcasts.com/

Hi list,

I was wondering how you handle your assets in version control.

I usually follow a standard project setup something like:
trunk
branches
tags

The trunk contains for example sources, deploy, deploy/assets

Now especially the assets folder tends to get very large.
Each time I tag the trunk, the size multiplies.

I was wondering how others are handling this, and looking for a better way
to handle the assets.
Not sure if there is a quick solution to this though:)

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


  


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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Ian Thomas
Don't know how you've got your server setup, or which version control
system you are using...

We are using SVN. If you create a tag, it just creates an alias to the
files, not a true copy; so the size in the repository doesn't go up by
a huge amount.

Are you keeping a local copy of all your tagged code or something?

Ian

On Wed, Dec 10, 2008 at 2:36 PM, Hans Wichman
[EMAIL PROTECTED] wrote:
 Hi list,

 I was wondering how you handle your assets in version control.

 I usually follow a standard project setup something like:
 trunk
 branches
 tags

 The trunk contains for example sources, deploy, deploy/assets

 Now especially the assets folder tends to get very large.
 Each time I tag the trunk, the size multiplies.

 I was wondering how others are handling this, and looking for a better way
 to handle the assets.
 Not sure if there is a quick solution to this though:)

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


[Flashcoders] Web cam recognition

2008-12-10 Thread Juan Anzaldo
Hi! , do you know some good tutoriasl about webcam recognition?

tnx!

 Ing. Juan Anzaldo
Chihuahua, Chihuahua
Tel Cel.614 427-6523
Nextel.  72*8*29809
Blog : http://janzaldo.wordpress.com


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


Re: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread allandt bik-elliott (thefieldcomic.com)
good roundup - thanks ^^

On Wed, Dec 10, 2008 at 5:31 PM, Joel Stransky [EMAIL PROTECTED]wrote:

 So lets see if I can sum up the consensus here. There are four techniques
 for accessors and mutators listed (imho) in order of suggested use.


   1. *public vars
   *
  - probably the best place to start
  - easily changed to implicit by changing to private with underscore. *
  *
   2. *brainless implicit
   *
  - In case you want a read only property. (get but not set)*
  *
   3. *implicit with brain*
  - when complex logic is needed for the return such as get date
  returning month + / + day + / + year.
  - to prevent invalid data
  4. *explicit for lookup (myObject.addChildAt())
   *
  - when multiple parameters are needed
  - when a return value may not be needed

 There's probably better points for #4 but I can't think of them as it's
 basically an argument for just writing a public method.

 On Wed, Dec 10, 2008 at 11:18 AM, Ian Thomas [EMAIL PROTECTED] wrote:

  I apologise for being deviant.
 
  Oh, hang on...
 
  :-P
 
  Ian
 
  On Wed, Dec 10, 2008 at 3:40 PM, Hans Wichman
  [EMAIL PROTECTED] wrote:
   hmmm no guess I didn't, been pixelstaring too long already today;)
  
   On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason 
   [EMAIL PROTECTED] wrote:
  
yep that was the article, but the original poster asked a subtly
   different
   question (unless I'm mistaken).
   allandt asked about implicit vs explicit getters setters.
Rereading it and
   seeing its about public variables vs implicit, it's a nice read ;).
 But
   another discussion:).
  
   Uh, I guess you didn't notice, I was not responding to the original
  poster
   - we have deviated from that.  i.e. Ian's comment,  so why not use a
   public? If they do matter, use getters/setters.
  
  
   Jason Merrill
   Bank of America Instructional Technology  Media   ·   GCIB 
 Staff
   Support LLD
  
   Interested in Flash Platform technologies?  Join the Bank of America
  Flash
   Platform Developer Community
   Interested in innovative ideas in Learning?  Check out the Innovative
   Learning Blog and subscribe.
  
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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

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


[Flashcoders] effects theory? keeping processes low...

2008-12-10 Thread Corban Baxter
Hey guys I am working on a fullscreen flash site. I am hoping to bring
down the CPU cycles. Right now on the PC I'm using to test it on it
runs high like 90%. I was hoping there might be a way to bring down
the processor. But I have tried about everything. I'm not sure what I
could do to get it much lower. I'm sure there are a few pros out there
that would have a few ideas. Here is the page...
http://projectx4.com/site_test/. From all my tests it just seems like
moving that many large objects on the screen is just going to bring
the processor to its knees no matter what. Would any one have any
ideas how to help this at all?

Would doing some sort of bitmap object hack work either? Thanks for
the help in advance!

And Here is some code I have written to run the animation...

import gs.TweenLite;
import gs.easing.*;

var shell:MovieClip = this;

var maxOrbs:Number = 10;
var numOrbs:Number;

function animateOrb(mc:MovieClip):void
{
mc.orbTween = TweenLite.to(mc, 1, { alpha: 1 });
mc.orbTween = TweenLite.to(mc, mc.ranTime, { x: mc.moveToX,
ease:Linear.easeNone, overwrite: false });
mc.orbTween = TweenLite.to(mc, 1, {delay: mc.ranTime-1, alpha: 0,
onComplete: removeOrb, onCompleteScope: shell, onCompleteParams: [mc],
overwrite: false});

}

function createOrbs():void
{   

numOrbs = 0; //reset count

for(var i:int=0; imaxOrbs; i++){

createNewOrb(numOrbs);
numOrbs++;

}   

}

function removeOrb(orb:MovieClip):void
{
var num:Number = orb.num;
motionBlurHldr.removeChild(orb);
numOrbs--;  
var oldNum:Number = orb.num;

orb.orbTween = null;
delete orb.orbTween;

orb = null;
shell[orb + num] = null;
delete(shell[orb + num]);
delete(orb);

//trace(orb);

createNewOrb(oldNum); //replace the orb that was just removed with a 
new one
}


function createNewOrb(num:Number):void
{

shell[orb + num] = new ch_orb();
var orb:MovieClip = shell[orb + num];

//setup random vars
var ranScale:int = Math.round(Math.random() * (4 - 2)) + 2;
var ranX:int = Math.round(Math.random() * (sWidth + 250) + 50);
//sWidth is really stage.stageWidth
var ranY:int = Math.round(Math.random() * (sHeight + 250) + 50);
//sWidth is really stage.stageHeight
var moveToX:int = Math.round(Math.random() * (290 - 90)) + 90;
var ranTime:int = Math.round(Math.random() * (6 - 3)) + 3;;

orb.moveToX = ranX - moveToX;
orb.ranTime = ranTime;

//setup properties of the orb   
orb.scaleX = ranScale;
orb.scaleY = ranScale;
orb.x = ranX;
orb.y = ranY;
orb.alpha = 0;
orb.num = num;
orb.orbTween;
orb.name = orb + String(num);

var newColorTransform:ColorTransform = orb.transform.colorTransform;
newColorTransform.color = colorTones[Math.round(Math.random() * 5 )];
orb.transform.colorTransform = newColorTransform;

animateOrb(orb);

motionBlurHldr.addChild(orb);

}

createOrbs();


-- 
Corban Baxter
http://www.projectx4.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problem with Forward and Rewind Buttons in FLVPlayback component

2008-12-10 Thread Andrew Murphy
Hello.
 
I'm building a simple video player in Flash CS3 using the FLVPlayback
component and the SkinUnderAllNoFullNoCaption skin.  I can't seem to get the
Forward and Rewind buttons to work.
 
I've created an .flv, using the Flash Video Encoder, which includes a cue
point every 10 seconds, but when I click the Forward and Rewind buttons it
only skips to the very beginning or end of the flv.
 
I've checked the FLVPlayback component's metadata and it does indeed have
the cue points once the video has loaded.
 


Andrew Murphy
Interactive Media Specialist
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

Delvinia
214 King Street West, Suite 214 
Toronto Canada M5H 3S6

P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com

CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential information. If
you are not the intended recipient or received this communication by error,
please notify the sender and delete the message without copying or
disclosing it.

AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
détruire le contenu sans le communiquer a d'autres ou le reproduire.

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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi,

yep using subversion.
I usually create the tag in my workingcopy, but on the server would be fine
as well.

We have one system though with some 500 small projects, all in a single
repository, which are tagged before they are released.
But the structure for that repository is like:
project1\tags
project1\trunk
project2\tags
project2\trunk

Some contentdevelopers have to work on a number of those small projects, so
they just check out the root of the repository :).
Would be nice if you could say something like get this directory and all
subdirectories but ignore the tags or something like that.

Another issue though is that binary assets often completely change after
updating (eg an flv thats rerendered), so the whole file is submitted to svn
again (since about every byte differs). Not sure what I'm looking for here,
something like being able to put a file in a repository, without tracking
it's history I guess (since it's content are derived from other material
which is leading).

regards,
JC

On Wed, Dec 10, 2008 at 5:59 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 Don't know how you've got your server setup, or which version control
 system you are using...

 We are using SVN. If you create a tag, it just creates an alias to the
 files, not a true copy; so the size in the repository doesn't go up by
 a huge amount.

 Are you keeping a local copy of all your tagged code or something?

 Ian

 On Wed, Dec 10, 2008 at 2:36 PM, Hans Wichman
 [EMAIL PROTECTED] wrote:
  Hi list,
 
  I was wondering how you handle your assets in version control.
 
  I usually follow a standard project setup something like:
  trunk
  branches
  tags
 
  The trunk contains for example sources, deploy, deploy/assets
 
  Now especially the assets folder tends to get very large.
  Each time I tag the trunk, the size multiplies.
 
  I was wondering how others are handling this, and looking for a better
 way
  to handle the assets.
  Not sure if there is a quick solution to this though:)
 
  regards,
  JC
  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread David Benman
Smaller projects we've done what you have. My understanding of SVN  
theory would indicate that making a tag shouldn't increase the size  
of your repository because a tag is just pointers to a version of a  
file, the file is not duplicated.


Adding or changing assets does of course increase the size of the  
repository because they are added as binary files and not differenced  
like text (code) files.


For bigger projects, you might be better off going with a whole  
separate asset management system. This keeps your code repository  
small, easy to backup, etc. and allows you to use a better tool for  
asset management.


I also add a resources folder if necessary. This contains anything  
else such as fonts that you might need to create a build with the  
theory you can download everything from the trunk with maybe only  
adding assets to create a working build on any computer.


On Dec 10, 2008, at 9:36 AM, Hans Wichman wrote:


Hi list,

I was wondering how you handle your assets in version control.

I usually follow a standard project setup something like:
trunk
branches
tags

The trunk contains for example sources, deploy, deploy/assets

Now especially the assets folder tends to get very large.
Each time I tag the trunk, the size multiplies.

I was wondering how others are handling this, and looking for a  
better way

to handle the assets.
Not sure if there is a quick solution to this though:)

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


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


RE: [Flashcoders] use get / set functions or make your own

2008-12-10 Thread Patrick Matte | BLITZ
I missed the first part of this thread but I'd like to add that when you create 
an interface for a class, all your public properties should be getters and 
setters.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of allandt 
bik-elliott (thefieldcomic.com)
Sent: Wednesday, December 10, 2008 10:33 AM
To: Flash Coders List
Subject: Re: [Flashcoders] use get / set functions or make your own

good roundup - thanks ^^

On Wed, Dec 10, 2008 at 5:31 PM, Joel Stransky [EMAIL PROTECTED]wrote:

 So lets see if I can sum up the consensus here. There are four techniques
 for accessors and mutators listed (imho) in order of suggested use.


   1. *public vars
   *
  - probably the best place to start
  - easily changed to implicit by changing to private with underscore. *
  *
   2. *brainless implicit
   *
  - In case you want a read only property. (get but not set)*
  *
   3. *implicit with brain*
  - when complex logic is needed for the return such as get date
  returning month + / + day + / + year.
  - to prevent invalid data
  4. *explicit for lookup (myObject.addChildAt())
   *
  - when multiple parameters are needed
  - when a return value may not be needed

 There's probably better points for #4 but I can't think of them as it's
 basically an argument for just writing a public method.

 On Wed, Dec 10, 2008 at 11:18 AM, Ian Thomas [EMAIL PROTECTED] wrote:

  I apologise for being deviant.
 
  Oh, hang on...
 
  :-P
 
  Ian
 
  On Wed, Dec 10, 2008 at 3:40 PM, Hans Wichman
  [EMAIL PROTECTED] wrote:
   hmmm no guess I didn't, been pixelstaring too long already today;)
  
   On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason 
   [EMAIL PROTECTED] wrote:
  
yep that was the article, but the original poster asked a subtly
   different
   question (unless I'm mistaken).
   allandt asked about implicit vs explicit getters setters.
Rereading it and
   seeing its about public variables vs implicit, it's a nice read ;).
 But
   another discussion:).
  
   Uh, I guess you didn't notice, I was not responding to the original
  poster
   - we have deviated from that.  i.e. Ian's comment,  so why not use a
   public? If they do matter, use getters/setters.
  
  
   Jason Merrill
   Bank of America Instructional Technology  Media   *   GCIB 
 Staff
   Support LLD
  
   Interested in Flash Platform technologies?  Join the Bank of America
  Flash
   Platform Developer Community
   Interested in innovative ideas in Learning?  Check out the Innovative
   Learning Blog and subscribe.
  
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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

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

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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Glen Pike

Hi,

   Is it your checked out repository which increases in size when you 
tag stuff, or is it your actual repo' on the server?


   Like the guy said before, a tag is just a snapshot of a revision - 
it should not exist in full unless you get it out of the repository - 
but I may be wrong...
  
   Also, you can ignore directories and files from the versioning 
http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.ignore.html


   Using TortoiseSVN, you can right click, look at the properties for 
the file / folder and add a New one - ignore is in the drop down 
list - this can be a bit fiddly for folders - I think I had to do this 
with a freshly checked out repo' before it stopped moaning at me.
  
   Ignoring does not solve your filtering out tags problem - it looks 
like people asked for this a while ago, but it has not been implemented.


   
http://www.google.co.uk/search?hl=enq=svn+checkout+filteringbtnG=Searchmeta= 
http://www.google.co.uk/search?hl=enq=svn+checkout+filteringbtnG=Searchmeta=


   You can checkout various parts of a repository into the same 
directory, but I understand that this could be a pain if you have to 
root around and find the place to start.
  
   HTH


   Glen

Hans Wichman wrote:

Hi,

yep using subversion.
I usually create the tag in my workingcopy, but on the server would be fine
as well.

We have one system though with some 500 small projects, all in a single
repository, which are tagged before they are released.
But the structure for that repository is like:
project1\tags
project1\trunk
project2\tags
project2\trunk

Some contentdevelopers have to work on a number of those small projects, so
they just check out the root of the repository :).
Would be nice if you could say something like get this directory and all
subdirectories but ignore the tags or something like that.

Another issue though is that binary assets often completely change after
updating (eg an flv thats rerendered), so the whole file is submitted to svn
again (since about every byte differs). Not sure what I'm looking for here,
something like being able to put a file in a repository, without tracking
it's history I guess (since it's content are derived from other material
which is leading).

regards,
JC

On Wed, Dec 10, 2008 at 5:59 PM, Ian Thomas [EMAIL PROTECTED] wrote:

  

Don't know how you've got your server setup, or which version control
system you are using...

We are using SVN. If you create a tag, it just creates an alias to the
files, not a true copy; so the size in the repository doesn't go up by
a huge amount.

Are you keeping a local copy of all your tagged code or something?

Ian

On Wed, Dec 10, 2008 at 2:36 PM, Hans Wichman
[EMAIL PROTECTED] wrote:


Hi list,

I was wondering how you handle your assets in version control.

I usually follow a standard project setup something like:
trunk
branches
tags

The trunk contains for example sources, deploy, deploy/assets

Now especially the assets folder tends to get very large.
Each time I tag the trunk, the size multiplies.

I was wondering how others are handling this, and looking for a better
  

way


to handle the assets.
Not sure if there is a quick solution to this though:)

regards,
JC
  

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



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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] AS2 cross-domain parent-child swf scripting

2008-12-10 Thread Ricky Blaha
*Background:*
SWF #1 is published for Flash 8 / AS2 on domain name #1 and loads in SWF #2
(same publish settings) from domain #2. Both SWFs are created using Flash
CS4 (I need to stick with these publish settings for this project) and I
have tested this using Flash Player 9 and 10.

SWF #1 needs to load SWF #2 as a child movieclip, then at any point after
load, SWF #1 should be able to read variables from SWF #2. (Eventually it
will need to work both ways.)

I ensured that I can at least do a simple cross-domain data load using
LoadVars in SWF #1 and a cross domain policy file on domain #2 - that works
perfectly.

*Problem:
*SWF #1 loads SWF #2 no problem, but SWF #1 cannot read any variables from
SWF #2 long after loading has completed -- every variable is always
undefined. But when testing within the Flash IDE it works fine. Sounds easy
enough as these posts describe the simple solution to this security
restriction:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1083.html
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1082.html#wp238823

But whether SWF #2 contains System.security.allowDomain(*), or
System.security.allowDomain(domain #1 here), or
System.security.allowDomain(_parent._url), or even if I attempt to set up a
LocalConnection in SWF #2 whose allowDomain handler always returns
true.none of these work.


I could post code samples but they no different than the examples in those
two links. Can anyone else get this simple setup to work correctly?

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


RE: [Flashcoders] Problem with Forward and Rewind Buttons inFLVPlayback component

2008-12-10 Thread Andrew Murphy
I figured it out:  Need to use Navigation cue points rather than Event
ones.


Andrew Murphy
Interactive Media Specialist
[EMAIL PROTECTED]

Delvinia
214 King Street West, Suite 214 
Toronto Canada M5H 3S6

P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com

CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential information. If
you are not the intended recipient or received this communication by error,
please notify the sender and delete the message without copying or
disclosing it.

AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
détruire le contenu sans le communiquer a d'autres ou le reproduire.

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Andrew Murphy
 Sent: Wednesday, December 10, 2008 2:08 PM
 To: 'Flash Coders List'
 Subject: [Flashcoders] Problem with Forward and Rewind 
 Buttons inFLVPlayback component
 
 Hello.
  
 I'm building a simple video player in Flash CS3 using the 
 FLVPlayback component and the SkinUnderAllNoFullNoCaption 
 skin.  I can't seem to get the Forward and Rewind buttons to work.
  
 I've created an .flv, using the Flash Video Encoder, which 
 includes a cue point every 10 seconds, but when I click the 
 Forward and Rewind buttons it only skips to the very 
 beginning or end of the flv.
  
 I've checked the FLVPlayback component's metadata and it does 
 indeed have the cue points once the video has loaded.
  
 
 
 Andrew Murphy
 Interactive Media Specialist
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 
 Delvinia
 214 King Street West, Suite 214
 Toronto Canada M5H 3S6
 
 P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
 
 CONFIDENTIALITY NOTICE
 This email message may contain privileged or confidential 
 information. If you are not the intended recipient or 
 received this communication by error, please notify the 
 sender and delete the message without copying or disclosing it.
 
 AVIS DE CONFIDENTIALITÉ
 Ce message peut contenir de l'information légalement 
 privilégiée ou confidentielle. Si vous n'êtes pas le 
 destinataire ou croyez avoir reçu par erreur ce message, nous 
 vous saurions gré d'en aviser l'émetteur et d'en détruire le 
 contenu sans le communiquer a d'autres ou le reproduire.
 
  
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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


[Flashcoders] Simple ActionScript Project OOP Question

2008-12-10 Thread e319
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have a package that I know works. It displays an Audio Player on
the stage. I moved it from src/ to a folder for packages. The
project builds no sweat. However, I do not see the AudioPlayer on
the stage. The package is AudioBuilder. Here is my AS for my
Actionscript Project. Any idea why I do not see my AudioPlayer?


package {

// Flash Packages
import flash.display.Sprite;
import flash.events.*;
import flash.display.StageScaleMode;

// My Packages
import com.Audio.AudioPlayer;

// Setup the SWF Properties
[SWF(backgroundColor=#FF, frameRate=30, width=1000,
height=600, quality=HIGH)]

public class Website extends Sprite {

public function Website():void {
stage.scaleMode = StageScaleMode.NO_SCALE;
var _container:Sprite = new Sprite();
var _MusicPlayer:AudioPlayer = new AudioPlayer();
stage.addChild(_MusicPlayer);
}
}
}
-BEGIN PGP SIGNATURE-
Charset: UTF8
Version: Hush 3.0
Note: This signature can be verified at https://www.hushtools.com/verify

wpwEAQMCAAYFAklAJxkACgkQJz1LFzHW7HpRCQP+OqxWLDrJ3OBDVm/nfuUexyHpoCN3
xNGytacO4NAjtycIhjOSXDQTMIG1Huak4Ye10MSLyyJlhbC4oRos8NmGfcaXHZ+bjkmq
1egeHEE9WSXT3VJLzb4umK9helGnRSTRSNA6zNFGFwIr2doI6iT6P9QKMTlCtTskX//e
FEWZfS4=
=BOSf
-END PGP SIGNATURE-

--
Are you a natural healer? Refine your skills at a Massage Therapy School.
 
http://tagline.hushmail.com/fc/PnY6qxsbdbPOZlDS30YvRgc8GfTxoU9Etj5SAYR8nGU6U26brfkNB/

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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Ian Thomas
Hi Hans,

Sounds like your problem is really that you're pulling all your tags
from the repository to your local machines (in the repository, they're
just links - on your local machine, they are actual copies). Maybe you
need to reorganise a bit, or make sure your developers only pull out
trunk?

We have something more like:

trunk/
   project1/
   project2/
   shared-code/
   build-utils/
tags/
   project-1-v1-0/
   project1/
   project2/
   shared-code/
   build-utils/
   project-2-v1-0/
   project1/
   project2/
   shared-code/
   build-utils/

which isn't ideal (see the unecessary inclusion of project2 inside
project1's tag) but it doesn't cost much in the way of extra space on
the server (since all tags are just logical links, not physical
copies) and means that when we extract project1 at v1-0 we can roll
back our shared code to exactly the right point too. It also means our
build utils are the right versions to recreate that project at v1-0.

Hope that's helpful!

Ian


On Wed, Dec 10, 2008 at 7:21 PM, Hans Wichman
[EMAIL PROTECTED] wrote:
 Hi,

 yep using subversion.
 I usually create the tag in my workingcopy, but on the server would be fine
 as well.

 We have one system though with some 500 small projects, all in a single
 repository, which are tagged before they are released.
 But the structure for that repository is like:
 project1\tags
 project1\trunk
 project2\tags
 project2\trunk

 Some contentdevelopers have to work on a number of those small projects, so
 they just check out the root of the repository :).
 Would be nice if you could say something like get this directory and all
 subdirectories but ignore the tags or something like that.

 Another issue though is that binary assets often completely change after
 updating (eg an flv thats rerendered), so the whole file is submitted to svn
 again (since about every byte differs). Not sure what I'm looking for here,
 something like being able to put a file in a repository, without tracking
 it's history I guess (since it's content are derived from other material
 which is leading).

 regards,
 JC

 On Wed, Dec 10, 2008 at 5:59 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 Don't know how you've got your server setup, or which version control
 system you are using...

 We are using SVN. If you create a tag, it just creates an alias to the
 files, not a true copy; so the size in the repository doesn't go up by
 a huge amount.

 Are you keeping a local copy of all your tagged code or something?

 Ian

 On Wed, Dec 10, 2008 at 2:36 PM, Hans Wichman
 [EMAIL PROTECTED] wrote:
  Hi list,
 
  I was wondering how you handle your assets in version control.
 
  I usually follow a standard project setup something like:
  trunk
  branches
  tags
 
  The trunk contains for example sources, deploy, deploy/assets
 
  Now especially the assets folder tends to get very large.
  Each time I tag the trunk, the size multiplies.
 
  I was wondering how others are handling this, and looking for a better
 way
  to handle the assets.
  Not sure if there is a quick solution to this though:)
 
  regards,
  JC
  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi,
no only the checkout. At least thats how it should be, or its time to kill
the sysadmin (for a variety of reasons;)).

Maybe I'll wait a bit more for the filter option.

Thanks to all who responded!
Hans

On Wed, Dec 10, 2008 at 8:40 PM, Glen Pike [EMAIL PROTECTED]wrote:

 Hi,

   Is it your checked out repository which increases in size when you tag
 stuff, or is it your actual repo' on the server?

   Like the guy said before, a tag is just a snapshot of a revision - it
 should not exist in full unless you get it out of the repository - but I may
 be wrong...
 Also, you can ignore directories and files from the versioning
 http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.ignore.html

   Using TortoiseSVN, you can right click, look at the properties for the
 file / folder and add a New one - ignore is in the drop down list - this
 can be a bit fiddly for folders - I think I had to do this with a freshly
 checked out repo' before it stopped moaning at me.
 Ignoring does not solve your filtering out tags problem - it looks
 like people asked for this a while ago, but it has not been implemented.


 http://www.google.co.uk/search?hl=enq=svn+checkout+filteringbtnG=Searchmeta=
 http://www.google.co.uk/search?hl=enq=svn+checkout+filteringbtnG=Searchmeta=
 

   You can checkout various parts of a repository into the same directory,
 but I understand that this could be a pain if you have to root around and
 find the place to start.
 HTH

   Glen


 Hans Wichman wrote:

 Hi,

 yep using subversion.
 I usually create the tag in my workingcopy, but on the server would be
 fine
 as well.

 We have one system though with some 500 small projects, all in a single
 repository, which are tagged before they are released.
 But the structure for that repository is like:
 project1\tags
 project1\trunk
 project2\tags
 project2\trunk

 Some contentdevelopers have to work on a number of those small projects,
 so
 they just check out the root of the repository :).
 Would be nice if you could say something like get this directory and all
 subdirectories but ignore the tags or something like that.

 Another issue though is that binary assets often completely change after
 updating (eg an flv thats rerendered), so the whole file is submitted to
 svn
 again (since about every byte differs). Not sure what I'm looking for
 here,
 something like being able to put a file in a repository, without tracking
 it's history I guess (since it's content are derived from other material
 which is leading).

 regards,
 JC

 On Wed, Dec 10, 2008 at 5:59 PM, Ian Thomas [EMAIL PROTECTED] wrote:



 Don't know how you've got your server setup, or which version control
 system you are using...

 We are using SVN. If you create a tag, it just creates an alias to the
 files, not a true copy; so the size in the repository doesn't go up by
 a huge amount.

 Are you keeping a local copy of all your tagged code or something?

 Ian

 On Wed, Dec 10, 2008 at 2:36 PM, Hans Wichman
 [EMAIL PROTECTED] wrote:


 Hi list,

 I was wondering how you handle your assets in version control.

 I usually follow a standard project setup something like:
 trunk
 branches
 tags

 The trunk contains for example sources, deploy, deploy/assets

 Now especially the assets folder tends to get very large.
 Each time I tag the trunk, the size multiplies.

 I was wondering how others are handling this, and looking for a better


 way


 to handle the assets.
 Not sure if there is a quick solution to this though:)

 regards,
 JC


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



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





 --

 Glen Pike
 01326 218440
 www.glenpike.co.uk http://www.glenpike.co.uk


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

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


Re: [Flashcoders] Simple ActionScript Project OOP Question

2008-12-10 Thread Jordan L. Chilcott

Add the child to your Website sprite, rather than the stage.

jord

[EMAIL PROTECTED] wrote:

I have a package that I know works. It displays an Audio Player on
the stage. I moved it from src/ to a folder for packages. The
project builds no sweat. However, I do not see the AudioPlayer on
the stage. The package is AudioBuilder. Here is my AS for my
Actionscript Project. Any idea why I do not see my AudioPlayer?


package {

// Flash Packages
import flash.display.Sprite;
import flash.events.*;
import flash.display.StageScaleMode;

// My Packages
import com.Audio.AudioPlayer;

// Setup the SWF Properties
[SWF(backgroundColor=#FF, frameRate=30, width=1000,
height=600, quality=HIGH)]

public class Website extends Sprite {

public function Website():void {
stage.scaleMode = StageScaleMode.NO_SCALE;
var _container:Sprite = new Sprite();
var _MusicPlayer:AudioPlayer = new AudioPlayer();
stage.addChild(_MusicPlayer);
}
}
}

  

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


[Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Carl Welch

Hi again,

I am trying to call a function to a parent of a movieclip. I've tried  
these two items that I found but to no avail:


(this.parent.parent as MovieClip).callMedia(String(audio));

AND:

MovieClip(parent.parent).callMedia(String(audio));


Am I missing something? I'm finding that everything I took for granted  
in AS2 is now convoluted in AS3... I'm so frustrated.



--
Carl Welch
http://www.carlwelch.com
http://www.jointjam.com
[EMAIL PROTECTED]
805.403.4819




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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Hans Wichman
Hi Ian,

yes thanks thats helpful, but unfortunately especially in the way that there
is no secret cool option (like ctrl-shift-1:)), I'm overlooking.
I'm aware that SVN stores only links and that the size only becomes a
problem in the local checkout, fact is the original layout was like you
describe, but with 500 subprojects I kind of lost it ;).
Doesn't tagging take an awful lot of time this way?

Maybe your solution is a lot easier. The downside is like you say, if you
pass someone a link to version 1 of project 1 he gets the rest too. Must
sleep on this :)

Thanks for your time and ideas!
Hans
On Wed, Dec 10, 2008 at 9:54 PM, Ian Thomas [EMAIL PROTECTED] wrote:

 Hi Hans,

 Sounds like your problem is really that you're pulling all your tags
 from the repository to your local machines (in the repository, they're
 just links - on your local machine, they are actual copies). Maybe you
 need to reorganise a bit, or make sure your developers only pull out
 trunk?

 We have something more like:

 trunk/
   project1/
   project2/
   shared-code/
   build-utils/
 tags/
   project-1-v1-0/
   project1/
   project2/
   shared-code/
   build-utils/
   project-2-v1-0/
   project1/
   project2/
   shared-code/
   build-utils/

 which isn't ideal (see the unecessary inclusion of project2 inside
 project1's tag) but it doesn't cost much in the way of extra space on
 the server (since all tags are just logical links, not physical
 copies) and means that when we extract project1 at v1-0 we can roll
 back our shared code to exactly the right point too. It also means our
 build utils are the right versions to recreate that project at v1-0.

 Hope that's helpful!

 Ian


 On Wed, Dec 10, 2008 at 7:21 PM, Hans Wichman
  [EMAIL PROTECTED] wrote:
  Hi,
 
  yep using subversion.
  I usually create the tag in my workingcopy, but on the server would be
 fine
  as well.
 
  We have one system though with some 500 small projects, all in a single
  repository, which are tagged before they are released.
  But the structure for that repository is like:
  project1\tags
  project1\trunk
  project2\tags
  project2\trunk
 
  Some contentdevelopers have to work on a number of those small projects,
 so
  they just check out the root of the repository :).
  Would be nice if you could say something like get this directory and all
  subdirectories but ignore the tags or something like that.
 
  Another issue though is that binary assets often completely change after
  updating (eg an flv thats rerendered), so the whole file is submitted to
 svn
  again (since about every byte differs). Not sure what I'm looking for
 here,
  something like being able to put a file in a repository, without tracking
  it's history I guess (since it's content are derived from other material
  which is leading).
 
  regards,
  JC
 
  On Wed, Dec 10, 2008 at 5:59 PM, Ian Thomas [EMAIL PROTECTED] wrote:
 
  Don't know how you've got your server setup, or which version control
  system you are using...
 
  We are using SVN. If you create a tag, it just creates an alias to the
  files, not a true copy; so the size in the repository doesn't go up by
  a huge amount.
 
  Are you keeping a local copy of all your tagged code or something?
 
  Ian
 
  On Wed, Dec 10, 2008 at 2:36 PM, Hans Wichman
  [EMAIL PROTECTED] wrote:
   Hi list,
  
   I was wondering how you handle your assets in version control.
  
   I usually follow a standard project setup something like:
   trunk
   branches
   tags
  
   The trunk contains for example sources, deploy, deploy/assets
  
   Now especially the assets folder tends to get very large.
   Each time I tag the trunk, the size multiplies.
  
   I was wondering how others are handling this, and looking for a better
  way
   to handle the assets.
   Not sure if there is a quick solution to this though:)
  
   regards,
   JC
   ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread strk
On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote:

 Am I missing something? I'm finding that everything I took for granted  
 in AS2 is now convoluted in AS3... I'm so frustrated.

Don't use it !
Running after latest and greatest thing isn't necessarely
a good thing. Beside, no free flash player supports AS3
at the moment, so your choice will affect freedom of people
to use the content you make available.

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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Matt S.
A decent explanation of Parent and how to use it (if you must) in AS3:
http://joshblog.net/2007/07/12/disabling-actionscript-3-strict-mode-in-flash-cs3/

I'm not sure what Strk means about no free flash player supports
AS3, since the last time I checked the ADOBE Flash Player was free...

.m

On Wed, Dec 10, 2008 at 5:00 PM, strk [EMAIL PROTECTED] wrote:
 On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote:

 Am I missing something? I'm finding that everything I took for granted
 in AS2 is now convoluted in AS3... I'm so frustrated.

 Don't use it !
 Running after latest and greatest thing isn't necessarely
 a good thing. Beside, no free flash player supports AS3
 at the moment, so your choice will affect freedom of people
 to use the content you make available.

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

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


Re: [Flashcoders] asset versioncontrol

2008-12-10 Thread Ian Thomas
On Wed, Dec 10, 2008 at 9:22 PM, Hans Wichman
[EMAIL PROTECTED] wrote:
 Hi Ian,

 Doesn't tagging take an awful lot of time this way?

No, not really. We only tag on release of a new version (not every
build or anything), and the time taken is worth it.

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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Dave Watts
 I'm not sure what Strk means about no free flash player supports
 AS3, since the last time I checked the ADOBE Flash Player was free...

I would assume he means free software in the software libre sense:
http://en.wikipedia.org/wiki/Free_software

That said, I wouldn't take that as serious advice, because the vast
majority of people have Adobe Flash Player.

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

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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Glen Pike
Strk: Are you trolling or something, because you are seriously ill 
advised if you think that no-one is using a Flash Player that supports AS3.


Carl:

   I don't think that you can easily walk up and down the display list 
in AS3 like you could in AS2 - as I don't think MovieClip has a 
callMedia func, you can't cast something to a MovieClip then call the 
function.  You could try casting it as your class with the callMedia 
function:


   (this.parent.parent as MediaCaller).callMedia(...)

   I would have a look at this article, but you may be better off 
looking at dispatching events from your this and listening for them in 
parent.parent


   
http://joshblog.net/2007/07/12/disabling-actionscript-3-strict-mode-in-flash-cs3/


   HTH

   Glen


Don't use it !
Running after latest and greatest thing isn't necessarely
a good thing. Beside, no free flash player supports AS3
at the moment, so your choice will affect freedom of people
to use the content you make available.

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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Carl Welch

No free flash player supports AS3? Really? I'm not so sure about that.

plus this project calls for some flash 9 specific imtems such as  
computeSpectrum and mp4 playback...


There has to be a way to make a call to a MC's parent... isn't there?

On Dec 10, 2008, at 2:00 PM, strk wrote:


On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote:

Am I missing something? I'm finding that everything I took for  
granted

in AS2 is now convoluted in AS3... I'm so frustrated.


Don't use it !
Running after latest and greatest thing isn't necessarely
a good thing. Beside, no free flash player supports AS3
at the moment, so your choice will affect freedom of people
to use the content you make available.

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


--
Carl Welch
http://www.carlwelch.com
http://www.jointjam.com
[EMAIL PROTECTED]
805.403.4819




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


RE: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Barry Hannah
...no free flash player... I don't recall ever having to pay for the
Flash player.
I can't believe I'm asking this, but what _are_ you on about?

*opens can of worms, stands back*



 Don't use it !
 Running after latest and greatest thing isn't necessarely
 a good thing. Beside, no free flash player supports AS3
 at the moment, so your choice will affect freedom of people
 to use the content you make available.


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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Muzak

Latest and greatest? AS3 has been around since 2006.

Whatever planet you've been on, welcome back to earth.. :-)

- Original Message - 
From: strk [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 11:00 PM
Subject: Re: [Flashcoders] What heck is up with parent in actionscript 3?



On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote:

Am I missing something? I'm finding that everything I took for granted  
in AS2 is now convoluted in AS3... I'm so frustrated.


Don't use it !
Running after latest and greatest thing isn't necessarely
a good thing. Beside, no free flash player supports AS3
at the moment, so your choice will affect freedom of people
to use the content you make available.

--strk;


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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Muzak

First you should probably ask yourself why you're using parent, let alone 
parent.parent.

Try tracing both parent and parent.parent, see if what comes up is what you're 
after.

regards,
Muzak

- Original Message - 
From: Carl Welch [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 10, 2008 10:49 PM
Subject: [Flashcoders] What heck is up with parent in actionscript 3?



Hi again,

I am trying to call a function to a parent of a movieclip. I've tried  
these two items that I found but to no avail:


(this.parent.parent as MovieClip).callMedia(String(audio));

AND:

MovieClip(parent.parent).callMedia(String(audio));


Am I missing something? I'm finding that everything I took for granted  
in AS2 is now convoluted in AS3... I'm so frustrated.



--


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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Carl Welch
thanks... I just tried this before seeing your reply... and it  
worked... YES!


MovieClip(parent).callMedia(String(audio));


On Dec 10, 2008, at 2:14 PM, Matt S. wrote:


A decent explanation of Parent and how to use it (if you must) in AS3:
http://joshblog.net/2007/07/12/disabling-actionscript-3-strict-mode-in-flash-cs3/

I'm not sure what Strk means about no free flash player supports
AS3, since the last time I checked the ADOBE Flash Player was free...

.m

On Wed, Dec 10, 2008 at 5:00 PM, strk [EMAIL PROTECTED] wrote:

On Wed, Dec 10, 2008 at 01:49:02PM -0800, Carl Welch wrote:

Am I missing something? I'm finding that everything I took for  
granted

in AS2 is now convoluted in AS3... I'm so frustrated.


Don't use it !
Running after latest and greatest thing isn't necessarely
a good thing. Beside, no free flash player supports AS3
at the moment, so your choice will affect freedom of people
to use the content you make available.

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


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


--
Carl Welch
http://www.carlwelch.com
http://www.jointjam.com
[EMAIL PROTECTED]
805.403.4819




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


RE: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Barry Hannah
Seriously, consider dispatching an event from the child, listened to by
the parent.


 There has to be a way to make a call to a MC's parent... isn't there?


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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Ashim D'Silva
I'd say, if the freedom is troubling you in general, disable strict mode.Not
a good solution if you want to do some real heavy stuff, but doesn't seem
the case.

2008/12/11 Dave Watts [EMAIL PROTECTED]

  I'm not sure what Strk means about no free flash player supports
  AS3, since the last time I checked the ADOBE Flash Player was free...

 I would assume he means free software in the software libre sense:
 http://en.wikipedia.org/wiki/Free_software

 That said, I wouldn't take that as serious advice, because the vast
 majority of people have Adobe Flash Player.

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

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




-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Embedding bitmap/pixel fonts with pure AS3

2008-12-10 Thread e319
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm using: http://pastebin.com/ded811b0 to embed my pixel font, but
no errors and not working, displays as an ugly little default font.
Any ideas? Purely AS3 please, no asset linking in flash please? :p

- -e
-BEGIN PGP SIGNATURE-
Charset: UTF8
Version: Hush 3.0
Note: This signature can be verified at https://www.hushtools.com/verify

wpwEAQMCAAYFAklAZkQACgkQJz1LFzHW7Hok5QP/S/O/a7Gootk/mzWssvOXanJeRmDA
1lgnvytjA2B2sThaFWe+eB7z+LTXhLzO7sTqLEUGRfxkKRxCmysS6pDbsrudgsiY/wv5
z/gARWKlHTR2WT1YQ1AB5Hfn3o3Z9ZZgzN1gRYCCu7iEPcBwRNTcRb68TRMJF2DyMfrX
go9dJf4=
=KCtY
-END PGP SIGNATURE-

--
Start a rewarding Medical Transcriptionist career. Click to find affordable and 
flexible programs. 
 
http://tagline.hushmail.com/fc/PnY6qxthN5Ots8FkC7r4DaavDyptQf0YLvzhvWezaFYyk9EIodogX/

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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Ian Thomas
Carl,
  .callMedia isn't a method of MovieClip.

  You need to cast it (using the 'as' operator) to whatever class you
are defining callMedia in. Possibly your document class? (Don't know
your setup.)

  (I'd also suggest you take a look at dispatching events rather than
directly referencing the parent as you're doing here - AS3 is very
event-based, and once you get into using events, the whole framework
will make a lot more sense...)

Ian

On Wed, Dec 10, 2008 at 9:49 PM, Carl Welch [EMAIL PROTECTED] wrote:
 Hi again,

 I am trying to call a function to a parent of a movieclip. I've tried these
 two items that I found but to no avail:

 (this.parent.parent as MovieClip).callMedia(String(audio));

 AND:

 MovieClip(parent.parent).callMedia(String(audio));


 Am I missing something? I'm finding that everything I took for granted in
 AS2 is now convoluted in AS3... I'm so frustrated.


 --
 Carl Welch
 http://www.carlwelch.com
 http://www.jointjam.com
 [EMAIL PROTECTED]
 805.403.4819




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

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


Re: [Flashcoders] What heck is up with parent in actionscript 3?

2008-12-10 Thread Latcho
If your class extends MovieClip, it has to be added to that parent by 
means of addChild and (child.)stage should be true

otherwise there isn't a parent-child relation.
Latcho

Carl Welch wrote:

Hi again,

I am trying to call a function to a parent of a movieclip. I've tried 
these two items that I found but to no avail:


(this.parent.parent as MovieClip).callMedia(String(audio));

AND:

MovieClip(parent.parent).callMedia(String(audio));


Am I missing something? I'm finding that everything I took for granted 
in AS2 is now convoluted in AS3... I'm so frustrated.





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