Re: [Flashcoders] Shared fonts issue

2006-05-25 Thread David Serrano

I load 12 shared fonts in a different swf's separately.
I have tested the application in a different pc. The player version is 8.
I think the problem is when I load the swf's in one movie , his content 
needs to redistribute it to the others movies(similar to use any 
Macromedia component).

I put a real example:

My swf movie that contains the shared fonts is loaded in a content of 
other movie. This movie also is loaded in my main movie with another 
loadMovie. The real situation is that my shared fonts movie is loaded in 
the third level of my main application( after 2 loadMovies), so I think 
that when I load the fonts, they need to do a copy of the library on his 
father movie, so, for this reason, the shared fonts are temporally 
located in the 3 library movies. Is it true?


How you will do this?

Best regards,

David.

Marcelo de Moraes Serpa escribió:

Hello David,

How many fonts in the shared library swf? Maybe the player version, pc 
specs

and browser would also be good for us to try to help you.

- Marcelo.

On 5/24/06, David Serrano [EMAIL PROTECTED] wrote:



Hello.

I have a big problem with shared fonts. I am doing an editor that has a
list of fonts to choose. This fonts are dynamically loaded from a swf
with his embed font. When I try to load 10 fonts in a movieclip, with
his preload for each one, the application runs well, but if I load this
movie from my main movie, via loadMovie, my application turns very 
slowly.

In my main I haven't any shared font.

Any clue?

David.



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

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


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

2006-05-25 Thread Sachin Desai
Hi All,

 

I am a new bee to this forum. I have a small query as follows :

 

Does anybody know how to generate a PDF through flash?

 

Is there any 3rd party tool available which will take the Flash Content
and generate pdf out of it?

 

 

 

 

Thanks and Regards,

Sachin M Desai

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

2006-05-25 Thread Mayur Bais
Hi,
There could be components like blazePDF available to generate pdf from flash
Which may generate jpg  and then pdf 
Check out 
 http://www.blazepdf.com/
it's a ready made component 
Mayur 




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sachin Desai
Sent: Thursday, May 25, 2006 2:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] PDF generation Though Flash

Hi All,

 

I am a new bee to this forum. I have a small query as follows :

 

Does anybody know how to generate a PDF through flash?

 

Is there any 3rd party tool available which will take the Flash Content
and generate pdf out of it?

 

 

 

 

Thanks and Regards,

Sachin M Desai

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

2006-05-25 Thread Adrian MacTaggart
Hi all,

I have a quiz that I created 2 years ago (in Flash MX) that brings in different 
question types (text type, single image question type, 3ximage question type 
etc) from an XML file.

Only now when coming to use the quiz again and needing to have a couple of 
'3ximage questions' appear one after another have I spotted an issue. The copy 
is updating for the question but the images are not re-loading.

There is a lot of code, so without sharing it all I think the issue is with the 
code below. Can anyone spot anything obvious that would stop the images 
re-loading?


FRAME 1 OF 3xIMAGE QUESTION MC
--
stop();
--

FRAME 2 OF 3xIMAGE QUESTION MC
--
currentQuestion = _root.quiz.questions[_root.cq-1];
//Gets current question data and puts in variable

myLoader = new com.qlod.LoaderClass();
for( var i=1; i4; i++){
currentImage = currentQuestion.childNodes[i].attributes.src;
//Gets url for image
var mc = createEmptyMovieClip(holder + i, i);
var url = currentImage;
myLoader.load(mc, url);
}

holder1._x = 11;
holder1._y = 119;
holder2._x = 177;
holder2._y = 119;
holder3._x = 343;
holder3._y = 119;

stop();
--

Many thanks for reading. Any pointers much appreciated.

Adrian

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problems with Tween Class

2006-05-25 Thread Nik Derewianka

Hi all,

Basically i attachMovie my character (which is an AS2.0 class extended
MovieClip) to _root, then move it back and forwards across the screen
using the Tween class, unloadMovie my character, go to a different
frame, attachMovie my character back again, but this time it seems as
though there are two or more Tween objects trying to control my
character.  If i reattachMovie using a different instance name, then
it will work fine.

So how do i completely unload my MC and my Tween so that there are no
references hanging around ??  How can i find out how many references
there are for a given object (similar to the ref count in lingo
objects in Director) ??  And is this only happening because of AS 2.0
?

Heres my stripped down test movie:

mc with ID of idRedbelly1, AS2.0 class of code.Crawlie2 which contains:
--
import mx.transitions.Tween;
import mx.transitions.easing.*;

class code.Crawlie2 extends MovieClip {

private var Walker:Tween;

public function StartWalking(){
Walker = new Tween(this, _x,None.easeNone,this._x,this._x + 
200,1,true);
Walker.onMotionFinished = function(){this.yoyo();};
};  
};
--

frame 1, symbol named btn on the stage, the following as a frame script:

--
btn.onPress = function() {
  _root.test.removeMovieClip();
_root.test.unloadMovie();
_root.gotoAndPlay(part2);
}

_root.attachMovie(idRedbelly1,test,_root.getNextHighestDepth(),{_x:50,_y:50});
_root.test.StartWalking();
stop();
--

frame 10 with marker name of part2, following frame script:

--
_root.attachMovie(idRedbelly1,test,_root.getNextHighestDepth(),{_x:50,_y:25});
_root.test.StartWalking();
stop();
--


I also tried a version that set Walker to null before i unloaded the
MC but that didn't work either.

Any help is greatly appreciated,
--
:: Nik Derewianka ::
:: freelance director programmer ::
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problems with Tween Class

2006-05-25 Thread Weldon MacDonald

It's early in the morning, but it seems to me your not finishing the
tween in your test. Try calling the stop() method before you unload.
There may be a call to setInterval that doesn't get cleared if you
don't.
That begs the question of why  you want to unload and reload it. there
must be a way for you to save the extra load. What about setting
visible to false or moving it off stage?

On 5/25/06, Nik Derewianka [EMAIL PROTECTED] wrote:

Hi all,

Basically i attachMovie my character (which is an AS2.0 class extended
MovieClip) to _root, then move it back and forwards across the screen
using the Tween class, unloadMovie my character, go to a different
frame, attachMovie my character back again, but this time it seems as
though there are two or more Tween objects trying to control my
character.  If i reattachMovie using a different instance name, then
it will work fine.

So how do i completely unload my MC and my Tween so that there are no
references hanging around ??  How can i find out how many references
there are for a given object (similar to the ref count in lingo
objects in Director) ??  And is this only happening because of AS 2.0
?

Heres my stripped down test movie:

mc with ID of idRedbelly1, AS2.0 class of code.Crawlie2 which contains:
--
import mx.transitions.Tween;
import mx.transitions.easing.*;

class code.Crawlie2 extends MovieClip {

private var Walker:Tween;

public function StartWalking(){
Walker = new Tween(this, _x,None.easeNone,this._x,this._x + 
200,1,true);
Walker.onMotionFinished = function(){this.yoyo();};
};
};
--

frame 1, symbol named btn on the stage, the following as a frame script:

--
btn.onPress = function() {
   _root.test.removeMovieClip();
_root.test.unloadMovie();
_root.gotoAndPlay(part2);
}

_root.attachMovie(idRedbelly1,test,_root.getNextHighestDepth(),{_x:50,_y:50});
_root.test.StartWalking();
stop();
--

frame 10 with marker name of part2, following frame script:

--
_root.attachMovie(idRedbelly1,test,_root.getNextHighestDepth(),{_x:50,_y:25});
_root.test.StartWalking();
stop();
--


I also tried a version that set Walker to null before i unloaded the
MC but that didn't work either.

Any help is greatly appreciated,
--
:: Nik Derewianka ::
:: freelance director programmer ::
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Weldon MacDonald
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] cellRender with comboBox: setting the dropdown.rowHeight?

2006-05-25 Thread grimmwerks

Hey again.

I'm trying to set the comboBox cellRenderer I'm using to have a
dropdown.rowHeight of 60 (big text) -- since I'm using the cellRender
in a dataGrid, this slows everything down to a crawl.

Is this the only way that I can set a comboBox's rowHeight? Is there
anyway I can do it with setStyle?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shared fonts issue

2006-05-25 Thread Anggie Bratadinata

What about loading those fonts into the main movie?
I did it on my flash site and it worked just fine.

--
Anggie Bratadinata
Web|Graphic|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
http://design.ibshastautama.com


David Serrano wrote:

I load 12 shared fonts in a different swf's separately.
I have tested the application in a different pc. The player version is 8.
I think the problem is when I load the swf's in one movie , his content 
needs to redistribute it to the others movies(similar to use any 
Macromedia component).

I put a real example:

My swf movie that contains the shared fonts is loaded in a content of 
other movie. This movie also is loaded in my main movie with another 
loadMovie. The real situation is that my shared fonts movie is loaded in 
the third level of my main application( after 2 loadMovies), so I think 
that when I load the fonts, they need to do a copy of the library on his 
father movie, so, for this reason, the shared fonts are temporally 
located in the 3 library movies. Is it true?


How you will do this?

Best regards,

David.

Marcelo de Moraes Serpa escribió:

Hello David,

How many fonts in the shared library swf? Maybe the player version, pc 
specs

and browser would also be good for us to try to help you.

- Marcelo.

On 5/24/06, David Serrano [EMAIL PROTECTED] wrote:



Hello.

I have a big problem with shared fonts. I am doing an editor that has a
list of fonts to choose. This fonts are dynamically loaded from a swf
with his embed font. When I try to load 10 fonts in a movieclip, with
his preload for each one, the application runs well, but if I load this
movie from my main movie, via loadMovie, my application turns very 
slowly.

In my main I haven't any shared font.

Any clue?

David.


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

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


Re: [Flashcoders] Flex vs. Flash IDE

2006-05-25 Thread Christian
Obviously this may sound harsh, but because the app you wrote was 
buggier or harder to build isn't a reflection of the technology in my 
opinion.  I've been following this thread pretty closely and have begun 
going through all the responses.  Flex to me has seemed to discredit a 
lot of the flash developers out there buy putting advanced functionality 
at the finger tips of the average user.


I do think that flex will eventually be leveraged correctly, but the 
idea that a whole new IDE must be built simply to build form based 
applications is bizarre to me.  I have to imagine that the potential for 
Flex would extend far beyond Form RIA or else it wouldn't exist.  But 
then again, that's macromedia for you. 

The other issue i see with flex is it's ability to scale.  It doesn't 
seem to have the ability to handle a ton of simultaneous connections 
very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd 
prefer to develop the front ends in flash and communicate back and forth 
with a traditional back-end I.E. ASP, PHP, etc.  Those things are free 
to develop on, more prove and seemingly scale a hell of a lot better.  
Yes, it's not as simple as an EASY button, but if work was easy it'd 
be fun and we'd all be broke.


Merrill, Jason wrote:

At my previous employer, wanted to build a project with Flex 1.5, client
couldn't/wouldn't pay for it, so we built it with Flash - took 5 times
longer, and was 5-times buggier but it was do-able.  Basically had to
write the same kinds of classes for Flash that macromedia already built
for Flex, and make it renderable by descriptive XML. It was a fun
project, but I wish I had Flex.  It was a very large interactive portal
with different elements which also displayed metrics dashboards.  


Jason Merrill
Bank of America  |  www.bankofamerica.com
Learning  Organization Effectiveness 
Technology Solutions
 
 
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug
Coning
Sent: Tuesday, May 23, 2006 3:45 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flex vs. Flash IDE

This may be a dumb question, but has anyone ever developed a project in
Flex and towards the end decided that Flash would have been a better
tool for the project?  Or vice-a-versa?

If so, why?  I'm trying to determine if there are any pitfalls of
deciding to use Flex over Flash for larger projects.

Hope that makes sense...

Doug Coning
Senior Web Development Programmer
FORUM Solutions, LLC
 
This e-mail and any attachment(s) are intended for the specified

recipient(s) only and are legally protected.  If you have received this
communication in error, please reply to sender's e-mail address with
notification of the error and then destroy this message in all
electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Getting the class name?

2006-05-25 Thread David Skoglund
Hi, I' trying to get the class name of a class in order to serialize a scene. 
Since I don´'t have a traditional programming background I have a hard time 
searching for this since I really don't know the vocabulary.

In this code I'd like the trace function to output MyClass:

class MyClass extends MovieClip {

 function MyClass (){
  trace (this.className) 
 }

Is this possible? Or is this information lost when the code is compiled?

Thanks for any help!

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

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


RE: [Flashcoders] Flex vs. Flash IDE

2006-05-25 Thread Merrill, Jason
Obviously this may sound harsh, but because the app you wrote 
was buggier or harder to build isn't a reflection of the 
technology in my opinion.

It is to me.  There are a lot of things you can do with Flex in a day
that would take weeks to do in straight Flash/Actionscript.  This is a
fact.  For an example, one of the features of the application I worked
on required a Flex-like panel (if you know what I mean by a Flex panel)
to contain content that could be built on the fly, to any size, look,
feel, etc.  Flex has a built in Panel renderer to host content.  You
create a panel with a single XML statement - takes literally 5 seconds.
To do this in Flash, it required me to build and test a large Panel
class that would scale and render the panel correctly - I won't tell you
how long it took, but it was a lot longer than 45 seconds. The result
was the same, but the time spent was drastically different. Now, the
Actionscript class I built was far more customizable than the Flex one
because I had access to everything that rendered the panel, but I didn't
need all that for the project. That to me is a representation of the
different strengths each app has.  

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Christian
Sent: Thursday, May 25, 2006 8:44 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE

Obviously this may sound harsh, but because the app you wrote 
was buggier or harder to build isn't a reflection of the 
technology in my opinion.  I've been following this thread 
pretty closely and have begun going through all the 
responses.  Flex to me has seemed to discredit a lot of the 
flash developers out there buy putting advanced functionality 
at the finger tips of the average user.

I do think that flex will eventually be leveraged correctly, 
but the idea that a whole new IDE must be built simply to 
build form based applications is bizarre to me.  I have to 
imagine that the potential for Flex would extend far beyond 
Form RIA or else it wouldn't exist.  But then again, that's 
macromedia for you. 

The other issue i see with flex is it's ability to scale.  It 
doesn't seem to have the ability to handle a ton of 
simultaneous connections very well, ala Flash Media Server.  
Perhaps I'm off base here, but I'd prefer to develop the 
front ends in flash and communicate back and forth with a 
traditional back-end I.E. ASP, PHP, etc.  Those things are 
free to develop on, more prove and seemingly scale a hell of 
a lot better.  
Yes, it's not as simple as an EASY button, but if work was 
easy it'd be fun and we'd all be broke.

Merrill, Jason wrote:
 At my previous employer, wanted to build a project with Flex 1.5, 
 client couldn't/wouldn't pay for it, so we built it with 
Flash - took 
 5 times longer, and was 5-times buggier but it was do-able. 
 Basically 
 had to write the same kinds of classes for Flash that macromedia 
 already built for Flex, and make it renderable by 
descriptive XML. It 
 was a fun project, but I wish I had Flex.  It was a very large 
 interactive portal with different elements which also 
displayed metrics dashboards.

 Jason Merrill
 Bank of America  |  www.bankofamerica.com Learning  Organization 
 Effectiveness Technology Solutions
  
  
  

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On 
Behalf Of Doug 
 Coning
 Sent: Tuesday, May 23, 2006 3:45 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Flex vs. Flash IDE

 This may be a dumb question, but has anyone ever developed 
a project 
 in Flex and towards the end decided that Flash would have been a 
 better tool for the project?  Or vice-a-versa?

 If so, why?  I'm trying to determine if there are any pitfalls of 
 deciding to use Flex over Flash for larger projects.

 Hope that makes sense...

 Doug Coning
 Senior Web Development Programmer
 FORUM Solutions, LLC
  
 This e-mail and any attachment(s) are intended for the specified
 recipient(s) only and are legally protected.  If you have received 
 this communication in error, please reply to sender's 
e-mail address 
 with notification of the error and then destroy this message in all 
 electronic and physical forms.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

RE: [Flashcoders] Getting the class name?

2006-05-25 Thread Merrill, Jason
Given: 

class MyClass extends MovieClip {

 function MyClass (){
  trace (this.className)
 }

The name of the class is MyClass - or do you mean the instance name?

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flex vs. Flash IDE

2006-05-25 Thread Marcelo de Moraes Serpa

Well, I think you should just stick with the tool that works for you. I´m
currently using Flash 8 IDE to build the layout and assets, and, for me, it
is pretty good to build forms as well. The rest I do outside Flash, in
FlashDevelop and compile with MTASC ;)

It´s just another way to build the views... and there are tons of ways you
can do that... what really matters to me is the advent of AS3 that is for
sure above all this discussion...

Marcelo.



On 5/25/06, Christian [EMAIL PROTECTED] wrote:


Obviously this may sound harsh, but because the app you wrote was
buggier or harder to build isn't a reflection of the technology in my
opinion.  I've been following this thread pretty closely and have begun
going through all the responses.  Flex to me has seemed to discredit a
lot of the flash developers out there buy putting advanced functionality
at the finger tips of the average user.

I do think that flex will eventually be leveraged correctly, but the
idea that a whole new IDE must be built simply to build form based
applications is bizarre to me.  I have to imagine that the potential for
Flex would extend far beyond Form RIA or else it wouldn't exist.  But
then again, that's macromedia for you.

The other issue i see with flex is it's ability to scale.  It doesn't
seem to have the ability to handle a ton of simultaneous connections
very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
prefer to develop the front ends in flash and communicate back and forth
with a traditional back-end I.E. ASP, PHP, etc.  Those things are free
to develop on, more prove and seemingly scale a hell of a lot better.
Yes, it's not as simple as an EASY button, but if work was easy it'd
be fun and we'd all be broke.

Merrill, Jason wrote:
 At my previous employer, wanted to build a project with Flex 1.5, client
 couldn't/wouldn't pay for it, so we built it with Flash - took 5 times
 longer, and was 5-times buggier but it was do-able.  Basically had to
 write the same kinds of classes for Flash that macromedia already built
 for Flex, and make it renderable by descriptive XML. It was a fun
 project, but I wish I had Flex.  It was a very large interactive portal
 with different elements which also displayed metrics dashboards.

 Jason Merrill
 Bank of America  |  www.bankofamerica.com
 Learning  Organization Effectiveness
 Technology Solutions




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Doug
 Coning
 Sent: Tuesday, May 23, 2006 3:45 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Flex vs. Flash IDE

 This may be a dumb question, but has anyone ever developed a project in
 Flex and towards the end decided that Flash would have been a better
 tool for the project?  Or vice-a-versa?

 If so, why?  I'm trying to determine if there are any pitfalls of
 deciding to use Flex over Flash for larger projects.

 Hope that makes sense...

 Doug Coning
 Senior Web Development Programmer
 FORUM Solutions, LLC

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

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Flex vs. Flash IDE

2006-05-25 Thread Nicolas Cannasse
Obviously this may sound harsh, but because the app you wrote 
was buggier or harder to build isn't a reflection of the 
technology in my opinion.
 
 
 It is to me.  There are a lot of things you can do with Flex in a day
 that would take weeks to do in straight Flash/Actionscript.  This is a
 fact.  For an example, one of the features of the application I worked
 on required a Flex-like panel (if you know what I mean by a Flex panel)
 to contain content that could be built on the fly, to any size, look,
 feel, etc.  Flex has a built in Panel renderer to host content.  You
 create a panel with a single XML statement - takes literally 5 seconds.
 To do this in Flash, it required me to build and test a large Panel
 class that would scale and render the panel correctly - I won't tell you
 how long it took, but it was a lot longer than 45 seconds. The result
 was the same, but the time spent was drastically different. Now, the
 Actionscript class I built was far more customizable than the Flex one
 because I had access to everything that rendered the panel, but I didn't
 need all that for the project. That to me is a representation of the
 different strengths each app has.  

I would say it's far from being an advantage of Flex itself, but more of
the component library with MXML representation. The same thing can be
done in Flash/ActionScript2. For instance the people of the ActionStep
project worked on such an XML representation that could instanciate the UI.

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

2006-05-25 Thread Marcelo de Moraes Serpa


would say it's far from being an advantage of Flex itself, but more of
the component library with MXML representation. The same thing can be
done in Flash/ActionScript2. For instance the people of the ActionStep
project worked on such an XML representation that could instanciate the
UI.

Nicolas



Yes. I think the technology (flash platform) should be put above all this
and then adobe can build different IDE´s gueared towards different needs,
so, for example, form-based RIA´s would be faster to build with FlexBuilder
and more customized apps with Flash IDE, but both would use the SAME
framework and compiler ;)

Just my 2 cents,

- Marcelo.

On 5/25/06, Nicolas Cannasse [EMAIL PROTECTED] wrote:


Obviously this may sound harsh, but because the app you wrote
was buggier or harder to build isn't a reflection of the
technology in my opinion.


 It is to me.  There are a lot of things you can do with Flex in a day
 that would take weeks to do in straight Flash/Actionscript.  This is a
 fact.  For an example, one of the features of the application I worked
 on required a Flex-like panel (if you know what I mean by a Flex panel)
 to contain content that could be built on the fly, to any size, look,
 feel, etc.  Flex has a built in Panel renderer to host content.  You
 create a panel with a single XML statement - takes literally 5 seconds.
 To do this in Flash, it required me to build and test a large Panel
 class that would scale and render the panel correctly - I won't tell you
 how long it took, but it was a lot longer than 45 seconds. The result
 was the same, but the time spent was drastically different. Now, the
 Actionscript class I built was far more customizable than the Flex one
 because I had access to everything that rendered the panel, but I didn't
 need all that for the project. That to me is a representation of the
 different strengths each app has.

I would say it's far from being an advantage of Flex itself, but more of
the component library with MXML representation. The same thing can be
done in Flash/ActionScript2. For instance the people of the ActionStep
project worked on such an XML representation that could instanciate the
UI.

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

2006-05-25 Thread Merrill, Jason
For 
instance the people of the ActionStep project worked on such 
an XML representation that could instanciate the UI.

Funny, that's essentially the same thing I was doing on this project -
the Panel was defined in XML, and a Panel class I wrote rendered it in
the player.  It just took a whole lot longer than it would have if I
could have done it in Flex.  In Flex, you skip the class writing and go
straight to the XML.  You just miss out on some of the added
customization you get with Flash/Actionscript rendering.

Christian, if you think I'm somehow bashing traditional Flash
development, you're completely missing my point.  :)

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Nicolas Cannasse
Sent: Thursday, May 25, 2006 9:03 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE

Obviously this may sound harsh, but because the app you wrote was 
buggier or harder to build isn't a reflection of the 
technology in my 
opinion.
 
 
 It is to me.  There are a lot of things you can do with 
Flex in a day 
 that would take weeks to do in straight Flash/Actionscript. 
 This is a 
 fact.  For an example, one of the features of the 
application I worked 
 on required a Flex-like panel (if you know what I mean by a Flex 
 panel) to contain content that could be built on the fly, 
to any size, 
 look, feel, etc.  Flex has a built in Panel renderer to 
host content.  
 You create a panel with a single XML statement - takes 
literally 5 seconds.
 To do this in Flash, it required me to build and test a large Panel 
 class that would scale and render the panel correctly - I 
won't tell 
 you how long it took, but it was a lot longer than 45 seconds. The 
 result was the same, but the time spent was drastically different. 
 Now, the Actionscript class I built was far more 
customizable than the 
 Flex one because I had access to everything that rendered 
the panel, 
 but I didn't need all that for the project. That to me is a 
 representation of the different strengths each app has.

I would say it's far from being an advantage of Flex itself, 
but more of the component library with MXML representation. 
The same thing can be done in Flash/ActionScript2. For 
instance the people of the ActionStep project worked on such 
an XML representation that could instanciate the UI.

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

2006-05-25 Thread David Skoglund
Yes, i know that the class name is MyClass when writing the code, but does 
the object know what class it is constucted from at runtime?


I want to save out scene objects to a XML-file and need to save what class 
the objects are constructed from (or their linkage ID in set in the Flash 
IDE).


/David


- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 2:56 PM
Subject: RE: [Flashcoders] Getting the class name?



Given:


class MyClass extends MovieClip {

function MyClass (){
 trace (this.className)
}


The name of the class is MyClass - or do you mean the instance name?

Jason Merrill
Bank of America
Learning Technology Solutions







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

2006-05-25 Thread Merrill, Jason
You mean the Class type then - for a custom class, I think you would
have to create a property to hold that.

class MyClass extends MovieClip{
public var type:String = MyClass
}

class MyOtherClass extends MovieClip{
public var type:String = MyOtherClass
}

In Flash:

var a:MyClass = new MyClass();
var b:MyClass = new MyOtherClass();
trace(a.type)
trace(b.type)

Name usually refers to the instance name.

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of David Skoglund
Sent: Thursday, May 25, 2006 9:17 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Getting the class name?

Yes, i know that the class name is MyClass when writing the 
code, but does the object know what class it is constucted 
from at runtime?

I want to save out scene objects to a XML-file and need to 
save what class the objects are constructed from (or their 
linkage ID in set in the Flash IDE).

/David


- Original Message -
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 2:56 PM
Subject: RE: [Flashcoders] Getting the class name?


 Given:

class MyClass extends MovieClip {

 function MyClass (){
  trace (this.className)
 }

 The name of the class is MyClass - or do you mean the 
instance name?

 Jason Merrill
 Bank of America
 Learning Technology Solutions







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

2006-05-25 Thread Muzak

 The other issue i see with flex is it's ability to scale.  It doesn't
 seem to have the ability to handle a ton of simultaneous connections very 
 well, ala Flash Media Server.  Perhaps I'm off base 
 here, but I'd prefer to develop the front ends in flash and communicate back 
 and forth with a traditional back-end I.E. ASP, PHP, 
 etc.  Those things are free to develop on, more prove and seemingly scale a 
 hell of a lot better.  Yes, it's not as simple as an 
 EASY button, but if work was easy it'd be fun and we'd all be broke.


Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash
You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate with 
any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with the 
Flash IDE. It's just that an swf published from Flash is 
currently a different version.

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] PHP :: Dimensions of a SWF file?

2006-05-25 Thread Steve Webster

Hi Eric,

Is there a way to know via PHP the dimensions (height  width) of a  
SWF file?  I need this information to construct an html interface  
with all kinds of SWF loaded via UFO script!


The built-in getimagesize() function supports SWF files:

http://uk.php.net/getimagesize

Enjoy!

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Object's popertys definition prob lem ¿?

2006-05-25 Thread Jorge Antonio Diaz Gutierrez
Hi there, I have a problem. This class doesn't work correctly. 
 
When I create an Object, all it's property's values become undefined even if I 
Insert Items trough the Nueva_Ruta method. When I Call the SHOW ALL method 
for tracing , all Array items are empty/undefined.
I really need help about it.
I don't understand this behavior. I'm Using Flash Develop.
 
Thanks a lot.
 
//--CLASS --
class Ruta
{  
 //- 
 private var cantidad:Number; 
  private var ruta:Array;
  private var nombre_ruta:Array; 
 //-CONSTRUCTOR
  public function Ruta() {  
 cantidad = 0;
 }
 //- INSERT METHOD
 public function Nueva_Ruta(nombre:String, pruta:String):Void{
 ruta.push(pruta);
 nombre_ruta.push(nombre);
 cantidad++;
 }
//-- SHOW ALL
 public function Todas_las_Rutas():Array {
 var nombres_rutas:Array = new Array;
 for(var i:Number = 0; i  cantidad ; i++){
nombres_rutas[i] = nombre_ruta[i] +  ( + ruta[i] + );
 }
  return nombres_rutas;
 } 
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PHP :: Dimensions of a SWF file?

2006-05-25 Thread Ian Thomas

Well, you learn something new every day... *throws away existing code*.

Thanks, Steve!

Ian

On 5/25/06, Steve Webster [EMAIL PROTECTED] wrote:

The built-in getimagesize() function supports SWF files:

http://uk.php.net/getimagesize

Enjoy!

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PHP :: Dimensions of a SWF file?

2006-05-25 Thread Éric Thibault
Thanks!  That ASP class reads the header of the SWF file. Is this header 
the same between flash versions and stable for a while ;-)


A+

Ashwan Wadhwa a écrit :

This is in ASP, but you could find alternative commands in PHP:

http://www.4guysfromrolla.com/webtech/tips/t102001-1.shtml

Ashwan.


 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault
Sent: Thursday, May 25, 2006 9:42 AM
To: Flashcoders mailing list
Subject: [Flashcoders] PHP :: Dimensions of a SWF file?

Hello all!

Is there a way to know via PHP the dimensions (height  width) of a SWF file?  
I need this information to construct an html interface with all kinds of SWF loaded 
via UFO script!

Thanks a million!

--
===

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

===

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

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

  



--
===

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

===

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PHP :: Dimensions of a SWF file?

2006-05-25 Thread Éric Thibault

SUPER!

Thanks!

8-)

Steve Webster a écrit :

Hi Eric,

Is there a way to know via PHP the dimensions (height  width) of a 
SWF file?  I need this information to construct an html interface 
with all kinds of SWF loaded via UFO script!


The built-in getimagesize() function supports SWF files:

http://uk.php.net/getimagesize

Enjoy!

--Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


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

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




--
===

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

===

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Object's popertys definition pro blem ¿?

2006-05-25 Thread Wouter Steidl
If i`m correct, your constructor should contain: 

nombre_ruta = new Array();

HTH

Wouter 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jorge
Antonio Diaz Gutierrez
Sent: Thursday, May 25, 2006 3:53 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Object's popertys definition problem ¿?

Hi there, I have a problem. This class doesn't work correctly. 
 
When I create an Object, all it's property's values become undefined even if
I Insert Items trough the Nueva_Ruta method. When I Call the SHOW ALL
method for tracing , all Array items are empty/undefined.
I really need help about it.
I don't understand this behavior. I'm Using Flash Develop.
 
Thanks a lot.
 
//--CLASS -- class Ruta
{
 //-
 private var cantidad:Number;
  private var ruta:Array;
  private var nombre_ruta:Array;
 //-CONSTRUCTOR
  public function Ruta() {  
 cantidad = 0;
 }
 //- INSERT METHOD
 public function Nueva_Ruta(nombre:String, pruta:String):Void{
 ruta.push(pruta);
 nombre_ruta.push(nombre);
 cantidad++;
 }
//-- SHOW ALL
 public function Todas_las_Rutas():Array {
 var nombres_rutas:Array = new Array;
 for(var i:Number = 0; i  cantidad ; i++){
nombres_rutas[i] = nombre_ruta[i] +  ( + ruta[i] + );
 }
  return nombres_rutas;
 }
}


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PHP :: Dimensions of a SWF file?

2006-05-25 Thread Ashwan Wadhwa
I haven't tried that code for version 8 swf. It worked fine for version 7 and 6 
when we used it with C#. 
A-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault
Sent: Thursday, May 25, 2006 10:03 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] PHP :: Dimensions of a SWF file?

Thanks!  That ASP class reads the header of the SWF file. Is this header the 
same between flash versions and stable for a while ;-)

A+

Ashwan Wadhwa a écrit :
 This is in ASP, but you could find alternative commands in PHP:

 http://www.4guysfromrolla.com/webtech/tips/t102001-1.shtml

 Ashwan.


  

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Éric 
 Thibault
 Sent: Thursday, May 25, 2006 9:42 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] PHP :: Dimensions of a SWF file?

 Hello all!

 Is there a way to know via PHP the dimensions (height  width) of a SWF file? 
  I need this information to construct an html interface with all kinds of SWF 
 loaded via UFO script!

 Thanks a million!

 --
 ===

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

 ===

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

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

   


--
===

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

===

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Object's popertys definition p roblem ¿?

2006-05-25 Thread Jorge Antonio Diaz Gutierrez
Thanks Muzak, I'm blind. Thanks a lot.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Muzak
Enviado el: jueves, 25 de mayo de 2006 10:13
Para: Flashcoders mailing list
Asunto: Re: [Flashcoders] Object's popertys definition problem ¿?

you have to create/set the array's in the constructor.

  private var cantidad:Number;
  private var ruta:Array;
  private var nombre_ruta:Array;
 //-CONSTRUCTOR
  public function Ruta() {
ruta = new Array();
nombre_ruta = new Array();
cantidad = 0;
 }

regards,
Muzak

- Original Message - 
From: Jorge Antonio Diaz Gutierrez [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 3:52 PM
Subject: [Flashcoders] Object's popertys definition problem ¿?


Hi there, I have a problem. This class doesn't work correctly.

When I create an Object, all it's property's values become undefined even if I 
Insert Items trough the Nueva_Ruta method. When I 
Call the SHOW ALL method for tracing , all Array items are empty/undefined.
I really need help about it.
I don't understand this behavior. I'm Using Flash Develop.

Thanks a lot.

//--CLASS --
class Ruta
{
 //- 
 private var cantidad:Number;
  private var ruta:Array;
  private var nombre_ruta:Array;
 //-CONSTRUCTOR
  public function Ruta() {
 cantidad = 0;
 }
 //- INSERT METHOD
 public function Nueva_Ruta(nombre:String, pruta:String):Void{
 ruta.push(pruta);
 nombre_ruta.push(nombre);
 cantidad++;
 }
//-- SHOW ALL
 public function Todas_las_Rutas():Array {
 var nombres_rutas:Array = new Array;
 for(var i:Number = 0; i  cantidad ; i++){
nombres_rutas[i] = nombre_ruta[i] +  ( + ruta[i] + );
 }
  return nombres_rutas;
 }
}


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

2006-05-25 Thread mike cann

im not entirely sure but can you use instanceof against a switch statement
to check if its of a particular class?

On 25/05/06, eka [EMAIL PROTECTED] wrote:


Hello :)

you can use my ContructorUtil class with the statics getName, getPackage
and
getPath methods :


http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as

More precision in http://osflash.org/vegas to install VEGAS with SVN :)
you
can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS

now for the custom object's serialization you can use EDEN :
http://live.burrrn.com/wiki/eden

EKA+ :)

2006/5/25, Merrill, Jason [EMAIL PROTECTED]:

 You mean the Class type then - for a custom class, I think you would
 have to create a property to hold that.

 class MyClass extends MovieClip{
 public var type:String = MyClass
 }

 class MyOtherClass extends MovieClip{
 public var type:String = MyOtherClass
 }

 In Flash:

 var a:MyClass = new MyClass();
 var b:MyClass = new MyOtherClass();
 trace(a.type)
 trace(b.type)

 Name usually refers to the instance name.

 Jason Merrill
 Bank of America
 Learning Technology Solutions








 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of David Skoglund
 Sent: Thursday, May 25, 2006 9:17 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Getting the class name?
 
 Yes, i know that the class name is MyClass when writing the
 code, but does the object know what class it is constucted
 from at runtime?
 
 I want to save out scene objects to a XML-file and need to
 save what class the objects are constructed from (or their
 linkage ID in set in the Flash IDE).
 
 /David
 
 
 - Original Message -
 From: Merrill, Jason [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, May 25, 2006 2:56 PM
 Subject: RE: [Flashcoders] Getting the class name?
 
 
  Given:
 
 class MyClass extends MovieClip {
 
  function MyClass (){
   trace (this.className)
  }
 
  The name of the class is MyClass - or do you mean the
 instance name?
 
  Jason Merrill
  Bank of America
  Learning Technology Solutions
 
 
 
 
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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



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

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


Re: [Flashcoders] PHP :: Dimensions of a SWF file?

2006-05-25 Thread Chris Hill

http://getid3.sourceforge.net/

This will get you not only width and height, but a lot of really useful 
information such as bg color, frame rate, etc...


And here's my (somewhat old) php code for rendering the swf:

$fileInfo = GetAllFileInfo($filePath,'swf');
$version = $fileInfo[swf][header][version];
$width = $fileInfo[video][resolution_x];
$height = $fileInfo[video][resolution_y];
$bgcolor = $fileInfo[video][bgcolor];
$html = EOD
OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354

codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=$version,0,0,0;
 WIDTH=$width HEIGHT=$height ALIGN=
 PARAM NAME=movie VALUE=$fileSrc PARAM NAME=quality VALUE=high 
PARAM NAME=bgcolor VALUE=$bgcolor EMBED src=$fileSrc quality=high 
bgcolor=$bgcolor  WIDTH=$width HEIGHT=$height ALIGN=
 TYPE=application/x-shockwave-flash 
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;/EMBED

/OBJECT
EOD;

Peace
Chris

Éric Thibault wrote:

Hello all!

Is there a way to know via PHP the dimensions (height  width) of a SWF 
file?  I need this information to construct an html interface with all 
kinds of SWF loaded via UFO script!


Thanks a million!


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

2006-05-25 Thread Marlon Harrison

I've been asked to build increasingly more complex flash-based pieces
for my employer - and I would really like to begin to componentize my
code as much as possible to minimize me having to reinvent the wheel
with each project. I've never coded using class files…all of the code
that I've created has been inside of the 1st frame of the movie.  I
haven't really had the time that I think I need to understand the
concepts behind using class files and the different OOP-designs that
are commonly used, so I've sort of built up a complex against them.

Does anyone have any URL's or books that they can suggest that may
help me out to get a good understanding? If it helps, I'm particularly
interested in the best approach toward building a media player that
can handle mp3 or flv's.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Getting the class name?

2006-05-25 Thread mike cann

so you could do:

var myClassName:String;
var xx= new myClass();

if (xx instanceof myClass){myClassName=myClass;}
else if (xx instanceof someOtherClass){myClassName=someOtherClass;}

maybe?

On 25/05/06, Arul Prasad [EMAIL PROTECTED] wrote:


instanceof does not return anything - It is not a method, but an operator.
You can use instanceof only to compare - like this:

var xx:XML  = new XML();
trace (xx instanceof XML);

// output will be true.

~Arul Prasad.


On 5/25/06, mike cann [EMAIL PROTECTED] wrote:

 im not entirely sure but can you use instanceof against a switch
 statement
 to check if its of a particular class?

 On 25/05/06, eka [EMAIL PROTECTED] wrote:
 
  Hello :)
 
  you can use my ContructorUtil class with the statics getName,
getPackage
  and
  getPath methods :
 
 
 

http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as
 
  More precision in http://osflash.org/vegas to install VEGAS with SVN
:)
  you
  can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS
 
  now for the custom object's serialization you can use EDEN :
  http://live.burrrn.com/wiki/eden
 
  EKA+ :)
 
  2006/5/25, Merrill, Jason [EMAIL PROTECTED]:
  
   You mean the Class type then - for a custom class, I think you would
   have to create a property to hold that.
  
   class MyClass extends MovieClip{
   public var type:String = MyClass
   }
  
   class MyOtherClass extends MovieClip{
   public var type:String = MyOtherClass
   }
  
   In Flash:
  
   var a:MyClass = new MyClass();
   var b:MyClass = new MyOtherClass();
   trace(a.type)
   trace(b.type)
  
   Name usually refers to the instance name.
  
   Jason Merrill
   Bank of America
   Learning Technology Solutions
  
  
  
  
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf
   Of David Skoglund
   Sent: Thursday, May 25, 2006 9:17 AM
   To: Flashcoders mailing list
   Subject: Re: [Flashcoders] Getting the class name?
   
   Yes, i know that the class name is MyClass when writing the
   code, but does the object know what class it is constucted
   from at runtime?
   
   I want to save out scene objects to a XML-file and need to
   save what class the objects are constructed from (or their
   linkage ID in set in the Flash IDE).
   
   /David
   
   
   - Original Message -
   From: Merrill, Jason [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Sent: Thursday, May 25, 2006 2:56 PM
   Subject: RE: [Flashcoders] Getting the class name?
   
   
Given:
   
   class MyClass extends MovieClip {
   
function MyClass (){
 trace (this.className)
}
   
The name of the class is MyClass - or do you mean the
   instance name?
   
Jason Merrill
Bank of America
Learning Technology Solutions
   
   
   
   
   
   
   
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
   
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
   
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training

[Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Rifled Cloaca

Flashcoders,

So this is one of those things I wonder about.  If I type a var to a custom
type, doesn't the compiler automatically import the associated class files?
When or why would I need to explicitly need to use the import directive?

Thanks in advance!
-g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class Newb Question

2006-05-25 Thread Nick Weekes
Essential Actionscript 2.0 :  Colin Moock. 


Thats all you need...


Marlon Harrison wrote:

I've been asked to build increasingly more complex flash-based pieces
for my employer - and I would really like to begin to componentize my
code as much as possible to minimize me having to reinvent the wheel
with each project. I've never coded using class files…all of the code
that I've created has been inside of the 1st frame of the movie.  I
haven't really had the time that I think I need to understand the
concepts behind using class files and the different OOP-designs that
are commonly used, so I've sort of built up a complex against them.

Does anyone have any URL's or books that they can suggest that may
help me out to get a good understanding? If it helps, I'm particularly
interested in the best approach toward building a media player that
can handle mp3 or flv's.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Getting the Symbol Name?

2006-05-25 Thread August Gresens

The other thread reminded me of a question I have.

I know you can retrieve the instance name of a clip by accessing the
_name property. But is it possible to get the symbol name of a clip at
runtime as well?

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] Getting the class name?

2006-05-25 Thread Arul Prasad

:)

that will work - but won't be feasible, unless you are checking against a
selected set of classes.

If they are classes that you write, the best thing to do would be have a
variable inside ur class right away called 'ClassName' and use it. ( like
how macromedia did in V2 component classes ;-) )

~Arul Prasad.

On 5/25/06, mike cann [EMAIL PROTECTED] wrote:


so you could do:

var myClassName:String;
var xx= new myClass();

if (xx instanceof myClass){myClassName=myClass;}
else if (xx instanceof someOtherClass){myClassName=someOtherClass;}

maybe?

On 25/05/06, Arul Prasad [EMAIL PROTECTED] wrote:

 instanceof does not return anything - It is not a method, but an
operator.
 You can use instanceof only to compare - like this:

 var xx:XML  = new XML();
 trace (xx instanceof XML);

 // output will be true.

 ~Arul Prasad.


 On 5/25/06, mike cann [EMAIL PROTECTED] wrote:
 
  im not entirely sure but can you use instanceof against a switch
  statement
  to check if its of a particular class?
 
  On 25/05/06, eka [EMAIL PROTECTED] wrote:
  
   Hello :)
  
   you can use my ContructorUtil class with the statics getName,
 getPackage
   and
   getPath methods :
  
  
  
 

http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as
  
   More precision in http://osflash.org/vegas to install VEGAS with SVN
 :)
   you
   can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS
  
   now for the custom object's serialization you can use EDEN :
   http://live.burrrn.com/wiki/eden
  
   EKA+ :)
  
   2006/5/25, Merrill, Jason [EMAIL PROTECTED]:
   
You mean the Class type then - for a custom class, I think you
would
have to create a property to hold that.
   
class MyClass extends MovieClip{
public var type:String = MyClass
}
   
class MyOtherClass extends MovieClip{
public var type:String = MyOtherClass
}
   
In Flash:
   
var a:MyClass = new MyClass();
var b:MyClass = new MyOtherClass();
trace(a.type)
trace(b.type)
   
Name usually refers to the instance name.
   
Jason Merrill
Bank of America
Learning Technology Solutions
   
   
   
   
   
   
   
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of David Skoglund
Sent: Thursday, May 25, 2006 9:17 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Getting the class name?

Yes, i know that the class name is MyClass when writing the
code, but does the object know what class it is constucted
from at runtime?

I want to save out scene objects to a XML-file and need to
save what class the objects are constructed from (or their
linkage ID in set in the Flash IDE).

/David


- Original Message -
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list 
flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 2:56 PM
Subject: RE: [Flashcoders] Getting the class name?


 Given:

class MyClass extends MovieClip {

 function MyClass (){
  trace (this.className)
 }

 The name of the class is MyClass - or do you mean the
instance name?

 Jason Merrill
 Bank of America
 Learning Technology Solutions







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

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


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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your 

Re: [Flashcoders] Problems with Tween Class

2006-05-25 Thread Jason Lutes
 So how do i completely unload my MC and my Tween so that there are no
 references hanging around ??  How can i find out how many references
 there are for a given object (similar to the ref count in lingo
 objects in Director) ??  And is this only happening because of AS 2.0

It sounds like a scope issue.

In cases like this, I just take the easiest route, and declare my Tween
variable(s) at an upper level scope, outside of any functions/methods, and
sometimes on _global (when not in an AS 2.0 class). That way, I always
know exactly where to find it/them when it comes time to reset it/them.

Since #Walker is a property of your function (local scope), it's difficult
to assign a null value. Where/what is the proper reference/handle for
#Walker when the function exits? It would otherwise be garbage collected,
except that it remains active somehow and persists in memory. I scratched
my head over this too. It's a bit of a black box IMO.

I skip the wondering by simply making the Tween reference explicit (as
described above).


-
pixelTwiddler, a.k.a. Jason

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

2006-05-25 Thread eka

Hello :)

i think it's more easy to use my class :)
[code]

import vegas.util.ConstructorUtil ;

import myPackage.MyConstructor ;

var instance = new MyConstructor() ;

var name:String = ConstructorUtil.getName( instance ) ;
trace(class name :  + name) ; // output : 'MyClass'

var package:String = ConstructorUtil.getPackage(instance) ;
trace(class package :  + package) ; // output : 'myPackage'

var path:String = ConstructorUtil.getPath(instance) ;
trace(class path :  + path) ; // output : 'myPackage.MyConstructor'

[/code]

EKA+ :)




2006/5/25, mike cann [EMAIL PROTECTED]:


so you could do:

var myClassName:String;
var xx= new myClass();

if (xx instanceof myClass){myClassName=myClass;}
else if (xx instanceof someOtherClass){myClassName=someOtherClass;}

maybe?

On 25/05/06, Arul Prasad [EMAIL PROTECTED] wrote:

 instanceof does not return anything - It is not a method, but an
operator.
 You can use instanceof only to compare - like this:

 var xx:XML  = new XML();
 trace (xx instanceof XML);

 // output will be true.

 ~Arul Prasad.


 On 5/25/06, mike cann [EMAIL PROTECTED] wrote:
 
  im not entirely sure but can you use instanceof against a switch
  statement
  to check if its of a particular class?
 
  On 25/05/06, eka [EMAIL PROTECTED] wrote:
  
   Hello :)
  
   you can use my ContructorUtil class with the statics getName,
 getPackage
   and
   getPath methods :
  
  
  
 

http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as
  
   More precision in http://osflash.org/vegas to install VEGAS with SVN
 :)
   you
   can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS
  
   now for the custom object's serialization you can use EDEN :
   http://live.burrrn.com/wiki/eden
  
   EKA+ :)
  
   2006/5/25, Merrill, Jason [EMAIL PROTECTED]:
   
You mean the Class type then - for a custom class, I think you
would
have to create a property to hold that.
   
class MyClass extends MovieClip{
public var type:String = MyClass
}
   
class MyOtherClass extends MovieClip{
public var type:String = MyOtherClass
}
   
In Flash:
   
var a:MyClass = new MyClass();
var b:MyClass = new MyOtherClass();
trace(a.type)
trace(b.type)
   
Name usually refers to the instance name.
   
Jason Merrill
Bank of America
Learning Technology Solutions
   
   
   
   
   
   
   
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of David Skoglund
Sent: Thursday, May 25, 2006 9:17 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Getting the class name?

Yes, i know that the class name is MyClass when writing the
code, but does the object know what class it is constucted
from at runtime?

I want to save out scene objects to a XML-file and need to
save what class the objects are constructed from (or their
linkage ID in set in the Flash IDE).

/David


- Original Message -
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list 
flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 2:56 PM
Subject: RE: [Flashcoders] Getting the class name?


 Given:

class MyClass extends MovieClip {

 function MyClass (){
  trace (this.className)
 }

 The name of the class is MyClass - or do you mean the
instance name?

 Jason Merrill
 Bank of America
 Learning Technology Solutions







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

Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread mike cann

If you are talking about flash, no i believe it doesnt automatically import
your class for you.
You may be getting confused with the new Flex Builder 2 which does infact
import automatically for you.

On 25/05/06, Rifled Cloaca [EMAIL PROTECTED] wrote:


Flashcoders,

So this is one of those things I wonder about.  If I type a var to a
custom
type, doesn't the compiler automatically import the associated class
files?
When or why would I need to explicitly need to use the import directive?

Thanks in advance!
-g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class Newb Question

2006-05-25 Thread phaedrus
I've been trying to teach myself good OOP approaches with flash (in a
hurry).  I've bought a number of books, so far the two I'd recommend most
are:

Essential ActionScript 2.0 by Colin Moock (O'REILLY) - has several chapters
devoted to actionscript implementation of commonly used design patterns.  I
believe a chapter or two of it is available on the adobe site as a pdf for
preview.

Flash 8 ActionScript Bible by Joey Lott and Robert Reinhardt (WILEY). - a
good reference with basic examples of pretty much everything.

- phaedrus



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marlon
Harrison
Sent: Thursday, May 25, 2006 10:15 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Class Newb Question

I've been asked to build increasingly more complex flash-based pieces
for my employer - and I would really like to begin to componentize my
code as much as possible to minimize me having to reinvent the wheel
with each project. I've never coded using class files.all of the code
that I've created has been inside of the 1st frame of the movie.  I
haven't really had the time that I think I need to understand the
concepts behind using class files and the different OOP-designs that
are commonly used, so I've sort of built up a complex against them.

Does anyone have any URL's or books that they can suggest that may
help me out to get a good understanding? If it helps, I'm particularly
interested in the best approach toward building a media player that
can handle mp3 or flv's.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Merrill, Jason
So this is one of those things I wonder about.  If I type a 
var to a custom type, doesn't the compiler automatically 
import the associated class files?
When or why would I need to explicitly need to use the import 
directive?

Because if Flash imported every class available to it automatically,
then your .swf files would be huge and unnecessarily bloated.  Do you
really want the code to all the Remoting classes imported into your .swf
if you're not using them? When you include, the actionscript cotained in
the class is embedded in the .swf.

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Rifled Cloaca
Sent: Thursday, May 25, 2006 11:23 AM
To: Flashcoders mailing list
Subject: [Flashcoders] OOP 101: Is import really necessary?

Flashcoders,

So this is one of those things I wonder about.  If I type a 
var to a custom type, doesn't the compiler automatically 
import the associated class files?
When or why would I need to explicitly need to use the import 
directive?

Thanks in advance!
-g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] XML Parsing

2006-05-25 Thread Matt Jurgemeyer
I'm building my menus dynamically from xml docs, but I'm having a problem
with a lag while the xml parses. I have a graphic indicating that the xml is
loading, but it isn't showing up for me on broadband. I'm assuming that this
is because the xml file is so small, it loads instantly. I still have the
lag though, so it must be coming from the parsing time. Is there any way I
can indicate or show progress of parsing? I'm sure this has been a common
topic in the past, but I haven't been able to find anything online.

 

For reference, the URL is: http://www.jurgmeyer.com
http://www.jurgmeyer.com/  - after the page loads, click on any of the
four options to see what I'm talking about.

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

2006-05-25 Thread Mike Chambers
What are you basing that on? The underlying Player, not framework  
handles the low level connections, so it is the same regsardless of  
whether the content was built in Flash Authoring or the Flex Framework.


In fact, Flex was originally built and designed with scalability as a  
primary goal (as it was originally focused at the Enterprise space).


And Flex based apps can easily communicate with backends such as ASP,  
PHP, etc...


mike chambers

[EMAIL PROTECTED]

On May 25, 2006, at 5:43 AM, Christian wrote:


The other issue i see with flex is it's ability to scale.  It doesn't
seem to have the ability to handle a ton of simultaneous connections
very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
prefer to develop the front ends in flash and communicate back and  
forth

with a traditional back-end I.E. ASP, PHP, etc.  Those things are free
to develop on, more prove and seemingly scale a hell of a lot better.
Yes, it's not as simple as an EASY button, but if work was easy it'd
be fun and we'd all be broke.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] SOLVED Loading Child SWF Files in a swfPanel

2006-05-25 Thread Manuel Saint-Victor

Okay- Nevermind- The answer is yes you can

On 5/25/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:


I'm building a custom panel that needs a child swf file to be loaded- How
does one reach the child swf files from a  custom panel.  Will I be able to
just call the loadMovie()  function as usual and just call a folder relative
to my parent swf location or are there some special circumstances because
it's in the windowSWF/Panle?

Thanks
Mani



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

2006-05-25 Thread MBDI ICSC Rodrigo E. Curiel Salazar

Hi all !

I have the most strange behavior in flash IDE, I have just changed PC, so I
passed my project  installed the fonts from one PC to the other, well, the
thing is:

when I open the FLA, if the textfield is using  the font normal* (defined
by me, and sharing it from fontlibrary.swf) show's up like garbled in the
IDE, but when I compile it shows normally, If I change the font to Bavaria
(the not shared font) it shows correctly in the IDE, what do you think that
may cause this ?

of course, if I open the file in the old PC it show's normally.

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

2006-05-25 Thread fdeluca
Hi,
I've been too busy developping in Flash lately to give a try to the new Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 6:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE


 The other issue i see with flex is it's ability to scale.  It doesn't 
 seem to have the ability to handle a ton of simultaneous connections 
 very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd 
 prefer to develop the front ends in flash and communicate back and 
 forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
free to develop on, more prove and seemingly scale a hell of a lot better.
Yes, it's not as simple as an EASY button, but if work was easy it'd be
fun and we'd all be broke.


Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with the
Flash IDE. It's just that an swf published from Flash is currently a
different version.

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] Getting the class name?

2006-05-25 Thread eka

???

you speak about my ConstructorUtil class ? :)

My methods search in the _global object the instance and this Constructor
and build a little private property __path__.

I use a pattern of reflexion and a storage of the result to avoid seeking
the name and the namespace of the class each time. It's automatic :)

For me the method of macromedia is not at all functional and clean ;)

I Use this method in all toString() methods with an enormous framework and
it's perfect.

EKA+ :)



2006/5/25, Arul Prasad [EMAIL PROTECTED]:


:)

that will work - but won't be feasible, unless you are checking against a
selected set of classes.

If they are classes that you write, the best thing to do would be have a
variable inside ur class right away called 'ClassName' and use it. ( like
how macromedia did in V2 component classes ;-) )

~Arul Prasad.

On 5/25/06, mike cann [EMAIL PROTECTED] wrote:

 so you could do:

 var myClassName:String;
 var xx= new myClass();

 if (xx instanceof myClass){myClassName=myClass;}
 else if (xx instanceof someOtherClass){myClassName=someOtherClass;}

 maybe?

 On 25/05/06, Arul Prasad [EMAIL PROTECTED] wrote:
 
  instanceof does not return anything - It is not a method, but an
 operator.
  You can use instanceof only to compare - like this:
 
  var xx:XML  = new XML();
  trace (xx instanceof XML);
 
  // output will be true.
 
  ~Arul Prasad.
 
 
  On 5/25/06, mike cann [EMAIL PROTECTED] wrote:
  
   im not entirely sure but can you use instanceof against a switch
   statement
   to check if its of a particular class?
  
   On 25/05/06, eka [EMAIL PROTECTED] wrote:
   
Hello :)
   
you can use my ContructorUtil class with the statics getName,
  getPackage
and
getPath methods :
   
   
   
  
 

http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as
   
More precision in http://osflash.org/vegas to install VEGAS with
SVN
  :)
you
can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS
   
now for the custom object's serialization you can use EDEN :
http://live.burrrn.com/wiki/eden
   
EKA+ :)
   
2006/5/25, Merrill, Jason [EMAIL PROTECTED]:

 You mean the Class type then - for a custom class, I think you
 would
 have to create a property to hold that.

 class MyClass extends MovieClip{
 public var type:String = MyClass
 }

 class MyOtherClass extends MovieClip{
 public var type:String = MyOtherClass
 }

 In Flash:

 var a:MyClass = new MyClass();
 var b:MyClass = new MyOtherClass();
 trace(a.type)
 trace(b.type)

 Name usually refers to the instance name.

 Jason Merrill
 Bank of America
 Learning Technology Solutions








 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of David Skoglund
 Sent: Thursday, May 25, 2006 9:17 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Getting the class name?
 
 Yes, i know that the class name is MyClass when writing the
 code, but does the object know what class it is constucted
 from at runtime?
 
 I want to save out scene objects to a XML-file and need to
 save what class the objects are constructed from (or their
 linkage ID in set in the Flash IDE).
 
 /David
 
 
 - Original Message -
 From: Merrill, Jason [EMAIL PROTECTED]
 To: Flashcoders mailing list 
 flashcoders@chattyfig.figleaf.com
 Sent: Thursday, May 25, 2006 2:56 PM
 Subject: RE: [Flashcoders] Getting the class name?
 
 
  Given:
 
 class MyClass extends MovieClip {
 
  function MyClass (){
   trace (this.className)
  }
 
  The name of the class is MyClass - or do you mean the
 instance name?
 
  Jason Merrill
  Bank of America
  Learning Technology Solutions
 
 
 
 
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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:
 

RE: [Flashcoders] Flex vs. Flash IDE

2006-05-25 Thread Dave Watts
 Flex to me has seemed to discredit a lot of the flash developers
 out there buy putting advanced functionality at the finger tips 
 of the average user.

This is the nature of programming; what was once difficult becomes simple,
and what was once impossible becomes difficult! Once upon a time, if you
wanted to build Windows applications, you used C/C++ and MFC. Then, you
could use Visual Basic, and now, you can use .NET.

 The other issue i see with flex is it's ability to scale. It 
 doesn't seem to have the ability to handle a ton of 
 simultaneous connections very well, ala Flash Media Server.  
 Perhaps I'm off base here, but I'd prefer to develop the 
 front ends in flash and communicate back and forth with a 
 traditional back-end I.E. ASP, PHP, etc.

Flex 2 has no required server component. There are optional server
components, which based on what I've seen scale incredibly well, but you can
use Flex 2 to build interfaces that talk to any server-side application you
want.

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

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

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

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


Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Arul Prasad

import in AS2, is to help you avoid typing in the complete package name
everytime u reference a class.

The following code

import mx.controls.Button;
var playBtn:Button;
...
var stopBtn:Button;

var pauseBtn:Button;

will look like this:

var playBtn:mx.controls.Button;
...
var stopBtn:mx.controls.Button;

var pauseBtn:mx.controls.Button;

if you don't use an import.

Please refer flash help for more details..

:)
~Arul Prasad

On 5/25/06, Rifled Cloaca [EMAIL PROTECTED] wrote:


Flashcoders,

So this is one of those things I wonder about.  If I type a var to a
custom
type, doesn't the compiler automatically import the associated class
files?
When or why would I need to explicitly need to use the import directive?

Thanks in advance!
-g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class Newb Question

2006-05-25 Thread Lee McColl-Sylvester
I concur with regard to Essential Actionscript by Colin Moock

Lee

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of phaedrus
Sent: 25 May 2006 16:43
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Class Newb Question

I've been trying to teach myself good OOP approaches with flash (in a
hurry).  I've bought a number of books, so far the two I'd recommend
most
are:

Essential ActionScript 2.0 by Colin Moock (O'REILLY) - has several
chapters
devoted to actionscript implementation of commonly used design patterns.
I
believe a chapter or two of it is available on the adobe site as a pdf
for
preview.

Flash 8 ActionScript Bible by Joey Lott and Robert Reinhardt (WILEY). -
a
good reference with basic examples of pretty much everything.

- phaedrus



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marlon
Harrison
Sent: Thursday, May 25, 2006 10:15 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Class Newb Question

I've been asked to build increasingly more complex flash-based pieces
for my employer - and I would really like to begin to componentize my
code as much as possible to minimize me having to reinvent the wheel
with each project. I've never coded using class files.all of the code
that I've created has been inside of the 1st frame of the movie.  I
haven't really had the time that I think I need to understand the
concepts behind using class files and the different OOP-designs that
are commonly used, so I've sort of built up a complex against them.

Does anyone have any URL's or books that they can suggest that may
help me out to get a good understanding? If it helps, I'm particularly
interested in the best approach toward building a media player that
can handle mp3 or flv's.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flex vs. Flash IDE

2006-05-25 Thread Jim Robson
Frank,

You are correct - with 2.0 you don't need the server. The server components
are only required for certain functionalities such as messaging. 

I'm just starting with Flex myself, and so far I like it. 

Jim


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 11:51 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Flex vs. Flash IDE

Hi,
I've been too busy developping in Flash lately to give a try to the new Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 6:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE


 The other issue i see with flex is it's ability to scale.  It doesn't 
 seem to have the ability to handle a ton of simultaneous connections 
 very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd 
 prefer to develop the front ends in flash and communicate back and 
 forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
free to develop on, more prove and seemingly scale a hell of a lot better.
Yes, it's not as simple as an EASY button, but if work was easy it'd be
fun and we'd all be broke.


Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with the
Flash IDE. It's just that an swf published from Flash is currently a
different version.

regards,
Muzak 



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

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

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

2006-05-25 Thread Merrill, Jason
Yes, the new Flex will come with a free compiler to take your regular
old .swf files created with it and upload to your server.  No Flex
server required as it is now.  Download the Flexbuilder2 beta and check
it out - you can make .swf files with it.  Pretty cool.

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 11:51 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Flex vs. Flash IDE

Hi,
I've been too busy developping in Flash lately to give a try to the
new Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in
regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 6:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE


 The other issue i see with flex is it's ability to scale.  It
doesn't
 seem to have the ability to handle a ton of simultaneous connections
 very well, ala Flash Media Server.  Perhaps I'm off base here, but
I'd
 prefer to develop the front ends in flash and communicate back and
 forth with a traditional back-end I.E. ASP, PHP, etc.  Those things
are
free to develop on, more prove and seemingly scale a hell of a lot
better.
Yes, it's not as simple as an EASY button, but if work was easy it'd
be
fun and we'd all be broke.


Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to
communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with
the
Flash IDE. It's just that an swf published from Flash is currently a
different version.

regards,
Muzak



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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] sending HTML image map data to Flash

2006-05-25 Thread Marc Hoffman
Anyone have tips on making Flash read the image map on the host html 
page and parse it into a multi-dimensonal array (as would happen if 
we were importing xml)?


In a web-based project, we provide non-flash browsers with a jpg and 
image map. We want to grab the image map data directly from the html 
and send it to the swf so that Flash can construct hit areas and URLs 
from that data (it's too cumbersome to copy this data manually into 
the .fla). I'm having trouble parsing the image map data inside 
Flash. For one thing, I have to account for the way I.E. rewrites 
html (different quoting conventions, for example). It would be nice 
if the image map data were sent to Flash in more of an xml format.


Does this already exist? Any thoughts?

TIA,

Marc


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

2006-05-25 Thread Mike Britton

How many nodes are in the XML file?

Can you post the code that does the parsing?

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

2006-05-25 Thread Nick Weekes
With Flex 2.0, there is no need for a server, the swf's can be deployed 
in the same way as Flash swf's.  Adobe are even going to release a 
command line compiler if you dont want to pay the (rumoured) $1000 for 
Flex Builder 2.0.



[EMAIL PROTECTED] wrote:

Hi,
I've been too busy developping in Flash lately to give a try to the new Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 6:45 AM

To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE


  
The other issue i see with flex is it's ability to scale.  It doesn't 
seem to have the ability to handle a ton of simultaneous connections 
very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd 
prefer to develop the front ends in flash and communicate back and 
forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are


free to develop on, more prove and seemingly scale a hell of a lot better.
Yes, it's not as simple as an EASY button, but if work was easy it'd be
fun and we'd all be broke.
  


Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with the
Flash IDE. It's just that an swf published from Flash is currently a
different version.

regards,
Muzak 




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

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

  


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

2006-05-25 Thread Matt Jurgemeyer
Oops ... misspelled my link: http://www.jurgemeyer.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt
Jurgemeyer
Sent: Thursday, May 25, 2006 9:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] XML Parsing

I'm building my menus dynamically from xml docs, but I'm having a problem
with a lag while the xml parses. I have a graphic indicating that the xml is
loading, but it isn't showing up for me on broadband. I'm assuming that this
is because the xml file is so small, it loads instantly. I still have the
lag though, so it must be coming from the parsing time. Is there any way I
can indicate or show progress of parsing? I'm sure this has been a common
topic in the past, but I haven't been able to find anything online.

 

For reference, the URL is: http://www.jurgmeyer.com
http://www.jurgmeyer.com/  - after the page loads, click on any of the
four options to see what I'm talking about.

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

2006-05-25 Thread Christian
Muzak, would I be able to email you about an MXI issue?  I'm pulling my 
hair out over here.



phaedrus wrote:

Thank You!

  
http://www.muzakdeezign.com/mxi_creator/ 


(And Thank You!)

- phaedrus

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Wednesday, May 24, 2006 5:55 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] MXI Files

Here's the mxi file format specs:
http://download.macromedia.com/pub/exchange/mxi_file_format.pdf

And here's a tool that helps with creating mxi files (pc only).
http://www.muzakdeezign.com/mxi_creator/

regards,
Muzak

- Original Message - 
From: phaedrus [EMAIL PROTECTED]

To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 12:37 AM
Subject: [Flashcoders] MXI Files


  

Can someone point me at a good tutorial or writeup on making MXI files?

I want to be able to package a component so that when one includes it in
their project, they also get access to a folder of the resources they may
wish to edit.

It seems like these MXI files are the way to do it, but my reference books
don't have anything to say on them and I'm having trouble filtering out


the
  

noise on google searches.

Thanks!
- phaedrus




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

2006-05-25 Thread Mike Boutin

Yes im having the same problem, but with Flash Remoting.

Matt Jurgemeyer wrote:

I'm building my menus dynamically from xml docs, but I'm having a problem
with a lag while the xml parses. I have a graphic indicating that the xml is
loading, but it isn't showing up for me on broadband. I'm assuming that this
is because the xml file is so small, it loads instantly. I still have the
lag though, so it must be coming from the parsing time. Is there any way I
can indicate or show progress of parsing? I'm sure this has been a common
topic in the past, but I haven't been able to find anything online.

 


For reference, the URL is: http://www.jurgmeyer.com
http://www.jurgmeyer.com/  - after the page loads, click on any of the
four options to see what I'm talking about.

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

2006-05-25 Thread mike cann

i agree, i just tested your class eka and it works very well, nicely done
mate :)

On 25/05/06, eka [EMAIL PROTECTED] wrote:


???

you speak about my ConstructorUtil class ? :)

My methods search in the _global object the instance and this Constructor
and build a little private property __path__.

I use a pattern of reflexion and a storage of the result to avoid seeking
the name and the namespace of the class each time. It's automatic :)

For me the method of macromedia is not at all functional and clean ;)

I Use this method in all toString() methods with an enormous framework and
it's perfect.

EKA+ :)



2006/5/25, Arul Prasad [EMAIL PROTECTED]:

 :)

 that will work - but won't be feasible, unless you are checking against
a
 selected set of classes.

 If they are classes that you write, the best thing to do would be have a
 variable inside ur class right away called 'ClassName' and use it. (
like
 how macromedia did in V2 component classes ;-) )

 ~Arul Prasad.

 On 5/25/06, mike cann [EMAIL PROTECTED] wrote:
 
  so you could do:
 
  var myClassName:String;
  var xx= new myClass();
 
  if (xx instanceof myClass){myClassName=myClass;}
  else if (xx instanceof someOtherClass){myClassName=someOtherClass;}
 
  maybe?
 
  On 25/05/06, Arul Prasad [EMAIL PROTECTED] wrote:
  
   instanceof does not return anything - It is not a method, but an
  operator.
   You can use instanceof only to compare - like this:
  
   var xx:XML  = new XML();
   trace (xx instanceof XML);
  
   // output will be true.
  
   ~Arul Prasad.
  
  
   On 5/25/06, mike cann [EMAIL PROTECTED] wrote:
   
im not entirely sure but can you use instanceof against a switch
statement
to check if its of a particular class?
   
On 25/05/06, eka [EMAIL PROTECTED] wrote:

 Hello :)

 you can use my ContructorUtil class with the statics getName,
   getPackage
 and
 getPath methods :



   
  
 

http://live.burrrn.com/browser/projects/VEGAS/AS2/trunk/src/vegas/util/ConstructorUtil.as

 More precision in http://osflash.org/vegas to install VEGAS with
 SVN
   :)
 you
 can read in french my TRAC : http://live.burrrn.com/wiki/VEGAS

 now for the custom object's serialization you can use EDEN :
 http://live.burrrn.com/wiki/eden

 EKA+ :)

 2006/5/25, Merrill, Jason [EMAIL PROTECTED]:
 
  You mean the Class type then - for a custom class, I think you
  would
  have to create a property to hold that.
 
  class MyClass extends MovieClip{
  public var type:String = MyClass
  }
 
  class MyOtherClass extends MovieClip{
  public var type:String = MyOtherClass
  }
 
  In Flash:
 
  var a:MyClass = new MyClass();
  var b:MyClass = new MyOtherClass();
  trace(a.type)
  trace(b.type)
 
  Name usually refers to the instance name.
 
  Jason Merrill
  Bank of America
  Learning Technology Solutions
 
 
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of David Skoglund
  Sent: Thursday, May 25, 2006 9:17 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Getting the class name?
  
  Yes, i know that the class name is MyClass when writing the
  code, but does the object know what class it is constucted
  from at runtime?
  
  I want to save out scene objects to a XML-file and need to
  save what class the objects are constructed from (or their
  linkage ID in set in the Flash IDE).
  
  /David
  
  
  - Original Message -
  From: Merrill, Jason [EMAIL PROTECTED]
  To: Flashcoders mailing list 
  flashcoders@chattyfig.figleaf.com
  Sent: Thursday, May 25, 2006 2:56 PM
  Subject: RE: [Flashcoders] Getting the class name?
  
  
   Given:
  
  class MyClass extends MovieClip {
  
   function MyClass (){
trace (this.className)
   }
  
   The name of the class is MyClass - or do you mean the
  instance name?
  
   Jason Merrill
   Bank of America
   Learning Technology Solutions
  
  
  
  
  
  
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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 

Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Rich Rodecker

ok its early for me but I think you dont actually need to import if
you provide the full classpath for your datatypes:

private var myVar:com.blah.MyDataType

will work just fine, without an import, i beleive.  however, if you
wanted to do:

private var myVar:MyDataType;

then you would need to tell flash which class you were referring to,
by importing the pakcage/class info.

import com.blah.MyDataType;


basically, 'import' is almost like setting a shortcut to refer to a
particular class without using its full package name.




On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:

So this is one of those things I wonder about.  If I type a
var to a custom type, doesn't the compiler automatically
import the associated class files?
When or why would I need to explicitly need to use the import
directive?

Because if Flash imported every class available to it automatically,
then your .swf files would be huge and unnecessarily bloated.  Do you
really want the code to all the Remoting classes imported into your .swf
if you're not using them? When you include, the actionscript cotained in
the class is embedded in the .swf.

Jason Merrill
Bank of America
Learning Technology Solutions








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Rifled Cloaca
Sent: Thursday, May 25, 2006 11:23 AM
To: Flashcoders mailing list
Subject: [Flashcoders] OOP 101: Is import really necessary?

Flashcoders,

So this is one of those things I wonder about.  If I type a
var to a custom type, doesn't the compiler automatically
import the associated class files?
When or why would I need to explicitly need to use the import
directive?

Thanks in advance!
-g
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Ian Thomas

Errm - actually that's not such a good reason.

The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

You could just type com.fred.MyClass throughout the body of your code
instead of typing import at the top of the file.

'import' is simply a disambiguation helper for the compiler. It's got
nothing to do with what code actually gets included in the resultant
.swf. You can prove this by typing:
import com.fred.*   // Replace with some set of classes you're not
using in your current project

And recompiling. The .swf file size won't go up until you actually
_reference_ an object that belongs to one of those packages. As soon
as you typed:
var f:MyClass=new MyClass();

or, in fact
var f:com.fred.MyClass=new com.fred.MyClass();

The file size would go up.

So - in answer to RifledCloaca - no, you don't need to type 'import'
at all, as long as you refer to all your classes by full packagename.

Ian

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:


Because if Flash imported every class available to it automatically,
then your .swf files would be huge and unnecessarily bloated.  Do you
really want the code to all the Remoting classes imported into your .swf
if you're not using them? When you include, the actionscript cotained in
the class is embedded in the .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] OOP 101: Is import really necessary?

2006-05-25 Thread Jonathan Berry

I think what he is asking is if this is the same as import:
var myObj:mx.core.UIObject = new mx.core.UIObject;

I think one of the answers is that it saves on typing out the class info for
every reference. Any other benefits to import?

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:


So this is one of those things I wonder about.  If I type a
var to a custom type, doesn't the compiler automatically
import the associated class files?
When or why would I need to explicitly need to use the import
directive?

Because if Flash imported every class available to it automatically,
then your .swf files would be huge and unnecessarily bloated.  Do you
really want the code to all the Remoting classes imported into your .swf
if you're not using them? When you include, the actionscript cotained in
the class is embedded in the .swf.

Jason Merrill
Bank of America
Learning Technology Solutions

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

2006-05-25 Thread Danny Kodicek
I've got a string that's been passed to Director, which is encoded with UTF8 
but as far as Director is concerned is just a string of ANSI characters. Now 
I want to pass the string to Flash and have Flash interpret it as a Unicode 
string. I've written my own UTF8 decoder function, but unfortunately, I've 
got a problem somewhere. I'm trying hard to pin it down to a single issue, 
but I think the problem is that String.fromCharCode() and 
String.charCodeAt() use Unicode rather than ANSI. So the process is:


Director reads a piece of text encoded as a binary string. It turns it into 
a sequence of bytes.
It reads, say, the byte 142. It turns it into the character Ž (under my 
local ANSI codepage)
It passes that to Flash. Flash then runs String.charCodeAt() to turn this 
back into a number. Unfortunately, this is using Unicode, so instead of 142 
it ends up with 381. Now when I run my UTF8 translation system, of course 
the whole thing is using the wrong numbers and it goes kerblooey.


Am I reading the problem right? It's hurting my brain.

If I've diagnosed the problem correctly, then I can see a few potential 
solutions:


Can I pass the binary string data directly to Flash without converting it to 
text?
Can Flash read the character as ANSI instead of Unicode, getting the same 
value as Director?
Otherwise I'm going to have to turn the whole string into an array of 
numbers in Director, and pass that array to Flash. And that's going to annoy 
me...


What a mess.
Danny 


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

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


[Flashcoders] sending HTML image map data to Flash

2006-05-25 Thread Marc Hoffman


[My apologies if you receive this twice -- didn't seem to go through 
the first time.]



Anyone have tips on making Flash read the image map on the host html 
page and parse it into a multi-dimensonal array (as would happen if 
we were importing xml)?


In a web-based project, we provide non-flash browsers with a jpg and 
image map. We want to grab the image map data directly from the html 
and send it to the swf so that Flash can construct hit areas and URLs 
from that data (it's too cumbersome to copy this data manually into 
the .fla). I'm having trouble parsing the image map data inside 
Flash. For one thing, I have to account for the way I.E. rewrites 
html (different quoting conventions, for example). It would be nice 
if the image map data were sent to Flash in more of an xml format.


Does this already exist? Any thoughts?

TIA,

Marc


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

2006-05-25 Thread Kevin Newman

Marcelo de Moraes Serpa wrote:

Well, I think you should just stick with the tool that works for you. I´m
currently using Flash 8 IDE to build the layout and assets, and, for 
me, it

is pretty good to build forms as well. The rest I do outside Flash, in
FlashDevelop and compile with MTASC ;)

It´s just another way to build the views... and there are tons of ways 
you

can do that... what really matters to me is the advent of AS3 that is for
sure above all this discussion...

Marcelo.


It's exactly this kind of thing that has me looking into Flex - It seems 
like Flash IDE is very good for some of the things it tries to do 
(animation, assets production, etc.) but falls apart when you need to 
actually make a swf that works like an application. From the replies to 
this thread it sounds like others have found this to be true as well, 
and so people are using the Flash IDE in the way you've described, while 
resorting to outside tools to get the application level work done (like 
FlashDevelop and MTASC - and eventually, Adobe's free compiler I would 
imagine).


This situation for me answers pretty clearly the question of where Flex 
Builder fits in.


This thread has been very informative. Thanks a bunch. :-)

Kevin N.



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

2006-05-25 Thread Matt Jurgemeyer
Below are examples of my xml and the code I use to parse it.


THIS IS ONE OF MY XML FILES:

?xml version=1.0 encoding=iso-8859-1?

INTERACTIVE

BUTTON title=website client=CNE
buttonIMAGE=webSite_CNE.jpg
IMAGES
IMAGEwebsite_CNE(1).jpg/IMAGE
IMAGEwebsite_CNE(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=direct emails client=Dell
buttonIMAGE=directEmail_Dell.jpg
IMAGES
IMAGEemail_Dell(1).jpg/IMAGE
IMAGEemail_Dell(2).jpg/IMAGE
IMAGEemail_Dell(3).jpg/IMAGE
IMAGEemail_Dell(4).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=enews client=Dell
buttonIMAGE=enews_Dell.jpg
IMAGES
IMAGEenews_Dell(1).jpg/IMAGE
IMAGEenews_Dell(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=corporate website client=Dell
buttonIMAGE=webSite_Dell.jpg
IMAGES
IMAGEwebsite_Dell(1).jpg/IMAGE
IMAGEwebsite_Dell(2).jpg/IMAGE
IMAGEwebsite_Dell(3).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=band website client=Dickie Lee Erwin
buttonIMAGE=webSite_Dickie.jpg
IMAGES
IMAGEwebsite_Dickie(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=banner ads client=Hoover's Online
buttonIMAGE=banners_Hoovers.jpg
IMAGES
IMAGEbanners_Hoovers(1).jpg/IMAGE
IMAGEbanners_Hoovers(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=website client=Impath
buttonIMAGE=webSite_Impath.jpg
IMAGES
IMAGEwebsite_Impath(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=website client=Radiant Research
buttonIMAGE=webSite_Radiant.jpg
IMAGES
IMAGEwebsite_Radiant(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=brand guidelines client=Temple Inland
buttonIMAGE=webSite_Inland.jpg
IMAGES
IMAGEwebsite_Inland(1).jpg/IMAGE
IMAGEwebsite_Inland(2).jpg/IMAGE
IMAGEwebsite_Inland(3).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=snapshot metrics client=Tocquigny
buttonIMAGE=Metrics.jpg
IMAGES
IMAGEwebsite_Metrics(1).jpg/IMAGE
IMAGEwebsite_Metrics(2).jpg/IMAGE
IMAGEwebsite_Metrics(3).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=website client=Tocquigny
buttonIMAGE=webSite_Tocquigny.jpg
IMAGES
IMAGEwebsite_Tocquigny(1).jpg/IMAGE
IMAGEwebsite_Tocquigny(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=direct email client=Toshiba
buttonIMAGE=directEmail_Toshiba.jpg
IMAGES
IMAGEemail_Toshiba(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=enews client=Vignette
buttonIMAGE=enews_Vignette.jpg
IMAGES
IMAGEenews_Vignette(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=banner ads client=Winding Road
buttonIMAGE=banners_Windingroad.jpg
IMAGES
IMAGEbanners_Windingroad(1).jpg/IMAGE
IMAGEbanners_Windingroad(2).jpg/IMAGE
IMAGEbanners_Windingroad(3).jpg/IMAGE
IMAGEbanners_Windingroad(4).jpg/IMAGE
/IMAGES
/BUTTON

/INTERACTIVE

--

THIS IS MY CODE:

//hide the flash menu until the XML loads
_parent._visible = false;
// xml processing
menu_interactive_xml = new XML();
menu_interactive_xml.load(xml/interactive.xml);
menu_interactive_xml.ignoreWhite = 1;
//
menu_interactive_xml.onLoad = function(ok) {
// create main menu after successful loading of XML
if (ok) {
this._parent._parent.loading._alpha = 0;
create_menu();
} else {
trace(menu_interactive_xml.getBytesLoaded());
}
};
//

counter = 0;
function create_menu() {

RE: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Merrill, Jason
The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

Err...that has not been my understanding at all.  If that is the case,
then why do you NOT need to include your class files on the server with
the .swf?  Since reality is you don't, all that code has to be in the
.swf upon compiling, otherwise, the .swf wouldn't know what to do with 

Myvar:MyCoolClass = new MyCoolClass();

If it's not included with the .swf, how would the .swf know what
MyCoolClass is otherwise?


Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: Thursday, May 25, 2006 12:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

Errm - actually that's not such a good reason.

The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

You could just type com.fred.MyClass throughout the body of your code
instead of typing import at the top of the file.

'import' is simply a disambiguation helper for the compiler. It's got
nothing to do with what code actually gets included in the resultant
.swf. You can prove this by typing:
import com.fred.*   // Replace with some set of classes you're not
using in your current project

And recompiling. The .swf file size won't go up until you actually
_reference_ an object that belongs to one of those packages. As soon
as you typed:
var f:MyClass=new MyClass();

or, in fact
var f:com.fred.MyClass=new com.fred.MyClass();

The file size would go up.

So - in answer to RifledCloaca - no, you don't need to type 'import'
at all, as long as you refer to all your classes by full packagename.

Ian

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 Because if Flash imported every class available to it automatically,
 then your .swf files would be huge and unnecessarily bloated.  Do
you
 really want the code to all the Remoting classes imported into your
.swf
 if you're not using them? When you include, the actionscript
cotained in
 the class is embedded in the .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


[Flashcoders] eLearning built in Flex

2006-05-25 Thread Dan Thatcher
Jason and the other guy that mentioned building e-learning in Flex,

 

Did you bring a link to the e-learning that you mentioned that was built in
Flex?  

 

Would love to see it :-)

 

Dan Thatcher
Online Learning
The American Academy of Professional Coders
801-238-9893 (office)
801-879-9253 (mobile)

 

 

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

2006-05-25 Thread Marcelo de Moraes Serpa

I´m thinking about buying SWF Encrypt, but as there´s also ASO (ActionScript
Obfuscator Pro) I would like to ask your suggestion about what to use? What
is better? Or are they complementary (use both)?

Thanks,

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

2006-05-25 Thread Mike Boutin
Yes OpenLaszlo is a great solution.  Ive used it quite a bit.  They have 
a awesome community for help and getting started with it.


jcanistrum wrote:

and what about OpenLaszlo, has someone given it a try ?

I saw some very good demos overthere 

http://www.openlaszlo.org/demos



2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:


Hi,
I've been too busy developping in Flash lately to give a try to the new
Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 6:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE


 The other issue i see with flex is it's ability to scale.  It doesn't
 seem to have the ability to handle a ton of simultaneous connections
 very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
 prefer to develop the front ends in flash and communicate back and
 forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
free to develop on, more prove and seemingly scale a hell of a lot 
better.

Yes, it's not as simple as an EASY button, but if work was easy it'd be
fun and we'd all be broke.


Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with 
the

Flash IDE. It's just that an swf published from Flash is currently a
different version.

regards,
Muzak



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

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







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

2006-05-25 Thread Loren R. Elks
Hi:

I have a SWF (SWF A) that I'm loading into a movieclip (Movieclip
C)which is part of another SWF (SWF B).  Basically, SWF B functions as a
player, with play and pause controls.  These controls control Movieclip
C where the external SWF A is loaded into.

Normally, I have had no problem with this and it always works.  At run
time, when you click the pause button on SWF B, a stop() command is
issued to Movieclip C, which stops the play of the external movieclip
(SWF A) loaded into it.

However, I did a screen capture with Captivate and published it as a
SWF.  I loaded this SWF (SWF A) into Movieclip C in SWF B at run time.
However, clicking the controls on SWF I created has NO EFFECT on the SWF
I created in Captivate.  It just keeps playing.

I guess all SWFs are NOT created equal.  How can I make this work?



Loren
 The only real mistake is the one from which we learn nothing. - John
Powell

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

2006-05-25 Thread Jim Robson
I spent some time evaluating OpenLaszlo for my employer, and it's very nice.
We nearly chose it over Flex. However, Flex turned out to be the winner for
us. Here are some of the reasons:

- Flex has native XML socket server support
- Flex supports SOAP in compiled SWF deployments (Laszlo only supports it if
you use the server component)
- The Flex IDE has a traditional debugger built in
- The Flex IDE is more powerful and mature than the Laszlo IDE (even though
it's still in Beta, it blows the Laszlo eclipse plugin away)
- Flex has a much larger and more active developer community
- Adobe is a well-known name, and brings a certain comfort level to clients
and prospective clients
- Flex supports SVG
- FA Bridge
- ActionScript 3.0 is preferable to JavaScript




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jcanistrum
Sent: Thursday, May 25, 2006 12:31 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE

and what about OpenLaszlo, has someone given it a try ?

I saw some very good demos overthere 

http://www.openlaszlo.org/demos



2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi,
 I've been too busy developping in Flash lately to give a try to the new
 Flex
 yet, so excuse me if the following question sounds stupid:

 Flex use to be a server product, but with the new Flex Builder can you
 simply build a swf file like you do with flash and include it in regular
 html page? (and therefore php,etc...)
 Or do you absolutely need to have a specific Flex server of some sort
 running in order to deliver those files?

 Thank you,
 Frank


 -Original Message-
 From: Muzak [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 6:45 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flex vs. Flash IDE


  The other issue i see with flex is it's ability to scale.  It doesn't
  seem to have the ability to handle a ton of simultaneous connections
  very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
  prefer to develop the front ends in flash and communicate back and
  forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
 free to develop on, more prove and seemingly scale a hell of a lot better.
 Yes, it's not as simple as an EASY button, but if work was easy it'd be
 fun and we'd all be broke.
 

 Have you looked into FDS?
 http://labs.adobe.com/technologies/flexdata_services2/

 When you say: develop the front ends in flash You mean the Flash IDE?

 What makes you think developing in Flex does not allow you to communicate
 with any traditional back-end?
 Flex Builder is just an IDE. The end result is an swf the same as with the
 Flash IDE. It's just that an swf published from Flash is currently a
 different version.

 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




-- 
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Nick Weekes
I think Ian stated that Importing a class will not affect the swf, but 
instanciating an object contained in the class will.


So:

import MyCoolNewClass;

does not affect swf

var MyCoolNewClass:MyCoolNewClass = new MyCoolNewClass();

does affect swf



Merrill, Jason wrote:

The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.
  


Err...that has not been my understanding at all.  If that is the case,
then why do you NOT need to include your class files on the server with
the .swf?  Since reality is you don't, all that code has to be in the
.swf upon compiling, otherwise, the .swf wouldn't know what to do with 


Myvar:MyCoolClass = new MyCoolClass();

If it's not included with the .swf, how would the .swf know what
MyCoolClass is otherwise?


Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

  

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: Thursday, May 25, 2006 12:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

Errm - actually that's not such a good reason.

The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

You could just type com.fred.MyClass throughout the body of your code
instead of typing import at the top of the file.

'import' is simply a disambiguation helper for the compiler. It's got
nothing to do with what code actually gets included in the resultant
.swf. You can prove this by typing:
import com.fred.*   // Replace with some set of classes you're not
using in your current project

And recompiling. The .swf file size won't go up until you actually
_reference_ an object that belongs to one of those packages. As soon
as you typed:
var f:MyClass=new MyClass();

or, in fact
var f:com.fred.MyClass=new com.fred.MyClass();

The file size would go up.

So - in answer to RifledCloaca - no, you don't need to type 'import'
at all, as long as you refer to all your classes by full packagename.

Ian

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:
  

Because if Flash imported every class available to it automatically,
then your .swf files would be huge and unnecessarily bloated.  Do


you
  

really want the code to all the Remoting classes imported into your


.swf
  

if you're not using them? When you include, the actionscript


cotained in
  

the class is embedded in the .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

  


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

2006-05-25 Thread Mike Britton

At first glance it seems to be doing a lot inside the while statement.  That
could account for the lag.  15 times through the loop could slow things
down, especially if you're instantiating a moviecliploader each time around.

Mike





On 5/25/06, Matt Jurgemeyer [EMAIL PROTECTED] wrote:


Below are examples of my xml and the code I use to parse it.


THIS IS ONE OF MY XML FILES:

?xml version=1.0 encoding=iso-8859-1?

INTERACTIVE

BUTTON title=website client=CNE
buttonIMAGE=webSite_CNE.jpg
IMAGES
IMAGEwebsite_CNE(1).jpg/IMAGE
IMAGEwebsite_CNE(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=direct emails client=Dell
buttonIMAGE=directEmail_Dell.jpg
IMAGES
IMAGEemail_Dell(1).jpg/IMAGE
IMAGEemail_Dell(2).jpg/IMAGE
IMAGEemail_Dell(3).jpg/IMAGE
IMAGEemail_Dell(4).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=enews client=Dell
buttonIMAGE=enews_Dell.jpg
IMAGES
IMAGEenews_Dell(1).jpg/IMAGE
IMAGEenews_Dell(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=corporate website client=Dell
buttonIMAGE=webSite_Dell.jpg
IMAGES
IMAGEwebsite_Dell(1).jpg/IMAGE
IMAGEwebsite_Dell(2).jpg/IMAGE
IMAGEwebsite_Dell(3).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=band website client=Dickie Lee Erwin
buttonIMAGE=webSite_Dickie.jpg
IMAGES
IMAGEwebsite_Dickie(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=banner ads client=Hoover's Online
buttonIMAGE=banners_Hoovers.jpg
IMAGES
IMAGEbanners_Hoovers(1).jpg/IMAGE
IMAGEbanners_Hoovers(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=website client=Impath
buttonIMAGE=webSite_Impath.jpg
IMAGES
IMAGEwebsite_Impath(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=website client=Radiant Research
buttonIMAGE=webSite_Radiant.jpg
IMAGES
IMAGEwebsite_Radiant(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=brand guidelines client=Temple Inland
buttonIMAGE=webSite_Inland.jpg
IMAGES
IMAGEwebsite_Inland(1).jpg/IMAGE
IMAGEwebsite_Inland(2).jpg/IMAGE
IMAGEwebsite_Inland(3).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=snapshot metrics client=Tocquigny
buttonIMAGE=Metrics.jpg
IMAGES
IMAGEwebsite_Metrics(1).jpg/IMAGE
IMAGEwebsite_Metrics(2).jpg/IMAGE
IMAGEwebsite_Metrics(3).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=website client=Tocquigny
buttonIMAGE=webSite_Tocquigny.jpg
IMAGES
IMAGEwebsite_Tocquigny(1).jpg/IMAGE
IMAGEwebsite_Tocquigny(2).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=direct email client=Toshiba
buttonIMAGE=directEmail_Toshiba.jpg
IMAGES
IMAGEemail_Toshiba(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=enews client=Vignette
buttonIMAGE=enews_Vignette.jpg
IMAGES
IMAGEenews_Vignette(1).jpg/IMAGE
/IMAGES
/BUTTON

BUTTON title=banner ads client=Winding Road
buttonIMAGE=banners_Windingroad.jpg
IMAGES
IMAGEbanners_Windingroad(1).jpg/IMAGE
IMAGEbanners_Windingroad(2).jpg/IMAGE
IMAGEbanners_Windingroad(3).jpg/IMAGE
IMAGEbanners_Windingroad(4).jpg/IMAGE
/IMAGES
/BUTTON

/INTERACTIVE

--

THIS IS MY CODE:

//hide the flash menu until the XML loads
_parent._visible = false;
// xml processing
menu_interactive_xml = new XML();
menu_interactive_xml.load(xml/interactive.xml);
menu_interactive_xml.ignoreWhite = 1;
//
menu_interactive_xml.onLoad = function(ok) {
// 

Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Jonathan Berry

I think what he is saying is that if you had a dozen imports or imported an
entire package (*) it would not include the specific classes until you
actually referenced them.

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:


The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

Err...that has not been my understanding at all.  If that is the case,
then why do you NOT need to include your class files on the server with
the .swf?  Since reality is you don't, all that code has to be in the
.swf upon compiling, otherwise, the .swf wouldn't know what to do with

Myvar:MyCoolClass = new MyCoolClass();

If it's not included with the .swf, how would the .swf know what
MyCoolClass is otherwise?


Jason Merrill
Bank of America
Learning Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: Thursday, May 25, 2006 12:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

Errm - actually that's not such a good reason.

The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

You could just type com.fred.MyClass throughout the body of your code
instead of typing import at the top of the file.

'import' is simply a disambiguation helper for the compiler. It's got
nothing to do with what code actually gets included in the resultant
.swf. You can prove this by typing:
import com.fred.*   // Replace with some set of classes you're not
using in your current project

And recompiling. The .swf file size won't go up until you actually
_reference_ an object that belongs to one of those packages. As soon
as you typed:
var f:MyClass=new MyClass();

or, in fact
var f:com.fred.MyClass=new com.fred.MyClass();

The file size would go up.

So - in answer to RifledCloaca - no, you don't need to type 'import'
at all, as long as you refer to all your classes by full packagename.

Ian

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 Because if Flash imported every class available to it automatically,
 then your .swf files would be huge and unnecessarily bloated.  Do
you
 really want the code to all the Remoting classes imported into your
.swf
 if you're not using them? When you include, the actionscript
cotained in
 the class is embedded in the .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





--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

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

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


RE: [Flashcoders] eLearning built in Flex

2006-05-25 Thread Merrill, Jason
I got busy last night and forgot.  It was the season finale of Lost, and
I'm hoping they made it out of the hatch alive.

I'll try and dig it up tonight. 

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Dan Thatcher
Sent: Thursday, May 25, 2006 1:29 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] eLearning built in Flex

Jason and the other guy that mentioned building e-learning in Flex,



Did you bring a link to the e-learning that you mentioned that was
built in
Flex?



Would love to see it :-)



Dan Thatcher
Online Learning
The American Academy of Professional Coders
801-238-9893 (office)
801-879-9253 (mobile)





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread j.c.wichman
Hi,
it is included, but not solely becoz of the import statement.
I might be wrong, but I believe this is even a 'bug'.

Expected behavior:
import MyClass causes inclusion of MyClass in the swf

Real behavior:
import MyClass still requires you to use MyClass somewhere in the code as in
var myClass:MyClass, in order for it to be included.

Note that we are talking about the Flash IDE here, with mtasc you can
include exclude any class you like whether or not it is referenced in the
code.

greetz
Hans

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Merrill, Jason
 Sent: Thursday, May 25, 2006 7:25 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] OOP 101: Is import really necessary?
 
 The 'import' statement doesn't actually embed a class into the .swf.
 All it does is tell the compiler that when you type (for example) 
 MyClass, you are actually referring to com.fred.MyClass.
 
 Err...that has not been my understanding at all.  If that is 
 the case, then why do you NOT need to include your class 
 files on the server with the .swf?  Since reality is you 
 don't, all that code has to be in the .swf upon compiling, 
 otherwise, the .swf wouldn't know what to do with 
 
 Myvar:MyCoolClass = new MyCoolClass();
 
 If it's not included with the .swf, how would the .swf know 
 what MyCoolClass is otherwise?
 
 
 Jason Merrill
 Bank of America
 Learning Technology Solutions
  
  
  
  
  
  
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:flashcoders- 
 [EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: Thursday, May 25, 2006 12:27 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] OOP 101: Is import really necessary?
 
 Errm - actually that's not such a good reason.
 
 The 'import' statement doesn't actually embed a class into the .swf.
 All it does is tell the compiler that when you type (for example) 
 MyClass, you are actually referring to com.fred.MyClass.
 
 You could just type com.fred.MyClass throughout the body of 
 your code 
 instead of typing import at the top of the file.
 
 'import' is simply a disambiguation helper for the 
 compiler. It's got 
 nothing to do with what code actually gets included in the 
 resultant 
 .swf. You can prove this by typing:
 import com.fred.*   // Replace with some set of classes you're not
 using in your current project
 
 And recompiling. The .swf file size won't go up until you actually 
 _reference_ an object that belongs to one of those 
 packages. As soon 
 as you typed:
 var f:MyClass=new MyClass();
 
 or, in fact
 var f:com.fred.MyClass=new com.fred.MyClass();
 
 The file size would go up.
 
 So - in answer to RifledCloaca - no, you don't need to type 'import'
 at all, as long as you refer to all your classes by full 
 packagename.
 
 Ian
 
 On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 
  Because if Flash imported every class available to it 
 automatically, 
  then your .swf files would be huge and unnecessarily bloated.  Do
 you
  really want the code to all the Remoting classes imported 
 into your
 .swf
  if you're not using them? When you include, the actionscript
 cotained in
  the class is embedded in the .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
 

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

2006-05-25 Thread jcanistrum

great review I will use it from here 

2006/5/25, Jim Robson [EMAIL PROTECTED]:


I spent some time evaluating OpenLaszlo for my employer, and it's very
nice.
We nearly chose it over Flex. However, Flex turned out to be the winner
for
us. Here are some of the reasons:

- Flex has native XML socket server support
- Flex supports SOAP in compiled SWF deployments (Laszlo only supports it
if
you use the server component)
- The Flex IDE has a traditional debugger built in
- The Flex IDE is more powerful and mature than the Laszlo IDE (even
though
it's still in Beta, it blows the Laszlo eclipse plugin away)
- Flex has a much larger and more active developer community
- Adobe is a well-known name, and brings a certain comfort level to
clients
and prospective clients
- Flex supports SVG
- FA Bridge
- ActionScript 3.0 is preferable to JavaScript




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jcanistrum
Sent: Thursday, May 25, 2006 12:31 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE

and what about OpenLaszlo, has someone given it a try ?

I saw some very good demos overthere 

http://www.openlaszlo.org/demos



2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi,
 I've been too busy developping in Flash lately to give a try to the new
 Flex
 yet, so excuse me if the following question sounds stupid:

 Flex use to be a server product, but with the new Flex Builder can you
 simply build a swf file like you do with flash and include it in regular
 html page? (and therefore php,etc...)
 Or do you absolutely need to have a specific Flex server of some sort
 running in order to deliver those files?

 Thank you,
 Frank


 -Original Message-
 From: Muzak [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 6:45 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flex vs. Flash IDE


  The other issue i see with flex is it's ability to scale.  It doesn't
  seem to have the ability to handle a ton of simultaneous connections
  very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
  prefer to develop the front ends in flash and communicate back and
  forth with a traditional back-end I.E. ASP, PHP, etc.  Those things
are
 free to develop on, more prove and seemingly scale a hell of a lot
better.
 Yes, it's not as simple as an EASY button, but if work was easy it'd
be
 fun and we'd all be broke.
 

 Have you looked into FDS?
 http://labs.adobe.com/technologies/flexdata_services2/

 When you say: develop the front ends in flash You mean the Flash IDE?

 What makes you think developing in Flex does not allow you to
communicate
 with any traditional back-end?
 Flex Builder is just an IDE. The end result is an swf the same as with
the
 Flash IDE. It's just that an swf published from Flash is currently a
 different version.

 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




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





--
João Carlos
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Merrill, Jason
I see - gotcha. 

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jonathan Berry
Sent: Thursday, May 25, 2006 1:58 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

I think what he is saying is that if you had a dozen imports or
imported an
entire package (*) it would not include the specific classes until you
actually referenced them.

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 The 'import' statement doesn't actually embed a class into the
.swf.
 All it does is tell the compiler that when you type (for example)
 MyClass, you are actually referring to com.fred.MyClass.

 Err...that has not been my understanding at all.  If that is the
case,
 then why do you NOT need to include your class files on the server
with
 the .swf?  Since reality is you don't, all that code has to be in
the
 .swf upon compiling, otherwise, the .swf wouldn't know what to do
with

 Myvar:MyCoolClass = new MyCoolClass();

 If it's not included with the .swf, how would the .swf know what
 MyCoolClass is otherwise?


 Jason Merrill
 Bank of America
 Learning Technology Solutions







 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: Thursday, May 25, 2006 12:27 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] OOP 101: Is import really necessary?
 
 Errm - actually that's not such a good reason.
 
 The 'import' statement doesn't actually embed a class into the
.swf.
 All it does is tell the compiler that when you type (for example)
 MyClass, you are actually referring to com.fred.MyClass.
 
 You could just type com.fred.MyClass throughout the body of your
code
 instead of typing import at the top of the file.
 
 'import' is simply a disambiguation helper for the compiler. It's
got
 nothing to do with what code actually gets included in the
resultant
 .swf. You can prove this by typing:
 import com.fred.*   // Replace with some set of classes you're not
 using in your current project
 
 And recompiling. The .swf file size won't go up until you actually
 _reference_ an object that belongs to one of those packages. As
soon
 as you typed:
 var f:MyClass=new MyClass();
 
 or, in fact
 var f:com.fred.MyClass=new com.fred.MyClass();
 
 The file size would go up.
 
 So - in answer to RifledCloaca - no, you don't need to type
'import'
 at all, as long as you refer to all your classes by full
packagename.
 
 Ian
 
 On 5/25/06, Merrill, Jason [EMAIL PROTECTED]
wrote:
 
  Because if Flash imported every class available to it
automatically,
  then your .swf files would be huge and unnecessarily bloated.
Do
 you
  really want the code to all the Remoting classes imported into
your
 .swf
  if you're not using them? When you include, the actionscript
 cotained in
  the class is embedded in the .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




--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act,
18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that
any
dissemination, distribution or copying of this communication is
strictly
prohibited.

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Derek Vadneau
The import statement embeds, but so does this:
var a:mx.controls.Button;

import also allows you to use a shortcut as has been mentioned already.

From the docs:
Lets you access classes without specifying their fully qualified names.
..
You must issue the import statement before you try to access the imported 
class without fully specifying its name.

If you import a class but don't use it in your script, the class isn't 
exported as part of the SWF file. This means you can import large packages 
without being concerned about the size of the SWF file; the bytecode 
associated with a class is included in a SWF file only if that class is 
actually used.

If you import but don't use it it's not included ... however, in practice 
you can definitely see that the SWF file size has changed.

I took a blank FLA and published for a SWF size of 43 bytes.


I then used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

File size: 42.5 KB


I then used this code:

var b:mx.controls.Button;
var l:mx.controls.List;
var t:mx.controls.Tree;
var d:mx.controls.DataGrid;
var a:mx.containers.Accordion;

FileSize: 48.3 KB


I then used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

var b:Button;
var l:List;
var t:Tree;
var d:DataGrid;
var a:Accordion;

FileSize: 48.3 KB

So the classes seem to be included in the SWF with just the import 
statements. Of course there is no difference if you import and use them 
compared to using them with explicit reference to the classes.

Now the docs say that import by itself doesn't include the classes, but I 
used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

trace(_global['mx']['controls']['Button']);

The output panel displays [type Function] telling me that the class was 
indeed included. The compiler doesn't understand the [] notation as a 
reference to the class during compile-time, so I don't think that's why it 
worked. I think the classes are indeed included. However, someone could 
prove me wrong.

Incidentally, the file size was 42.5 KB ... so, trim the fat and use [] 
notation!


Derek Vadneau

- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 1:24 PM
Subject: RE: [Flashcoders] OOP 101: Is import really necessary?


The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

Err...that has not been my understanding at all.  If that is the case,
then why do you NOT need to include your class files on the server with
the .swf?  Since reality is you don't, all that code has to be in the
swf upon compiling, otherwise, the .swf wouldn't know what to do with

Myvar:MyCoolClass = new MyCoolClass();

If it's not included with the .swf, how would the .swf know what
MyCoolClass is otherwise?


Jason Merrill
Bank of America
Learning Technology Solutions


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

2006-05-25 Thread Corey Knafelz

I'm creating a slideshow. I've accomplished creating an alpha fade in
to 100  when the image loads. I need to also have the alpha fade back
to zero *before* the next image loads. I'd like to call this from the
nextImage() function below. Ideas?

this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha100) {
picture._alpha += 5;
}
}
};
function nextImage() {
if (p(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
title_txt.text = imagetitle[p];
picture_num();
}
}
};

Thanks,
Corey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] TextInput disabled when loaded into a Window Component into a child swf

2006-05-25 Thread mike cann

On 25/05/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:


I have a window that is loading a swf file which has a movieclip with a
TextInput in it that refuses to work- Is this a known bug and is there a
workaround?
Thanks
Mani
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Geoff Stearns

import in flash is only used to save you some typing.

when you use

import com.package.Class;

the class is *not* included in the swf until you reference that class  
in your code somewhere.


like

var blah:Class;

you don't have to use import, you can also use:

var blah:com.package.Class;

and it will behave exactly the same way, only every time you  
reference the class, you'll need to type the full path instead of  
just 'Class'


it's just a typing shortcut.



On May 25, 2006, at 2:01 PM, j.c.wichman wrote:


Hi,
it is included, but not solely becoz of the import statement.
I might be wrong, but I believe this is even a 'bug'.

Expected behavior:
import MyClass causes inclusion of MyClass in the swf

Real behavior:
import MyClass still requires you to use MyClass somewhere in the  
code as in

var myClass:MyClass, in order for it to be included.

Note that we are talking about the Flash IDE here, with mtasc you can
include exclude any class you like whether or not it is referenced  
in the

code.

greetz
Hans


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: Thursday, May 25, 2006 7:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] OOP 101: Is import really necessary?

The 'import' statement doesn't actually embed a class into  
the .swf.

All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.


Err...that has not been my understanding at all.  If that is
the case, then why do you NOT need to include your class
files on the server with the .swf?  Since reality is you
don't, all that code has to be in the .swf upon compiling,
otherwise, the .swf wouldn't know what to do with

Myvar:MyCoolClass = new MyCoolClass();

If it's not included with the .swf, how would the .swf know
what MyCoolClass is otherwise?


Jason Merrill
Bank of America
Learning Technology Solutions








-Original Message-
From: [EMAIL PROTECTED]

[mailto:flashcoders-

[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: Thursday, May 25, 2006 12:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

Errm - actually that's not such a good reason.

The 'import' statement doesn't actually embed a class into  
the .swf.

All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

You could just type com.fred.MyClass throughout the body of

your code

instead of typing import at the top of the file.

'import' is simply a disambiguation helper for the

compiler. It's got

nothing to do with what code actually gets included in the

resultant

.swf. You can prove this by typing:
import com.fred.*   // Replace with some set of classes you're not
using in your current project

And recompiling. The .swf file size won't go up until you actually
_reference_ an object that belongs to one of those

packages. As soon

as you typed:
var f:MyClass=new MyClass();

or, in fact
var f:com.fred.MyClass=new com.fred.MyClass();

The file size would go up.

So - in answer to RifledCloaca - no, you don't need to type  
'import'

at all, as long as you refer to all your classes by full

packagename.


Ian

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:


Because if Flash imported every class available to it

automatically,

then your .swf files would be huge and unnecessarily bloated.  Do

you

really want the code to all the Remoting classes imported

into your
.swf

if you're not using them? When you include, the actionscript

cotained in

the class is embedded in the .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



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

RE: [Flashcoders] eLearning built in Flex

2006-05-25 Thread Dan Thatcher
Well... I don't know about Eko, Desmond and Locke...but Charlie made it.  My
brain is still crunching on what exactly happened last night.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Thursday, May 25, 2006 11:59 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] eLearning built in Flex

I got busy last night and forgot.  It was the season finale of Lost, and
I'm hoping they made it out of the hatch alive.

I'll try and dig it up tonight. 

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Dan Thatcher
Sent: Thursday, May 25, 2006 1:29 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] eLearning built in Flex

Jason and the other guy that mentioned building e-learning in Flex,



Did you bring a link to the e-learning that you mentioned that was
built in
Flex?



Would love to see it :-)



Dan Thatcher
Online Learning
The American Academy of Professional Coders
801-238-9893 (office)
801-879-9253 (mobile)





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

2006-05-25 Thread Jim Robson
Mike,

I didn't have much luck with the Laszlo community. I posted several
questions, and most of them went unanswered. Maybe they just don't like
ignorant newbies?

I also couldn't get Laszlo Systems to answer all of my questions. They sent
me a nice email when I joined their forum, but when I asked some questions,
they only answered some of them (and the answers they did send were a long
time coming). 

Overall, it seemed to me that the Laszlo support was lacking compared to
what I've found with Flex.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Thursday, May 25, 2006 1:34 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE

Yes OpenLaszlo is a great solution.  Ive used it quite a bit.  They have 
a awesome community for help and getting started with it.

jcanistrum wrote:
 and what about OpenLaszlo, has someone given it a try ?
 
 I saw some very good demos overthere 
 
 http://www.openlaszlo.org/demos
 
 
 
 2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi,
 I've been too busy developping in Flash lately to give a try to the new
 Flex
 yet, so excuse me if the following question sounds stupid:

 Flex use to be a server product, but with the new Flex Builder can you
 simply build a swf file like you do with flash and include it in regular
 html page? (and therefore php,etc...)
 Or do you absolutely need to have a specific Flex server of some sort
 running in order to deliver those files?

 Thank you,
 Frank


 -Original Message-
 From: Muzak [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 6:45 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Flex vs. Flash IDE


  The other issue i see with flex is it's ability to scale.  It doesn't
  seem to have the ability to handle a ton of simultaneous connections
  very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
  prefer to develop the front ends in flash and communicate back and
  forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
 free to develop on, more prove and seemingly scale a hell of a lot 
 better.
 Yes, it's not as simple as an EASY button, but if work was easy it'd be
 fun and we'd all be broke.
 

 Have you looked into FDS?
 http://labs.adobe.com/technologies/flexdata_services2/

 When you say: develop the front ends in flash You mean the Flash IDE?

 What makes you think developing in Flex does not allow you to communicate
 with any traditional back-end?
 Flex Builder is just an IDE. The end result is an swf the same as with 
 the
 Flash IDE. It's just that an swf published from Flash is currently a
 different version.

 regards,
 Muzak



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

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

 
 
 

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

2006-05-25 Thread Jason C Reynolds
Hi, I recently purchased Zinc to simply have more control over the window 
(placement, title, icon - that's all I wanted for this project!!) and it is 
causing issues with my program.

I use the following code to create some movie clips:

  for (var i=0;icount;i++)
  {
   filePath = pstrFolderPath + swatchNameArray[i];
   paLoadedSwatchClips.push(new swatch(this, pobjMainRef, pmcSWFHolder, i, 
filePath, theCounterValues[i]));
  }


The swatch class has the following code that actually creates the clips:

loadListener.onLoadInit = function(target_mc:MovieClip)
  {
   trace(target_mc + ' is done loading' + ' !! ' + thisRef.pnID);
   var mdm = _global.mdm;
   mdm.Exception.DebugWindow.trace(target_mc + ' is done loading' + ' !! ' + 
thisRef.pnID, mdm.ASYNC)
   
   thisRef.pmcLoadedClip = target_mc; // Set reference for calling play and stop
   thisRef.pobjSetRef.mClipDone();
   // Store height before we put textfield on there
   thisRef.pnMyHeight = target_mc._height;
   thisRef.mCreateCounter(initialCount);
  }
  mcLoader.addListener(loadListener);
  var thePath = _global.mdm.Application.path + swfPath;
  mcLoader.loadClip(swfPath, pmcButton);


My trace statements in Flash are in order - 0,1,2.
I am using Flash MX 2004.

When I run it through Zinc, and when customer support runs my files, the trace 
statements are reversed - 2,1,0

I guess I'm wondering if load order has changed since 2004 version... This 
problem is breaking this part of my program when I run it through Zinc, and 
want to know if it is Zinc, or an issue with Flash?

Any help would be appreciated,
Jason
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] XML Parsing

2006-05-25 Thread Jason Lutes
Matt,

On a reasonably fast computer, a file of 4600+ XML nodes can be slurped in
under one second, required download time aside.

Your XML requirements are not that steep, so it seems to me that your
issue is likely something else not completely obvious in your code sample.

Suggestions:

1. If you're placing incoming XML text content into HTML-rendered text
fields (primarily using CSS formatting) this can account for a delay.
Flash handles tasks related to HTML text very inefficiently (compared to a
browser, for example). This can create a significant delay.

I've seen this in things I've created that display instantly until I apply
text formatting, then it takes a couple of seconds to load.

2. If you're using a pre-loading mechanism, you need to be sure to import
class code and Library assets that are exporting for ActionScript on a
frame subsequent to the one used to display pre-loader graphics and/or
load in your XML data. Loading a bunch of class code and object data,
which likely have little or nothing to do with your XML, on the first
frame -- the default, can create a significant delay.


-
pixelTwiddler, a.k.a. Jason


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

2006-05-25 Thread Éric Thibault
What number do you get if you trace the total number of frames that your 
SWF (A) contains ?


Maybe it's a path issue  :-\

A+

Loren R. Elks a écrit :

Hi:

I have a SWF (SWF A) that I'm loading into a movieclip (Movieclip
C)which is part of another SWF (SWF B).  Basically, SWF B functions as a
player, with play and pause controls.  These controls control Movieclip
C where the external SWF A is loaded into.

Normally, I have had no problem with this and it always works.  At run
time, when you click the pause button on SWF B, a stop() command is
issued to Movieclip C, which stops the play of the external movieclip
(SWF A) loaded into it.

However, I did a screen capture with Captivate and published it as a
SWF.  I loaded this SWF (SWF A) into Movieclip C in SWF B at run time.
However, clicking the controls on SWF I created has NO EFFECT on the SWF
I created in Captivate.  It just keeps playing.

I guess all SWFs are NOT created equal.  How can I make this work?



Loren
 The only real mistake is the one from which we learn nothing. - John
Powell

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

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

  



--
===

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

===

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Steven Sacks
Also interesting to note here.

If you make two layers in the timeline and in the top layer you put

x = 10;

And the bottom layer you put 

trace(x);

you'll get 10.

However, if in the top layer you put

import SomeStaticClass;

And in the bottom layer you put

SomeStaticClass.someMethod();

It doesn't work.  Imports only work in the scope of the specific script
itself, not the clip those scripts are in, even though scripts in layers in
Flash allegedly work from top to bottom as if they were one big script.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Weldon MacDonald

The import statements tell the compiler where to find the classes your
going to use, it compiles into the byte code only the classes you use.
You could also do it by giving the full package.class of the class
too. Import statements aren't strictly necessary, but they save a lot
of typing if your using the library a lot.

On 5/25/06, Derek Vadneau [EMAIL PROTECTED] wrote:

The import statement embeds, but so does this:
var a:mx.controls.Button;

import also allows you to use a shortcut as has been mentioned already.

From the docs:
Lets you access classes without specifying their fully qualified names.
..
You must issue the import statement before you try to access the imported
class without fully specifying its name.

If you import a class but don't use it in your script, the class isn't
exported as part of the SWF file. This means you can import large packages
without being concerned about the size of the SWF file; the bytecode
associated with a class is included in a SWF file only if that class is
actually used.

If you import but don't use it it's not included ... however, in practice
you can definitely see that the SWF file size has changed.

I took a blank FLA and published for a SWF size of 43 bytes.


I then used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

File size: 42.5 KB


I then used this code:

var b:mx.controls.Button;
var l:mx.controls.List;
var t:mx.controls.Tree;
var d:mx.controls.DataGrid;
var a:mx.containers.Accordion;

FileSize: 48.3 KB


I then used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

var b:Button;
var l:List;
var t:Tree;
var d:DataGrid;
var a:Accordion;

FileSize: 48.3 KB

So the classes seem to be included in the SWF with just the import
statements. Of course there is no difference if you import and use them
compared to using them with explicit reference to the classes.

Now the docs say that import by itself doesn't include the classes, but I
used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

trace(_global['mx']['controls']['Button']);

The output panel displays [type Function] telling me that the class was
indeed included. The compiler doesn't understand the [] notation as a
reference to the class during compile-time, so I don't think that's why it
worked. I think the classes are indeed included. However, someone could
prove me wrong.

Incidentally, the file size was 42.5 KB ... so, trim the fat and use []
notation!


Derek Vadneau

- Original Message -
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 1:24 PM
Subject: RE: [Flashcoders] OOP 101: Is import really necessary?


The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.

Err...that has not been my understanding at all.  If that is the case,
then why do you NOT need to include your class files on the server with
the .swf?  Since reality is you don't, all that code has to be in the
swf upon compiling, otherwise, the .swf wouldn't know what to do with

Myvar:MyCoolClass = new MyCoolClass();

If it's not included with the .swf, how would the .swf know what
MyCoolClass is otherwise?


Jason Merrill
Bank of America
Learning Technology Solutions


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

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




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

2006-05-25 Thread Merrill, Jason
Locke has to make it - he's an even better character than Hurley, also
one of my favs.

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Dan Thatcher
Sent: Thursday, May 25, 2006 2:41 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] eLearning built in Flex

Well... I don't know about Eko, Desmond and Locke...but Charlie made
it.  My
brain is still crunching on what exactly happened last night.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
Jason
Sent: Thursday, May 25, 2006 11:59 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] eLearning built in Flex

I got busy last night and forgot.  It was the season finale of Lost,
and
I'm hoping they made it out of the hatch alive.

I'll try and dig it up tonight.

Jason Merrill
Bank of America
Learning Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Dan Thatcher
Sent: Thursday, May 25, 2006 1:29 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] eLearning built in Flex

Jason and the other guy that mentioned building e-learning in Flex,



Did you bring a link to the e-learning that you mentioned that was
built in
Flex?



Would love to see it :-)



Dan Thatcher
Online Learning
The American Academy of Professional Coders
801-238-9893 (office)
801-879-9253 (mobile)





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

2006-05-25 Thread Merrill, Jason
 clicking the controls on SWF I created has NO EFFECT on the SWF
I created in Captivate.  It just keeps playing.

I believe that's a Captivate-produced-.swf thing. You're assuming the
main timeline of the Captivate .swf is where the animation happens, and
that the animation can be stopped with a simple stop() command.  

There is some documentation out there - (I don't know where, maybe
Google, maybe in the Capitvate help docs, not sure) - that tells you
about the Captivate .swf timeline and what you can call and do to it.
But just telling the Captivate.swf to stop I'm guessing probably isn't
going to work anyway - you might have to target some other timeline or
property in the .swf to make it stop.  

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] eLearning built in Flex

2006-05-25 Thread Steven Sacks
The writing on the show (I'm a huge fan and have suspended disbelief for a
long time) has become extremely weak over the past few episodes.  They force
extremely unrealistic reactions from people and have characters completely
ignore stuff going on around them.

Tell me.  If the earth shook, there was a deafening buzz and the sky turned
white and violet and eventually it went away, would you say Hm. What was
that?  Doesn't matter.  Better clean up this mess.  Give me a freaking
break.

I guess only the main characters are allowed to be humans with brains and
the rest of the people are only animated paintings in the backdrop.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread James Booth

There is a bit of an anomaly with importing classes...

For example you have 3 classes.  Let's call them FirstClass, SecondClass and
ThirdClass.

Within FirstClass you import and create an instance of SecondClass and
within SecondClass you import and create an instance of ThirdClass, creating
a chain.

On the main timeline of the fla, you import FirstClass, but don't create an
instance of it.  Because you didn't create an instance of it, rightfully it
is not compiled.  But, both SecondClass AND ThirdClass are compiled.  You
can check it either by file size or by clicking Debug--List Variables in
the player window.  Most likely because there is an instance of SecondClass
created within FirstClass and an instance of ThirdClass created within
SecondClass.  It would make sense though that because an Instance of
FirstClass was not created, that the compiler should just stop right there,
but that isn't the case.  Perhaps that's why there is the
flaName_exclude.xml trick, but even then you have to explicitly exclude
each class.  It's not really a trick, but may be a little known concept.

- James

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: Thursday, May 25, 2006 2:36 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

import in flash is only used to save you some typing.

when you use

import com.package.Class;

the class is *not* included in the swf until you reference that class  
in your code somewhere.

like

var blah:Class;

you don't have to use import, you can also use:

var blah:com.package.Class;

and it will behave exactly the same way, only every time you  
reference the class, you'll need to type the full path instead of  
just 'Class'

it's just a typing shortcut.



On May 25, 2006, at 2:01 PM, j.c.wichman wrote:

 Hi,
 it is included, but not solely becoz of the import statement.
 I might be wrong, but I believe this is even a 'bug'.

 Expected behavior:
 import MyClass causes inclusion of MyClass in the swf

 Real behavior:
 import MyClass still requires you to use MyClass somewhere in the  
 code as in
 var myClass:MyClass, in order for it to be included.

 Note that we are talking about the Flash IDE here, with mtasc you can
 include exclude any class you like whether or not it is referenced  
 in the
 code.

 greetz
 Hans

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Merrill, Jason
 Sent: Thursday, May 25, 2006 7:25 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] OOP 101: Is import really necessary?

 The 'import' statement doesn't actually embed a class into  
 the .swf.
 All it does is tell the compiler that when you type (for example)
 MyClass, you are actually referring to com.fred.MyClass.

 Err...that has not been my understanding at all.  If that is
 the case, then why do you NOT need to include your class
 files on the server with the .swf?  Since reality is you
 don't, all that code has to be in the .swf upon compiling,
 otherwise, the .swf wouldn't know what to do with

 Myvar:MyCoolClass = new MyCoolClass();

 If it's not included with the .swf, how would the .swf know
 what MyCoolClass is otherwise?


 Jason Merrill
 Bank of America
 Learning Technology Solutions







 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: Thursday, May 25, 2006 12:27 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

 Errm - actually that's not such a good reason.

 The 'import' statement doesn't actually embed a class into  
 the .swf.
 All it does is tell the compiler that when you type (for example)
 MyClass, you are actually referring to com.fred.MyClass.

 You could just type com.fred.MyClass throughout the body of
 your code
 instead of typing import at the top of the file.

 'import' is simply a disambiguation helper for the
 compiler. It's got
 nothing to do with what code actually gets included in the
 resultant
 .swf. You can prove this by typing:
 import com.fred.*   // Replace with some set of classes you're not
 using in your current project

 And recompiling. The .swf file size won't go up until you actually
 _reference_ an object that belongs to one of those
 packages. As soon
 as you typed:
 var f:MyClass=new MyClass();

 or, in fact
 var f:com.fred.MyClass=new com.fred.MyClass();

 The file size would go up.

 So - in answer to RifledCloaca - no, you don't need to type  
 'import'
 at all, as long as you refer to all your classes by full
 packagename.

 Ian

 On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 Because if Flash imported every class available to it
 automatically,
 then your .swf files would be huge and unnecessarily bloated.  Do
 you
 really want the code to all the Remoting classes imported
 into your
 .swf
 if you're not using them? When you include, the actionscript
 

RE: [Flashcoders] Controlling an Embedded SWF

2006-05-25 Thread Biehn, Matthew P.

In Captivate Help, search for Controlling Captivate movies with variables.

Matthew

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Merrill,
Jason
Sent: Thursday, May 25, 2006 2:06 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Controlling an Embedded SWF


 clicking the controls on SWF I created has NO EFFECT on the SWF
I created in Captivate.  It just keeps playing.

I believe that's a Captivate-produced-.swf thing. You're assuming the
main timeline of the Captivate .swf is where the animation happens, and
that the animation can be stopped with a simple stop() command. 

There is some documentation out there - (I don't know where, maybe
Google, maybe in the Capitvate help docs, not sure) - that tells you
about the Captivate .swf timeline and what you can call and do to it.
But just telling the Captivate.swf to stop I'm guessing probably isn't
going to work anyway - you might have to target some other timeline or
property in the .swf to make it stop. 

Jason Merrill
Bank of America
Learning Technology Solutions






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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Derek Vadneau
Then how do you explain my results?

43 bytes for a SWF with nothing in it compared to 42.5 KB (that's 
kilobytes) with only 5 import statements.

How do you account for the ~42.4 KB?

And how do you account for the fact that a trace of the class using [] 
notation traces out [type Function]? If the classes were in fact not 
included, would it not return undefined? The compiler doesn't know that 
I've referenced the class when I use [] notation.


Derek Vadneau

- Original Message - 
From: Weldon MacDonald [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 25, 2006 2:54 PM
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?


The import statements tell the compiler where to find the classes your
going to use, it compiles into the byte code only the classes you use.
You could also do it by giving the full package.class of the class
too. Import statements aren't strictly necessary, but they save a lot
of typing if your using the library a lot.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Rifled Cloaca

Derek,

Where did you place those imports?  On the timeline, or in an external AS
class file?  Would it make a difference?

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

2006-05-25 Thread Mike Boutin
I found the Laszlo mailinglist to be very helpful.  I got a quicker 
response rather than using the forums.  I believe the sign up is at 
openlaszlo.org



Mike

Jim Robson wrote:

Mike,

I didn't have much luck with the Laszlo community. I posted several
questions, and most of them went unanswered. Maybe they just don't like
ignorant newbies?

I also couldn't get Laszlo Systems to answer all of my questions. They sent
me a nice email when I joined their forum, but when I asked some questions,
they only answered some of them (and the answers they did send were a long
time coming). 


Overall, it seemed to me that the Laszlo support was lacking compared to
what I've found with Flex.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Thursday, May 25, 2006 1:34 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE

Yes OpenLaszlo is a great solution.  Ive used it quite a bit.  They have 
a awesome community for help and getting started with it.


jcanistrum wrote:

and what about OpenLaszlo, has someone given it a try ?

I saw some very good demos overthere 

http://www.openlaszlo.org/demos



2006/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:

Hi,
I've been too busy developping in Flash lately to give a try to the new
Flex
yet, so excuse me if the following question sounds stupid:

Flex use to be a server product, but with the new Flex Builder can you
simply build a swf file like you do with flash and include it in regular
html page? (and therefore php,etc...)
Or do you absolutely need to have a specific Flex server of some sort
running in order to deliver those files?

Thank you,
Frank


-Original Message-
From: Muzak [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 6:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flex vs. Flash IDE



The other issue i see with flex is it's ability to scale.  It doesn't
seem to have the ability to handle a ton of simultaneous connections
very well, ala Flash Media Server.  Perhaps I'm off base here, but I'd
prefer to develop the front ends in flash and communicate back and
forth with a traditional back-end I.E. ASP, PHP, etc.  Those things are
free to develop on, more prove and seemingly scale a hell of a lot 
better.

Yes, it's not as simple as an EASY button, but if work was easy it'd be
fun and we'd all be broke.
Have you looked into FDS?
http://labs.adobe.com/technologies/flexdata_services2/

When you say: develop the front ends in flash You mean the Flash IDE?

What makes you think developing in Flex does not allow you to communicate
with any traditional back-end?
Flex Builder is just an IDE. The end result is an swf the same as with 
the

Flash IDE. It's just that an swf published from Flash is currently a
different version.

regards,
Muzak



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

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






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread James Booth
Adding...Importing it as a package does properly exclude the classes.  From
my example, obviously why import a class and not use it, but I'm trying to
understand the logic of the compiler.

- James

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Booth
Sent: Thursday, May 25, 2006 3:17 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] OOP 101: Is import really necessary?


There is a bit of an anomaly with importing classes...

For example you have 3 classes.  Let's call them FirstClass, SecondClass and
ThirdClass.

Within FirstClass you import and create an instance of SecondClass and
within SecondClass you import and create an instance of ThirdClass, creating
a chain.

On the main timeline of the fla, you import FirstClass, but don't create an
instance of it.  Because you didn't create an instance of it, rightfully it
is not compiled.  But, both SecondClass AND ThirdClass are compiled.  You
can check it either by file size or by clicking Debug--List Variables in
the player window.  Most likely because there is an instance of SecondClass
created within FirstClass and an instance of ThirdClass created within
SecondClass.  It would make sense though that because an Instance of
FirstClass was not created, that the compiler should just stop right there,
but that isn't the case.  Perhaps that's why there is the
flaName_exclude.xml trick, but even then you have to explicitly exclude
each class.  It's not really a trick, but may be a little known concept.

- James

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: Thursday, May 25, 2006 2:36 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

import in flash is only used to save you some typing.

when you use

import com.package.Class;

the class is *not* included in the swf until you reference that class  
in your code somewhere.

like

var blah:Class;

you don't have to use import, you can also use:

var blah:com.package.Class;

and it will behave exactly the same way, only every time you  
reference the class, you'll need to type the full path instead of  
just 'Class'

it's just a typing shortcut.



On May 25, 2006, at 2:01 PM, j.c.wichman wrote:

 Hi,
 it is included, but not solely becoz of the import statement.
 I might be wrong, but I believe this is even a 'bug'.

 Expected behavior:
 import MyClass causes inclusion of MyClass in the swf

 Real behavior:
 import MyClass still requires you to use MyClass somewhere in the  
 code as in
 var myClass:MyClass, in order for it to be included.

 Note that we are talking about the Flash IDE here, with mtasc you can
 include exclude any class you like whether or not it is referenced  
 in the
 code.

 greetz
 Hans

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Merrill, Jason
 Sent: Thursday, May 25, 2006 7:25 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] OOP 101: Is import really necessary?

 The 'import' statement doesn't actually embed a class into  
 the .swf.
 All it does is tell the compiler that when you type (for example)
 MyClass, you are actually referring to com.fred.MyClass.

 Err...that has not been my understanding at all.  If that is
 the case, then why do you NOT need to include your class
 files on the server with the .swf?  Since reality is you
 don't, all that code has to be in the .swf upon compiling,
 otherwise, the .swf wouldn't know what to do with

 Myvar:MyCoolClass = new MyCoolClass();

 If it's not included with the .swf, how would the .swf know
 what MyCoolClass is otherwise?


 Jason Merrill
 Bank of America
 Learning Technology Solutions







 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: Thursday, May 25, 2006 12:27 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] OOP 101: Is import really necessary?

 Errm - actually that's not such a good reason.

 The 'import' statement doesn't actually embed a class into  
 the .swf.
 All it does is tell the compiler that when you type (for example)
 MyClass, you are actually referring to com.fred.MyClass.

 You could just type com.fred.MyClass throughout the body of
 your code
 instead of typing import at the top of the file.

 'import' is simply a disambiguation helper for the
 compiler. It's got
 nothing to do with what code actually gets included in the
 resultant
 .swf. You can prove this by typing:
 import com.fred.*   // Replace with some set of classes you're not
 using in your current project

 And recompiling. The .swf file size won't go up until you actually
 _reference_ an object that belongs to one of those
 packages. As soon
 as you typed:
 var f:MyClass=new MyClass();

 or, in fact
 var f:com.fred.MyClass=new com.fred.MyClass();

 The file size would go up.

 So - in answer to RifledCloaca - no, you don't need to 

Re: [Flashcoders] OOP 101: Is import really necessary?

2006-05-25 Thread Ian Thomas

Yep - just to reiterate (and hopefully make it more clear):

The line:
import com.fred.MyClass;

Is _not enough_ to get Flash to compile MyClass into your .swf file.

You need to actually _reference_ MyClass for it to be included.
e.g. var a:MyClass=new MyClass();

In fact, import is _nothing to do_ with getting Flash to include
compiled code into a .swf.

All import does is to tell the compiler that whenever you refer to a
class by a short name (MyClass) that it doesn't know anything about,
it should check through the list of imports and try and match it up
with one of them; and when it gets a successful match it should use
the full package name and class.

It's kind of when I _say_ MyClass, I really _mean_ com.fred.MyClass,
but can't be bothered typing it

That's all. :-)

And that's why import com.fred.*; works. The compiler is just using
that line (when you refer to a class by it's short name later on) to
do a simple pattern match to try to work out what the package name for
the class really is. import com.fred.* doesn't include all the _code_
of com.fred.*. It just means when I mention a class you haven't heard
of before and can't find, check it against everything under com.fred.
If it _did_ include all the code, your swfs would be bloated beyond
belief.

It's the actual usage of references to the object - declaration,
instantiation, method calling - that makes Flash's equivalent of a
linker include the compiled code for the class into the SWF.

This is demonstrated when you are trying to instantiate classes via
something like ClassFinder
(http://dynamicflash.com/2005/03/class-finder/) and only ever
referring to them using string names rather than actually referring to
them directly in code. You'll find that you _can't_ instantiate the
classes, even if you put in import lines for them - Flash hasn't
worked out you need them in your .swf. So you need to actually put
references to them into the code - normally doing something like:
import com.fred.MyDynamicClass;
var a:MyDynamicClass;

is enough to make sure the linker works it all out and it's included.


Hope that makes it clearer,
 Ian

On 5/25/06, Merrill, Jason [EMAIL PROTECTED] wrote:

I see - gotcha.

Jason Merrill
Bank of America
Learning Technology Solutions

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OOP 101: Is import really necessary?

2006-05-25 Thread Ian Thomas

Hi Derek,
 That's really interesting - and goes against everything I'd expect.
Particularly when your other results have kind of proved the opposite
(and I've certainly proved the opposite before with ClassFinder
situations). A couple of other tests might prove illuminating...

- Is the same true of non-Macromedia classes? (i.e. have they hacked
something specifically for those? I'd doubt it, but you never know)

- How does it behave when you do something like:
import mx.controls.Button;
var a:String=mx;
trace(_global[a]['controls']['Button']);

In other words, is the compiler doing some cunning reduction on the
string literals and actually working out that you're using the class?
Again, I doubt it, but you never know!

You have me mystified. :-D

I'd test it myself, but have to rush off now to put up a tent in about
10cm of muddy water in a field somewhere in the middle of the UK. If
nothings come to light by the beginning of next week, I'll have
another look. :-)

Cheers,
 Ian


On 5/25/06, Derek Vadneau [EMAIL PROTECTED] wrote:


Now the docs say that import by itself doesn't include the classes, but I
used this code:

import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;

trace(_global['mx']['controls']['Button']);

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

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


  1   2   >