[Flashcoders] Class packaging swc

2006-10-10 Thread Jiri Heitlager
For a project, I made two movieclips that are both linked to an as class 
in the linkage Identifier box.
Now I want to protect my classes so I read an article that explains how 
to make a compiled clip, a class packager.
It all worked well, becuase I tested the .swc in new .fla. The classes 
are all know when the compiled clip is dragged onto the stage. But using 
it in my project file, I get a compiling error telling me the classes 
cannot be loaded. I tried placing the compiled clip on frame 1 and have 
the classes and set the export frame for classes at 2, with no luck.


Does somebody have an idea how to handle this problem?

Jiri

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ObjectCopy works in Flash/swf but in Zinc it dies?!?

2006-10-10 Thread grimmwerks

I can't figure this one out - the .swf works just fine (I figured out
the problem with the object not really part of a class; faked it out)
-- but it's now busting when playing in zinc, which I don't
understand...

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

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


RE: [Flashcoders] Simplified Chinese

2006-10-10 Thread Peter Brouwers
 
Hi all

I have successfully used trad.chinese in my translation of the
Daodejing..
I used xml for pinyin, thedutch and the chinese texts

For those interested, send me an email...

Groet,

 

Peer 

http://www.weiqi.nl

http://www.weiqi.nl/blog

http://www.schoolvoordetoekomst.nl

 

mobiel: 06 36 13 45 56
werk:073 62 00 274


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Alain Rousseau
Verzonden: dinsdag 10 oktober 2006 18:50
Aan: 'Flashcoders mailing list'
Onderwerp: RE: [Flashcoders] Simplified Chinese

 
Personnaly I havent tried putting the text in an external .as file, if
you can get the chinese characters in there maybe it'll work. On a
windows system you can use Arial Unicode MS, on a Mac here is a link
where you can see what fonts you'll need :
http://www.alanwood.net/unicode/fonts_macosx.html#simplified 

You do need to have the Chinese language installed and activated on your
system for this to work (Mac and Win). Otherwise you won't see the font.

HTH

A.


-Original Message-
From: Eric E. Dolecki [mailto:[EMAIL PROTECTED]
Sent: 10 octobre 2006 12:35
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Simplified Chinese

Is it possible to put the simplified chinese into an external .as file
with
UTF-8 encoding (say, setting string variables) and using that? And what
would a good unicode font for simplified chinese actually be? Hoping
that I don't need to change my OS settings to pull any of this off.

- e.


On Oct 10, 2006, at 12:14 PM, Alain Rousseau wrote:

> For me it works well if I don't try to use animations to display the 
> text and no embeded fonts.
> What you need is a unicode font selected in your TextField and a 
> unicode text data, wheter it is an xml file, a text file or a 
> database.
>
> Otherwise you'll need to go through hoops jumping and live with a huge

> filesize
>
> A.
>
> -Original Message-
> From: eric dolecki [mailto:[EMAIL PROTECTED]
> Sent: 10 octobre 2006 11:42
> To: Flashcoders mailing list
> Subject: [Flashcoders] Simplified Chinese
>
> I've been digging around the net and the archives and have only found 
> that its basically impossible to get Simplified Chinese to display 
> well in a SWF.
> Has anyone come up with a solution (that wasn't composed of hoop 
> jumping
> galore) to this problem yet?
>
> - e.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training http:// 
> www.figleaf.com http://training.figleaf.com
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:  
> 2006-10-10
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:  
> 2006-10-10
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:
2006-10-10
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:
2006-10-10
 

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

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


Disclaimer:
Het Koning Willem I College/School voor de Toekomst sluit elke 
aansprakelijkheid uit voor eventueel in of als bijlage bij deze e-mail 
voorkomende onjuiste, onvolledige of door virussen aangetaste teksten en 
documenten.

Koning Willem I College/School for the Future rejects any liability for 
improper, incomplete or delayed texts in or annexed to this email or for damage 
resulting from texts or documents in or annexed to this e-mail affected by 
viruses.

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

[Flashcoders] Global sound control ...

2006-10-10 Thread Stephen Ford
I have an interactive demo that consists of one main SWF file that loads in 
other SWF files depending on what the user clicks on in the main SWFs 
navigation.
 
Within this main SWF and within all the seperate SWFs are numerous movies each 
with their own timeline doing it's own thing.
 
In numerous place on timelines throughout this set of SWFs, sound effects have 
been hardcoded onto their respective timeline (i.e: not loaded dynamically 
using the sound object).
 
So is there any way to turn off sound globally regardless of where it's located 
on whatever timeline within whatever SWF. So I can just create an on/off button 
for the main SWF that will control sound globally ???
 
Thanks.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-10 Thread Zárate

Hi again,

"Browser differences are browser differences"

Well, I see your point here, but I think we're not talking about small
things like rendering the border 1px bigger. We're talking about a
huge amount of problems that just make the use of wmode impossible,
IMHO.

"The Player is the same across environments, but it's the environments
themselves which differ, and when we ask the browsers to do more, their
results vary more."

Ok, fair enough, it seems everything it's up to the browsers. However,
users, bosses and even developers don't care about that. What they see
is that the application is not working properly. What they see is that
Flash is doing "weird" things _again_. What they see is that they
cannot trust Flash.

If it's not up to Adobe fixing this, then I change my question to: Is
Adobe NOW actively talking with browser manufacturers to solve this?

If not (so for Adobe the behaviour of wmode is fine or not so
important), please remove it from the player. IT JUST DOES NOT WORK,
not even on Win/IE. It's _still_ causing a huge amount of problems to
a huge amount of people*.

If you're, then at least I'll try to keep my faith.

Thanks John for your time and efforts to clarify, once again, what's going on.

Cheers,

Juan

ps: please don't tell me things like "if you don't like Flash go and
do php" or "go to Slashdot to meet your geek friends".

* The other day in my office wmode was the answer to a design problem.
So when they came to me and say:

"Hey! I've fixed it, we're going to use wmode, look at Adobe's
website, we can do it, I thought you were the Flash guy, you should
know those things!"

I had to waste 1 hour telling them that using it will cause "problems".

"Which problems?", they asked.
"A few". I replied.
"Ok, which ones?".
"It depends, you can choose from this list, who knows what's going to
happen"...

On 10/10/06, John Dowdell <[EMAIL PROTECTED]> wrote:

Mick G wrote:
> Does anyone know if there is a way to embed flash transparent
> (wmode=transparent) on a layer above an embedded Windows Media Player
> active-x control?

Possibly, but I'd hesitate anyway. I think the Windows Media Player,
implemented as an ActiveX Control, also has support for rendering to the
browser's compositing buffer via WMODE requests, rather than blasting
directly to screen. Just as DHTML cannot layer above SWF unless the SWF
is routed to the browser's drawing buffer via WMODE, the WMP would need
to go into the browser's buffer to layer anything atop it.

But I'd hesitate to do so, though, because drawing video offscreen
before transferring it to the video display would give a performance
hit, and you'd also likely drop frames from timing differences too...
the video codec renders every X milliseconds, the browser refreshes its
display every Y milliseconds, and some info would be lost in the middle.
Steven Sacks has info on the scrolling issues too.

If you must use WMP (for rights-management, eg), then could you keep it
drawing directly to screen, and surround the WMP with with four framing
SWFs, intercommunicating through LocalConnection? This would be a little
more development work, but would make less work for the browser's
rendering pipeline. Possible...?



Zárate wrote:
 > You might want to think it twice before using wmode:
 > http://www.google.co.uk/search?q=wmode+problems&start=0&ie=utf-8&oe=utf-8
 > Anyone knows if Adobe is trying to fix this for the next release
 > of the player?

Browser differences are browser differences. When WMODE is changed, then
the Player changes the address in memory to which it sends its pixels.
Over the past eight years the Player has implemented WMODE requests,
we've seen different browsers print upside down, not pass screenreader
instructions, do funny things with keyboard entry, when the browser gets
in the middle of the rendering pipeline like this.

The Player is the same across environments, but it's the environments
themselves which differ, and when we ask the browsers to do more, their
results vary more.

More info's available with this search:
http://www.google.co.uk/search?q=wmode+problems+dowdell

jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by F

[Flashcoders] Logging Flash-Internal User Access?

2006-10-10 Thread Sascha
Hi,

My Client asked for a feature with that they can check how many users
accessed which sections in their Flash Movie so they can see how popular the
sections are. Their Flash is divided into 5 sub pages, all inside the same
SWF. I'm sure this is possible by utilizing PHP or similar server-side
language, I just haven't done such a thing yet and I'm on a tight deadline
with this job.
Could somebody lead me to any source on the web that does this task? A
PHP-Flash Example would be best!

Thanks a lot,
Sascha


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread JOR

Muzak wrote:

http://www.adobe.com/devnet/flash/articles/as_bestpractices.html



Cool find.  Thanks for the link
James
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] re: tweening distortions using BitmapData and transformMatrix

2006-10-10 Thread Matt Garland

A couple pointers:

--you don't need to continually reattach a BitmapData, changes you  
make directly to it are automatically rendered (it's not like  
modifying and reassigning a filter to a movieclip)


--however, at times, you might want to remove the BitmapData from the  
stage so that multiple changes applied to it aren't rendered blow-by- 
blow (double buffering, or you can "lock" a rendered BitmapData in AS3)


--the transform matrix is limited for your larger purposes: you can  
only scale and skew with the matrix, and tint and brighten/darken  
with ColorTransform


--you're mostly going to be incrementing a filter property and  
reassigning that filter to a movieclip (AS3: Bitmap) with a  
bitmapData in it


--FlashGuru, Grant Skinner and especially Quasimodo have .fla and .as  
examples available


--some useful correspondences: convolution filter-->sharpen, blur,  
find edges; displacement filter-->liquify, distort; colorMatrix  
filter-->contrast,brightness, tint, saturation;  
BitmapData.paletteMap-->levels; BitmapData.merge-->blend modes;  
channels-->BitmapData.copyChannel, BitmapData.copyPixels-->cut and  
paste, masking; floodFill-->bucket tool, BitmapData.threshold-->color  
range, BitmapData.noise-->noise, of course...


--filters don't actually change underlying BitmapData data, they are  
like "adjustment layers" in Photoshop...if you want successive (and  
irreversible, unless you leave bread crumbs of your own devising,  
like a "History" panel) changes, then use BitmapData.applyFilter


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

2006-10-10 Thread grimmwerks

I've done the dstObj[i] = copy( srcObj[i] );


Here's the weirdness: the test code:

tPage = new Object({banner : 0,templateType : "sub",dated : false,cHome :
true})
trace("trace 1: " + tPage);

tObj = new Object();
tObj.page = mx.utils.ObjectCopy.copy(tPage);
trace(" trace 2 : page: " + tObj.page);
for(i in tObj.page){trace("inside tObj.page[i]: " + i + " : " + tObj.page
[i])};



I get this:

trace 1: [object Object]
trace 2 : page: undefined
inside tObj.page[i]: cHome : true
inside tObj.page[i]: dated : false
inside tObj.page[i]: templateType : sub
inside tObj.page[i]: banner : 0


--

Now I ask you - how can tObj.page be UNDEFINED when it has variables like
tObj.page.cHome = true?

I've got an app that I've got these 'screen templates' that on the first
save, they work; but when someone re-opens and re-saves, it kills
everything. What gives?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Muzak

http://www.adobe.com/devnet/flash/articles/as_bestpractices.html

check the archives or search flashcoders through google
http://muzakdeezign.com/flashcoders/
http://muzakdeezign.com/flashcoders/?q=best%20practices
http://muzakdeezign.com/flashcoders/?q=AS2%20best%20practices
http://muzakdeezign.com/flashcoders/?q=OOP%20best%20practices

Muzak

- Original Message - 
From: "Jon Bennett" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, October 11, 2006 1:53 AM
Subject: Re: [Flashcoders] Moving to AS2, array always undefined


>> A bad practice most likely, but not technically wrong.  I do see it in
>> text books from time to time.  I was just mentioning it as a case where
>> "this" *would* be needed as opposed to speaking in absolutes.
>>
>> In practice, you're right and I try not to name any parameters the same
>> as a field name to avoid "this" confusion.  Don't tell anyone, but
>> sometimes I don't even use "this". :)
>
> ok - some interesting points here. could someone clarify for me
> please, whether I should be using this in my classes or not! It's
> really just a habit I've been in to do so.
>
> Also, what's the current naming convention? It used to be to add a
> _suffix to each item, to trigger the code hints (and help
> readability), but from the posts above, it looks like people are
> prefering to use a suffic preceeding, is it just personal preference
> or is there some best practice here.
>
> Thanks!
>
> jon
> ps: I'm enjoying getting my feet wet with AS2 atm :)
>
> -- 
>
>
> jon bennett


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q; tweening distortions using BitmapData and transformMatrix

2006-10-10 Thread bitstreams
Hi
Can anyone suggest the best approach for tweening image distortions using the 
transform Matrix?

I'd like to not only simulate a variety of 'photoshop-like' filter distortion 
effects but also add tweens to these distortions.

So I assume I need to first define start and end transform matrices,and how 
long I want the tween to take.
Then for each iteration of the tween cycle I need to render/attach the bitmap, 
add/increment a tween amount to the matrix, and repeat.
But not sure how to proceed

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Jon Bennett

A bad practice most likely, but not technically wrong.  I do see it in
text books from time to time.  I was just mentioning it as a case where
"this" *would* be needed as opposed to speaking in absolutes.

In practice, you're right and I try not to name any parameters the same
as a field name to avoid "this" confusion.  Don't tell anyone, but
sometimes I don't even use "this". :)


ok - some interesting points here. could someone clarify for me
please, whether I should be using this in my classes or not! It's
really just a habit I've been in to do so.

Also, what's the current naming convention? It used to be to add a
_suffix to each item, to trigger the code hints (and help
readability), but from the posts above, it looks like people are
prefering to use a suffic preceeding, is it just personal preference
or is there some best practice here.

Thanks!

jon
ps: I'm enjoying getting my feet wet with AS2 atm :)

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] [OT] Flash Communication Server 1.5 Streaming Bitrates

2006-10-10 Thread Telmo Dias

Hi all,

I'm sorry, I know that this is not the appropriate list, but since 
FlashComm is down, I decided to take a chance on FlashCoders, because 
I'm sure some of you guys are FlashComm coders as well.


What I wish to know is if anyone knows what bitrates are supported in 
FCS 1.5 for streaming MP3.


I mean, if I upload a MP3 in 192 kbps, what will FCS stream? 192 or will 
it convert/lower the bitrate ? If so, what bitrate will it be using then?


If anyone has a list of supported bitrates or a link to somewhere I 
would appreciate it very much.


Thank you all in advance.

Telmo Dias

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread JOR
A bad practice most likely, but not technically wrong.  I do see it in 
text books from time to time.  I was just mentioning it as a case where 
"this" *would* be needed as opposed to speaking in absolutes.


In practice, you're right and I try not to name any parameters the same 
as a field name to avoid "this" confusion.  Don't tell anyone, but 
sometimes I don't even use "this". :)


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Steven Sacks | BLITZ wrote:

Correct me if I'm wrong, but it looks like your rationale is entirely
based on an argument name being identical to a class variable name.  I
might be looking at this too simply, but shouldn't you just use a
different argument name if it clashes with a class variable name?

-Steven




-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of JOR
Sent: Tuesday, October 10, 2006 1:19 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Moving to AS2, array always undefined

Actually, the "need" is dependent on the implementation.

It was my understanding that AS first looks to the local scope for the
existence of a variable then works up to find it.  By using "this" you
were explicitly telling flash that the var isn't local to the function
but rather belongs to the object cutting out a step for the VM.

Therefore, something like the following becomes possible and the use


of


"this" becomes necessary:

class MyConstructor {
  private var target:MovieClip;
  public function MyConstructor (target:MovieClip) {
this.target = target;
  }
}

Because you can not do this:

class MyConstructor {
  private var target:MovieClip;
  public function MyConstructor (target:MovieClip) {
target = target; // ?
  }
}

However, depending on your naming conventions you "might" not have to
use "this" if you did something like the following:

class MyConstructor {
  private var _target:MovieClip;
  public function MyConstructor (target:MovieClip) {
_target = target;
  }
}

Even still, I think the VM might check for the existence of a var


named


_target local to the constructor function before locating the object's
field named _target.

It's been a while since I've done anything in AS1 so I may be way off
here but I thought I remembered "this" being necessary because at


weird


times the VM would think you were trying to instantiate a local var if
you didn't use "this".  Particularly in "on (something)" event


handlers.


Maybe I'm thinking of _global, or perhaps both.  This, I'm not sure
about... if you'll excuse the pun. :)



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
> Assembly/machine languages are iconic, programming languages are
> supposed to be verbose. ;-)

Your mom is verbose!  ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread ryanm

Plenty of research has been done on the subject of icons versus words
but suffice to say we don't write 100 dollars and 0 cents, we write
$100.00.  When you write music you don't write QUARTER NOTE C.  You just
draw a quarter note symbol on the C line.  That's how I look at writing
code.
:)

   Assembly/machine languages are iconic, programming languages are 
supposed to be verbose. ;-)


ryanm 


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

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


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Correct me if I'm wrong, but it looks like your rationale is entirely
based on an argument name being identical to a class variable name.  I
might be looking at this too simply, but shouldn't you just use a
different argument name if it clashes with a class variable name?

-Steven


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of JOR
> Sent: Tuesday, October 10, 2006 1:19 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Moving to AS2, array always undefined
> 
> Actually, the "need" is dependent on the implementation.
> 
> It was my understanding that AS first looks to the local scope for the
> existence of a variable then works up to find it.  By using "this" you
> were explicitly telling flash that the var isn't local to the function
> but rather belongs to the object cutting out a step for the VM.
> 
> Therefore, something like the following becomes possible and the use
of
> "this" becomes necessary:
> 
> class MyConstructor {
>private var target:MovieClip;
>public function MyConstructor (target:MovieClip) {
>  this.target = target;
>}
> }
> 
> Because you can not do this:
> 
> class MyConstructor {
>private var target:MovieClip;
>public function MyConstructor (target:MovieClip) {
>  target = target; // ?
>}
> }
> 
> However, depending on your naming conventions you "might" not have to
> use "this" if you did something like the following:
> 
> class MyConstructor {
>private var _target:MovieClip;
>public function MyConstructor (target:MovieClip) {
>  _target = target;
>}
> }
> 
> Even still, I think the VM might check for the existence of a var
named
> _target local to the constructor function before locating the object's
> field named _target.
> 
> It's been a while since I've done anything in AS1 so I may be way off
> here but I thought I remembered "this" being necessary because at
weird
> times the VM would think you were trying to instantiate a local var if
> you didn't use "this".  Particularly in "on (something)" event
handlers.
> Maybe I'm thinking of _global, or perhaps both.  This, I'm not sure
> about... if you'll excuse the pun. :)

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

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


RE: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-10 Thread Jason Je
WMP can play the basic SWF if you really want/have to use WMP...  I'd rather not
do that though...  WMP cannot really do anything for the scripted SWF or any
complex SWF...

I'd rather convert the app to SWF version from WMP version if I have a choice...
;)

CyanBlue

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of John Dowdell
> Sent: Tuesday, October 10, 2006 2:39 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Flash transparent on top of Windows Media
> Player
> 
> Mick G wrote:
> > Does anyone know if there is a way to embed flash transparent
> > (wmode=transparent) on a layer above an embedded Windows Media Player
> > active-x control?
> 
> Possibly, but I'd hesitate anyway. I think the Windows Media Player,
> implemented as an ActiveX Control, also has support for rendering to the
> browser's compositing buffer via WMODE requests, rather than blasting
> directly to screen. Just as DHTML cannot layer above SWF unless the SWF
> is routed to the browser's drawing buffer via WMODE, the WMP would need
> to go into the browser's buffer to layer anything atop it.
> 
> But I'd hesitate to do so, though, because drawing video offscreen
> before transferring it to the video display would give a performance
> hit, and you'd also likely drop frames from timing differences too...
> the video codec renders every X milliseconds, the browser refreshes its
> display every Y milliseconds, and some info would be lost in the middle.
> Steven Sacks has info on the scrolling issues too.
> 
> If you must use WMP (for rights-management, eg), then could you keep it
> drawing directly to screen, and surround the WMP with with four framing
> SWFs, intercommunicating through LocalConnection? This would be a little
> more development work, but would make less work for the browser's
> rendering pipeline. Possible...?
> 
> 
> 
> Zárate wrote:
>  > You might want to think it twice before using wmode:
>  > http://www.google.co.uk/search?q=wmode+problems&start=0&ie=utf-
> 8&oe=utf-8
>  > Anyone knows if Adobe is trying to fix this for the next release
>  > of the player?
> 
> Browser differences are browser differences. When WMODE is changed, then
> the Player changes the address in memory to which it sends its pixels.
> Over the past eight years the Player has implemented WMODE requests,
> we've seen different browsers print upside down, not pass screenreader
> instructions, do funny things with keyboard entry, when the browser gets
> in the middle of the rendering pipeline like this.
> 
> The Player is the same across environments, but it's the environments
> themselves which differ, and when we ask the browsers to do more, their
> results vary more.
> 
> More info's available with this search:
> http://www.google.co.uk/search?q=wmode+problems+dowdell
> 
> jd
> 
> 
> 
> 
> 
> --
> John Dowdell . Adobe Developer Support . San Francisco CA USA
> Weblog: http://weblogs.macromedia.com/jd
> Aggregator: http://weblogs.macromedia.com/mxna
> Technotes: http://www.macromedia.com/support/
> Spam killed my private email -- public record is best, thanks.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
This message (including any attachments) is a confidential and privileged 
communication of
AWS Convergence Technologies, Inc. and intended only for the addressee. Any 
unauthorized use,
distribution or copying of this message (or any attachment) is prohibited. If 
you are not the
addressee or a person authorized to receive messages for the addressee, you 
have received this
message in error. In that case, please delete this message and call us at 
301-250-4000 so that we
can correct our records in order to avoid this mistake in the future. 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] Turn off all the tabs in a file

2006-10-10 Thread Keith Reinfeld
Josh, 
 
This will turn off all tabbing within the scope you pass in. I'll have to
think about how to apply it across multiple frames in order to disable
tabbing for an entire file. 
 
function disableTabbing(scope){ 
for(prop in scope){ 
trace("\nprop = "+prop); 
trace("scope[prop] = "+scope[prop]); 
if(typeof(scope[prop]) == "movieclip" || typeof(scope[prop])
== "object"){ 
scope[prop].tabEnabled = false; 
disableTabbing(scope[prop]); 
} 
} 
}; 
 
// do all your attaching, creating, whatever... 
 
disableTabbing(this);
 
HTH 
 
 
-Keith 
http://home.mn.rr.com/keithreinfeld 
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Josh
Johnston
Sent: Tuesday, October 10, 2006 11:08 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Turn off all the tabs in a file

The title is pretty self-explanatory. I need to turn
off all of the tabs in a file. I know that someone has
discussed how to do this before, but I couldn't find
it in the archives, so any help is greatly appreciated.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] Moving to AS2, array always undefined

2006-10-10 Thread JOR

Actually, the "need" is dependent on the implementation.

It was my understanding that AS first looks to the local scope for the 
existence of a variable then works up to find it.  By using "this" you 
were explicitly telling flash that the var isn't local to the function 
but rather belongs to the object cutting out a step for the VM.


Therefore, something like the following becomes possible and the use of 
"this" becomes necessary:


class MyConstructor {
  private var target:MovieClip;
  public function MyConstructor (target:MovieClip) {
this.target = target;
  }
}

Because you can not do this:

class MyConstructor {
  private var target:MovieClip;
  public function MyConstructor (target:MovieClip) {
target = target; // ?
  }
}

However, depending on your naming conventions you "might" not have to 
use "this" if you did something like the following:


class MyConstructor {
  private var _target:MovieClip;
  public function MyConstructor (target:MovieClip) {
_target = target;
  }
}

Even still, I think the VM might check for the existence of a var named 
_target local to the constructor function before locating the object's 
field named _target.


It's been a while since I've done anything in AS1 so I may be way off 
here but I thought I remembered "this" being necessary because at weird 
times the VM would think you were trying to instantiate a local var if 
you didn't use "this".  Particularly in "on (something)" event handlers. 
Maybe I'm thinking of _global, or perhaps both.  This, I'm not sure 
about... if you'll excuse the pun. :)



James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Steven Sacks | BLITZ wrote:

There's no need to use "this" when referring to class variables from
within the class itself.

class ArrayTest {
public var myArray:Array;

public function ArrayTest() {
myArray = [];
}
public function test(str:String):Void {
myArray.push(str);
trace(myArray);
}
}

BLITZ | Steven Sacks - 310-551-0200 x209



-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jon Bennett
Sent: Tuesday, October 10, 2006 12:44 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Moving to AS2, array always undefined



Or you can do it in the class' constructor:

class ArrayTest {
  public var aryItems:Array;
  public function ArrayTest ()
  {
this.aryItems = new Array();
  }
  public function test (str:String):Void
  {
this.aryItems.push (str);
trace (this.aryItems);
  }
}




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
> talking about square brackets, dunno how relevant this would be

Bracket access is a separate discussion, yes.  :)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Prakaz

Hi,

talking about square brackets, dunno how relevant this would be in the post
but you could also use it to make function calls:

function foo(param1:String,param2:String):void{
   trace(param1+"   "+param2);
}

this function can be called by using:
foo("hello","world!");
or
*this["foo"]("hello","world");
*
P


On 10/11/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


Sorry for the confusion.  I wasn't referring to the typecasting just the
instantiation.  You should still use

myArray:Array = [];

and

myObject:Object = {};


BLITZ | Steven Sacks - 310-551-0200 x209

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
There's no need to use "this" when referring to class variables from
within the class itself.

class ArrayTest {
public var myArray:Array;

public function ArrayTest() {
myArray = [];
}
public function test(str:String):Void {
myArray.push(str);
trace(myArray);
}
}

BLITZ | Steven Sacks - 310-551-0200 x209

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Jon Bennett
> Sent: Tuesday, October 10, 2006 12:44 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Moving to AS2, array always undefined
> 
> > Or you can do it in the class' constructor:
> >
> > class ArrayTest {
> >public var aryItems:Array;
> >public function ArrayTest ()
> >{
> >  this.aryItems = new Array();
> >}
> >public function test (str:String):Void
> >{
> >  this.aryItems.push (str);
> >  trace (this.aryItems);
> >}
> > }

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Jon Bennett

Or you can do it in the class' constructor:

class ArrayTest {
   public var aryItems:Array;
   public function ArrayTest ()
   {
 this.aryItems = new Array();
   }
   public function test (str:String):Void
   {
 this.aryItems.push (str);
 trace (this.aryItems);
   }
}


I like this method best I think, so this is the one I'll be using.

thanks for all the thoughts!

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Merrill, Jason
>>myArray:Array = [];
>>
>>and
>>
>>myObject:Object = {};

Or, 

myArray:Array = new Array()

and

myObject:Object = new Object();

Nothing wrong with that.  :) 

If anything, I like using the new operator as it is consistent with
creating other objects. new Sound() new MovieClip() (AS 3.0), new
SuperCoolClass().  


Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
>>Sent: Tuesday, October 10, 2006 3:24 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Moving to AS2, array always undefined
>>
>>Sorry for the confusion.  I wasn't referring to the typecasting just
the
>>instantiation.  You should still use
>>
>>myArray:Array = [];
>>
>>and
>>
>>myObject:Object = {};
>>
>>
>>BLITZ | Steven Sacks - 310-551-0200 x209
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Sorry for the confusion.  I wasn't referring to the typecasting just the
instantiation.  You should still use

myArray:Array = [];

and

myObject:Object = {};


BLITZ | Steven Sacks - 310-551-0200 x209

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Victor Gaudioso

Haha, ain't it the truth
- Original Message - 
From: "Merrill, Jason" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 12:03 PM
Subject: RE: [Flashcoders] Moving to AS2, array always undefined


Y'all are nerds.  


Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 








-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
Sent: Tuesday, October 10, 2006 2:56 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Moving to AS2, array always undefined

It's neither AS2 or AS1 centric.

Substituting [] for new Array() or {} for new Object() is universal
across many languages.  Personally, I prefer the visual [] and {} to

the

wordy new Array() and new Object().  It's quicker to write, and it's
easier to read.

[]

{}

Plenty of research has been done on the subject of icons versus words
but suffice to say we don't write 100 dollars and 0 cents, we write
$100.00.  When you write music you don't write QUARTER NOTE C.  You

just

draw a quarter note symbol on the C line.  That's how I look at

writing

code.
:)

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

2006-10-10 Thread Mick G

Foce a:  _quality=best on your timeline and see if it helps (Not sure if it
will for imported JPGs, but I've done this before to fix rotated jagged
stage JPGs)

On 10/10/06, Johan Karlsson <[EMAIL PROTECTED]> wrote:


... Which works as long as the project is a flash 8 project. ;)

But I guess most projects these days are just that.

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] För ???
Skickat: den 10 oktober 2006 12:53
Till: Flashcoders mailing list
Ämne: Re: [Flashcoders] Allow smoothing on imported jpeg:s

use the BitmapData Object to draw the jpg


- Original Message -
From: "Johan Karlsson" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 4:54 PM
Subject: SV: [Flashcoders] Allow smoothing on imported jpeg:s


Not sure if there is any other way but the only way I know to make
transformations of external pictures to look good is to keep the main
timeline of the level only a single frame long.

However since a main timeline with a single frame doesn't wor that well
with preloaders this requires you to have a movie with the sole purpose of
loading the main movie...


-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] För Johan Nyberg
Skickat: den 10 oktober 2006 10:24
Till: flashcoders@chattyfig.figleaf.com
Ämne: [Flashcoders] Allow smoothing on imported jpeg:s

Hi everybody, anybody know if there is a way to use the "allow
smoothing" functionality on imported jpeg:s? I want to be able to rotate
imported jpeg:s, but they look awful, and there doesn't seem to be a way
to switch on allow smoothing with action script.

Is there a work-around?

--
Varmfrontsgatan 1
128 34 Skarpnäck
070 - 407 83 00
08 - 37 16 73

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Victor Gaudioso
This makes sense to me because Steven is talking about the instantiation of 
the array and not the delcaration.  So, in your properties you would still 
need this:


private var myArray:Array

Right?

V
- Original Message - 
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 11:56 AM
Subject: RE: [Flashcoders] Moving to AS2, array always undefined


It's neither AS2 or AS1 centric.

Substituting [] for new Array() or {} for new Object() is universal
across many languages.  Personally, I prefer the visual [] and {} to the
wordy new Array() and new Object().  It's quicker to write, and it's
easier to read.

[]

{}

Plenty of research has been done on the subject of icons versus words
but suffice to say we don't write 100 dollars and 0 cents, we write
$100.00.  When you write music you don't write QUARTER NOTE C.  You just
draw a quarter note symbol on the C line.  That's how I look at writing
code.
:)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Ian Thomas

On 10/10/06, Hans Wichman <[EMAIL PROTECTED]> wrote:

Hi,
and one other note,

don't do:

class ArrayTest {
   public var items_arr:Array = [];
}

becoz that will be the same as :
class ArrayTest {
   public static var items_arr:Array = []; }

initialize the array in your constructor instead.

greetz
JC

ps flash bug


Not so much a bug as a feature of the fact that the language is prototype based.
See here for more info:
http://www.osflash.org/flashcoders/as2#why_does_my_initializer_get_shared_across_all_instances_like_it_s_static

(watch for line wraps)

Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread JOR
In AS2 typecasting helps uncover bugs at compile time, so its a good 
idea to use them.  Typecasting also enables class insight through popup 
menus when you type a period after your variable name.


In AS3 typecasting is a much cooler as it directly affects the amount of 
memory allocated for the variable.  You can read about typecasting in 
AS2 and AS3 in my blog entry:



In your class there are a few ways to handle the initialization.  You 
can do it at the field level like this:


class ArrayTest {
  public var aryItems:Array = new Array();
  public function test (str:String):Void
  {
this.aryItems.push (str);
trace (this.aryItems);
  }
}

Or you can do it in the class' constructor:

class ArrayTest {
  public var aryItems:Array;
  public function ArrayTest ()
  {
this.aryItems = new Array();
  }
  public function test (str:String):Void
  {
this.aryItems.push (str);
trace (this.aryItems);
  }
}

Or you can create an init() function that
can be used by the constructor as well as being called again after 
object creation.


class ArrayTest {
  public var aryItems:Array;
  public function ArrayTest ()
  {
init();
  }
  public function init ():Void
  {
this.aryItems = new Array();
// other object initializing stuff
  }
  public function test (str:String):Void
  {
this.aryItems.push (str);
trace (this.aryItems);
  }
}

There are more ways to do it than that but those are pretty common and 
should get you started.


You might want to get used to using typecasting because if you ever move 
on to AS3 you will have to use it as its a requirement.



James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Jon Bennett wrote:

Hi,

got a AS NooB Q.

I'm working on a project and have decided to finally jump ship to AS2,
but I've run into a (probably obvious) problem which has me a bit
stumped.

I've written a class, in which I have an array, but the array always
traces 'undefined' and I can't work out why.

right, so example code:

// ArrayTest.as

class ArrayTest {

public var items_arr:Array;

public function ArrayTest ()

{
}

public function test (str:String)

{
this.items_arr.push (str);
trace (this.items_arr);
}
}

// Timeline

// import class
import ArrayTest.as;
// create instance
var Test:ArrayTest = new ArrayTest();
// add some values to the array
Test.test ('foo');
Test.test ('bar');

I'm pretty sure this is just me not grasping something bleedin' obvious!

tia,

jon


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Ian Thomas

On 10/10/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

Plenty of research has been done on the subject of icons versus words
but suffice to say we don't write 100 dollars and 0 cents, we write
$100.00.  When you write music you don't write QUARTER NOTE C.  You just
draw a quarter note symbol on the C line.  That's how I look at writing
code.


While I don't subscribe to that particular philosphy, I use
var arr:Array=[];
too, simply because in MX/MX04 I've occasionally had completely
inexplicable errors using =new Array() that went away when I replaced
it with =[]. I assume it was a compiler error. It's probably been fixed by now,
but old habits die hard...

Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Merrill, Jason
Y'all are nerds.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
>>Sent: Tuesday, October 10, 2006 2:56 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Moving to AS2, array always undefined
>>
>>It's neither AS2 or AS1 centric.
>>
>>Substituting [] for new Array() or {} for new Object() is universal
>>across many languages.  Personally, I prefer the visual [] and {} to
the
>>wordy new Array() and new Object().  It's quicker to write, and it's
>>easier to read.
>>
>>[]
>>
>>{}
>>
>>Plenty of research has been done on the subject of icons versus words
>>but suffice to say we don't write 100 dollars and 0 cents, we write
>>$100.00.  When you write music you don't write QUARTER NOTE C.  You
just
>>draw a quarter note symbol on the C line.  That's how I look at
writing
>>code.
>>:)
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Hans Wichman

Hi,
and one other note,

don't do:

class ArrayTest {
  public var items_arr:Array = [];
}

becoz that will be the same as :
class ArrayTest {
  public static var items_arr:Array = []; }

initialize the array in your constructor instead.

greetz
JC

ps flash bug


On 10/10/06, Jon Bennett <[EMAIL PROTECTED]> wrote:


> You have to initialize (create) the array.  Same as in AS 1.0.
>
> myArray = new Array();
>
> This:
>
> >> public var items_arr:Array;
>
> Doesn't create the array, it only typecasts the variable.

hah, wicked - thought it'd be s basic error but didn't think it would
be _that_ basic ;)

thanks!

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
It's neither AS2 or AS1 centric.

Substituting [] for new Array() or {} for new Object() is universal
across many languages.  Personally, I prefer the visual [] and {} to the
wordy new Array() and new Object().  It's quicker to write, and it's
easier to read.  

[] 

{}

Plenty of research has been done on the subject of icons versus words
but suffice to say we don't write 100 dollars and 0 cents, we write
$100.00.  When you write music you don't write QUARTER NOTE C.  You just
draw a quarter note symbol on the C line.  That's how I look at writing
code.
:)

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

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


[Flashcoders] [job] nyc actionscript freelancer wanted

2006-10-10 Thread dontsave

Hi. I'm looking for a freelance as2 developer with lots of rich internet
experience to help out on a project with a tight deadline. We are located in
the Flatiron District in Manhattan. Ideally we're looking for a person in
the city or someone who can be here at least a few days a week. If you are
interested please contact me at this address.

Sorry for the spam-ish post. I've been on this list for over a year and I
know this is the best place to find people that meet our qualifications.
Craigslist/Monster etc are just not cutting it sadly.

Thanks,
David
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Doug Coning
Stephen, is that A2 standard way for initializing an object or is that
old A1 style? 

Thanks,

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Tuesday, October 10, 2006 2:24 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Moving to AS2, array always undefined

I prefer 

myArray = [];

and

myObject = {};

But that's just me.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please "reply to" sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-10 Thread John Dowdell

Mick G wrote:

Does anyone know if there is a way to embed flash transparent
(wmode=transparent) on a layer above an embedded Windows Media Player
active-x control?


Possibly, but I'd hesitate anyway. I think the Windows Media Player, 
implemented as an ActiveX Control, also has support for rendering to the 
browser's compositing buffer via WMODE requests, rather than blasting 
directly to screen. Just as DHTML cannot layer above SWF unless the SWF 
is routed to the browser's drawing buffer via WMODE, the WMP would need 
to go into the browser's buffer to layer anything atop it.


But I'd hesitate to do so, though, because drawing video offscreen 
before transferring it to the video display would give a performance 
hit, and you'd also likely drop frames from timing differences too... 
the video codec renders every X milliseconds, the browser refreshes its 
display every Y milliseconds, and some info would be lost in the middle. 
Steven Sacks has info on the scrolling issues too.


If you must use WMP (for rights-management, eg), then could you keep it 
drawing directly to screen, and surround the WMP with with four framing 
SWFs, intercommunicating through LocalConnection? This would be a little 
more development work, but would make less work for the browser's 
rendering pipeline. Possible...?




Zárate wrote:
> You might want to think it twice before using wmode:
> http://www.google.co.uk/search?q=wmode+problems&start=0&ie=utf-8&oe=utf-8
> Anyone knows if Adobe is trying to fix this for the next release
> of the player?

Browser differences are browser differences. When WMODE is changed, then 
the Player changes the address in memory to which it sends its pixels. 
Over the past eight years the Player has implemented WMODE requests, 
we've seen different browsers print upside down, not pass screenreader 
instructions, do funny things with keyboard entry, when the browser gets 
in the middle of the rendering pipeline like this.


The Player is the same across environments, but it's the environments 
themselves which differ, and when we ask the browsers to do more, their 
results vary more.


More info's available with this search:
http://www.google.co.uk/search?q=wmode+problems+dowdell

jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
I prefer 

myArray = [];

and

myObject = {};

But that's just me.  :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Naicu Octavian

Its teh same when  you create an Object; :)

On 10/10/06, Jon Bennett <[EMAIL PROTECTED]> wrote:


> You have to initialize (create) the array.  Same as in AS 1.0.
>
> myArray = new Array();
>
> This:
>
> >> public var items_arr:Array;
>
> Doesn't create the array, it only typecasts the variable.

hah, wicked - thought it'd be s basic error but didn't think it would
be _that_ basic ;)

thanks!

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Thank you,
Naicu Octavian,
Project Manager for AVChat
http://www.avchat.net
---
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in error,
please notify the sender immediately and delete the original. Any other
use of this e-mail by you is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Smoothing on mported jpegs and moving on to web services

2006-10-10 Thread Johan Nyberg
Hi all, and thanks for the advice on imported, rotated and smoothed 
bitmaps. It was the first time I used the list, and I must say I was 
overwhelmed by the amount of response.
The answer was in short the BitmapData class. The only problem is that 
this class is only available if you publish to Flash player 8, and this 
player still only has an average of 86% penetration. I try to use 
version 6 as often as possible (around 97% penetration - 
http://www.adobe.com/products/player_census/flashplayer/version_penetration.html). 



I have another issue, this one relating to web services. I've built a 
quiz that reads data from a web service, and as long as I run the app in 
the player all is fine, but as soon I go to the browser, the sandbox 
restrictions kick in. I've tried using System.security.allowDomain, but 
to no avail. I also tried running the swf on the same domain (yes, top 
domain) as the web service, but that didn't do it either. Suggestions?


Regards,

/Johan Nyberg
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Playing video backwards kills my CPU

2006-10-10 Thread Steven Sacks | BLITZ
Sorry, let me be more clear.  You don't have a movie running backwards,
you make a version of your movie that IS backwards (prior to importing)
and play it forwards.  

Also, they aren't running at the same time, but when you swap movies you
need to set the new movie's timecode to the timecode of the other movie,
make it visible, play it and stop and hide the other movie.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Playing video backwards kills my CPU

2006-10-10 Thread Steven Sacks | BLITZ
Bottom line, videos do not play backwards well.  Nothing wrong with your
code or computer, and nothing you can do about it.

If you absolutely need your video to play backwards and forwards, you
create a backwards version of your movie, have it running invisibly and
concurrently with the forwards one, and when you want to go backwards,
you swap visibility.  If there is audio on the video, make sure you mute
the invisible one.

BLITZ | Steven Sacks - 310-551-0200 x209

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

2006-10-10 Thread mario
Call me silly (not to my face) but as far as I know autoSize works  
perfectly well on multiline textfields, the only caveat is that you  
actually have to write it properly


'autoSize' instead of 'autosize' (notice the capital 'S')

Keep in mind that with centered text the textfield will only size in  
the vertical not in the horizontal.



cheers,
mario



Quoting Jake Prime <[EMAIL PROTECTED]>:


Autosize doesn't work in multiline textfields. If you think about it,
when you set autosize to true (or "right" or "center") you are asking
Flash to shrink the textfield to the smallest size possible to fit the
text. This is fine in a single line textfield, but with a mulitline
field Flash won't know whether to make the field shorter, narrower or
a combination.

As Giles has mentioned, use TextFormat.align:

var format:TextFormat = new TextFormat();
format.align = "center";
subhead.setTextFormat( format );

Jake

On 10/10/06, Keith Reinfeld <[EMAIL PROTECTED]> wrote:

Blake,

Use the paragraph tag's align attribute:

htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';


-Keith
http://home.mn.rr.com/keithreinfeld



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue,
Blake
Sent: Tuesday, October 10, 2006 10:26 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Center align multiline textfield?

I'm trying to get a multiline textfield to be center aligned. Here's the
code:

this.createTextField('subhead',20,1,435,434,200);

with (this.subhead) {

   html=true;

   embedFonts=true;

   selectable=false;

   wordWrap=true;

   multiline=true;

   autosize='center';

   htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';

}



The autosize seems to only work for single line textfields, not
multiline. Anyone know how to accomplish this? Thanks.



Blake Perdue | 212.522.1292 | AIM: blakepCNN



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

2006-10-10 Thread Jim Kremens

"Autosize doesn't work in multiline textfields"

Not true.  See example below...

 var tf:TextField = _root.createTextField("tf", 0, 200, 200, 200, 200);
 tf.wordWrap = true;
 tf.multiline = true;
 tf.autoSize = true;
 tf.text = "
laatpurus.Insem.Vivamusviverratellussitametlacus.Phasellusnecnibhvelpedeposuerevestibulum.Maurisdictumpellentesquesem.Nunctinciduntdignissimlorem.Curabiturgravidanequenontortor.Maecenasvulputatecursusfelis.Vestibulumpharetra.Sedinterdumloremataugue.Sednullasem
,mattisac,placerateu,laciniafaucibus,sapien.Suspendissetellusquam
,interdumvel,laoreeteu,malesuadaeu,elitLoremipsumdolorsitamet,
consectetueradipiscingelit.Aeneanultriciespurusetmagna.Nuncantelorem
,blanditvel,hendreritid,rhoncusnec,
lorem.Fuscemalesuadaest.Etiamegetnibh.Vivamusfermentumviverratortor.Nullamdiam.Donecauctor.Vestibulumlectusquam
,accumsana,vehiculaac,venenatisquis,metus.Quisquenonummy
,tortorseddignissimdignissim,nequeerosmalesuadavelit,
indictumduiligulaatpurus.Insem.Vivamusviverratellussitametlacus.Phasellusnecnibhvelpedeposuerevestibulum.Maurisdictumpellentesquesem.Nunctincidun
";

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

2006-10-10 Thread Jake Prime

Autosize doesn't work in multiline textfields. If you think about it,
when you set autosize to true (or "right" or "center") you are asking
Flash to shrink the textfield to the smallest size possible to fit the
text. This is fine in a single line textfield, but with a mulitline
field Flash won't know whether to make the field shorter, narrower or
a combination.

As Giles has mentioned, use TextFormat.align:

var format:TextFormat = new TextFormat();
format.align = "center";
subhead.setTextFormat( format );

Jake

On 10/10/06, Keith Reinfeld <[EMAIL PROTECTED]> wrote:

Blake,

Use the paragraph tag's align attribute:

htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';


-Keith
http://home.mn.rr.com/keithreinfeld



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue,
Blake
Sent: Tuesday, October 10, 2006 10:26 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Center align multiline textfield?

I'm trying to get a multiline textfield to be center aligned. Here's the
code:

this.createTextField('subhead',20,1,435,434,200);

with (this.subhead) {

html=true;

embedFonts=true;

selectable=false;

wordWrap=true;

multiline=true;

autosize='center';

htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';

}



The autosize seems to only work for single line textfields, not
multiline. Anyone know how to accomplish this? Thanks.



Blake Perdue | 212.522.1292 | AIM: blakepCNN



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Jon Bennett

You have to initialize (create) the array.  Same as in AS 1.0.

myArray = new Array();

This:

>> public var items_arr:Array;

Doesn't create the array, it only typecasts the variable.


hah, wicked - thought it'd be s basic error but didn't think it would
be _that_ basic ;)

thanks!

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Merrill, Jason
You have to initialize (create) the array.  Same as in AS 1.0.  

myArray = new Array();

This:

>> public var items_arr:Array;

Doesn't create the array, it only typecasts the variable.


Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Jon Bennett
>>Sent: Tuesday, October 10, 2006 1:06 PM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: [Flashcoders] Moving to AS2, array always undefined
>>
>>Hi,
>>
>>got a AS NooB Q.
>>
>>I'm working on a project and have decided to finally jump ship to AS2,
>>but I've run into a (probably obvious) problem which has me a bit
>>stumped.
>>
>>I've written a class, in which I have an array, but the array always
>>traces 'undefined' and I can't work out why.
>>
>>right, so example code:
>>
>>// ArrayTest.as
>>
>>class ArrayTest {
>>
>>  public var items_arr:Array;
>>
>>  public function ArrayTest ()
>>  {
>>  }
>>
>>  public function test (str:String)
>>  {
>>  this.items_arr.push (str);
>>  trace (this.items_arr);
>>  }
>>}
>>
>>// Timeline
>>
>>// import class
>>import ArrayTest.as;
>>// create instance
>>var Test:ArrayTest = new ArrayTest();
>>// add some values to the array
>>Test.test ('foo');
>>Test.test ('bar');
>>
>>I'm pretty sure this is just me not grasping something bleedin'
obvious!
>>
>>tia,
>>
>>jon
>>
>>--
>>
>>
>>jon bennett
>>t: +44 (0) 1225 341 039 w: http://www.jben.net/
>>iChat (AIM): jbendotnet Skype: jon-bennett
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/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] Moving to AS2, array always undefined

2006-10-10 Thread Jon Bennett

Hi,

got a AS NooB Q.

I'm working on a project and have decided to finally jump ship to AS2,
but I've run into a (probably obvious) problem which has me a bit
stumped.

I've written a class, in which I have an array, but the array always
traces 'undefined' and I can't work out why.

right, so example code:

// ArrayTest.as

class ArrayTest {

public var items_arr:Array;

public function ArrayTest ()
{
}

public function test (str:String)
{
this.items_arr.push (str);
trace (this.items_arr);
}
}

// Timeline

// import class
import ArrayTest.as;
// create instance
var Test:ArrayTest = new ArrayTest();
// add some values to the array
Test.test ('foo');
Test.test ('bar');

I'm pretty sure this is just me not grasping something bleedin' obvious!

tia,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Starting out with FMS

2006-10-10 Thread Apurva Lawale
Hi,

We are just starting out with FMS.

Was looking at this article from adobe website

http://www.adobe.com/devnet/flash/articles/video_player.html

Followed all the way, I can see the thumbnails but
when the thumbnail is clicked can't see the bigger
movie. Why? 

FMS is installed on a Windows 2003 Server.

Would appreciate if anyone could point out sites where
there are any tutorials for novices or any examples.

Thanks in advance.

Apurva

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] Simplified Chinese

2006-10-10 Thread Alain Rousseau
 
Personnaly I havent tried putting the text in an external .as file, if you
can get the chinese characters in there maybe it'll work. On a windows
system you can use Arial Unicode MS, on a Mac here is a link where you can
see what fonts you'll need :
http://www.alanwood.net/unicode/fonts_macosx.html#simplified 

You do need to have the Chinese language installed and activated on your
system for this to work (Mac and Win). Otherwise you won't see the font.

HTH

A.


-Original Message-
From: Eric E. Dolecki [mailto:[EMAIL PROTECTED] 
Sent: 10 octobre 2006 12:35
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Simplified Chinese

Is it possible to put the simplified chinese into an external .as file with
UTF-8 encoding (say, setting string variables) and using that? And what
would a good unicode font for simplified chinese actually be? Hoping that I
don't need to change my OS settings to pull any of this off.

- e.


On Oct 10, 2006, at 12:14 PM, Alain Rousseau wrote:

> For me it works well if I don't try to use animations to display the 
> text and no embeded fonts.
> What you need is a unicode font selected in your TextField and a 
> unicode text data, wheter it is an xml file, a text file or a 
> database.
>
> Otherwise you'll need to go through hoops jumping and live with a huge 
> filesize
>
> A.
>
> -Original Message-
> From: eric dolecki [mailto:[EMAIL PROTECTED]
> Sent: 10 octobre 2006 11:42
> To: Flashcoders mailing list
> Subject: [Flashcoders] Simplified Chinese
>
> I've been digging around the net and the archives and have only found 
> that its basically impossible to get Simplified Chinese to display 
> well in a SWF.
> Has anyone come up with a solution (that wasn't composed of hoop 
> jumping
> galore) to this problem yet?
>
> - e.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training http:// 
> www.figleaf.com http://training.figleaf.com
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:  
> 2006-10-10
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:  
> 2006-10-10
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date: 2006-10-10
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date: 2006-10-10
 

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

2006-10-10 Thread Keith Reinfeld
Blake, 

Use the paragraph tag's align attribute: 

htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';


-Keith 
http://home.mn.rr.com/keithreinfeld 
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue,
Blake
Sent: Tuesday, October 10, 2006 10:26 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Center align multiline textfield?

I'm trying to get a multiline textfield to be center aligned. Here's the
code:

this.createTextField('subhead',20,1,435,434,200);

with (this.subhead) {

html=true;

embedFonts=true;

selectable=false;

wordWrap=true;

multiline=true;

autosize='center';

htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';

}

 

The autosize seems to only work for single line textfields, not
multiline. Anyone know how to accomplish this? Thanks.

 

Blake Perdue | 212.522.1292 | AIM: blakepCNN

 

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

2006-10-10 Thread Eric E. Dolecki
Is it possible to put the simplified chinese into an external .as  
file with UTF-8 encoding (say, setting string variables) and using  
that? And what would a good unicode font for simplified chinese  
actually be? Hoping that I don't need to change my OS settings to  
pull any of this off.


- e.


On Oct 10, 2006, at 12:14 PM, Alain Rousseau wrote:

For me it works well if I don't try to use animations to display  
the text

and no embeded fonts.
What you need is a unicode font selected in your TextField and a  
unicode

text data, wheter it is an xml file, a text file or a database.

Otherwise you'll need to go through hoops jumping and live with a huge
filesize

A.

-Original Message-
From: eric dolecki [mailto:[EMAIL PROTECTED]
Sent: 10 octobre 2006 11:42
To: Flashcoders mailing list
Subject: [Flashcoders] Simplified Chinese

I've been digging around the net and the archives and have only  
found that
its basically impossible to get Simplified Chinese to display well  
in a SWF.
Has anyone come up with a solution (that wasn't composed of hoop  
jumping

galore) to this problem yet?

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

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

http://training.figleaf.com


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:  
2006-10-10



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date:  
2006-10-10



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

2006-10-10 Thread Alain Rousseau
For me it works well if I don't try to use animations to display the text
and no embeded fonts.
What you need is a unicode font selected in your TextField and a unicode
text data, wheter it is an xml file, a text file or a database.

Otherwise you'll need to go through hoops jumping and live with a huge
filesize

A. 

-Original Message-
From: eric dolecki [mailto:[EMAIL PROTECTED] 
Sent: 10 octobre 2006 11:42
To: Flashcoders mailing list
Subject: [Flashcoders] Simplified Chinese

I've been digging around the net and the archives and have only found that
its basically impossible to get Simplified Chinese to display well in a SWF.
Has anyone come up with a solution (that wasn't composed of hoop jumping
galore) to this problem yet?

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

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date: 2006-10-10
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date: 2006-10-10
 

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

2006-10-10 Thread Josh Johnston
The title is pretty self-explanatory. I need to turn
off all of the tabs in a file. I know that someone has
discussed how to do this before, but I couldn't find
it in the archives, so any help is greatly appreciated.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re[2]: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread Iv
Hello Ricardo,

RS> Thanks, If I do that it works, but weight goes from 560Kbs to 7Mbs!!! I
RS> can't do that :(

- don't change keyframe value to 1 and try next:

create bitmaps of every frame of your video
attach bitmaps in any sequence you need. for example backward...

-- 
Ivan Dembicki

[EMAIL PROTECTED] || 
http://www.design.ru

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

2006-10-10 Thread Giles Taylor
Have you centred the text using TextFormat.align?

Giles 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue,
Blake
Sent: 10 October 2006 16:26
To: Flashcoders mailing list
Subject: [Flashcoders] Center align multiline textfield?

I'm trying to get a multiline textfield to be center aligned. Here's the
code:

this.createTextField('subhead',20,1,435,434,200);

with (this.subhead) {

html=true;

embedFonts=true;

selectable=false;

wordWrap=true;

multiline=true;

autosize='center';

htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';

}

 

The autosize seems to only work for single line textfields, not
multiline. Anyone know how to accomplish this? Thanks.

 

Blake Perdue | 212.522.1292 | AIM: blakepCNN

 

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

2006-10-10 Thread eric dolecki

I've been digging around the net and the archives and have only found that
its basically impossible to get Simplified Chinese to display well in a SWF.
Has anyone come up with a solution (that wasn't composed of hoop jumping
galore) to this problem yet?

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

2006-10-10 Thread Naicu Octavian

There is a lot of activity regarding FMS on Sefan's FMS list:
http://www.flashcomguru.com/flashmedialist/


On 10/10/06, Dave Watts <[EMAIL PROTECTED]> wrote:


> I was wondering if anyone knwos what happend to the flashcomm
> flashcoders list.. it's not been working for a few weeks now..
> Anyone else experiencing the problem?

Yes, I'm still trying to retrieve the corrupted user database. I apologize
for the inconvenience.

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

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





--
Thank you,
Naicu Octavian,
Project Manager for AVChat
http://www.avchat.net
---
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in error,
please notify the sender immediately and delete the original. Any other
use of this e-mail by you is prohibited.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flashcomm down?

2006-10-10 Thread Dave Watts
> I was wondering if anyone knwos what happend to the flashcomm 
> flashcoders list.. it's not been working for a few weeks now..
> Anyone else experiencing the problem?

Yes, I'm still trying to retrieve the corrupted user database. I apologize
for the inconvenience.

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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Re: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread David Buff
Yes, i'm not sure to understand this post, but the way is to build 2 movies, 
one running in the original direction, and another running back. So when you 
want to read forward, you index the frame of the first movie, when you want 
to read backward, you swap your movie, and index the frame of the second 
movie (witch is running back).


Good idea

David Buff




- Original Message - 
From: "Toby" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Tuesday, October 10, 2006 5:17 PM
Subject: RE: Re: [Flashcoders] Playing video backwards kills my CPU



If you want to play video backwards don't be silly and try and rewind your
actual movie (for the reasons already outlining in the email responses >
compression and keyframes)

You will need to do this in a video editing program, then export a 
separate

video. This solution is feasible if your .mov displays a 3D model and you
want to reverse an animation maybe...

You need to look at your brief, asses why you are trying to rewind the
video, and then look for the best technology to do this. Telling flash to 
go
through your compressed movie backwards frame by frame is lunacy (as you 
are

finding out the hard way).

Sort it out, or your clients expectations (or even your own!).
T


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of nelson ramirez
Sent: 10 October 2006 15:45
To: Flashcoders mailing list
Subject: Re: Re: [Flashcoders] Playing video backwards kills my CPU

Have you tried flv. don't know why but flvs always work much smoother for
me.

On 10/10/06, Zeh Fernando <[EMAIL PROTECTED]> wrote:
> > It seems to work but it kills my CPU making everyother thing in the
site
> > not
> > working and making the video running slowlier. When I go back to
fordward
> > playing everything goes back to normality.
> > Any clues? Do I have to look for some flaws in my code or is there
> > something
> > wrong with embbebed video?
>
> It's probably neither one of those alternatives - it's more like a fact
of
> life.
>
> The way temporal compression works for video is by having one keyframe
(the
> entire image) followed by several frames (chunks of image that only
specify
> changes to the image data). When doing forward this is fine, but when
> seeking to a different frame, the render has to actually go to an
specific
> keyframe, then render forward to the specified frame. Because of this,
going
> backwards really *is* much more difficult to any player or codec 
> (unless

you
> have one keyframe every frame, which defeats the purpose of temporal
> compression).
>
> If you're having that problem, try lowering the steps between keyframes
on
> your video (say, one keyframe every 15 frames instead of one every 30
> frames). It should make things better, but at a cost - your video file
will
> be bigger.
>
>
> Zeh
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Center align multiline textfield?

2006-10-10 Thread Perdue, Blake
I'm trying to get a multiline textfield to be center aligned. Here's the
code:

this.createTextField('subhead',20,1,435,434,200);

with (this.subhead) {

html=true;

embedFonts=true;

selectable=false;

wordWrap=true;

multiline=true;

autosize='center';

htmlText='SI.com\'s Peter King says T.O. is going to explode
before long, but Dallas is tough enough to survive.';

}

 

The autosize seems to only work for single line textfields, not
multiline. Anyone know how to accomplish this? Thanks.

 

Blake Perdue | 212.522.1292 | AIM: blakepCNN

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Re: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread Toby
If you want to play video backwards don't be silly and try and rewind your
actual movie (for the reasons already outlining in the email responses >
compression and keyframes)

You will need to do this in a video editing program, then export a separate
video. This solution is feasible if your .mov displays a 3D model and you
want to reverse an animation maybe...

You need to look at your brief, asses why you are trying to rewind the
video, and then look for the best technology to do this. Telling flash to go
through your compressed movie backwards frame by frame is lunacy (as you are
finding out the hard way).

Sort it out, or your clients expectations (or even your own!).
T

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of nelson ramirez
> Sent: 10 October 2006 15:45
> To: Flashcoders mailing list
> Subject: Re: Re: [Flashcoders] Playing video backwards kills my CPU
> 
> Have you tried flv. don't know why but flvs always work much smoother for
> me.
> 
> On 10/10/06, Zeh Fernando <[EMAIL PROTECTED]> wrote:
> > > It seems to work but it kills my CPU making everyother thing in the
> site
> > > not
> > > working and making the video running slowlier. When I go back to
> fordward
> > > playing everything goes back to normality.
> > > Any clues? Do I have to look for some flaws in my code or is there
> > > something
> > > wrong with embbebed video?
> >
> > It's probably neither one of those alternatives - it's more like a fact
> of
> > life.
> >
> > The way temporal compression works for video is by having one keyframe
> (the
> > entire image) followed by several frames (chunks of image that only
> specify
> > changes to the image data). When doing forward this is fine, but when
> > seeking to a different frame, the render has to actually go to an
> specific
> > keyframe, then render forward to the specified frame. Because of this,
> going
> > backwards really *is* much more difficult to any player or codec (unless
> you
> > have one keyframe every frame, which defeats the purpose of temporal
> > compression).
> >
> > If you're having that problem, try lowering the steps between keyframes
> on
> > your video (say, one keyframe every 15 frames instead of one every 30
> > frames). It should make things better, but at a cost - your video file
> will
> > be bigger.
> >
> >
> > Zeh
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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: Re: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread nelson ramirez

Have you tried flv. don't know why but flvs always work much smoother for me.

On 10/10/06, Zeh Fernando <[EMAIL PROTECTED]> wrote:

> It seems to work but it kills my CPU making everyother thing in the site
> not
> working and making the video running slowlier. When I go back to fordward
> playing everything goes back to normality.
> Any clues? Do I have to look for some flaws in my code or is there
> something
> wrong with embbebed video?

It's probably neither one of those alternatives - it's more like a fact of
life.

The way temporal compression works for video is by having one keyframe (the
entire image) followed by several frames (chunks of image that only specify
changes to the image data). When doing forward this is fine, but when
seeking to a different frame, the render has to actually go to an specific
keyframe, then render forward to the specified frame. Because of this, going
backwards really *is* much more difficult to any player or codec (unless you
have one keyframe every frame, which defeats the purpose of temporal
compression).

If you're having that problem, try lowering the steps between keyframes on
your video (say, one keyframe every 15 frames instead of one every 30
frames). It should make things better, but at a cost - your video file will
be bigger.


Zeh

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


SV: [Flashcoders] Allow smoothing on imported jpeg:s

2006-10-10 Thread Johan Karlsson
... Which works as long as the project is a flash 8 project. ;) 

But I guess most projects these days are just that.

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För ???
Skickat: den 10 oktober 2006 12:53
Till: Flashcoders mailing list
Ämne: Re: [Flashcoders] Allow smoothing on imported jpeg:s

use the BitmapData Object to draw the jpg 


- Original Message - 
From: "Johan Karlsson" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 4:54 PM
Subject: SV: [Flashcoders] Allow smoothing on imported jpeg:s


Not sure if there is any other way but the only way I know to make 
transformations of external pictures to look good is to keep the main timeline 
of the level only a single frame long.

However since a main timeline with a single frame doesn't wor that well with 
preloaders this requires you to have a movie with the sole purpose of loading 
the main movie... 


-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Johan Nyberg
Skickat: den 10 oktober 2006 10:24
Till: flashcoders@chattyfig.figleaf.com
Ämne: [Flashcoders] Allow smoothing on imported jpeg:s

Hi everybody, anybody know if there is a way to use the "allow 
smoothing" functionality on imported jpeg:s? I want to be able to rotate 
imported jpeg:s, but they look awful, and there doesn't seem to be a way 
to switch on allow smoothing with action script.

Is there a work-around?

-- 
Varmfrontsgatan 1
128 34 Skarpnäck
070 - 407 83 00
08 - 37 16 73

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

2006-10-10 Thread Zeh Fernando
It seems to work but it kills my CPU making everyother thing in the site 
not

working and making the video running slowlier. When I go back to fordward
playing everything goes back to normality.
Any clues? Do I have to look for some flaws in my code or is there 
something

wrong with embbebed video?


It's probably neither one of those alternatives - it's more like a fact of 
life.


The way temporal compression works for video is by having one keyframe (the 
entire image) followed by several frames (chunks of image that only specify 
changes to the image data). When doing forward this is fine, but when 
seeking to a different frame, the render has to actually go to an specific 
keyframe, then render forward to the specified frame. Because of this, going 
backwards really *is* much more difficult to any player or codec (unless you 
have one keyframe every frame, which defeats the purpose of temporal 
compression).


If you're having that problem, try lowering the steps between keyframes on 
your video (say, one keyframe every 15 frames instead of one every 30 
frames). It should make things better, but at a cost - your video file will 
be bigger.



Zeh 


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

2006-10-10 Thread Michael A. Jordan
Try changing the line:
_textOne._accProps.forcesimple = true;
to:
 _textOne._accProps.forceSimple = true;

I'm pretty sure the .forceSimple accessibility property is case sensitive.

-- MJ


Michael A. Jordan
[EMAIL PROTECTED]


-Original Message-
From: Andrew Kirkpatrick [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 09, 2006 8:53 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Accessibility: TextField Reading Twice

Interesting.  What version of JAWS are you testing with?  What version
of the Flash player?  Can you post a link?  The FLA?

Thanks,
AWK 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of JerBrand
> Sent: Monday, October 09, 2006 12:09 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Accessibility: TextField Reading Twice
> 
> Desperate for help, have been fighting this issue for a week:
> 
> I've been playing with a set of components for non-technical users: 
> Basic idea is to provide some simple "full page" components 
> that are accessible without any real effort on the user 
> building the fla.
> 
> So, they're finished and have been reviewed by a 
> accessibility place out of VA. Everything seems to be working 
> perfectly, spare one silly item: 
> When JAWS is reading the page content, The TextField in one 
> and only one component reads twice, every time. However, if 
> you tab from item to item in the flash movie, none of the 
> items read the text twice.
> 
> I've viewed the movie in the debugger and confirmed that the 
> text is only set for that TextField and doesn't appear 
> anywhere else. I've traced out text for every MC on the page, 
> and I've set the TextField __accProps to be silent and added 
> the text to the _accProps.name of the containing MovieClip. 
> Still reads twice. If I strip out the accessibility code for 
> all items in the component, that bit of text is read.
> 
> Anyone know of a way to figure out what's happening? 
> 
> The accessibility code is very simple:
> 
> _textOne._accProps = new Object();
> 
> _textOne._accProps.name = removeHTML(__text1);
> 
> _textOne._accProps.forcesimple = true;
> 
> _textOne.tabIndex = _loc2.text1;
> 
> 
> _textOne is a MovieClip with a TextField inside of it at 0,0. 
> Really the only thing it adds is a setSize() method that 
> resizes the TextField if the layout changes, and a get/set 
> "Text" property. The rest is as simple as it sounds.
> 
> Thanks for the help
> 
> Jer Brand
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Flashcomm down?

2006-10-10 Thread Dennis - I Sioux
Hey,

I was wondering if anyone knwos what happend to the flashcomm flashcoders 
list.. it's not been working for a few weeks now..
Anyone else experiencing the problem?

With kind regards

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

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


Re: [Flashcoders] Playing video backwards kills my CPU

2006-10-10 Thread Ricardo Sánchez

Thanks, If I do that it works, but weight goes from 560Kbs to 7Mbs!!! I
can't do that :(

On 10/10/06, David Buff <[EMAIL PROTECTED]> wrote:


Hello again

Another way:
When you import your video, when you are on the "Encoding" page, select
"Show Advanced Settings", then "Key frame placement" to "custom", and
write
"1" in "Key frame Interval". So each frame will be a key frame, and each
frame will be all described. But your swf will be more eavy. I have no
time
to try it, may be it works...

David Buff

- Original Message -
From: "David Buff" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 10:48 AM
Subject: Re: [Flashcoders] Playing video backwards kills my CPU


sorry for my bad english...

There is two kinds of movie codec for the compression, first using spacial
compression only (like mjpeg...), and second using spatial compression  in
association with key frame (like mpeg, sorenson...). The key frame
describe
the entire picture only once each 15 frames or 8 frames for exemple. The
other frames describe only what has changed in the picture, with a
threshold. It describe for exemple only the arm of a people who's moving,
but not the background witch do not move.

So when you want to read a movie forward, the codec read the key frame
witch
is the reference to fill the "holes" not described in the other frames.
Each
15 frames, a new key frame describe the entire picture (so also the
background) and define a new reference for the next frames.

The problem is that when you want to play backward, like frame-1, the CPU
need to go 15 frames before to find the previous key frame, load the
entire
description of the picture, and build frame by frame, fill the different
holes of each frames, to be able to display the frame you want.

If you are lucky, your index (frame-1) is the index of a key frame. Then
the
CPU work quickly. But if you are not lucky, your index is (key frame -
14),
then the CPU need to rebuild 14 frames to be able to display the one you
want.

There is no solution to your problem, because Flash don't offer the
possibility to use a "only spatial" codec compression. And this kind of
compression take a lot of Mo because all frames are described.

I thaught to an alternative but never tried it, you can try to draw each
frame of your movie in so many BitmapData you need. It will take a lot of
memory space, and a preload time, but after that, you index the BitmapData
you need, and it will work faster. I don't know if it is possible to draw
a
.mov frame in a BitmapData. If it's possible, tell us.

David Buff

- Original Message -
From: "Ricardo Sánchez" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 10:07 AM
Subject: [Flashcoders] Playing video backwards kills my CPU


>I have a .mov embebbed in the timeline as a movieclip. I have setted a
stop
> to it so I play it with a codeline like this video.gotoAndStop
> (video._currentframe+1);
>
> It works perfectly, my problem comes when I want to play it backwards, I
> follow a similar procedure doing:
> video.gotoAndStop(video._currentframe-1);
>
> It seems to work but it kills my CPU making everyother thing in the site
> not
> working and making the video running slowlier. When I go back to
fordward
> playing everything goes back to normality.
>
> Any clues? Do I have to look for some flaws in my code or is there
> something
> wrong with embbebed video?
>
> Thanks
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

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

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

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

2006-10-10 Thread 赵洪日
use the BitmapData Object to draw the jpg 


- Original Message - 
From: "Johan Karlsson" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 4:54 PM
Subject: SV: [Flashcoders] Allow smoothing on imported jpeg:s


Not sure if there is any other way but the only way I know to make 
transformations of external pictures to look good is to keep the main timeline 
of the level only a single frame long.

However since a main timeline with a single frame doesn't wor that well with 
preloaders this requires you to have a movie with the sole purpose of loading 
the main movie... 


-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Johan Nyberg
Skickat: den 10 oktober 2006 10:24
Till: flashcoders@chattyfig.figleaf.com
Ämne: [Flashcoders] Allow smoothing on imported jpeg:s

Hi everybody, anybody know if there is a way to use the "allow 
smoothing" functionality on imported jpeg:s? I want to be able to rotate 
imported jpeg:s, but they look awful, and there doesn't seem to be a way 
to switch on allow smoothing with action script.

Is there a work-around?

-- 
Varmfrontsgatan 1
128 34 Skarpnäck
070 - 407 83 00
08 - 37 16 73

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

2006-10-10 Thread David Buff

Hello again

Another way:
When you import your video, when you are on the "Encoding" page, select 
"Show Advanced Settings", then "Key frame placement" to "custom", and write 
"1" in "Key frame Interval". So each frame will be a key frame, and each 
frame will be all described. But your swf will be more eavy. I have no time 
to try it, may be it works...


David Buff

- Original Message - 
From: "David Buff" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 10:48 AM
Subject: Re: [Flashcoders] Playing video backwards kills my CPU


sorry for my bad english...

There is two kinds of movie codec for the compression, first using spacial
compression only (like mjpeg...), and second using spatial compression  in
association with key frame (like mpeg, sorenson...). The key frame describe
the entire picture only once each 15 frames or 8 frames for exemple. The
other frames describe only what has changed in the picture, with a
threshold. It describe for exemple only the arm of a people who's moving,
but not the background witch do not move.

So when you want to read a movie forward, the codec read the key frame witch
is the reference to fill the "holes" not described in the other frames. Each
15 frames, a new key frame describe the entire picture (so also the
background) and define a new reference for the next frames.

The problem is that when you want to play backward, like frame-1, the CPU
need to go 15 frames before to find the previous key frame, load the entire
description of the picture, and build frame by frame, fill the different
holes of each frames, to be able to display the frame you want.

If you are lucky, your index (frame-1) is the index of a key frame. Then the
CPU work quickly. But if you are not lucky, your index is (key frame - 14),
then the CPU need to rebuild 14 frames to be able to display the one you
want.

There is no solution to your problem, because Flash don't offer the
possibility to use a "only spatial" codec compression. And this kind of
compression take a lot of Mo because all frames are described.

I thaught to an alternative but never tried it, you can try to draw each
frame of your movie in so many BitmapData you need. It will take a lot of
memory space, and a preload time, but after that, you index the BitmapData
you need, and it will work faster. I don't know if it is possible to draw a
.mov frame in a BitmapData. If it's possible, tell us.

David Buff

- Original Message - 
From: "Ricardo Sánchez" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 10:07 AM
Subject: [Flashcoders] Playing video backwards kills my CPU



I have a .mov embebbed in the timeline as a movieclip. I have setted a stop
to it so I play it with a codeline like this video.gotoAndStop
(video._currentframe+1);

It works perfectly, my problem comes when I want to play it backwards, I
follow a similar procedure doing: 
video.gotoAndStop(video._currentframe-1);


It seems to work but it kills my CPU making everyother thing in the site 
not

working and making the video running slowlier. When I go back to fordward
playing everything goes back to normality.

Any clues? Do I have to look for some flaws in my code or is there 
something

wrong with embbebed video?

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

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



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

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

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

2006-10-10 Thread Giles Taylor
Hi All,
I've got a weird problem going on with my textfields. All is ok (see:
notCut-off.jpg) until I use the _width property (reading, not writing)
at which point the text is getting chopped off at the end (see:
cut-off.jpg).
 
I have found that if I don't set antiAliasType = "advanced" then _width
doesn't cause any problems, but the text looks bad!
 
Any ideas?
 
//CODE
 
var unitButtonTextFeild_tf:TextField =
unitButton_mc.createTextField("unitButtonTextFeild_tf", 1, 15, 5, 10,
5);
unitButtonTextFeild_tf.wordWrap = false;
unitButtonTextFeild_tf.multiline = false;
unitButtonTextFeild_tf.autoSize = "left";
unitButtonTextFeild_tf.background = false;
unitButtonTextFeild_tf.border = true;
unitButtonTextFeild_tf.selectable = false;
unitButtonTextFeild_tf.embedFonts = true;
unitButtonTextFeild_tf.setNewTextFormat(unitButtonText_fmt);
unitButtonTextFeild_tf.antiAliasType = "advanced";
unitButtonTextFeild_tf.gridFitType = "pixel";
 
unitButtonTextFeild_tf.text = unitsList[n].subTitle;
 
var bgWidth:Number = unitButtonTextFeild_tf._width + 25;
 
var unitButtonBG_mc:MovieClip =
unitButton_mc.createEmptyMovieClip("unitButtonBG_mc" + n, 0);
unitButtonBG_mc.beginFill(0xFF, 100);
unitButtonBG_mc.moveTo(0, 0);
unitButtonBG_mc.lineTo(bgWidth,  0);
unitButtonBG_mc.lineTo(bgWidth,  30);
unitButtonBG_mc.lineTo(0,  30);
unitButtonBG_mc.lineTo(0, 0);
unitButtonBG_mc.endFill();
 
//END CODE
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Allow smoothing on imported jpeg:s

2006-10-10 Thread Michael Stuhr

Arul Prasad M L schrieb:

There is no one line solution to this:
Tinic Uro on the Flash player team had a way to do this using BitmapData
class. Check this out:
http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html



if you need a class, martijn has already one:
http://www.martijndevisser.com/blog/article/imageloader-class-for-flash-8

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 9, Binary sockets and Zinc

2006-10-10 Thread The Helmsman
Greetings!
I'm participating in some project as a Flash consultant, but during last days I 
found that I missed some knowledge on subject and decided to ask community 
members for help.
In order to explain this upcoming project briefly I need to say following:
It will be Flash application written in Flash 9 that will be incorporated in 
the Zinc player environment and distributed as some executable for download.
This application (when it will be executed) must open the binary socket 
connection in order to get data from server. 
I know that Zinc now have full support of Flash 9, but when I've read about 
binary sockets on Adobe [Macromedia] website I found some security restrictions 
and therefore I want to ask: if Zinc provides support for binary sockets with 
same restrictions Flash do or not? 
When I ask this question, I mean if my application which will be run locally 
can communicate with some internet host using binary sockets or not? 
I'll appreciate for any help and especially if someone here made similar thing 
before, I'm begging him to find two minutes and reply on this message.
Sincerely,
Igor Vasiliev
Atidim 2, Tel-Aviv, Israel
phone: +972-36471884
fax: +972-36472722
web: www.mixtv.tv
email: [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] flash 9 specific as 3 tutorials

2006-10-10 Thread The Helmsman
Take a look at: http://board.flashkit.com/board/showthread.php?t=698429
Hope you'll find a lot of new things there.

Sincerely,

Igor Vasiliev
Atidim 2, Tel-Aviv, Israel
phone: +972-36471884
fax: +972-36472722
web: www.mixtv.tv
email: [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Sunday, October 08, 2006 11:06 PM
To: Flashcoders mailing list
Subject: [Flashcoders] flash 9 specific as 3 tutorials

Hi there...

I was wondering if anyone has come across and flash 9/as 3 specific 
tutorials? I doubt I will be using flex for some time (as I only have a 
mac), and was hoping to look at some stuff from the flash 9 POV. I 
looked at the one in the adobe developer center.


Thanks!

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

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


__ NOD32 1.1796 (20061010) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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] Playing video backwards kills my CPU

2006-10-10 Thread David Buff

sorry for my bad english...

There is two kinds of movie codec for the compression, first using spacial 
compression only (like mjpeg...), and second using spatial compression  in 
association with key frame (like mpeg, sorenson...). The key frame describe 
the entire picture only once each 15 frames or 8 frames for exemple. The 
other frames describe only what has changed in the picture, with a 
threshold. It describe for exemple only the arm of a people who's moving, 
but not the background witch do not move.


So when you want to read a movie forward, the codec read the key frame witch 
is the reference to fill the "holes" not described in the other frames. Each 
15 frames, a new key frame describe the entire picture (so also the 
background) and define a new reference for the next frames.


The problem is that when you want to play backward, like frame-1, the CPU 
need to go 15 frames before to find the previous key frame, load the entire 
description of the picture, and build frame by frame, fill the different 
holes of each frames, to be able to display the frame you want.


If you are lucky, your index (frame-1) is the index of a key frame. Then the 
CPU work quickly. But if you are not lucky, your index is (key frame - 14), 
then the CPU need to rebuild 14 frames to be able to display the one you 
want.


There is no solution to your problem, because Flash don't offer the 
possibility to use a "only spatial" codec compression. And this kind of 
compression take a lot of Mo because all frames are described.


I thaught to an alternative but never tried it, you can try to draw each 
frame of your movie in so many BitmapData you need. It will take a lot of 
memory space, and a preload time, but after that, you index the BitmapData 
you need, and it will work faster. I don't know if it is possible to draw a 
.mov frame in a BitmapData. If it's possible, tell us.


David Buff

- Original Message - 
From: "Ricardo Sánchez" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 10:07 AM
Subject: [Flashcoders] Playing video backwards kills my CPU



I have a .mov embebbed in the timeline as a movieclip. I have setted a stop
to it so I play it with a codeline like this video.gotoAndStop
(video._currentframe+1);

It works perfectly, my problem comes when I want to play it backwards, I
follow a similar procedure doing: 
video.gotoAndStop(video._currentframe-1);


It seems to work but it kills my CPU making everyother thing in the site 
not

working and making the video running slowlier. When I go back to fordward
playing everything goes back to normality.

Any clues? Do I have to look for some flaws in my code or is there 
something

wrong with embbebed video?

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

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



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

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


Re: [Flashcoders] Allow smoothing on imported jpeg:s

2006-10-10 Thread Arul Prasad M L

There is no one line solution to this:
Tinic Uro on the Flash player team had a way to do this using BitmapData
class. Check this out:
http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html

~Arul Prasad.

-- Forwarded message --
From: Johan Nyberg <[EMAIL PROTECTED]>
Date: Oct 10, 2006 1:53 PM
Subject: [Flashcoders] Allow smoothing on imported jpeg:s
To: flashcoders@chattyfig.figleaf.com

Hi everybody, anybody know if there is a way to use the "allow
smoothing" functionality on imported jpeg:s? I want to be able to rotate
imported jpeg:s, but they look awful, and there doesn't seem to be a way
to switch on allow smoothing with action script.

Is there a work-around?

--
Varmfrontsgatan 1
128 34 Skarpnäck
070 - 407 83 00
08 – 37 16 73

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

2006-10-10 Thread Julien Vignali

Hi Johan,
Loading external Jpeg with LoadMovie or MovieClipLoader gives that nasty 
effects on rotated clips... The workaround is to use BitmapData (flash8) 
that will smooth the loaded images.


I found a custom class that allows you to load images in a handy way.
Take a look at:

http://guepard.media-box.net/index.php?2006/09/30/10

It's in french but source, usage and example are provided.

Hope it helps!

Julien


Johan Nyberg a écrit :
Hi everybody, anybody know if there is a way to use the "allow 
smoothing" functionality on imported jpeg:s? I want to be able to rotate 
imported jpeg:s, but they look awful, and there doesn't seem to be a way 
to switch on allow smoothing with action script.


Is there a work-around?



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

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


SV: [Flashcoders] Allow smoothing on imported jpeg:s

2006-10-10 Thread Johan Karlsson
Not sure if there is any other way but the only way I know to make 
transformations of external pictures to look good is to keep the main timeline 
of the level only a single frame long.

However since a main timeline with a single frame doesn't wor that well with 
preloaders this requires you to have a movie with the sole purpose of loading 
the main movie... 


-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Johan Nyberg
Skickat: den 10 oktober 2006 10:24
Till: flashcoders@chattyfig.figleaf.com
Ämne: [Flashcoders] Allow smoothing on imported jpeg:s

Hi everybody, anybody know if there is a way to use the "allow 
smoothing" functionality on imported jpeg:s? I want to be able to rotate 
imported jpeg:s, but they look awful, and there doesn't seem to be a way 
to switch on allow smoothing with action script.

Is there a work-around?

-- 
Varmfrontsgatan 1
128 34 Skarpnäck
070 - 407 83 00
08 - 37 16 73

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

2006-10-10 Thread David Buff

sorry for my bad english...

There is two kinds of movie codec for the compression, first using spacial 
compression only (like mjpeg...), and second using spatial compression  in 
association with key frame (like mpeg, sorenson...). The key frame describe 
the entire picture only once each 15 frames or 8 frames for exemple. The 
other frames describe only what has changed in the picture, with a 
threshold. It describe for exemple only the arm of a people who's moving, 
but not the background witch do not move.


So when you want to read a movie forward, the codec read the key frame witch 
is the reference to fill the "holes" not described in the other frames. Each 
15 frames, a new key frame describe the entire picture (so also the 
background) and define a new reference for the next frames.


The problem is that when you want to play backward, like frame-1, the CPU 
need to go 15 frames before to find the previous key frame, load the entire 
description of the picture, and build frame by frame, fill the different 
holes of each frames, to be able to display the frame you want.


If you are lucky, your index (frame-1) is the index of a key frame. Then the 
CPU work quickly. But if you are not lucky, your index is (key frame - 14), 
then the CPU need to rebuild 14 frames to be able to display the one you 
want.


There is no solution to your problem, because Flash don't offer the 
possibility to use a "only spatial" codec compression. And this kind of 
compression take a lot of Mo because all frames are described.


I thaught to an alternative but never tried it, you can try to draw each 
frame of your movie in so many BitmapData you need. It will take a lot of 
memory space, and a preload time, but after that, you index the BitmapData 
you need, and it will work faster. I don't know if it is possible to draw a 
.mov frame in a BitmapData. If it's possible, tell us.


David Buff

- Original Message - 
From: "Ricardo Sánchez" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Tuesday, October 10, 2006 10:07 AM
Subject: [Flashcoders] Playing video backwards kills my CPU



I have a .mov embebbed in the timeline as a movieclip. I have setted a stop
to it so I play it with a codeline like this video.gotoAndStop
(video._currentframe+1);

It works perfectly, my problem comes when I want to play it backwards, I
follow a similar procedure doing: 
video.gotoAndStop(video._currentframe-1);


It seems to work but it kills my CPU making everyother thing in the site 
not

working and making the video running slowlier. When I go back to fordward
playing everything goes back to normality.

Any clues? Do I have to look for some flaws in my code or is there 
something

wrong with embbebed video?

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

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



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

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


[Flashcoders] Allow smoothing on imported jpeg:s

2006-10-10 Thread Johan Nyberg
Hi everybody, anybody know if there is a way to use the "allow 
smoothing" functionality on imported jpeg:s? I want to be able to rotate 
imported jpeg:s, but they look awful, and there doesn't seem to be a way 
to switch on allow smoothing with action script.


Is there a work-around?

--
Varmfrontsgatan 1
128 34 Skarpnäck
070 - 407 83 00
08 – 37 16 73

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

2006-10-10 Thread Ricardo Sánchez

I have a .mov embebbed in the timeline as a movieclip. I have setted a stop
to it so I play it with a codeline like this video.gotoAndStop
(video._currentframe+1);

It works perfectly, my problem comes when I want to play it backwards, I
follow a similar procedure doing: video.gotoAndStop(video._currentframe-1);

It seems to work but it kills my CPU making everyother thing in the site not
working and making the video running slowlier. When I go back to fordward
playing everything goes back to normality.

Any clues? Do I have to look for some flaws in my code or is there something
wrong with embbebed video?

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

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


Re: [Flashcoders] Flash transparent on top of Windows Media Player

2006-10-10 Thread Zárate

You might want to think it twice before using wmode:

http://www.google.co.uk/search?q=wmode+problems&start=0&ie=utf-8&oe=utf-8

Anyone knows if Adobe is trying to fix this for the next release of the player?

Cheers,

Juan

On 10/10/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:

It's easy to get the impression that the video is playing inside the the
browser window but it isn't.  The ActiveX control in the browser talks
to Windows and tells it where to draw the video, which actually plays
above the browser window.  When you move the browser window around, it's
telling the video to move with it.  Sometimes, the video will move with
it, sometimes you will see a "masking effect" where the video stays in
place while the player moves.  Both behaviors are good demonstrations
that the video and the player are separate components in Windows.

Unfortunately, there's nothing you can do about it, AFAIK.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Movieclip event hook back to class instance?

2006-10-10 Thread Daniel Forslund|Lists


On 6 okt 2006, at 19.15, slangeberg wrote:

My problem is finding a way for the preloader class instance to  
tell when

the

movieclip reaches a certain frame or frame label


Actually, I prefer to set things up in an event-based model. I  
don't have
the code in front of me, but if you look at the EventDispatcher  
class, you
can have whatever movie is doing the loading to add listeners to  
that which

was loaded:

myClip.addEventListener( "complete", Delegate.create( this,  
onComplete ) );


and inside of myClip, you'll need to:

this.dispatchEvent( {type:"complete", target:this} );

Unfortunately this behavior is not built into MovieClip... Just some
ideas...

Scott


Thanks for the suggestions everyone!
I ended up setting up my own event handler without using listener  
functionality. It tags movieclips with an ID, which is passed to a  
central content manager, which in turn passes it to the correct class  
instance. Very simple and efficient with few lines of code. Perhaps  
not very elegant, but it works. :-)


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

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