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


RE: [Flashcoders] PDF generation Though Flash

2006-05-25 Thread Mayur Bais
Also check out 
http://www.adobe.com/products/flashpaper/

flash paper 2 it may help 

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] FLV Playback problems.

2006-05-25 Thread Aasim Momin
Hi,
 
I am using an FLV Playback component inn my file for streaming videos
from FMS. I need to changes the videos on the click of a button. This I
have achieved by changing the contentPath parameter dynamically. The
contentPath values are coming from an XML file.
If I place the FLV Playback component on the stage, it shows the first
video but when I try to move to the next video on clicking Next, The
video does not play.
Currently I have made it work by using the attachMovie() function and
not keeping the FLV Playback component on the stage.
I am using Flash 8 Professional and FMS 2.
 
Could I be missing something?
 
Regards,
Aasim Momin
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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; i<4; 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] Streaming Audio to Mobile Devices with FlashLite 2

2006-05-25 Thread Nick Gerig

3gp is a bit less than mp3 in size

"Cingular's data transfer rate in my area is" - that says it all really

data cost everywhere,every provider, every plan is different, charges in 
Europe probably average at $3-4 per mb, which means you're looking at  
$12 each streamed 3gp file :)


Cheers

Nick


Jeff Mastropietro wrote:


Nick,

Thanks for the info.  I'm getting the same from what I'm finding on 
the web.  This has helped a lot, and I can a least right up a report 
for my boss on the hurdles we would have to jump to build the 
application.


Massive data bills sounds terrible, but I'm curious just how massive.  
Cingular's data transfer rate in my area is $0.0080/KB after 5MB.  How 
many bytes do you think a MP3 file transcoded to 3gp would be?


J



Nick Gerig wrote:

well if they are full length mp3s then its no go, unless you 
transcode to 3gp and then do rtsp direct to flash lite


but really rtsp isn't that valid an option unless you are working 
with an operator, if you arent working with an operator in some form 
then users will have connection issues with rtsp and they will get 
massive data bills too!


Cheers

Nick

Jeff Mastropietro wrote:





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

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

2006-05-25 Thread Éric Thibault

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 

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

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

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

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

2006-05-25 Thread Muzak
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" 
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


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 

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

2006-05-25 Thread eka

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

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

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


[Flashcoders] May 29 Sydney Developers Group study group

2006-05-25 Thread Chris Velevitch

On Monday 29th May, we'll be studying Actionscript 3. Please read the
articles prior to the meeting (see
http://www.flashdev.org.au/program). At the meeting, the moderator
will lead discussion and with questions about the topic. The meeting
is on at 6:30pm for 7pm start and finishes around 8:30pm.

Details about the group, venue and program are available from
http://www.flashdev.org.au. Please note, whilst the meetings and the
use of the club are free, the club does require us to purchase
beverages and/or snacks in exchange.

Please RSVP at http://www.flashdev.org.au/rsvp. There will be lucky
door prizes for those who rsvp.

[Put yourself on the (frappr) map (http://www.frappr.com/flexdevelopers)]

Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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" 
> >>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 = <
   
 bgcolor=$bgcolor  WIDTH="$width" HEIGHT="$height" ALIGN=""
 TYPE="application/x-shockwave-flash" 
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer";>


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


Re: [Flashcoders] Getting the class name?

2006-05-25 Thread Arul Prasad

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

[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" 
> > > >>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
> >
> >
> ___
> Flashcode

Re: [Flashcoders] FLV Playback problems.

2006-05-25 Thread Arul Prasad

You should be able to change the contentPath property and  change the
currently playing video.

You can have more than one video load into the FLVPlayback component by
adding more videoPlayers inside the same component. You can achieve this
using the  activeVideoPlayerIndex  and the visibleVideoPlayerIndexproperties.

Now that you have said you are picking up the FLV's path from a XML, if I
can take a wild guess, here, check this too:
before assigning the FLV file's path to the contentPath property, check if
you are actually passing a proper string value (trace out the type of the
value). Since you are picking it up from a XML, you might be assigning a
XMLNode instead of its nodeValue.

Hope it helps.

Regards,
~Arul Prasad.

On 5/25/06, Aasim Momin <[EMAIL PROTECTED]> wrote:


Hi,

I am using an FLV Playback component inn my file for streaming videos
from FMS. I need to changes the videos on the click of a button. This I
have achieved by changing the contentPath parameter dynamically. The
contentPath values are coming from an XML file.
If I place the FLV Playback component on the stage, it shows the first
video but when I try to move to the next video on clicking Next, The
video does not play.
Currently I have made it work by using the attachMovie() function and
not keeping the FLV Playback component on the stage.
I am using Flash 8 Professional and FMS 2.

Could I be missing something?

Regards,
Aasim Momin



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


Re: [Flashcoders] Class Newb Question

2006-05-25 Thread Manuel Saint-Victor

I would run out and get a copy of the Friends of Ed Object oriented
programming in Flash 8-
and check out kirupa's object oriented programming tutorial-

They actually build a media player in the friends of ed book.

M



On 5/25/06, Marlon Harrison <[EMAIL PROTECTED]> 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 a

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

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


RE: [Flashcoders] MXI Files

2006-05-25 Thread phaedrus
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'" 
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] Loading Child SWF Files in a swfPanel

2006-05-25 Thread Manuel Saint-Victor

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] 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
  - 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/flashcoder

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

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] Flex vs. Flash IDE

2006-05-25 Thread jcanistrum

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


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] TextInput disabled when loaded into a Window Component into a child swf

2006-05-25 Thread Manuel Saint-Victor

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


[Flashcoders] Compute a point guarateed to be within a irregular polygon

2006-05-25 Thread Kjel Anderson
Hello list,

Has anyone implemented something like this? An example would be extremely 
helpful.

Thanks,

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







website_CNE(1).jpg
website_CNE(2).jpg





email_Dell(1).jpg
email_Dell(2).jpg
email_Dell(3).jpg
email_Dell(4).jpg





enews_Dell(1).jpg
enews_Dell(2).jpg





website_Dell(1).jpg
website_Dell(2).jpg
website_Dell(3).jpg





website_Dickie(1).jpg





banners_Hoovers(1).jpg
banners_Hoovers(2).jpg





website_Impath(1).jpg





website_Radiant(1).jpg





website_Inland(1).jpg
website_Inland(2).jpg
website_Inland(3).jpg





website_Metrics(1).jpg
website_Metrics(2).jpg
website_Metrics(3).jpg





website_Tocquigny(1).jpg
website_Tocquigny(2).jpg





email_Toshiba(1).jpg





enews_Vignette(1).jpg





banners_Windingroad(1).jpg
banners_Windingroad(2).jpg
banners_Windingroad(3).jpg
banners_Windingroad(4).jpg





--

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() {
while (counter3){
row = 2;
set("btn"+counter+"._y", btn1._y + 82);
set("btn"+counter+"._x", counter*97-485);
}
if(counter>7){
row = 3;
set("btn"+counter+"._y", btn1._y + 164);
set("btn"+counter+"._x", counter*97-873);
}
if(counter>11){
row = 4;
set("btn"+counter+"._y", btn1._y + 246);
set("btn"+counter+"._x", counter*97-1261);
}
if(counter>15){
row = 5;
set("btn"+counter+"._y", btn1._y + 328);
set("btn"+counter+"._x", counter*97-1649);
}
set("btn"+counter+".row", row);
set("btn"+counter+".column", counter+1-((row-1)*4));
btn1._x = 0;
// set the button's text
set("btn"+counter+".the_title",
menu_interactive_xml.firstChild.childNodes[counter].attributes.title);
set("btn"+counter+".the_client",
menu_interactive_xml.firstChild.childNodes[counter].attributes.client);
//set("btn"+counter+".image0",
menu_interactive_xml.firstChild.childNodes[counter].firstChild.childNodes);

//trace(btn1.image);
imgcounter = 0;
set("btn"+counter+".totalImages",
menu_interactive_xml.firstChild.childNodes[counter].firstChild.childNodes.le
ngth);
totalImages =
menu_interactive_xml.firstChild.childNodes[

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


Re: [Flashcoders] Shared fonts issue

2006-05-25 Thread Marcelo de Moraes Serpa

That´s exactly what I did... loading all the fonts in the main movie...

Also remember about the "SharPoint" technique... in simpler words, when you
load your shared library swf, you have to wait at least 1 frame and have a
at least one symbol from the shared library placed in this frame so that all
the shared assets become avaiable to the current movie.. strange but that´s
the way it works...

Marcelo.

On 5/25/06, Anggie Bratadinata <[EMAIL PROTECTED]> wrote:


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


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







website_CNE(1).jpg
website_CNE(2).jpg





email_Dell(1).jpg
email_Dell(2).jpg
email_Dell(3).jpg
email_Dell(4).jpg





enews_Dell(1).jpg
enews_Dell(2).jpg





website_Dell(1).jpg
website_Dell(2).jpg
website_Dell(3).jpg





website_Dickie(1).jpg





banners_Hoovers(1).jpg
banners_Hoovers(2).jpg





website_Impath(1).jpg





website_Radiant(1).jpg





website_Inland(1).jpg
website_Inland(2).jpg
website_Inland(3).jpg





website_Metrics(1).jpg
website_Metrics(2).jpg
website_Metrics(3).jpg





website_Tocquigny(1).jpg
website_Tocquigny(2).jpg





email_Toshiba(1).jpg





enews_Vignette(1).jpg





banners_Windingroad(1).jpg
banners_Windingroad(2).jpg
banners_Windingroad(3).jpg
banners_Windingroad(4).jpg





--

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() {
while (counter3){
row = 2;
set("btn"+counter+"._y", btn1._y + 82);
set("btn"+counter+"._x", counter*97-485);
}
if(counter>7){
row = 3;
set("btn"+counter+"._y", btn1._y + 164);
set("btn"+counter+"._x", counter*97-873);
}
if(counter>11){
row = 4;
set("btn"+counter+"._y", btn1._y + 246);
set("btn"+counter+"._x", counter*97-1261);
}
if(counter>15){
row = 5;
set("btn"+counter+"._y", btn1._y + 328);
set("btn"+counter+"._x", counter*97-1649);
}
set("btn"+counter+".row", row);
set("btn"+counter+".column", counter+1-((row-1)*4));
btn1._x = 0;
// set the button's text
set("btn"+counter+".the_title",
menu_interactive_xml.firstChild.childNodes[counter].attributes.title);
set("btn"+counter+".the_client",
menu_interactive_xml.firstChild.childNodes[counter].attributes.client);
//set("btn"+counter+".image0",

menu_interactive_xml.firstChild.childNodes[counter].first

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] Flex vs. Flash IDE

2006-05-25 Thread Christian
Thanks for all the info everyone.  Definitely good stuff to go read and 
learn more about.  I just get frustrated as things get easier for those 
who don't work at it, while those who work at it get set packing.


I'll attack things with open mind and revisit my opinions.



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





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

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" 
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._alpha<100) {
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
http://training.figleaf.c

  1   2   >