Re: [Flashcoders] How much bytes ActionScript classes take in SWF?

2009-04-17 Thread Pavel Repkin
Thanks, Juan, this is exactly what I'm looking for!
Does flex compiler work with ActionScript 2.0?
I forgot to mention that we are working with 2.0.

On Wed, Apr 15, 2009 at 5:40 PM, Juan Pablo Califano <
califa010.flashcod...@gmail.com> wrote:

> PS: a couple of notes since my last message could be misleading:
>
> 1) By easy to compile I didn't mean that the result of using the SDK
> compiler will produce the same swf. I just mean it could be a good way to
> check what classes are included.
>
> 2) Any code in the fla will not be included, of course. If you create a ref
> to some class only in timeline code, it will not be included in the swf
> compiled with the sdk
>
>
>
> 2009/4/15, Juan Pablo Califano :
> >
> > If you have a document class in place, it should be easy to compile your
> > project with the flex SDK compiler. You could compile on the command
> line,
> > which is not too hard or try some IDE like Flashdevelop (if you're on
> > windows), where setting up a project is pretty stright forward.
> >
> > The extra compiler argument you need is -link-report
> > "size-report.xml". This will generate an xml detailed information about
> all
> > compiled classes, theirs dependencies, and the optimized and unoptimized
> > size. You could then parse this xml and create your own "report" as you
> > like.
> >
> > Cheers
> > Juan Pablo Califano
> >
> >
> > 2009/4/15, Pavel Repkin :
> >>
> >> There are 500 KB of ActionScript code in our project (according to Flash
> >> size-report)
> >> That is a lot.
> >> I want to find the classes (packages) that take most space.
> >> And then to optimize them.
> >> And throw away classes that were linked by a mistake.
> >>
> >> So I want to find out how much space take individual classes and
> packages
> >> in
> >> the swf.
> >>
> >> Do you know a tool that can help me?
> >> Ideally the app should display class tree with size in KB beside each
> >> node.
> >>
> >> Pasha.
> >> ___
> >> Flashcoders mailing list
> >> Flashcoders@chattyfig.figleaf.com
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How much bytes ActionScript classes take in SWF?

2009-04-17 Thread Pavel Repkin
Yes, but does not display how much does packages or individual classes take.
Just tells how much ActionScript code takes.

On Wed, Apr 15, 2009 at 2:55 PM, Glen Pike wrote:

> Sorry, misread your email and jumped the gun - the size report should tell
> you how big your classes are though...
>
>
> Pavel Repkin wrote:
>
>> There are 500 KB of ActionScript code in our project (according to Flash
>> size-report)
>> That is a lot.
>> I want to find the classes (packages) that take most space.
>> And then to optimize them.
>> And throw away classes that were linked by a mistake.
>>
>> So I want to find out how much space take individual classes and packages
>> in
>> the swf.
>>
>> Do you know a tool that can help me?
>> Ideally the app should display class tree with size in KB beside each
>> node.
>>
>> Pasha.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Karl DeSaulniers

What about sepy? I'm on a mac.

Sent from losPhone

On Apr 17, 2009, at 12:29 PM, "Merrill, Jason" > wrote:


It just told me there was no property called contentLoaderInfo in  
my



class file.


What Actionscript editor are you using?



Cs3


That could be why. I would recommend you switch coding over to an  
editor

with better code hinting and other capabilities like the FlashDevleop,
which is a free download, and the best free Actionscript editor for
Windows out there.


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media  
experiences

- join the Bank of America Flash Platform Community


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

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


Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Taka Kojima
Hey Tim,

I have run into this before as well, with both ActionScript and using
alert() in JavaScript.

What I concluded was that the trace/alert basically adds a small pause
or causes something to happen (i.e. skip a frame or something of the
sort) so that the code below it works.

I may be totally wrong and this may sound crazy and stupid, but
whenever I did something like take the trace out and put the rest of
the code into a COMPLETE event for a timer, or had the code run on the
next frame with an onEnterFrame, it started working.

I know you say you don't think its a timing issue, but instead of the
loop try doing a Timer and see if that solves it.




On Fri, Apr 17, 2009 at 9:09 AM, Tim Hawkins  wrote:
> Well, it becomes a null - so if I do select1.toString() in the trace I just
> get a runtime error.. And I don't want to turn the results of my query into
> a string, because I need it as an XML ref.
>
> 2009/4/17 Glen Pike 
>
>> Have you tried the toString or toXMLString for this - check the XML class
>> for the proper function name...
>> Glen
>>
>>
>> Tim Hawkins wrote:
>>
>>> Hi Matt,
>>> No, afraid not.. I actually use the select1 variable elsewhere, so it's
>>> not
>>> just that trace which is the problem.
>>>
>>> Thanks for the suggestion though!
>>>
>>>
>>>
>>> 2009/4/17 Matt S. 
>>>
>>>
>>>
 Does it make a difference if you write the trace as :

 trace("formData="+formData);
 trace("select1:"+ select1);


 On 4/17/09, Tim Hawkins  wrote:


> Hi,
> I've come across this a few times in my own code, but haven't seen it
> mentioned online - though it's a difficult thing to google for.
>
> In the following function, if the trace at the top is present, formData
> traces a load of XML and select1 also traces a load of XML.
>
> If I comment out the top trace, formData still traces the same pile of
>
>
 XML


> but select1 traces null!
>
> public function testMakeModelFilterWorks():void {
>
>  trace("");
>  default xml namespace  = NAMESPACE;
>
> var select1:XML = formData..select1[2];
> trace("formData=", formData);
>  trace("select1:", select1);
>
> // etc
> default xml namespace = null;
> }
>
> Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me'
> at
> the top of functions.
> (I don't think it's a timing thing, if I put a 10-item
> increment-a-variable loop in there instead of a trace the E4X still
>
>
 fails.)


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

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


Re: [Flashcoders] flickr api as3

2009-04-17 Thread Steven Sacks

http://tinyurl.com/d67kuy


On Apr 17, 2009, at 1:02 PM, Preston Parris wrote:

Does anyone have a good example of loading thumbnails from flickr,  
and then
once you click on that thumbnail, loading a larger version of the  
picture
from flickr still in the flash. Everything i have found links to the  
flickr

page after showing the thumbnails.

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


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


[Flashcoders] ShareThis issue..

2009-04-17 Thread artur

is there a way to dynamically set the Title or Content data for ShareThis?


*ActionScript*

*private* *function* onClick():*void*

{

ExternalInterface.call (*"ShareThis_set",”Title”*);

ExternalInterface.call (*"ShareThis_share"*);

}

*JavaScript*

var ShareObj = SHARETHIS.addEntry({ }, {button:false, popup:true});


function ShareThis_set(value)

{

ShareObj.properties.title = value;

}

function ShareThis_share()

{

ShareObj.popup();

}

I am setting the title property from ActionScript calling the 
ShareThis_set function and passing “Title”.

This property is set (I tested it).
But, when I popup the shareThis window, that property is empty (I see 
this when I receive the e-mail).

--

*artur :.*

- *www.artur.com*
- *ar...@artur.com*
- *ph:646.797.3320*

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


[Flashcoders] flickr api as3

2009-04-17 Thread Preston Parris
Does anyone have a good example of loading thumbnails from flickr, and then
once you click on that thumbnail, loading a larger version of the picture
from flickr still in the flash. Everything i have found links to the flickr
page after showing the thumbnails.

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


Re: [Flashcoders] LoadVariables - Pipe character is being URL Encoded?

2009-04-17 Thread Lou Klepner

Thanks Ben - Its nice to know whats happening behind the scenes.

Good point about fixing the web server - I've managed to convince the  
vendor they should clean up their web service, so the pipe character,  
which is encoded as %7c, is now being properly recognized - woo!


Thanks again!

Lou

On Apr 17, 2009, at 2:12 PM, Benjamin Wolsey wrote:


Am Freitag, den 17.04.2009, 12:58 -0400 schrieb Lou Klepner:

?values=1|2|3

When I call it using LoadVariables, the pipe symbol is being URL-
encoded, and the web-service ends up receiving this request -

?values=1%7c2%7c3

Unfortunately the webservice is outside my control and I can't url-
decode its input. Is there anyway to prevent LoadVariables from
altering the pipe symbol?



Do you mean LoadVars or MovieClip.loadVariables?

If LoadVars, then yes, but it isn't very nice. LoadVars.send()  
probably

calls LoadVars.toString(), which definitely calls _global.escape().
Redefine _global.escape:

_global.escape = function(str) { return str; };

And when you call LoadVars.send(), the string won't be encoded
(at all), and neither will anything else unless you restore it to what
it was.

A similar thing likely applies to MovieClip.loadVariables.

Of course, a better way would be to fix the server.

bwy

--
Use Gnash, the GNU Flash Player!
http://www.gnu.org/software/gnash/

Benjamin Wolsey, Software Developer - http://benjaminwolsey.de

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


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


Re: [Flashcoders] LoadVariables - Pipe character is being URL Encoded?

2009-04-17 Thread Benjamin Wolsey
Am Freitag, den 17.04.2009, 12:58 -0400 schrieb Lou Klepner:
> ?values=1|2|3
> 
> When I call it using LoadVariables, the pipe symbol is being URL- 
> encoded, and the web-service ends up receiving this request -
> 
> ?values=1%7c2%7c3
> 
> Unfortunately the webservice is outside my control and I can't url- 
> decode its input. Is there anyway to prevent LoadVariables from  
> altering the pipe symbol?
> 

Do you mean LoadVars or MovieClip.loadVariables?

If LoadVars, then yes, but it isn't very nice. LoadVars.send() probably
calls LoadVars.toString(), which definitely calls _global.escape().
Redefine _global.escape:

_global.escape = function(str) { return str; };

And when you call LoadVars.send(), the string won't be encoded
(at all), and neither will anything else unless you restore it to what
it was.

A similar thing likely applies to MovieClip.loadVariables.

Of course, a better way would be to fix the server.

bwy

--
Use Gnash, the GNU Flash Player!
http://www.gnu.org/software/gnash/

Benjamin Wolsey, Software Developer - http://benjaminwolsey.de

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


[Flashcoders] [Flash eLearning] Introduction of a self-made programmer

2009-04-17 Thread Guillaume Malartre
Well Hi!

I've been developing eLearning application for 5 years now (rigth after
finishing my Electronical Conception degrees). I joined my brother in a
startup company named "Scolab" and all we do 365 days a years is develop
educational applications/exercises distributed through our platform. I
invite you to take a look at my uncomplete folio
and at my geeky
blog .

If somehow you want a more indeep look at what I/we
do, just mail me!

Merci,
Guillaume

Guillaume Malartre
Consultant, Programmeur-Analyste
(514)528-8066, 1(888)528-8066

Besoin d'aide en maths? Need help in maths?
www.Netmaths.net, www.Buzzmath.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Karl DeSaulniers
Sry about the up front info. I have tried using a blank movieClip, but  
it still doesn't work. The issue I think is that the class creates an  
MC called "raw" to load the bitmap data and then deletes it to create  
"img" where it draws the bitmap for smoothing. Some where between, I  
am not getting the w&h of "img"


Sent from losPhone

On Apr 17, 2009, at 11:25 AM, Ian Thomas  wrote:


Karl,

  Some more information up front would have helped - I was assuming
you were using the Loader class in AS3, whereas it looks like you're
using a third-party ImageLoader class in AS2! Really difficult to
answer the question without knowing that!

Looking at Martijn's source-code, it looks a little like you're
loading the image into a MovieClip that you've already created with a
specific width and height, which is causing your problem. I'd try
loading the image into a blank MovieClip instead (e.g. via
createEmptyMovieClip(), or just into something on the timeline with no
content).

Ian

On Fri, Apr 17, 2009 at 5:11 PM, Karl DeSaulniers > wrote:

I am using martijndevsser ImageLoader

Sent from losPhone

On Apr 17, 2009, at 4:41 AM, Ian Thomas  wrote:


Let's try that again - perhaps I wasn't clear.

I'm assuming - from your first email - you're using a
flash.display.Loader?

Look for the property called contentLoaderInfo on the instance of  
your

Loader class.

Documentation here:

http://livedocs.adobe.com/flex/3/langref/flash/display/Loader.html#contentLoaderInfo

HTH,
 Ian


On Fri, Apr 17, 2009 at 10:26 AM, Karl DeSaulniers >

wrote:


That looked like it was going to work.
Thanks for your response.
It just told me there was no property called contentLoaderInfo in  
my

class
file.

Karl DeSaulniers
Design Drumm
http://designdrumm.com

On Apr 17, 2009, at 3:21 AM, Ian Thomas wrote:


myLoader.contentLoaderInfo.width
myLoader.contentLoaderInfo.height


HTH,
 Ian

On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers >

wrote:


Hello all,
Quick question.
I am using a loader class to load some preview images and I am  
trying

to
make a couple of variables eq the width and heigth of the  
preview once

the
class is done actually loading the image. I am running into a  
snag with

the
variables eq the holder MCs width and height after the image  
loads and

not
the loaded images w&h.

What is the best way to get actual loaded images w&h and not  
the holder

MCs
w&h?

Thanks for any help

Karl

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


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


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



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


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



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

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


RE: [Flashcoders] Favorite Flex book?

2009-04-17 Thread Merrill, Jason
>> By the way, in case anybody was wondering, I ended up picking up the
O'Reilly Flex Cookbook
>> heh  yeah your thread got hijacked.

Heh, yeah sorry Todd.  

And by the way, in case anyone was wondering, Dave Watts spend a lot of
time with me off list helping me get my copy of Flexbuilder 3 working
again.  Turns out there were two causes to the memory problem.  The
magic solution was to change the xms setting in my flexbuilder.ini file
to 256 instead of 1024 and also upgrade the Java runtime Flexbuilder
uses from 1.5 to 1.6.  

Hope that helps somebody.


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 



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


RE: [Flashcoders] Just a quick one

2009-04-17 Thread Merrill, Jason
>>> It just told me there was no property called contentLoaderInfo in my
>
>>> class file.
>
> What Actionscript editor are you using?

>> Cs3

That could be why. I would recommend you switch coding over to an editor
with better code hinting and other capabilities like the FlashDevleop,
which is a free download, and the best free Actionscript editor for
Windows out there.


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 


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


[Flashcoders] LoadVariables - Pipe character is being URL Encoded?

2009-04-17 Thread Lou Klepner

Hi,

I'm calling a webservice which requires I separate its URL variables  
with a pipe symbol.


?values=1|2|3

When I call it using LoadVariables, the pipe symbol is being URL- 
encoded, and the web-service ends up receiving this request -


?values=1%7c2%7c3

Unfortunately the webservice is outside my control and I can't url- 
decode its input. Is there anyway to prevent LoadVariables from  
altering the pipe symbol?


Many thanks!

Best,
- Lou
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Favorite Flex book?

2009-04-17 Thread Charles Parcell
heh  yeah your thread got hijacked.

Charles P.


On Thu, Apr 16, 2009 at 12:38 PM, Todd Kerpelman  wrote:

> By the way, in case anybody was wondering, I ended up picking up the
> O'Reilly Flex Cookbook over the Training From the Source one, primarily
> because the O'Reilly site had a very simple "Buy the PDF" option. (It's a
> little easier to read and code on the train if I can just have everything
> on
> my laptop.) Somebody oughta tell these Adobe folks about this .pdf format
> I've been hearing so much about. I bet they'd like it!
>
> --T
>
>
> On Wed, Apr 15, 2009 at 2:29 AM, Paul Andrews  wrote:
>
> > I think one of the things that will determine whether you like Flex
> > training from the source, is whether you want a book you can just read
> and
> > later pick up and thumb through a section. Flex training from the source
> is
> > arranged more as a series of hands-on exercises where the reader is told
> how
> > to follow through on a computer and any discussion is based on the
> practical
> > work done. It's not so much a "Pick me up and dip into me" type of book
> > because so much of the content is centred around actively sitting at a
> > computer doing the exercises. It would make a poor reference but is
> strong
> > at "hands-on". Very much a "doing" book.
> >
> > Paul
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] formal qualifications

2009-04-17 Thread Pedro Kostelec
"So it really depends on what kind of company/entity you want to work
for.  In many cases, you won't need it, but possessing degrees and
certifications would never of course be a negative factor."
The "could never be a negative factor" is country related. I
most countries it is true, but in some (e.g. Slovenia) the salary is related
to the degree and if they don't really need someone with a high degree, they
will rather employ the one with the lower degree.


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


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ian Thomas
Karl,

   Some more information up front would have helped - I was assuming
you were using the Loader class in AS3, whereas it looks like you're
using a third-party ImageLoader class in AS2! Really difficult to
answer the question without knowing that!

Looking at Martijn's source-code, it looks a little like you're
loading the image into a MovieClip that you've already created with a
specific width and height, which is causing your problem. I'd try
loading the image into a blank MovieClip instead (e.g. via
createEmptyMovieClip(), or just into something on the timeline with no
content).

Ian

On Fri, Apr 17, 2009 at 5:11 PM, Karl DeSaulniers  wrote:
> I am using martijndevsser ImageLoader
>
> Sent from losPhone
>
> On Apr 17, 2009, at 4:41 AM, Ian Thomas  wrote:
>
>> Let's try that again - perhaps I wasn't clear.
>>
>> I'm assuming - from your first email - you're using a
>> flash.display.Loader?
>>
>> Look for the property called contentLoaderInfo on the instance of your
>> Loader class.
>>
>> Documentation here:
>>
>> http://livedocs.adobe.com/flex/3/langref/flash/display/Loader.html#contentLoaderInfo
>>
>> HTH,
>>  Ian
>>
>>
>> On Fri, Apr 17, 2009 at 10:26 AM, Karl DeSaulniers 
>> wrote:
>>>
>>> That looked like it was going to work.
>>> Thanks for your response.
>>> It just told me there was no property called contentLoaderInfo in my
>>> class
>>> file.
>>>
>>> Karl DeSaulniers
>>> Design Drumm
>>> http://designdrumm.com
>>>
>>> On Apr 17, 2009, at 3:21 AM, Ian Thomas wrote:
>>>
 myLoader.contentLoaderInfo.width
 myLoader.contentLoaderInfo.height


 HTH,
  Ian

 On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers 
 wrote:
>
> Hello all,
> Quick question.
> I am using a loader class to load some preview images and I am trying
> to
> make a couple of variables eq the width and heigth of the preview once
> the
> class is done actually loading the image. I am running into a snag with
> the
> variables eq the holder MCs width and height after the image loads and
> not
> the loaded images w&h.
>
> What is the best way to get actual loaded images w&h and not the holder
> MCs
> w&h?
>
> Thanks for any help
>
> Karl
>
> Sent from losPhone
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

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


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Karl DeSaulniers

I am using martijndevsser ImageLoader

Sent from losPhone

On Apr 17, 2009, at 4:41 AM, Ian Thomas  wrote:


Let's try that again - perhaps I wasn't clear.

I'm assuming - from your first email - you're using a  
flash.display.Loader?


Look for the property called contentLoaderInfo on the instance of your
Loader class.

Documentation here:
http://livedocs.adobe.com/flex/3/langref/flash/display/Loader.html#contentLoaderInfo

HTH,
 Ian


On Fri, Apr 17, 2009 at 10:26 AM, Karl DeSaulniers > wrote:

That looked like it was going to work.
Thanks for your response.
It just told me there was no property called contentLoaderInfo in  
my class

file.

Karl DeSaulniers
Design Drumm
http://designdrumm.com

On Apr 17, 2009, at 3:21 AM, Ian Thomas wrote:


myLoader.contentLoaderInfo.width
myLoader.contentLoaderInfo.height


HTH,
  Ian

On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers >

wrote:


Hello all,
Quick question.
I am using a loader class to load some preview images and I am  
trying to
make a couple of variables eq the width and heigth of the preview  
once

the
class is done actually loading the image. I am running into a  
snag with

the
variables eq the holder MCs width and height after the image  
loads and

not
the loaded images w&h.

What is the best way to get actual loaded images w&h and not the  
holder

MCs
w&h?

Thanks for any help

Karl

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


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


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



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

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


[Flashcoders] AS 2.0, checking allowFullScreen inside action script

2009-04-17 Thread Pavel Repkin
Hey!

Fullscreen mode feature can be enabled/disabled with allowFullScreen
attribute of the embed/object tag.

Is it possible to know inside action script code if the fullscreen mode is
allowed .

I want to hide fullscreen button in my app if fullscreen mode is not
available.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Karl DeSaulniers

Cs3

Sent from losPhone

On Apr 17, 2009, at 8:19 AM, "Merrill, Jason" > wrote:



It just told me there was no property called contentLoaderInfo in my



class file.


What Actionscript editor are you using?


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media  
experiences

- join the Bank of America Flash Platform Community




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

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


Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Tim Hawkins
Well, it becomes a null - so if I do select1.toString() in the trace I just
get a runtime error.. And I don't want to turn the results of my query into
a string, because I need it as an XML ref.

2009/4/17 Glen Pike 

> Have you tried the toString or toXMLString for this - check the XML class
> for the proper function name...
> Glen
>
>
> Tim Hawkins wrote:
>
>> Hi Matt,
>> No, afraid not.. I actually use the select1 variable elsewhere, so it's
>> not
>> just that trace which is the problem.
>>
>> Thanks for the suggestion though!
>>
>>
>>
>> 2009/4/17 Matt S. 
>>
>>
>>
>>> Does it make a difference if you write the trace as :
>>>
>>> trace("formData="+formData);
>>> trace("select1:"+ select1);
>>>
>>>
>>> On 4/17/09, Tim Hawkins  wrote:
>>>
>>>
 Hi,
 I've come across this a few times in my own code, but haven't seen it
 mentioned online - though it's a difficult thing to google for.

 In the following function, if the trace at the top is present, formData
 traces a load of XML and select1 also traces a load of XML.

 If I comment out the top trace, formData still traces the same pile of


>>> XML
>>>
>>>
 but select1 traces null!

 public function testMakeModelFilterWorks():void {

  trace("");
  default xml namespace  = NAMESPACE;

 var select1:XML = formData..select1[2];
 trace("formData=", formData);
  trace("select1:", select1);

 // etc
 default xml namespace = null;
 }

 Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me'
 at
 the top of functions.
 (I don't think it's a timing thing, if I put a 10-item
 increment-a-variable loop in there instead of a trace the E4X still


>>> fails.)
>>>
>>>
 t.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Glen Pike
Have you tried the toString or toXMLString for this - check the XML 
class for the proper function name...

Glen

Tim Hawkins wrote:

Hi Matt,
No, afraid not.. I actually use the select1 variable elsewhere, so it's not
just that trace which is the problem.

Thanks for the suggestion though!



2009/4/17 Matt S. 

  

Does it make a difference if you write the trace as :

trace("formData="+formData);
trace("select1:"+ select1);


On 4/17/09, Tim Hawkins  wrote:


Hi,
I've come across this a few times in my own code, but haven't seen it
mentioned online - though it's a difficult thing to google for.

In the following function, if the trace at the top is present, formData
traces a load of XML and select1 also traces a load of XML.

If I comment out the top trace, formData still traces the same pile of
  

XML


but select1 traces null!

public function testMakeModelFilterWorks():void {

 trace("");
 default xml namespace  = NAMESPACE;

var select1:XML = formData..select1[2];
trace("formData=", formData);
 trace("select1:", select1);

// etc
default xml namespace = null;
}

Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me' at
the top of functions.
(I don't think it's a timing thing, if I put a 10-item
increment-a-variable loop in there instead of a trace the E4X still
  

fails.)


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

  

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


  


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


Re: [Flashcoders] How to smooth bitmap?

2009-04-17 Thread Pavel Repkin
Because of the very very security issue I cannot use this code.
You are not allowed to use BitmapData.draw to retrieve pixels containing
media from a domain other than your own.

On Fri, Apr 17, 2009 at 10:41 AM, Karl DeSaulniers wrote:

> You could try this one.
> This is an imageLoader class that smooths dynamic images.
> Dont know about the whole security issue though.
> This loads the initial image into a MC, then deletes it, then draws the
> bitmap into another MC.
> GL
>
> By martijndevisser.
>
> 
>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
>
>
>
> On Apr 17, 2009, at 12:36 AM, Pavel Repkin wrote:
>
>  Yes, I can, it does not work either :-(
>>
>> On Wed, Apr 15, 2009 at 7:48 PM, Anthony Pace > >wrote:
>>
>>  Can you put the bitmap inside a movie clip, and get pixel data from a
>>> parent to make a new bitmapdata object?
>>>
>>> It seems like that would enable you to get around that problem; yet,
>>> again,
>>> I haven't played with this, nor do I have time to unfortunately, so I am
>>> not
>>> sure.
>>>
>>>
>>> Pavel Repkin wrote:
>>>
>>>  Thanks, I've already written this code by myself.

 Unfortunately, it does not work because of security issues.
 You are not allowed to use BitmapData.draw to retrieve pixels containing
 media from a domain other than your own.


 On Mon, Apr 13, 2009 at 8:34 PM, Ian Thomas  wrote:



  Alternatively, just copy the bitmap and smooth it:
>
> http://code.awenmedia.com/node/27
>
> HTH,
>  Ian
>
> On Sat, Apr 11, 2009 at 3:16 PM, Pavel Repkin 
> wrote:
>
>
>  Hey!
>>
>> I have a bitmap image loaded from external site (Facebook user
>> avatar).
>> Its size is 50x50 pixels and it looks very pixelated when the Flash
>> Stage
>> size changes.
>> The image would look much better if it was smoothed.
>>
>> But, smoothing does not work for images loaded from external domains.
>> MovieClip.forceSmoothing = true just does not work.
>> However if the image resides on the same server as the script,
>> smoothing
>> works like a charm.
>>
>> Do you know how can I smooth the bitmap?
>> Is it possible?
>>
>> AS 2.0, FP 9.0
>>
>> Pasha.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>>  ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
>  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Tim Hawkins
Hi Matt,
No, afraid not.. I actually use the select1 variable elsewhere, so it's not
just that trace which is the problem.

Thanks for the suggestion though!



2009/4/17 Matt S. 

> Does it make a difference if you write the trace as :
>
> trace("formData="+formData);
> trace("select1:"+ select1);
>
>
> On 4/17/09, Tim Hawkins  wrote:
> > Hi,
> > I've come across this a few times in my own code, but haven't seen it
> > mentioned online - though it's a difficult thing to google for.
> >
> > In the following function, if the trace at the top is present, formData
> > traces a load of XML and select1 also traces a load of XML.
> >
> > If I comment out the top trace, formData still traces the same pile of
> XML
> > but select1 traces null!
> >
> > public function testMakeModelFilterWorks():void {
> >
> >  trace("");
> >  default xml namespace  = NAMESPACE;
> >
> > var select1:XML = formData..select1[2];
> > trace("formData=", formData);
> >  trace("select1:", select1);
> >
> > // etc
> > default xml namespace = null;
> > }
> >
> > Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me' at
> > the top of functions.
> > (I don't think it's a timing thing, if I put a 10-item
> > increment-a-variable loop in there instead of a trace the E4X still
> fails.)
> >
> > t.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Smart Preloading

2009-04-17 Thread Dennis - I Sioux

it has to be one file...

For now we'll use the solution of adding each level-compiledclip to a 
frame.. and making a loaderClass to see if the framesLoaded has eached the 
level yet.. when it's needed.


Thanks for the replies

- Original Message - 
From: "allandt bik-elliott (thefieldcomic.com)" 

To: "Flash Coders List" 
Sent: Friday, April 17, 2009 1:29 PM
Subject: Re: [Flashcoders] Smart Preloading



or you could add everything to an external library file and load that with
your other assets



On Fri, Apr 17, 2009 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) 
<

alla...@gmail.com> wrote:

i must admit, i still add internal (non-added on frame 1) assets to a 
frame
(after my preloader) and goto a frame after that when the xml, css, 
external
assets etc are all loaded. It's probably frowned upon but it works and 
i've

not found anything better

a


On Fri, Apr 17, 2009 at 8:07 AM, Dennis - I Sioux 
wrote:



Hey Allandt,

Thanks for your reply.

I already found that one.. it was linked to from the earlier mentioned
Greensock.
Seems like that one can't load mc's from the library aswell..

I actually want to switch of the "load before 1st" .. and when entering 
a

new level.. load the level clips..(if not already loaded).

The UILoader mentions that it can load mc's aswell (at the source
property).. but there isn't any example on how to do it.. and the 
logical

ways aren't working.

Thanks


- Original Message - From: "allandt bik-elliott (
thefieldcomic.com)" 
To: "Flash Coders List" 
Sent: Thursday, April 16, 2009 5:42 PM

Subject: Re: [Flashcoders] Smart Preloading


 there is something called bulkloader that i've seen used a few times 
but

it
might be a little surplus to requirements

On Thu, Apr 16, 2009 at 3:56 PM, Glen Pike wrote:

 Sorry, it's a SWF preloader.  As for preloading clips in the library,

that's not what it's for..


Glen

Dennis - I Sioux wrote:

 Hey Glen,


Greensock isn't for preloading movieclips right?
The swf's own movieclips in his library..

Or has it got an option for that?

- Original Message - From: "Glen Pike" <
g...@engineeredarts.co.uk
>
To: "Flash Coders List" 
Sent: Thursday, April 16, 2009 4:03 PM
Subject: Re: [Flashcoders] Smart Preloading


 Hi,



 There are a couple of sequential preloaders out there on the web - 
I

think greensock did on, but not 100% sure.

 It's possible that you can use these preload a list of movie clips 
in

the background.  I wrote my own before finding queuing loader before
seeing
the others, so I don't know if they implement the same 
functionality:

to
interrupt the preloading queue when a specific "level" is requested
and put
the loading of that to the front of the queue.  If you are not
stopping the
things caching in the browser, you might take a small hit re-loading
the
required level if it has not reloaded, but that is all.

 HTH a bit

 Glen


Dennis - I Sioux wrote:

 Hey,


Tried to use a UILoader to check the bytes loaded of a single
movieclip(in the library).. but this isn't working.
Has anyone got a suggestion to check the loaded bytes of an mc?

Thought the LoaderInfo only reffers to the mc's owner.

Goal is to preload each game level seperately when it is needed.(if
it
hasn't loaded while playing the previous level yet).

With kind regards,

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




 ___

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

__ NOD32 4013 (20090416) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl



 ___

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



 ___

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

 ___

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

__ NOD32 4015 (20090417) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl




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





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http:

RE: [Flashcoders] Best Tutorial Sites?

2009-04-17 Thread Merrill, Jason
I like the Adobe Developer Connection
http://www.adobe.com/devnet/ 

Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 

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


RE: [Flashcoders] formal qualifications

2009-04-17 Thread Merrill, Jason
I think it all depends on what type of company you want to work for.
Some places will be looking for people with certain kinds of educational
degrees, some will not.  Since my group at Bank of America does
multimedia for learning/training purposes, we look for formalized
degrees in instructional technology in addition to their multimedia and
programming skills.  It really does help in my field.  Other places
really don't care, they just want someone who has an impressive
portfolio, skillset and a passion.  Some companies who get work by
obtaining contracts with say, other companies or the U.S. Government
will want people with degrees, especially graduate degrees because they
are in turn trying to "sell" their employee's skillset they are offering
if they get the work, in order to win the contract.  But take a company
that develops online games - they would probably rather have someone who
has experience developing games, mad programming skills, graphic design
skills, bow hunting skills, etc. than someone who has a formal degree in
computer science.  That said, if you were the hiring manager for a
company like Google, and you were comparing two resumes and they are
both identical in every way, programming, work experience, multimedia
community involvement, graphic design portfolio, etc. etc. and other
factors were the same and the only difference was one had a master's
degree in computer science, the candidate with the degree would have the
advantage.  

So it really depends on what kind of company/entity you want to work
for.  In many cases, you won't need it, but possessing degrees and
certifications would never of course be a negative factor.


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 


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


RE: [Flashcoders] Just a quick one

2009-04-17 Thread Merrill, Jason
>> It just told me there was no property called contentLoaderInfo in my

>>class file.

What Actionscript editor are you using?


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 




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


[Flashcoders] [JOB] Temporary Flex/Flash Developer (onsite only - NYC)

2009-04-17 Thread Peyman Faratin
The innovation group at Strands Inc in NYC is looking for a gifted  
Flex / Flash developer to assist us in the redesign, implementation  
and optimization of current Flex application, which can be seen here  
(in Spanish version)


http://www.actibvapredicciones.com

The position is temporary (3 to 4 weeks initially) and onsite only,  
but depending on the quality of the work may be extendable to longer  
periods and offsite. The ideal candidate will have both engineering as  
well as design experience. You will work closely with the current Flex  
developer and 3 other engineers. Responsibilities will include:


* Lead the flex / Flash design, implementation and optimization
* Develop unit-tested code in flex and flash

Requirements:

* Strong Flash and/or Flex skills (photoshop and AI skills a  
competitive advantage)
* Strong UI and information architecture design and implementation in  
flex/flash

* Scalable code

Desirable:
* 3+ years relevant web programming experience.
* Strong technical interest in latest Web 2.0 innovations
* Experience in architecting scalable web applications and patterns
* Strong OOP and component development skills
* Knowledge of Python, Django, Javascript, CSS, HTML, XML, JSON, MySQL
* Experience with rapid development and project management  
methodologies and platforms and tools

* US Citizenship or permanent resident



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


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ashim D'Silva
If you're using Loader to load images, both w&h of the image itself
and that of the Loader should be the same.
Sometime however, I do like taking out the data if I'm going to play
with it at bitmapData level.

Bitmap(loader.content).bitmapData

If you get the w&h of the resulting bitmap data, that's the images
actual dimensions.

If you're loading an SWF however, I think contentLoaderInfo contains
the nominated width, height, framerate etc. All of which can change
anyway.

Ashim

The Random Lines
My online portfolio
www.therandomlines.com



2009/4/17 Ian Thomas :
> Let's try that again - perhaps I wasn't clear.
>
> I'm assuming - from your first email - you're using a flash.display.Loader?
>
> Look for the property called contentLoaderInfo on the instance of your
> Loader class.
>
> Documentation here:
> http://livedocs.adobe.com/flex/3/langref/flash/display/Loader.html#contentLoaderInfo
>
> HTH,
>  Ian
>
>
> On Fri, Apr 17, 2009 at 10:26 AM, Karl DeSaulniers  
> wrote:
>> That looked like it was going to work.
>> Thanks for your response.
>> It just told me there was no property called contentLoaderInfo in my class
>> file.
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> On Apr 17, 2009, at 3:21 AM, Ian Thomas wrote:
>>
>>> myLoader.contentLoaderInfo.width
>>> myLoader.contentLoaderInfo.height
>>>
>>>
>>> HTH,
>>>   Ian
>>>
>>> On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers 
>>> wrote:

 Hello all,
 Quick question.
 I am using a loader class to load some preview images and I am trying to
 make a couple of variables eq the width and heigth of the preview once
 the
 class is done actually loading the image. I am running into a snag with
 the
 variables eq the holder MCs width and height after the image loads and
 not
 the loaded images w&h.

 What is the best way to get actual loaded images w&h and not the holder
 MCs
 w&h?

 Thanks for any help

 Karl

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

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

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


Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Matt S.
Does it make a difference if you write the trace as :

trace("formData="+formData);
trace("select1:"+ select1);


On 4/17/09, Tim Hawkins  wrote:
> Hi,
> I've come across this a few times in my own code, but haven't seen it
> mentioned online - though it's a difficult thing to google for.
>
> In the following function, if the trace at the top is present, formData
> traces a load of XML and select1 also traces a load of XML.
>
> If I comment out the top trace, formData still traces the same pile of XML
> but select1 traces null!
>
> public function testMakeModelFilterWorks():void {
>
>  trace("");
>  default xml namespace  = NAMESPACE;
>
> var select1:XML = formData..select1[2];
> trace("formData=", formData);
>  trace("select1:", select1);
>
> // etc
> default xml namespace = null;
> }
>
> Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me' at
> the top of functions.
> (I don't think it's a timing thing, if I put a 10-item
> increment-a-variable loop in there instead of a trace the E4X still fails.)
>
> t.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Interesting problem - E4X query doesn't work without call to trace.

2009-04-17 Thread Tim Hawkins
Hi,
I've come across this a few times in my own code, but haven't seen it
mentioned online - though it's a difficult thing to google for.

In the following function, if the trace at the top is present, formData
traces a load of XML and select1 also traces a load of XML.

If I comment out the top trace, formData still traces the same pile of XML
but select1 traces null!

public function testMakeModelFilterWorks():void {

 trace("");
 default xml namespace  = NAMESPACE;

var select1:XML = formData..select1[2];
trace("formData=", formData);
 trace("select1:", select1);

// etc
default xml namespace = null;
}

Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me' at
the top of functions.
(I don't think it's a timing thing, if I put a 10-item
increment-a-variable loop in there instead of a trace the E4X still fails.)

Oh.. Flex (3) compiler, not a flash IDE.

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


[Flashcoders] formal qualifications

2009-04-17 Thread allandt bik-elliott (thefieldcomic.com)
Hey guys

I'm one of those flash coders that has come into the industry by starting as
an enthusiast while doing print for a living and realising that i had more
affinity with actionscript than many of the people i was talking to in
digital departments and going full-time but I don't have any formal
quailifications.

Do you think it's worth going back to school to get the title, even tho i've
been working in the industry as a full-time programmer for a few years now
or not? And how many of the fc'ers have formal programming/design
qualifications?

The reason I ask is the recent job listing for a senior level flash
programmer on this list that had accepted and preferred qualifications even
though a lot of the syntax that you can learn would be irrelevant within 3/4
years of starting work (tho many of the theory behind them would probably be
valid for a while)?


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


Re: [Flashcoders] Smart Preloading

2009-04-17 Thread allandt bik-elliott (thefieldcomic.com)
or you could add everything to an external library file and load that with
your other assets



On Fri, Apr 17, 2009 at 12:28 PM, allandt bik-elliott (thefieldcomic.com) <
alla...@gmail.com> wrote:

> i must admit, i still add internal (non-added on frame 1) assets to a frame
> (after my preloader) and goto a frame after that when the xml, css, external
> assets etc are all loaded. It's probably frowned upon but it works and i've
> not found anything better
>
> a
>
>
> On Fri, Apr 17, 2009 at 8:07 AM, Dennis - I Sioux wrote:
>
>> Hey Allandt,
>>
>> Thanks for your reply.
>>
>> I already found that one.. it was linked to from the earlier mentioned
>> Greensock.
>> Seems like that one can't load mc's from the library aswell..
>>
>> I actually want to switch of the "load before 1st" .. and when entering a
>> new level.. load the level clips..(if not already loaded).
>>
>> The UILoader mentions that it can load mc's aswell (at the source
>> property).. but there isn't any example on how to do it.. and the logical
>> ways aren't working.
>>
>> Thanks
>>
>>
>> - Original Message - From: "allandt bik-elliott (
>> thefieldcomic.com)" 
>> To: "Flash Coders List" 
>> Sent: Thursday, April 16, 2009 5:42 PM
>>
>> Subject: Re: [Flashcoders] Smart Preloading
>>
>>
>>  there is something called bulkloader that i've seen used a few times but
>>> it
>>> might be a little surplus to requirements
>>>
>>> On Thu, Apr 16, 2009 at 3:56 PM, Glen Pike >> >wrote:
>>>
>>>  Sorry, it's a SWF preloader.  As for preloading clips in the library,
>>>> that's not what it's for..
>>>>
>>>>
>>>> Glen
>>>>
>>>> Dennis - I Sioux wrote:
>>>>
>>>>  Hey Glen,
>>>>>
>>>>> Greensock isn't for preloading movieclips right?
>>>>> The swf's own movieclips in his library..
>>>>>
>>>>> Or has it got an option for that?
>>>>>
>>>>> - Original Message - From: "Glen Pike" <
>>>>> g...@engineeredarts.co.uk
>>>>> >
>>>>> To: "Flash Coders List" 
>>>>> Sent: Thursday, April 16, 2009 4:03 PM
>>>>> Subject: Re: [Flashcoders] Smart Preloading
>>>>>
>>>>>
>>>>>  Hi,
>>>>>
>>>>>>
>>>>>>  There are a couple of sequential preloaders out there on the web - I
>>>>>> think greensock did on, but not 100% sure.
>>>>>>
>>>>>>  It's possible that you can use these preload a list of movie clips in
>>>>>> the background.  I wrote my own before finding queuing loader before
>>>>>> seeing
>>>>>> the others, so I don't know if they implement the same functionality:
>>>>>> to
>>>>>> interrupt the preloading queue when a specific "level" is requested
>>>>>> and put
>>>>>> the loading of that to the front of the queue.  If you are not
>>>>>> stopping the
>>>>>> things caching in the browser, you might take a small hit re-loading
>>>>>> the
>>>>>> required level if it has not reloaded, but that is all.
>>>>>>
>>>>>>  HTH a bit
>>>>>>
>>>>>>  Glen
>>>>>>
>>>>>>
>>>>>> Dennis - I Sioux wrote:
>>>>>>
>>>>>>  Hey,
>>>>>>>
>>>>>>> Tried to use a UILoader to check the bytes loaded of a single
>>>>>>> movieclip(in the library).. but this isn't working.
>>>>>>> Has anyone got a suggestion to check the loaded bytes of an mc?
>>>>>>>
>>>>>>> Thought the LoaderInfo only reffers to the mc's owner.
>>>>>>>
>>>>>>> Goal is to preload each game level seperately when it is needed.(if
>>>>>>> it
>>>>>>> hasn't loaded while playing the previous level yet).
>>>>>>>
>>>>>>> With kind regards,
>>>>>>>
>>>>>>> Dennis
>>>>>>> Isioux
>>>>>>> _

Re: [Flashcoders] Smart Preloading

2009-04-17 Thread allandt bik-elliott (thefieldcomic.com)
i must admit, i still add internal (non-added on frame 1) assets to a frame
(after my preloader) and goto a frame after that when the xml, css, external
assets etc are all loaded. It's probably frowned upon but it works and i've
not found anything better

a

On Fri, Apr 17, 2009 at 8:07 AM, Dennis - I Sioux  wrote:

> Hey Allandt,
>
> Thanks for your reply.
>
> I already found that one.. it was linked to from the earlier mentioned
> Greensock.
> Seems like that one can't load mc's from the library aswell..
>
> I actually want to switch of the "load before 1st" .. and when entering a
> new level.. load the level clips..(if not already loaded).
>
> The UILoader mentions that it can load mc's aswell (at the source
> property).. but there isn't any example on how to do it.. and the logical
> ways aren't working.
>
> Thanks
>
>
> - Original Message - From: "allandt bik-elliott (thefieldcomic.com)"
> 
> To: "Flash Coders List" 
> Sent: Thursday, April 16, 2009 5:42 PM
>
> Subject: Re: [Flashcoders] Smart Preloading
>
>
>  there is something called bulkloader that i've seen used a few times but
>> it
>> might be a little surplus to requirements
>>
>> On Thu, Apr 16, 2009 at 3:56 PM, Glen Pike > >wrote:
>>
>>  Sorry, it's a SWF preloader.  As for preloading clips in the library,
>>> that's not what it's for..
>>>
>>>
>>> Glen
>>>
>>> Dennis - I Sioux wrote:
>>>
>>>  Hey Glen,
>>>>
>>>> Greensock isn't for preloading movieclips right?
>>>> The swf's own movieclips in his library..
>>>>
>>>> Or has it got an option for that?
>>>>
>>>> - Original Message - From: "Glen Pike" <
>>>> g...@engineeredarts.co.uk
>>>> >
>>>> To: "Flash Coders List" 
>>>> Sent: Thursday, April 16, 2009 4:03 PM
>>>> Subject: Re: [Flashcoders] Smart Preloading
>>>>
>>>>
>>>>  Hi,
>>>>
>>>>>
>>>>>  There are a couple of sequential preloaders out there on the web - I
>>>>> think greensock did on, but not 100% sure.
>>>>>
>>>>>  It's possible that you can use these preload a list of movie clips in
>>>>> the background.  I wrote my own before finding queuing loader before
>>>>> seeing
>>>>> the others, so I don't know if they implement the same functionality:
>>>>> to
>>>>> interrupt the preloading queue when a specific "level" is requested and
>>>>> put
>>>>> the loading of that to the front of the queue.  If you are not stopping
>>>>> the
>>>>> things caching in the browser, you might take a small hit re-loading
>>>>> the
>>>>> required level if it has not reloaded, but that is all.
>>>>>
>>>>>  HTH a bit
>>>>>
>>>>>  Glen
>>>>>
>>>>>
>>>>> Dennis - I Sioux wrote:
>>>>>
>>>>>  Hey,
>>>>>>
>>>>>> Tried to use a UILoader to check the bytes loaded of a single
>>>>>> movieclip(in the library).. but this isn't working.
>>>>>> Has anyone got a suggestion to check the loaded bytes of an mc?
>>>>>>
>>>>>> Thought the LoaderInfo only reffers to the mc's owner.
>>>>>>
>>>>>> Goal is to preload each game level seperately when it is needed.(if it
>>>>>> hasn't loaded while playing the previous level yet).
>>>>>>
>>>>>> With kind regards,
>>>>>>
>>>>>> Dennis
>>>>>> Isioux
>>>>>> ___
>>>>>> Flashcoders mailing list
>>>>>> Flashcoders@chattyfig.figleaf.com
>>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  ___
>>>>> Flashcoders mailing list
>>>>> Flashcoders@chattyfig.figleaf.com
>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>
>>>>> __ NOD32 4013 (20090416) Informatie __
>>>>>
>>>>> Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
>>>>> http://www.nod32.nl
>>>>>
>>>>>
>>>>>
>>>>>  ___
>>>> Flashcoders mailing list
>>>> Flashcoders@chattyfig.figleaf.com
>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>
>>>>
>>>>
>>>>  ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>  ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> __ NOD32 4015 (20090417) Informatie __
>>
>> Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
>> http://www.nod32.nl
>>
>>
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best Tutorial Sites?

2009-04-17 Thread allandt bik-elliott (thefieldcomic.com)
Glen Pike wrote:
> gotoandlearn.com
>

<3

On Fri, Apr 17, 2009 at 10:59 AM, Cor  wrote:

> www.focusonflash.com
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony
> Pace
> Sent: donderdag 16 april 2009 22:57
> To: Flash Coders List
> Subject: Re: [Flashcoders] Best Tutorial Sites?
>
> http://www.8bitrocket.com/
>
>
>
> Glen Pike wrote:
> > gotoandlearn.com
> >
> > adobe's devnet site
> > http://www.adobe.com/devnet/
> >
> > kirupa.com
> >
> > sephiroth.it
> >
> > are a few ones I use quite a bit.
> >
> > Aurek Brillowski wrote:
> >> Re-acquainting myself to Flash.  Left off around v6 or the first MX.
> >> Can you possibly direct me to your favorite Flash cookbook tutorial
> >> sites these days?  Some of the old standbys appear rather antiquated
> >> and unused.
> >> I think I have the basic usage of the tool down.  I just feel I'm
> >> spending a lot of time reinventing the wheel here.  I've started a
> >> pretty good web search but I'm sure a few of you will have a few good
> >> sites that could help me separate the wheat from the chaff.
> >>
> >> Thanks much!
> >> ___
> >> Flashcoders mailing list
> >> Flashcoders@chattyfig.figleaf.com
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.287 / Virus Database: 270.11.58/2062 - Release Date: 04/16/09
> 08:12:00
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Tim Hawkins
Hi,
I've come across this a few times in my own code, but haven't seen it
mentioned online - though it's a difficult thing to google for.

In the following function, if the trace at the top is present, formData
traces a load of XML and select1 also traces a load of XML.

If I comment out the top trace, formData still traces the same pile of XML
but select1 traces null!

public function testMakeModelFilterWorks():void {

 trace("");
 default xml namespace  = NAMESPACE;

var select1:XML = formData..select1[2];
trace("formData=", formData);
 trace("select1:", select1);

// etc
default xml namespace = null;
}

Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me' at
the top of functions.
(I don't think it's a timing thing, if I put a 10-item
increment-a-variable loop in there instead of a trace the E4X still fails.)

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


RE: [Flashcoders] Best Tutorial Sites?

2009-04-17 Thread Cor
www.focusonflash.com


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
Sent: donderdag 16 april 2009 22:57
To: Flash Coders List
Subject: Re: [Flashcoders] Best Tutorial Sites?

http://www.8bitrocket.com/



Glen Pike wrote:
> gotoandlearn.com
>
> adobe's devnet site
> http://www.adobe.com/devnet/
>
> kirupa.com
>
> sephiroth.it
>
> are a few ones I use quite a bit.
>
> Aurek Brillowski wrote:
>> Re-acquainting myself to Flash.  Left off around v6 or the first MX.  
>> Can you possibly direct me to your favorite Flash cookbook tutorial 
>> sites these days?  Some of the old standbys appear rather antiquated 
>> and unused.
>> I think I have the basic usage of the tool down.  I just feel I'm 
>> spending a lot of time reinventing the wheel here.  I've started a 
>> pretty good web search but I'm sure a few of you will have a few good 
>> sites that could help me separate the wheat from the chaff.
>>
>> Thanks much!
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.287 / Virus Database: 270.11.58/2062 - Release Date: 04/16/09
08:12:00

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


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ian Thomas
Let's try that again - perhaps I wasn't clear.

I'm assuming - from your first email - you're using a flash.display.Loader?

Look for the property called contentLoaderInfo on the instance of your
Loader class.

Documentation here:
http://livedocs.adobe.com/flex/3/langref/flash/display/Loader.html#contentLoaderInfo

HTH,
  Ian


On Fri, Apr 17, 2009 at 10:26 AM, Karl DeSaulniers  wrote:
> That looked like it was going to work.
> Thanks for your response.
> It just told me there was no property called contentLoaderInfo in my class
> file.
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> On Apr 17, 2009, at 3:21 AM, Ian Thomas wrote:
>
>> myLoader.contentLoaderInfo.width
>> myLoader.contentLoaderInfo.height
>>
>>
>> HTH,
>>   Ian
>>
>> On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers 
>> wrote:
>>>
>>> Hello all,
>>> Quick question.
>>> I am using a loader class to load some preview images and I am trying to
>>> make a couple of variables eq the width and heigth of the preview once
>>> the
>>> class is done actually loading the image. I am running into a snag with
>>> the
>>> variables eq the holder MCs width and height after the image loads and
>>> not
>>> the loaded images w&h.
>>>
>>> What is the best way to get actual loaded images w&h and not the holder
>>> MCs
>>> w&h?
>>>
>>> Thanks for any help
>>>
>>> Karl
>>>
>>> Sent from losPhone
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

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


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Karl DeSaulniers

That looked like it was going to work.
Thanks for your response.
It just told me there was no property called contentLoaderInfo in my  
class file.


Karl DeSaulniers
Design Drumm
http://designdrumm.com

On Apr 17, 2009, at 3:21 AM, Ian Thomas wrote:


myLoader.contentLoaderInfo.width
myLoader.contentLoaderInfo.height


HTH,
   Ian

On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers  
 wrote:

Hello all,
Quick question.
I am using a loader class to load some preview images and I am  
trying to
make a couple of variables eq the width and heigth of the preview  
once the
class is done actually loading the image. I am running into a snag  
with the
variables eq the holder MCs width and height after the image loads  
and not

the loaded images w&h.

What is the best way to get actual loaded images w&h and not the  
holder MCs

w&h?

Thanks for any help

Karl

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


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


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


Re: [Flashcoders] Just a quick one

2009-04-17 Thread Ian Thomas
myLoader.contentLoaderInfo.width
myLoader.contentLoaderInfo.height


HTH,
   Ian

On Fri, Apr 17, 2009 at 6:09 AM, Karl DeSaulniers  wrote:
> Hello all,
> Quick question.
> I am using a loader class to load some preview images and I am trying to
> make a couple of variables eq the width and heigth of the preview once the
> class is done actually loading the image. I am running into a snag with the
> variables eq the holder MCs width and height after the image loads and not
> the loaded images w&h.
>
> What is the best way to get actual loaded images w&h and not the holder MCs
> w&h?
>
> Thanks for any help
>
> Karl
>
> Sent from losPhone
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to smooth bitmap?

2009-04-17 Thread Karl DeSaulniers

I am sorry I forgot I can not post files to the list.
my apologies, I am new to the list... :D

Here is the code. Make an .as file with this in it:

//-- Start Code

import flash.display.BitmapData;

/**
 * Class to load images with that will be automatically smoothed,  
workaround for the Flash Player 8 non smoothing 'feature' for loaded  
images

 * @author Martijn de Visser
 * @usage
 * 1. var loader:ImageLoader = new ImageLoader(this);
 * 2. loader.loadImage( “some_image.jpg”, some_mc );
 */
class com.martijndevisser.ImageLoader {

private var mLoader:MovieClipLoader;

public function ImageLoader(targetMc:MovieClip) {
targetMc.mcLoader = new MovieClipLoader();
mLoader = targetMc.mcLoader;
addListener(this);
}
/**
 * Pass along any events from internally used MovieClipLoader
 */
public function addListener(inListener:Object) {

mLoader.addListener(inListener);
}
public function removeListener(inListener:Object) {

mLoader.removeListener(inListener);
}
/**
 * Triggered by MovieClipLoader
 */
private function onLoadInit(inTarget:MovieClip):Void {

// create new BitMap data object and
// draw the loaded bitmap in new bitmap
		var bitmap:BitmapData = new BitmapData(inTarget._width,  
inTarget._height, true, 0x00);

bitmap.draw(inTarget);

// create a new movieclip to display the bitmap with
var parent:MovieClip = inTarget._parent;
		var img:MovieClip = parent.createEmptyMovieClip 
("imageloader_smooth_mc", parent.getNextHighestDepth());


// remove original bitmap
inTarget.unloadMovie();
inTarget.removeMovieClip();
delete inTarget;

// draw BitMap in new clip, using the 'smoothing' flag
img.attachBitmap(bitmap,img.getNextHighestDepth(),"auto",true);
}
/**
 * Starts loading an image.
 */
var mProgress:Number;
public function loadImage(inImage:String, inTarget:MovieClip):Void {

// create mc to load bitmap in
		var raw:MovieClip = inTarget.createEmptyMovieClip 
("imageloader_raw_mc", inTarget.getNextHighestDepth());


// start loader
mLoader.loadClip(inImage,raw);
}
/**
 * @return Package and class name
 */
public function toString():String {
return "ImageLoader";
}
}

//- End of code

Karl DeSaulniers
Design Drumm
http://designdrumm.com

On Apr 17, 2009, at 1:41 AM, Karl DeSaulniers wrote:


You could try this one.
This is an imageLoader class that smooths dynamic images.
Dont know about the whole security issue though.
This loads the initial image into a MC, then deletes it, then draws  
the bitmap into another MC.

GL

By martijndevisser.



Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Apr 17, 2009, at 12:36 AM, Pavel Repkin wrote:


Yes, I can, it does not work either :-(

On Wed, Apr 15, 2009 at 7:48 PM, Anthony Pace  
wrote:


Can you put the bitmap inside a movie clip, and get pixel data  
from a

parent to make a new bitmapdata object?

It seems like that would enable you to get around that problem;  
yet, again,
I haven't played with this, nor do I have time to unfortunately,  
so I am not

sure.


Pavel Repkin wrote:


Thanks, I've already written this code by myself.

Unfortunately, it does not work because of security issues.
You are not allowed to use BitmapData.draw to retrieve pixels  
containing

media from a domain other than your own.


On Mon, Apr 13, 2009 at 8:34 PM, Ian Thomas  wrote:




Alternatively, just copy the bitmap and smooth it:

http://code.awenmedia.com/node/27

HTH,
  Ian

On Sat, Apr 11, 2009 at 3:16 PM, Pavel Repkin  


wrote:



Hey!

I have a bitmap image loaded from external site (Facebook user  
avatar).
Its size is 50x50 pixels and it looks very pixelated when the  
Flash

Stage
size changes.
The image would look much better if it was smoothed.

But, smoothing does not work for images loaded from external  
domains.

MovieClip.forceSmoothing = true just does not work.
However if the image resides on the same server as the script,  
smoothing

works like a charm.

Do you know how can I smooth the bitmap?
Is it possible?

AS 2.0, FP 9.0

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




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




___
F

Re: [Flashcoders] Smart Preloading

2009-04-17 Thread Dennis - I Sioux

Hey Allandt,

Thanks for your reply.

I already found that one.. it was linked to from the earlier mentioned 
Greensock.

Seems like that one can't load mc's from the library aswell..

I actually want to switch of the "load before 1st" .. and when entering a 
new level.. load the level clips..(if not already loaded).


The UILoader mentions that it can load mc's aswell (at the source 
property).. but there isn't any example on how to do it.. and the logical 
ways aren't working.


Thanks


- Original Message - 
From: "allandt bik-elliott (thefieldcomic.com)" 

To: "Flash Coders List" 
Sent: Thursday, April 16, 2009 5:42 PM
Subject: Re: [Flashcoders] Smart Preloading


there is something called bulkloader that i've seen used a few times but 
it

might be a little surplus to requirements

On Thu, Apr 16, 2009 at 3:56 PM, Glen Pike 
wrote:



Sorry, it's a SWF preloader.  As for preloading clips in the library,
that's not what it's for..


Glen

Dennis - I Sioux wrote:


Hey Glen,

Greensock isn't for preloading movieclips right?
The swf's own movieclips in his library..

Or has it got an option for that?

- Original Message - From: "Glen Pike" 

>
To: "Flash Coders List" 
Sent: Thursday, April 16, 2009 4:03 PM
Subject: Re: [Flashcoders] Smart Preloading


 Hi,


  There are a couple of sequential preloaders out there on the web - I
think greensock did on, but not 100% sure.

  It's possible that you can use these preload a list of movie clips in
the background.  I wrote my own before finding queuing loader before 
seeing
the others, so I don't know if they implement the same functionality: 
to
interrupt the preloading queue when a specific "level" is requested and 
put
the loading of that to the front of the queue.  If you are not stopping 
the
things caching in the browser, you might take a small hit re-loading 
the

required level if it has not reloaded, but that is all.

  HTH a bit

  Glen


Dennis - I Sioux wrote:


Hey,

Tried to use a UILoader to check the bytes loaded of a single
movieclip(in the library).. but this isn't working.
Has anyone got a suggestion to check the loaded bytes of an mc?

Thought the LoaderInfo only reffers to the mc's owner.

Goal is to preload each game level seperately when it is needed.(if it
hasn't loaded while playing the previous level yet).

With kind regards,

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





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

__ NOD32 4013 (20090416) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl




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




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


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

__ NOD32 4015 (20090417) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl




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