Re: [Flashcoders] converting .mov to .flv

2007-06-18 Thread master
Hi, Jim

it is easy to convert your mov files to flv using Flash Video MX at 
http://www.flash-video-mx.com/video_to_flash_web/

Best regards!




master
2007-06-18



From:  Jim Greiner
Sent:  2007-06-16 02:13:30
To:  flashcoders@chattyfig.figleaf.com
CC:  
Subject:  [Flashcoders] converting .mov to .flv


Hello,

I'm looking for an easy, inexpensive way to convert my .mov QuickTime  
movies ( 2 to 10 minutes long) to .flv in order for me to put them on  
a web site to be viewed by Flash Player.  I do have Flash MX 2004  
installed on my Mac, but I haven't been able to determine if I can  
use it to do this conversion.

I'm not a tech person, I'm a musician making instructional videos, so  
I do need something easy to learn and use.  Does anyone have hands-on  
experience with any program that meets these needs?

I appreciate any help anyone can give.

Thanks.

Jim



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Input field bug in firefox when embedding swf with WMODE as transparent og opaque

2007-06-18 Thread Martin Baltzer Hennelund
Hi,

I just finished creating af website where various swf files is embedded
transparently. This is done in order to be able to place javscript popup
wondows on top of the flash.

Unfortunately I discovered that this causes a weird bug in firefox.

Apparently no special characters (produces by the Alt Gr key) works in
the input fields when running the flash in firefox which makes it hard
for the user to type in their email adress for instance.

When I set the WMODE to normal everything worls fine again, but then my
javascript popups don't work properly.

Anyone knows how to fix this and still use the transparent option?

Cheers
Martin hennelund


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

2007-06-18 Thread Digg Yeah

Hi All,

I tried the example for custom mouse pointer as shown in Flash cs3
documentation. It works fine. But when the pointer graphics is added from
library, it works in a weird way. Mouse gets over the pointer graphics
resulting in flickering and choppy animation.

I have posted the source files here:
http://www.actionscript.org/forums/showthread.php3?t=139310


Here is the code i am using:

// pseudoMouse is the class of an mc in Library
//pad is the instance name of an mc on stage
//When mouseover mc, the cursor shows up
package{
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.ui.Mouse;

public class MouseManage extends MovieClip{
 private var cursor:pseudoMouse;

 public function MouseManage():void{
 cursor=new pseudoMouse();
 addChild(cursor);
 pad.addEventListener(MouseEvent.MOUSE_OVER,mOver);
 pad.addEventListener(MouseEvent.MOUSE_OUT,mOut);
}

private function mOut(event:MouseEvent):void{
 Mouse.show();
 pad.removeEventListener(MouseEvent.MOUSE_MOVE, redrawCursor);
 cursor.visible = false;
}

private function mOver(event:MouseEvent):void{
 Mouse.hide();
 cursor.visible =true;
 pad.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor);
}

private function redrawCursor(event:MouseEvent):void{
  cursor.x = event.stageX;
  cursor.y = event.stageY;
  event.updateAfterEvent();
 }
}
}



Any help would be highly appreciated.
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] Gaia v1.0.3 Update!

2007-06-18 Thread Steven Sacks

The Gaia Framework for Adobe Flash v1.0.3 Update is available now.
http://www.gaiaflashframework.com/forum/index.php?topic=48.0

New in 1.0.3:
On-Demand Assets - Assets can now be set to not preload with their Page 
and instead you control when they load using the simple assets API, and 
the preloader can be used to show their progress, as well.


Tracking - Gaia now has a Tracking class which supports Javascript-based 
tracking such as Omniture.


Upgrade notification - Gaia notifies you when a new version is available.

Update project to latest version of Gaia - You can now update an 
existing project to the latest version of the Gaia Framework.


Plus, some various optimizations to the internal classes of Gaia thrown 
in for good measure.


--
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
gaia: http://www.gaiaflashframework.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] AS to UML tool

2007-06-18 Thread Pedro Taranto
which tools do you use/recommend to generate a diagram classes FROM AS2 
code ???


--Pedro Taranto


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

2007-06-18 Thread Graham Pearson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Has anyone been able to install the Flash8 Flash Remoting 2 components
from adobe's website. I have a new computer with XP Pro and when I try
to install this MSI it gives me an error message of InstallScript is
either missing or a newer version needs to be installed.

I have searched the Net for a solution, but everything that I have tried
does not work.



- --
Graham Pearson, System Administrator / Application Developer
Northern Indiana Educational Services Center
Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148
Polycom H.323 is 216.23.241.18

MySpace Website: http://www.myspace.com/gspearson
BitWine Advisor: http://www.bitwine.com/advisors/gpearson
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGdmUTakuGrBT7wfkRAotTAKDGzbePLCtQrS1jyGEM17XN5s0s/gCfWS8p
BgczPBjDBUX41oEAnfm7aEw=
=H0lD
-END PGP SIGNATURE-
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] wmode performance headache

2007-06-18 Thread Martin Klasson


Hi Everyone,

I got a campaign which is using some intense animations,
and everything works well and fast as usual in the flash IDE.

but in the browser it doesnt reach the same speed, as usual,

BUT,
in Firefox, when setting wmode to opaque, than it really goes
great, the fps-counter I have really shows the same fps as the movie.

but in Internet Explorer, opaque makes the flash player to freeze in 
some of

the intense animations, the framerate doesnt go down -the whole flash
just freezes for a short time. That is so strange. So window mode makes
the best performance in Internet Explorer.

Anyone who can clarify why, how and what I should do to make the
best performance out of this?

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

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


[Flashcoders] External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber

Dear flash coders,

I wonder, if it is a good idea at all and surprisingly
can't find any related discussions in the archive -

I have a bigger Main.swf (224 KB, because of playing
card pictures + v2 components) and for preloading it
I've created this (only 400 bytes small) Load.swf
of the same width, height and frame rate:

   var depth:Number = 10;
   var mcl:MovieClipLoader = new MovieClipLoader();
   var cont_mc:MovieClip =
   this.createEmptyMovieClip('cont_mc', depth++);
   var load_txt:TextField = this.createTextField('load_txt',
depth++, Stage.width / 2, Stage.height / 2, 200, 100);

   mcl.addListener(this);

   //mcl.loadClip('Main.swf', _root);
   mcl.loadClip('Main.swf', cont_mc);

   function onLoadInit(target_mc:MovieClip,
   loaded:Number, total:Number):Void {
load_txt.text = Math.ceil(loaded * 100 / total) + '%';
   }

   function onLoadInit(target_mc:MovieClip) {
load_txt._visible = false;

   // XXX have to pass variables manually :-(
target_mc.userid = _root.userid;
target_mc.pass = _root.pass;

target_mc._lockroot = true;
target_mc.play();
   }

My universal preloader kind of works, but
I'm not really sure - because when I (CTRL-)click
reload button in MSIE or Firefox, then the Main.swf
displays instantly, without re-preloading again...
(Is there a way to clear flash player's cache?)

One more annoyance is that I have to copy
the _root.userid and _root.pass needed by
Main.swf manually...

And the final (and probably most stupid question)
is, why can't I call mcl.loadClip('Main.swf', _root) ?
Isn't _root a MovieClip too? (Despite rereading docs,
I'm confused by the _root and _levelX stuff.)

Thank you for any thoughts (I'm sure everyone
had considered an external preloader like mine
at some point... So are you using it?)

Regards
Alex

--
http://preferans.de
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber

Sorry, a small copy-paste typo -
the function below is onLoadProgress

On 6/18/07, Alexander Farber [EMAIL PROTECTED] wrote:

function onLoadInit(target_mc:MovieClip,
loaded:Number, total:Number):Void {
load_txt.text = Math.ceil(loaded * 100 / total) + '%';
}

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

2007-06-18 Thread Digg Yeah

In normal situation, flash player draws directly to the rectangular area of
screen it resides in . But when wmode is set, the job is routed through
browser.
So basically, the setting wmode value puts performance at the mercy of the
browser . If the browser has a bad implementation of wmode, then it would
result in poor performance.

Its a well known fact that setting wmode to transparent results in extremely
bad performance in Gecko browsers.


On 6/18/07, Martin Klasson [EMAIL PROTECTED] wrote:



Hi Everyone,

I got a campaign which is using some intense animations,
and everything works well and fast as usual in the flash IDE.

but in the browser it doesnt reach the same speed, as usual,

BUT,
in Firefox, when setting wmode to opaque, than it really goes
great, the fps-counter I have really shows the same fps as the movie.

but in Internet Explorer, opaque makes the flash player to freeze in
some of
the intense animations, the framerate doesnt go down -the whole flash
just freezes for a short time. That is so strange. So window mode makes
the best performance in Internet Explorer.

Anyone who can clarify why, how and what I should do to make the
best performance out of this?

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

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


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

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


RE: [Flashcoders] Grid / Math - getting neighbouring positions

2007-06-18 Thread Merrill, Jason
That is a nice solution, but it leaves me with the problem 
that starting from one point (3,2) it only produces a set of 
points of  ring directly around the selected point. I am 
looking for a solution to get _all_ the points, from a 
certain point and the move in a ring towerds the outside of a grid.

Uh, you can still do that with my code - just modify it as needs be. You
know how long each array is, you can move out from the center by moving
one place back in the arrray in one direction, one way in the other by
increasing the position in the array.  Take it or leave it I guess.

Jason Merrill
Bank of America  
GTO Learning  Leadership Development
eTools  Multimedia Team


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

2007-06-18 Thread John Dowdell
I don't have full details about changes in each browser version.

There are two performance hits described here:
  (a)  running things in a browser (Projectors (and presumably Apollo) are 
fastest; different browsers have different strategies in allocating processor 
cycles to plugins);
  (b)  piping the plugin's content to the browser for compositing, rather than 
directly-to-screen (WMODE).

If your tests show that a particular version of Microsoft Internet Explorer 
performs much worse than other browsers do, then a good first step is to 
generalize the observation... confirm it with basic barebones SWF/HTML (no 
plugin-in-DIV, no rapidfire messaging etc), and confirm it on multiple machines.

I haven't heard many people previously report IE freezes w/WMODE -- if that 
were *always* the case then we'd see more of an uproar on the lists. That's 
what makes me wonder whether there's a particular dependency in this case, that 
gives you dramatically worse performance than what others see.

But there *will* be a performance degradation when playing within a browser, 
and when asking the browser to blend the plugin's content into its own 
rendering engine. It shouldn't cause an outright freeze, but there will indeed 
be a cost to performance.

jd


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Input field bug in firefox when embedding swf withWMODE as transparent og opaque

2007-06-18 Thread John Dowdell
Re: Some version of Firefox apparently stops ALT-key characters entered in SWF 
textfields when WMODE is used.

That might be true. First step would be the Firefox documentation -- check OS  
browser version against known issues, and either ask your audience to upgrade 
or just stopping trying to be so fancy in the frail and varied browsers.

It's also possible that this particular content triggers an odd failure in a 
particular browser brand/OS/version combo -- making a very simple HTML file, as 
well as a barebones SWF, and testing it on different machines with different 
keyboards would be the fastest way to detect this.

jd





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

2007-06-18 Thread ben gomez farrell

Hey everyone,
So this is especially because I want to try Flex out (always been doing 
Flash).  I recently had some Flash CS3 training and got to play for a 
bit with the button component in Flash.  Unfortunately, in the tutorial, 
I put the button component behind a mask in the demo.  Of course, the 
text for the button label didn't show up - because of the Flash player 
bug that device fonts behind a mask are a no-no.


Is this something that can be solved anyway?  I don't know the methods 
and properties behind the CS3 components or ESPECIALLY the Flex 
component framework well enough to know if I can access any text fields 
inside the components to be able to embed the fonts properly and shut 
off device text on the fields.


Anybody with any experience with this?  Are components behind a mask a 
no-go, or is it do-able?

Thanks!
ben
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Slow Audio on Mac, but not PC??

2007-06-18 Thread Jay Carlson
I'm still trying to work on this slow audio thing: I've created a  
flash file with audio that follows text on the screen.  but when I  
put it on the web, every time the page loads on a mac, the animation  
lags a bit while the audio is right on.  however, I viewed the page  
on a PC this weekend and found that the audio and the animation were  
both in perfect sync the way they should be.  what's the deal?  when  
I test the movie and when I play the published file from my desktop,  
they play correctly.  but as soon as I view it in firefox or safari  
on my mac (or anyone's mac for that matter) it gets off.  is this a  
known bug?  I've never really had it happen to me before.  any  
suggestions?


Jay

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber

Thank you, but unfortunately this:

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

[to prevent cacheing, ToolsInternet optionstemporary internet files
settingscheck every visit to page ]


won't clear the flash cache for me:
I don't see my preloader Load.swf anymore,
I see the Main.swf instantly...

Regards
Alex
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Digg Yeah

To see the preloader:

Test the movie in flash ide itself.

Control  Test movie
This will publish and open your swf. From
View Download settings  choose a very small value [or you can set your own
value ]

Now try
ViewStimulate download.

On 6/18/07, Alexander Farber [EMAIL PROTECTED] wrote:


Thank you, but unfortunately this:

On 6/18/07, Digg Yeah [EMAIL PROTECTED] wrote:
 [to prevent cacheing, ToolsInternet optionstemporary internet files
 settingscheck every visit to page ]

won't clear the flash cache for me:
I don't see my preloader Load.swf anymore,
I see the Main.swf instantly...

Regards
Alex
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Merrill, Jason
On 6/18/07, Digg Yeah [EMAIL PROTECTED] wrote:
 _root is a reference to the root timeline of a swf. Its not 
a movieclip.

That is an incorrect statement.  _root is a reference to a MovieClip.
_level0 is also a reference to a MovieClip.  The timeline is only a
Flash IDE visual representation of a MovieClip.

Jason Merrill
Bank of America  
GTO Learning  Leadership Development
eTools  Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: External preloader using loadClip() - is it a good idea?

2007-06-18 Thread Alexander Farber

Hello all again,

I've solved my problem of the loadClip('Main.swf', ...)
delivering the same old version of the Main.swf by
the standard trick of appending a random string.

The minor problem left is that I have to copy my
authentication variables manually by doing:

target_mc.userid = _root.userid;
target_mc.pass = _root.pass;

That is why I'm asking about _root. If I could
load the Main.swf inplace of the root MovieClip,
then I maybe wouldn't need the copying above.

Regards
Alex

PS: And here is my current code (seems to work...)

var depth:Number = 10;
var mcl:MovieClipLoader = new MovieClipLoader();
var cont_mc:MovieClip =
   this.createEmptyMovieClip('cont_mc', depth++);
var load_txt:TextField = this.createTextField('load_txt',
   depth++, Stage.width / 2, Stage.height / 2, 200, 100);
var now:Date = new Date();
var tries:Number = 3;

mcl.addListener(this);
// append epoch seconds to prevent loading from cache
mcl.loadClip('Main.swf?' + now.getTime(), cont_mc);

function onLoadProgress(target_mc:MovieClip,
   loaded:Number, total:Number):Void {
load_txt.text = Math.ceil(loaded * 100 / total) + '%';
}

function onLoadInit(target_mc:MovieClip) {
load_txt.removeTextField();

target_mc._lockroot = true;
target_mc.userid = _root.userid;
target_mc.pass = _root.pass;
target_mc.play();
}

// workaround when testing locally (strip the seconds)
function onLoadError(target_mc:MovieClip, error:String) {
if ('URLNotFound' == error  tries--  0)
mcl.loadClip('Main.swf', cont_mc);
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] converting .mov to .flv

2007-06-18 Thread Jim Greiner
Thank you.  It seems that this requires a Windows compatible system,  
though, and I'm on a Mac.  I'll look into it more thoroughly.


Best,

Jim


On 18/06/2007, at 2:25 AM, master wrote:


Hi, Jim

it is easy to convert your mov files to flv using Flash Video MX at  
http://www.flash-video-mx.com/video_to_flash_web/


Best regards!




master
2007-06-18



From:  Jim Greiner
Sent:  2007-06-16 02:13:30
To:  flashcoders@chattyfig.figleaf.com
CC:
Subject:  [Flashcoders] converting .mov to .flv


Hello,

I'm looking for an easy, inexpensive way to convert my .mov QuickTime
movies ( 2 to 10 minutes long) to .flv in order for me to put them on
a web site to be viewed by Flash Player.  I do have Flash MX 2004
installed on my Mac, but I haven't been able to determine if I can
use it to do this conversion.

I'm not a tech person, I'm a musician making instructional videos, so
I do need something easy to learn and use.  Does anyone have hands-on
experience with any program that meets these needs?

I appreciate any help anyone can give.

Thanks.

Jim



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

2007-06-18 Thread Alexander Farber

Maybe you could do it with mencoder?
http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html
Available for all systems, incl. Win + Mac


 From:  Jim Greiner

 I'm looking for an easy, inexpensive way to convert my .mov QuickTime
 movies ( 2 to 10 minutes long) to .flv in order for me to put them on


Regards
Alex

--
http://preferans.de
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OT - OT FLV Encoder Tools / tips

2007-06-18 Thread Amir T Rocker
Hi try to set the On2VP6 codec set up to 700 K video data rate - 
thats about the best quality you can get :)

It may be too big though to be displayed smoothly :)

hope it works for you

best regards amir

Am 07:00 PM 6/10/2007 schrieben Sie:

Hi,

  This is OT and I am googling too, but my we are trying to import 
an uncompressed AVI into FLV format, except we want higher quality 
than the default Flash Video Importer can provide.


  The FLV itself is going to be running on a local-machine rather 
than the internet, so we don't care about bandwidth.


  The AVI is 3D textured landscape with 2D hand-drawn animations 
inserted.  The pixelation from the FLV compressor is particularly 
noticeable so apart from keyframing as many frames as possible, is 
there anything else we can do to improve the quality?


  Are there any 3rd party compressors better suited to this that 
people can recommend?


  Thanks

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

2007-06-18 Thread Cary Ho

Hi Everyone,

I have a swf file, that loads other swf files.

I have code in my loader swf file:

function init(){   
   var url:String = page1.swf;

   var urlReq:URLRequest = new URLRequest(url);
   ldr = new Loader();
   ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
   ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, 
loading);   
   ldr.load(urlReq);   
}



This works when all the files are in the same directory and I run it 
locally.
This doesnt seem to work when I publish to my webserver. I put all the 
files into the

same directory, but the swf file can seem to get the other swf files.

I always get a URL Not Found. error. What am I doing wrong?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading a swf from another swf

2007-06-18 Thread Merrill, Jason
ldr = new Loader();

You're using the Loader class instead of the MovieClipLoader class?
Isn't loader more for UI components and not external .swfs?

Jason Merrill
Bank of America  
GTO Learning  Leadership Development
eTools  Multimedia Team


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

2007-06-18 Thread David Ngo
I believe he's using AS3's Loader.

Cary, I believe the url's would be relative to the container SWF or HTML. So
if your SWFs are sitting in a folder called 'swf' and your HTML is in the
root, then all of your files must have a url of 'swf/file'.


David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, June 18, 2007 3:01 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Loading a swf from another swf

ldr = new Loader();

You're using the Loader class instead of the MovieClipLoader class?
Isn't loader more for UI components and not external .swfs?

Jason Merrill
Bank of America  
GTO Learning  Leadership Development
eTools  Multimedia Team


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

2007-06-18 Thread R�kos Attila

I don't think that this is a bug, rather a simple lack of a feature.
You can mask device fonts with masks created by script (instead of
mask layers), or embed the font and it will be maskable by mask
layers.

  Attila

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

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


Re: [Flashcoders] Flash 8 slow animation online, but not local??

2007-06-18 Thread John Dowdell

Jay Carlson wrote:
so I've made a short commercial using a lot of keyframing with text  and 
such that has embedded audio to go with it.  I have the audio  aligned 
with the text and it works fine when I test the movie and  also when I 
publish it.  but when I stick it on the web, the  animation is slower 
than the text and it gets off.  it's almost like  the publishing didn't 
work correctly.  is there a way to correct this  so the audio is lined 
up?  why would it be slow in a browser and not  on the published file?  
it can't be connection because I'm running  some nice fast internet.  


I'm not sure of the situation there, but browsers definitely impose 
their own overhead... people regularly see faster performance in 
Projectors, for similar content on a similar machine, than they do in 
any one browser, much less the entire set of browsers that your audience 
might use.


Have you tested that file on a slower computer yet? One mistake I see 
lots of people make is to set a high framerate, in hopes of making 
things smoother. What this actually does, though, is play faster on 
faster machines, and slower on slower machines. Setting a reasonable 
framerate (like, say, the 24-30 fps that movies and TV use) means that 
more machines will play that content at the same speed.


Other possible factors for slower browser performance include the 
surrounding HTML... most browsers are configured to support only two 
network requests per domain at a time. If you're streaming in a SWF, 
then any spacer GIFs or stylesheets or external .JS files or other 
material can also make things noticeably slower than when playing cached 
local content.


There could be a couple of different causes at play here, but the above 
are two of the big general issues. D'you think either might be affecting 
you here...?


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] Slow Audio on Mac, but not PC??

2007-06-18 Thread Duncan Reid

Hi Jay,

Just trying to help by clearing out the obvious here as i didn't see it
stated in your post, but is the audio set to 'stream' or 'event'?  I could
be wrong but I thought that the player would in fact skip frames in order to
keep up with the audio if it was set to 'stream'

Other than that i've never seen anything like you describe below when the
audio was set to stream...

hope this helps some,
Dunc


On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote:


I'm still trying to work on this slow audio thing: I've created a
flash file with audio that follows text on the screen.  but when I
put it on the web, every time the page loads on a mac, the animation
lags a bit while the audio is right on.  however, I viewed the page
on a PC this weekend and found that the audio and the animation were
both in perfect sync the way they should be.  what's the deal?  when
I test the movie and when I play the published file from my desktop,
they play correctly.  but as soon as I view it in firefox or safari
on my mac (or anyone's mac for that matter) it gets off.  is this a
known bug?  I've never really had it happen to me before.  any
suggestions?

Jay

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Slow Audio on Mac, but not PC??

2007-06-18 Thread Jay Carlson

Dunc,
  hey, the audio has just been dropped into the frames where I want  
it to start (event?)...should I change that to be brought in  
dynamically?  I don't know why it would work correctly on a PC and  
not a mac, though...

On Jun 18, 2007, at 2:41 PM, Duncan Reid wrote:


Hi Jay,

Just trying to help by clearing out the obvious here as i didn't  
see it
stated in your post, but is the audio set to 'stream' or 'event'?   
I could
be wrong but I thought that the player would in fact skip frames in  
order to

keep up with the audio if it was set to 'stream'

Other than that i've never seen anything like you describe below  
when the

audio was set to stream...

hope this helps some,
Dunc


On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote:


I'm still trying to work on this slow audio thing: I've created a
flash file with audio that follows text on the screen.  but when I
put it on the web, every time the page loads on a mac, the animation
lags a bit while the audio is right on.  however, I viewed the page
on a PC this weekend and found that the audio and the animation were
both in perfect sync the way they should be.  what's the deal?  when
I test the movie and when I play the published file from my desktop,
they play correctly.  but as soon as I view it in firefox or safari
on my mac (or anyone's mac for that matter) it gets off.  is this a
known bug?  I've never really had it happen to me before.  any
suggestions?

Jay

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Slow Audio on Mac, but not PC??

2007-06-18 Thread Duncan Reid

Hi Jay,

If it's set to 'event' it will play pretty much independant of the timeline
and if your machine is beefy enough to keep up with the animations while
it's playing you probably wouldn't have noticed it.

if you set it to 'stream' it will play at your movies framerate and skip
frames to keep up with the audio if it has to, if the animations are too
much. if you have it set to event now and switch it to stream you'll
probably have to move some keyframes around to sync everything back up.

the 'event / stream' settings are in the properties tab.  click the first
keyframe where the audio is, check to see if it's set to 'stream' or 'event'
under the 'sync' option.  I'm not sure what it defaults to,  i vaguely
remember it defaulting to 'event'.

if this is in fact the issue your experiencing, you'll just have a little
extra work on your hands moving some stuff around to sync up.

hope this helps,
Dunc




On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote:


Dunc,
   hey, the audio has just been dropped into the frames where I want
it to start (event?)...should I change that to be brought in
dynamically?  I don't know why it would work correctly on a PC and
not a mac, though...
On Jun 18, 2007, at 2:41 PM, Duncan Reid wrote:

 Hi Jay,

 Just trying to help by clearing out the obvious here as i didn't
 see it
 stated in your post, but is the audio set to 'stream' or 'event'?
 I could
 be wrong but I thought that the player would in fact skip frames in
 order to
 keep up with the audio if it was set to 'stream'

 Other than that i've never seen anything like you describe below
 when the
 audio was set to stream...

 hope this helps some,
 Dunc


 On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote:

 I'm still trying to work on this slow audio thing: I've created a
 flash file with audio that follows text on the screen.  but when I
 put it on the web, every time the page loads on a mac, the animation
 lags a bit while the audio is right on.  however, I viewed the page
 on a PC this weekend and found that the audio and the animation were
 both in perfect sync the way they should be.  what's the deal?  when
 I test the movie and when I play the published file from my desktop,
 they play correctly.  but as soon as I view it in firefox or safari
 on my mac (or anyone's mac for that matter) it gets off.  is this a
 known bug?  I've never really had it happen to me before.  any
 suggestions?

 Jay

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

2007-06-18 Thread Cary Ho

Yeah, im using action script 3. I got it working now, thanks for the info!


David Ngo wrote:

I believe he's using AS3's Loader.

Cary, I believe the url's would be relative to the container SWF or HTML. So
if your SWFs are sitting in a folder called 'swf' and your HTML is in the
root, then all of your files must have a url of 'swf/file'.


David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, June 18, 2007 3:01 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Loading a swf from another swf

  

   ldr = new Loader();
  


You're using the Loader class instead of the MovieClipLoader class?
Isn't loader more for UI components and not external .swfs?

Jason Merrill
Bank of America  
GTO Learning  Leadership Development

eTools  Multimedia Team


 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 new Class from string

2007-06-18 Thread Patrick Matte|BLITZ
Hey fellows, in AS3 how can I create class instances from a list of classes 
names. Take for example something like this:

import Circle;
import Square;
import Triangle;

var list:Array = new Array(Circle,Square,Triangle);

for(var i=0;ilist.length;i++){
var class = new list[i]();
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Grid - getting neighbouring positions

2007-06-18 Thread elibol

You might repeat the algorithm for getting the first ring on each cell that
makes up that ring.

A lazy way to do it would be to exclude the cell that the ring is
originating from, and any cells that have already been found.

A better solution would be to get the angle between the center and the
particular cell and take all cells in that area using some calculation that
correlates to the rate at which the area of the cells being captured grows.
You might need a bigger sample to get a solid formula for growth.

In any case, the initial data structure is what determines the algorithm, so
it might be best to come up with a data structure that links cell neighbors
the way you need them to be on construction in order to process finding
those neighbors right from the start.

One final approach that hit me just in case you are working with movieclips:
Create a circular clip, resize it centered where you are creating the ring,
and do a hit test on all the cells. Successful hit tests mean that they fall
in the perimeter of the circle. There is a ratio that relates the circle
size to the size of each ring, resize at that rate and you will get one ring
at a time.

Good luck!

On 6/16/07, Jiri Heitlager | dadata.org [EMAIL PROTECTED] wrote:


[0,0] [1,0] [2,0] [3,0] [4,0]
[0,1] [1,1] [2,1] [3,1] [4,1]
[0,2] [1,2] [2,2] [3,2] [4,2]
[0,3] [1,3] [2,3] [3,3] [4,3]
[0,4] [1,4] [2,4] [3,4] [4,4]

I have the following grid and would like to find the neighbouring
positions of a certain point, going in a radius from in to out, covering
all the positions.

Let say I take point [2,2] then its neighbours are in the first ring
[1,1] [2,1] [3,1] [3,2] [3,3] [2,3] [1,3] [1,2]
I manage to get the first ring, but getting the other rings I haven't
got a clue on how to do that.

Can somebody help me?

Thank you,

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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Slow Audio on Mac, but not PC??

2007-06-18 Thread Jay Carlson

dunc,
  hey, thanks for the info, I changed it to stream and it seems to  
have helped.  thanks!


  Jay


On Jun 18, 2007, at 3:14 PM, Duncan Reid wrote:


Hi Jay,

If it's set to 'event' it will play pretty much independant of the  
timeline
and if your machine is beefy enough to keep up with the animations  
while

it's playing you probably wouldn't have noticed it.

if you set it to 'stream' it will play at your movies framerate and  
skip
frames to keep up with the audio if it has to, if the animations  
are too

much. if you have it set to event now and switch it to stream you'll
probably have to move some keyframes around to sync everything back  
up.


the 'event / stream' settings are in the properties tab.  click the  
first
keyframe where the audio is, check to see if it's set to 'stream'  
or 'event'

under the 'sync' option.  I'm not sure what it defaults to,  i vaguely
remember it defaulting to 'event'.

if this is in fact the issue your experiencing, you'll just have a  
little

extra work on your hands moving some stuff around to sync up.

hope this helps,
Dunc




On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote:


Dunc,
   hey, the audio has just been dropped into the frames where I want
it to start (event?)...should I change that to be brought in
dynamically?  I don't know why it would work correctly on a PC and
not a mac, though...
On Jun 18, 2007, at 2:41 PM, Duncan Reid wrote:

 Hi Jay,

 Just trying to help by clearing out the obvious here as i didn't
 see it
 stated in your post, but is the audio set to 'stream' or 'event'?
 I could
 be wrong but I thought that the player would in fact skip frames in
 order to
 keep up with the audio if it was set to 'stream'

 Other than that i've never seen anything like you describe below
 when the
 audio was set to stream...

 hope this helps some,
 Dunc


 On 6/18/07, Jay Carlson [EMAIL PROTECTED] wrote:

 I'm still trying to work on this slow audio thing: I've created a
 flash file with audio that follows text on the screen.  but when I
 put it on the web, every time the page loads on a mac, the  
animation
 lags a bit while the audio is right on.  however, I viewed the  
page
 on a PC this weekend and found that the audio and the animation  
were
 both in perfect sync the way they should be.  what's the deal?   
when
 I test the movie and when I play the published file from my  
desktop,
 they play correctly.  but as soon as I view it in firefox or  
safari
 on my mac (or anyone's mac for that matter) it gets off.  is  
this a

 known bug?  I've never really had it happen to me before.  any
 suggestions?

 Jay

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


...+.

Jay Carlson
Senior Web Designer
Dillinger  Kovach
817-719-3109
866-824-9790 Toll Free
www.dillingerkovach.com
[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] AS3 new Class from string

2007-06-18 Thread elibol

Not sure since eval() is gone.

Try keeping a reference for each class in some object and use it like a hash
map.

import Circle;
import Square;
import Triangle;

var classes:Object {
Circle:Circle
, Square:Square
, Triangle:Triangle
};

var list:Array = new Array(Circle,Square,Triangle);

for(var i=0;ilist.length;i++){
  var cls:Class = classes[list[i]];
  var instance:* = new cls();
}

It would be nice to see a less involved solution though...

On 6/18/07, Patrick Matte|BLITZ [EMAIL PROTECTED] wrote:


Hey fellows, in AS3 how can I create class instances from a list of
classes names. Take for example something like this:

import Circle;
import Square;
import Triangle;

var list:Array = new Array(Circle,Square,Triangle);

for(var i=0;ilist.length;i++){
var class = new list[i]();
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] AS3 new Class from string

2007-06-18 Thread Jim Kremens

Just remove the quotation marks from your array so it looks like this:

var list:Array = new Array(Circle,Square,Triangle);

Assuming your import statements are right, your code will work.

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] AS3 new Class from string

2007-06-18 Thread Jim Kremens

There's also this:

var ClassRef:Object = getDefinitionByName(flash.display::Sprite);
var element:Sprite = new ClassRef();

That allows you to really use a string and not a class reference,
which is what I think you want...

But, as with Flash 8, the class reference must really exist in your
swf somewhere, so
you may as well do what elibol suggested...

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] AS3 new Class from string

2007-06-18 Thread elibol

Actually, I would do it how Jim suggested - using the getDefinitionByName
function. It's that less involved solution I did not know about. Where is
this function documented?

On 6/18/07, Jim Kremens [EMAIL PROTECTED] wrote:


There's also this:

var ClassRef:Object = getDefinitionByName(flash.display::Sprite);
var element:Sprite = new ClassRef();

That allows you to really use a string and not a class reference,
which is what I think you want...

But, as with Flash 8, the class reference must really exist in your
swf somewhere, so
you may as well do what elibol suggested...

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


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

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


Re: [Flashcoders] AS3 new Class from string

2007-06-18 Thread Muzak
flash.utils.getDefinitionByName()

There's some more useful stuff in the flash.utils package.
Have a look in the docs.

Muzak

- Original Message - 
From: Patrick Matte|BLITZ [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, June 18, 2007 10:24 PM
Subject: [Flashcoders] AS3 new Class from string


Hey fellows, in AS3 how can I create class instances from a list of classes 
names. Take for example something like this:

import Circle;
import Square;
import Triangle;

var list:Array = new Array(Circle,Square,Triangle);

for(var i=0;ilist.length;i++){
var class = new list[i]();
}


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

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


Re: [Flashcoders] AS3 new Class from string

2007-06-18 Thread jtgxbass

In AS3 is done like this...

import flash.utils.getDefinitionByName;
var ObClass:Class = getDefinitionByName( fully.qualified.class.name ) as
Class;
var instance = new ObClass();



On 6/18/07, elibol [EMAIL PROTECTED] wrote:


Not sure since eval() is gone.

Try keeping a reference for each class in some object and use it like a
hash
map.

import Circle;
import Square;
import Triangle;

var classes:Object {
Circle:Circle
, Square:Square
, Triangle:Triangle
};

var list:Array = new Array(Circle,Square,Triangle);

for(var i=0;ilist.length;i++){
   var cls:Class = classes[list[i]];
   var instance:* = new cls();
}

It would be nice to see a less involved solution though...

On 6/18/07, Patrick Matte|BLITZ [EMAIL PROTECTED] wrote:

 Hey fellows, in AS3 how can I create class instances from a list of
 classes names. Take for example something like this:

 import Circle;
 import Square;
 import Triangle;

 var list:Array = new Array(Circle,Square,Triangle);

 for(var i=0;ilist.length;i++){
 var class = new list[i]();
 }
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


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

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


Re: [Flashcoders] AS3 new Class from string

2007-06-18 Thread jtgxbass

Jim:


getDefinitionByName(flash.display::Sprite);



Should read:
getDefinitionByName(flash.display.Sprite);

I think.


On 6/18/07, jtgxbass [EMAIL PROTECTED] wrote:


In AS3 is done like this...

import flash.utils.getDefinitionByName;
var ObClass:Class = getDefinitionByName( fully.qualified.class.name  )
as Class;
var instance = new ObClass();



On 6/18/07, elibol  [EMAIL PROTECTED] wrote:

 Not sure since eval() is gone.

 Try keeping a reference for each class in some object and use it like a
 hash
 map.

 import Circle;
 import Square;
 import Triangle;

 var classes:Object {
 Circle:Circle
 , Square:Square
 , Triangle:Triangle
 };

 var list:Array = new Array(Circle,Square,Triangle);

 for(var i=0;ilist.length;i++){
var cls:Class = classes[list[i]];
var instance:* = new cls();
 }

 It would be nice to see a less involved solution though...

 On 6/18/07, Patrick Matte|BLITZ  [EMAIL PROTECTED] wrote:
 
  Hey fellows, in AS3 how can I create class instances from a list of
  classes names. Take for example something like this:
 
  import Circle;
  import Square;
  import Triangle;
 
  var list:Array = new Array(Circle,Square,Triangle);
 
  for(var i=0;ilist.length ;i++){
  var class = new list[i]();
  }
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




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

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


Re: [Flashcoders] AS3 new Class from string

2007-06-18 Thread elibol

I see what you mean Jim. Maybe it's best used for classes loaded via swc
libraries.

On 6/18/07, elibol [EMAIL PROTECTED] wrote:


Actually, I would do it how Jim suggested - using the getDefinitionByName
function. It's that less involved solution I did not know about. Where is
this function documented?

On 6/18/07, Jim Kremens [EMAIL PROTECTED] wrote:

 There's also this:

 var ClassRef:Object = getDefinitionByName(flash.display::Sprite);
 var element:Sprite = new ClassRef();

 That allows you to really use a string and not a class reference,
 which is what I think you want...

 But, as with Flash 8, the class reference must really exist in your
 swf somewhere, so
 you may as well do what elibol suggested...

 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




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

2007-06-18 Thread R�kos Attila

bgf I think if it's set to device it still won't work
bgf whether the font is embedded or not (if I put my mask in a layer).

Device fonts are not embedded fonts - if a font is embedded, then it
cannot be a device font. Components use device (not embedded) fonts by
default, but you can change font settings by using Button.setStyle(),
StyleManager.setComponentStyle() or StyleManager.setStyle(). Font
settings are controlled by the textFormat style and using embedded
fonts by embedFonts (the fonts should be not only referred as an
embedded, but be really embedded into the swf). See docs for details.

  Attila

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

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


Re: [Flashcoders] Grid / Math - getting neighbouring positions

2007-06-18 Thread Jiri Heitlager | dadata.org

I'll take it ;)

thanks for everybody's help.

Jiri

Merrill, Jason wrote:
That is a nice solution, but it leaves me with the problem 
that starting from one point (3,2) it only produces a set of 
points of  ring directly around the selected point. I am 
looking for a solution to get _all_ the points, from a 
certain point and the move in a ring towerds the outside of a grid.


Uh, you can still do that with my code - just modify it as needs be. You
know how long each array is, you can move out from the center by moving
one place back in the arrray in one direction, one way in the other by
increasing the position in the array.  Take it or leave it I guess.

Jason Merrill
Bank of America  
GTO Learning  Leadership Development

eTools  Multimedia Team


 
___

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

2007-06-18 Thread ben gomez farrell

Thank you!
That's exactly what I was looking for.  I guess I didn't get to the 
point quick enough that I assumed that components were made with device 
fonts which wasn't adequate if I wanted to use it behind a mask.


Since I was assuming that (and apparently I was right), I wanted to know 
if and how I could change it.  I'm not familiar with the Flex component 
framework or the CS3 component framework well enough to know if Adobe 
gave us access to any methods to actually change the properties of the 
text field(s) in the components.  Furthermore, I wouldn't have really 
known where to look since this component architecture is new to me.


So excellent!  I'll check these methods out to see if they can 
accomplish what I want.  Thanks very much.



Rákos Attila wrote:

bgf I think if it's set to device it still won't work
bgf whether the font is embedded or not (if I put my mask in a layer).

Device fonts are not embedded fonts - if a font is embedded, then it
cannot be a device font. Components use device (not embedded) fonts by
default, but you can change font settings by using Button.setStyle(),
StyleManager.setComponentStyle() or StyleManager.setStyle(). Font
settings are controlled by the textFormat style and using embedded
fonts by embedFonts (the fonts should be not only referred as an
embedded, but be really embedded into the swf). See docs for details.

  Attila

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

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

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Embed statements in AS3 (not mxml)

2007-06-18 Thread Jim Kremens

Hi all,

Boy is it hard to get information on AS3 - not Flex, not Flash - just AS3.

How can I embed multiple assets in one class?  With Flex, you can
apparently do this:

.myPlainStyle {
fontFamily: Myriad Web Pro;
fontSize: 24;
}
.myItalicStyle {
fontFamily: Myriad Web Pro;
fontSize: 24;
fontStyle: italic;
}
.myBoldStyle {
fontFamily: Myriad Web Pro;
fontSize: 24;
fontWeight: bold;
}

That takes 3 aspects of the same font and embeds them so you have
access to them.  Nice.

I'm not using Flex, so my question is how can I achieve a similar
result using the Embed statement that is available in .as files?
Those typically look like this:

[Embed(systemFont='Trebuchet MS', fontName='Trebuchet MS',
mimeType='application/x-font')]

I'd like to be able to include the bold and italic outlines for that one font...

I can't find any documentation on this that isn't mxml!

Thanks,

--
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


[Flashcoders] Re: Embed statements in AS3 (not mxml)

2007-06-18 Thread Jim Kremens

Oh,

I am using Flexbuilder, not CS3.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 'springing' video players, section playback of video

2007-06-18 Thread nik crosina

Hi,

Is it possible to 'spring' a video player?
I am thinking of an interface with nine TV screens, ready to play back
a clip. When the user is clicking on one, the others shrink with a
'springing' movement, the clicked on one enlarges, again, with a
'springing' motion.

Has any of you done something before?

Question 2: or More a confirmation - it is possibly to have a clip
played back from a specific start frame to specific end frame on a
certain trigger - say a click somewhere else on stage, isn't?


Thanks!

Nik
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Embed statements in AS3 (not mxml)

2007-06-18 Thread Muzak
[Embed] metadata is Flex only.

In Flash you embed fonts through the library or by setting a dynamic textfield 
to embed a particular font.

regards,
Muzak

- Original Message - 
From: Jim Kremens [EMAIL PROTECTED]
To: [EMAIL PROTECTED] Figleaf. Com flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 12:01 AM
Subject: [Flashcoders] Embed statements in AS3 (not mxml)


 Hi all,

 Boy is it hard to get information on AS3 - not Flex, not Flash - just AS3.

 How can I embed multiple assets in one class?  With Flex, you can
 apparently do this:

 .myPlainStyle {
 fontFamily: Myriad Web Pro;
 fontSize: 24;
 }
 .myItalicStyle {
 fontFamily: Myriad Web Pro;
 fontSize: 24;
 fontStyle: italic;
 }
 .myBoldStyle {
 fontFamily: Myriad Web Pro;
 fontSize: 24;
 fontWeight: bold;
 }

 That takes 3 aspects of the same font and embeds them so you have
 access to them.  Nice.

 I'm not using Flex, so my question is how can I achieve a similar
 result using the Embed statement that is available in .as files?
 Those typically look like this:

 [Embed(systemFont='Trebuchet MS', fontName='Trebuchet MS',
 mimeType='application/x-font')]

 I'd like to be able to include the bold and italic outlines for that one 
 font...

 I can't find any documentation on this that isn't mxml!

 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] AS3 : Disabling layers in a loaded clip

2007-06-18 Thread August Gresens

Hello

Quick question.

In a AS3 flash.display.Movieclip that I've loaded with the Loader, is there
a way to dynamically disable layers within the loaded clip?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[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] Re: Embed statements in AS3 (not mxml)

2007-06-18 Thread Muzak
In that case, wrong list:
http://tech.groups.yahoo.com/group/flexcoders/

But I'm pretty sure google will return something useful when searching for AS3 
Embed font metadata

regards,
Muzak

- Original Message - 
From: Jim Kremens [EMAIL PROTECTED]
To: [EMAIL PROTECTED] Figleaf. Com flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 12:02 AM
Subject: [Flashcoders] Re: Embed statements in AS3 (not mxml)


 Oh,

 I am using Flexbuilder, not CS3.


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

2007-06-18 Thread Gustavo Duenas
hi coder I had to fragment my thread , I'm trying to create a loop in  
a as project in flex, in order to set up some buttons, this is the  
code for the loop (which is not working and gave me errors  every single

time I run .


public function buttons():void{
//line 52// for (i=0; imyArray.length; i++){
var myButtons:SimpleButton = new 
SimpleButton();
//line 54//myButtons.text(myArray[i]);
addChild(myButtons);
}

and these are the errors:


1120: Access of undefined property i.   template1   template1.asline 52 

1061: Call to a possibly undefined method text through a reference  
with static type flash.display:SimpleButton.	template1	template1.as	 
line 54	


If you have some ideas about how to do this simple thing , I'd  
appreciate any help.


Regards




Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.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] (no subject)

2007-06-18 Thread David Ngo
You need to add the 'var' keyword for your iterator in the for loop. You
also need to change your comparison evaluator to '' and not ''. For your
second error, SimpleButton doesn't have a text property you can set. See:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Simp
leButton.html


for (var i:uint = 0; i  myArray.length; i++) {
var myButtons:SimpleButton = new SimpleButton();
addChild(myButtons);
}


David



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Monday, June 18, 2007 6:39 PM
To: Flashcoders mailing list
Subject: [Flashcoders] (no subject)

hi coder I had to fragment my thread , I'm trying to create a loop in  
a as project in flex, in order to set up some buttons, this is the  
code for the loop (which is not working and gave me errors  every single
time I run .


public function buttons():void{
//line 52// for (i=0; imyArray.length;
i++){
var myButtons:SimpleButton = new
SimpleButton();
//line
54//myButtons.text(myArray[i]);
addChild(myButtons);
}

and these are the errors:


1120: Access of undefined property i.   template1   template1.asline
52  

1061: Call to a possibly undefined method text through a reference  
with static type flash.display:SimpleButton.template1   template1.as

line 54 

If you have some ideas about how to do this simple thing , I'd  
appreciate any help.

Regards




Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.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] (no subject)

2007-06-18 Thread Gustavo Duenas
any idea about how can I set the text in the button or is any other  
buttons component is AS3?


Regards.

Gustavo
On Jun 18, 2007, at 7:04 PM, David Ngo wrote:

You need to add the 'var' keyword for your iterator in the for  
loop. You
also need to change your comparison evaluator to '' and not ''.  
For your
second error, SimpleButton doesn't have a text property you can  
set. See:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ 
display/Simp

leButton.html


for (var i:uint = 0; i  myArray.length; i++) {
var myButtons:SimpleButton = new SimpleButton();
addChild(myButtons);
}


David



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

Duenas
Sent: Monday, June 18, 2007 6:39 PM
To: Flashcoders mailing list
Subject: [Flashcoders] (no subject)

hi coder I had to fragment my thread , I'm trying to create a loop in
a as project in flex, in order to set up some buttons, this is the
code for the loop (which is not working and gave me errors  every  
single

time I run .


public function buttons():void{
//line 52// for (i=0; imyArray.length;
i++){
var myButtons:SimpleButton = new
SimpleButton();
//line
54//myButtons.text(myArray[i]);
addChild(myButtons);
}

and these are the errors:


1120: Access of undefined property i.   template1   template1.asline
52  

1061: Call to a possibly undefined method text through a reference
with static type flash.display:SimpleButton.template1   template1.as

line 54 

If you have some ideas about how to do this simple thing , I'd
appreciate any help.

Regards




Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.com


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

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


Re: [Flashcoders] AS3 : Disabling layers in a loaded clip

2007-06-18 Thread Muzak
There are no layers in a compiled swf.

- Original Message - 
From: August Gresens [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 12:33 AM
Subject: [Flashcoders] AS3 : Disabling layers in a loaded clip


 Hello

 Quick question.

 In a AS3 flash.display.Movieclip that I've loaded with the Loader, is there
 a way to dynamically disable layers within the loaded clip?

 Thanks,

 August



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

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


RE: [Flashcoders] AS3 new Class from string

2007-06-18 Thread Patrick Matte|BLITZ
But using getDefinitionByName, can you find a class that's inside a loaded swf?
Like in this example, Test is a class inside test.swf but I get an Error #1065: 
Variable Test is not defined. But it works fine if I call getDefinitionByName 
from within test.swf

public function GetDefinitionByNameExample() {
var request:URLRequest = new URLRequest(test.swf);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeEvent);
loader.load(request);
}

private function completeEvent(e:Event):void{
trace(completeEvent);
var ClassReference:Class = getDefinitionByName(Test) as Class;
var instance:Object = new ClassReference();
}



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Kremens
Sent: Monday, June 18, 2007 1:52 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 new Class from string

There's also this:

var ClassRef:Object = getDefinitionByName(flash.display::Sprite);
var element:Sprite = new ClassRef();

That allows you to really use a string and not a class reference,
which is what I think you want...

But, as with Flash 8, the class reference must really exist in your
swf somewhere, so
you may as well do what elibol suggested...

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

2007-06-18 Thread Patrick Matte|BLITZ
Using getDefinitionByName, can you find a class that's inside a loaded swf?
Like in this example, Test is a class inside test.swf.

public function GetDefinitionByNameExample() {
var request:URLRequest = new URLRequest(test.swf);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeEvent);
loader.load(request);
}

private function completeEvent(e:Event):void{
var ClassReference:Class = getDefinitionByName(Test) as Class;
var instance:Object = new ClassReference();
}

I get an Error #1065: Variable Test is not defined.
But it works fine if I call getDefinitionByName from within test.swf So is it 
something I'm doing wrong or does this method only works within a single swf?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] AS3 new Class from string

2007-06-18 Thread Muzak
Look up: ApplicationDomain.getDefinition()

flash.system.ApplicationDomain
flash.system.LoaderContext.applicationDomain

regards,
Muzak

- Original Message - 
From: Patrick Matte|BLITZ [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 1:23 AM
Subject: RE: [Flashcoders] AS3 new Class from string


But using getDefinitionByName, can you find a class that's inside a loaded swf?
Like in this example, Test is a class inside test.swf but I get an Error #1065: 
Variable Test is not defined. But it works fine if I 
call getDefinitionByName from within test.swf



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

2007-06-18 Thread David Ngo
AFAIK, there is no other Button-type class aside from SimpleButton in AS3's
libraries. You could extend SimpleButton and add in a TextField. Then create
a wrapper method to set the text property on your extended button to set the
text on the TextField within.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Monday, June 18, 2007 7:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] (no subject)

any idea about how can I set the text in the button or is any other  
buttons component is AS3?

Regards.

Gustavo
On Jun 18, 2007, at 7:04 PM, David Ngo wrote:

 You need to add the 'var' keyword for your iterator in the for  
 loop. You
 also need to change your comparison evaluator to '' and not ''.  
 For your
 second error, SimpleButton doesn't have a text property you can  
 set. See:
 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ 
 display/Simp
 leButton.html


 for (var i:uint = 0; i  myArray.length; i++) {
   var myButtons:SimpleButton = new SimpleButton();
   addChild(myButtons);
 }


 David



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of  
 Gustavo
 Duenas
 Sent: Monday, June 18, 2007 6:39 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] (no subject)

 hi coder I had to fragment my thread , I'm trying to create a loop in
 a as project in flex, in order to set up some buttons, this is the
 code for the loop (which is not working and gave me errors  every  
 single
 time I run .


 public function buttons():void{
   //line 52// for (i=0; imyArray.length;
 i++){
   var myButtons:SimpleButton = new
 SimpleButton();
   //line
 54//myButtons.text(myArray[i]);
   addChild(myButtons);
   }

 and these are the errors:


 1120: Access of undefined property i. template1   template1.asline
 52

 1061: Call to a possibly undefined method text through a reference
 with static type flash.display:SimpleButton.  template1   template1.as

 line 54   

 If you have some ideas about how to do this simple thing , I'd
 appreciate any help.

 Regards




 Gustavo Duenas
 Creative Director
 LEFT AND RIGHT SOLUTIONS LLC
 1225 W. Beaver St. Suite 119
 Jacksonville, Fl.  32204
 904 . 2650330
 www.leftandrightsolutions.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


Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.com


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

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

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

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


RE: [Flashcoders] AS3 new Class from string

2007-06-18 Thread Patrick Matte|BLITZ
Thanks that's sweet !

BLITZ | Patrick Matte - 310-551-0200 x214

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Monday, June 18, 2007 4:52 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 new Class from string

Look up: ApplicationDomain.getDefinition()

flash.system.ApplicationDomain
flash.system.LoaderContext.applicationDomain

regards,
Muzak

- Original Message -
From: Patrick Matte|BLITZ [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 1:23 AM
Subject: RE: [Flashcoders] AS3 new Class from string


But using getDefinitionByName, can you find a class that's inside a loaded swf?
Like in this example, Test is a class inside test.swf but I get an Error #1065: 
Variable Test is not defined. But it works fine if I
call getDefinitionByName from within test.swf



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

2007-06-18 Thread John Grden

Hey Patrick, this is a snippet from Grant's FlashLib class:

public static function getInstance(className:String):DisplayObject {
   var SymbolClass:Class = getDefinition(className);
   return (SymbolClass) ? new SymbolClass() : null;
   }

   public static function getDefinition(className:String):Class {
   return (inited) ?
loader.contentLoaderInfo.applicationDomain.getDefinition(className) as Class
: null;
   }

I think getDefinition is what you're after.  Use the loader object of the
swf you loaded obviously

good luck!

On 6/18/07, Patrick Matte|BLITZ [EMAIL PROTECTED] wrote:


Using getDefinitionByName, can you find a class that's inside a loaded
swf?
Like in this example, Test is a class inside test.swf.

public function GetDefinitionByNameExample() {
var request:URLRequest = new URLRequest(test.swf);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE
,completeEvent);
loader.load(request);
}

private function completeEvent(e:Event):void{
var ClassReference:Class = getDefinitionByName(Test) as Class;
var instance:Object = new ClassReference();
}

I get an Error #1065: Variable Test is not defined.
But it works fine if I call getDefinitionByName from within test.swf So is
it something I'm doing wrong or does this method only works within a single
swf?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





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

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


Re: [Flashcoders] (no subject)

2007-06-18 Thread Gustavo Duenas

sorry to bother you david, how could do I extend this button?

Regards

Gustavo
On Jun 18, 2007, at 7:57 PM, David Ngo wrote:

AFAIK, there is no other Button-type class aside from SimpleButton  
in AS3's
libraries. You could extend SimpleButton and add in a TextField.  
Then create
a wrapper method to set the text property on your extended button  
to set the

text on the TextField within.



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

Duenas
Sent: Monday, June 18, 2007 7:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] (no subject)

any idea about how can I set the text in the button or is any other
buttons component is AS3?

Regards.

Gustavo
On Jun 18, 2007, at 7:04 PM, David Ngo wrote:


You need to add the 'var' keyword for your iterator in the for
loop. You
also need to change your comparison evaluator to '' and not ''.
For your
second error, SimpleButton doesn't have a text property you can
set. See:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/Simp
leButton.html


for (var i:uint = 0; i  myArray.length; i++) {
var myButtons:SimpleButton = new SimpleButton();
addChild(myButtons);
}


David



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gustavo
Duenas
Sent: Monday, June 18, 2007 6:39 PM
To: Flashcoders mailing list
Subject: [Flashcoders] (no subject)

hi coder I had to fragment my thread , I'm trying to create a loop in
a as project in flex, in order to set up some buttons, this is the
code for the loop (which is not working and gave me errors  every
single
time I run .


public function buttons():void{
//line 52// for (i=0; imyArray.length;
i++){
var myButtons:SimpleButton = new
SimpleButton();
//line
54//myButtons.text(myArray[i]);
addChild(myButtons);
}

and these are the errors:


1120: Access of undefined property i.   template1   template1.asline
52  

1061: Call to a possibly undefined method text through a reference
with static type flash.display:SimpleButton.template1   template1.as

line 54 

If you have some ideas about how to do this simple thing , I'd
appreciate any help.

Regards




Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 W. Beaver St. Suite 119
Jacksonville, Fl.  32204
904 . 2650330
www.leftandrightsolutions.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] Re: Embed statements in AS3 (not mxml)

2007-06-18 Thread Muzak

- Original Message - 
From: Jim Kremens [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 4:46 AM
Subject: Re: [Flashcoders] Re: Embed statements in AS3 (not mxml)


 In Flash you embed fonts through the library or by setting a dynamic
 textfield to embed a particular font.

 Errr... thanks.  But how come my masks don't work when I use device
 fonts ??? :-)

http://www.google.com/search?hl=enq=flash+mask+device+font


 In that case, wrong list:
 http://tech.groups.yahoo.com/group/flexcoders/;

 Actually, even though I'm using Flexbuilder as a compiler, I'm
 definitely asking an Actionscript question.  I'm looking to do
 something using Actionscript syntax and all of the available examples
 employ Flex syntax.


You're using AS3 in FlexBuilder, so that's a Flex question.
As I mentioned already, [Embed] is Flex only.

regards,
Muzak 


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

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


Re: [Flashcoders] (no subject)

2007-06-18 Thread Muzak
Tried the docs?
http://www.adobe.com/support/documentation/en/flash/

http://www.google.com/search?hl=enq=extend+simplebutton
http://www.google.com/search?hl=enq=AS3+extending+components

Muzak

- Original Message - 
From: Gustavo Duenas [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 19, 2007 4:58 AM
Subject: Re: [Flashcoders] (no subject)


 sorry to bother you david, how could do I extend this button?

 Regards

 Gustavo
 On Jun 18, 2007, at 7:57 PM, David Ngo wrote:

 AFAIK, there is no other Button-type class aside from SimpleButton  in AS3's
 libraries. You could extend SimpleButton and add in a TextField.  Then create
 a wrapper method to set the text property on your extended button  to set the
 text on the TextField within.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: Embed statements in AS3 (not mxml)

2007-06-18 Thread Jim Kremens

Errr... thanks.  But how come my masks don't work when I use device
fonts ??? :-)
http://www.google.com/search?hl=enq=flash+mask+device+font;

Dude, that was a *joke*.  I even put the little smiley face after it...

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