Re: [Flashcoders] AIR native extension - Windows debugging

2014-09-08 Thread James Merrill
Oh it is a spaghetti mix of code. But that's not necessarily evil.

Think about it this way, you're not really supposed to be mixing them, they
are supposed to be complimenting each other.

Your HTML defines your content, and that's it.
Your CSS adds fonts, colors, positioning, and simple interactivity, that's
it.
Your JS adds logic to your project.

So you're not actually mixing everything together, you're leveraging each
one to add an integral piece to your project. You may take on all these
jobs yourself, or you may not. Some companies have frontend developers who
do HTML/CSS and dedicated Javascript developers to only do JS. It's a
different way of thinking than using one platform for everything.

It can be unnerving trying to keep up with all of the new JS frameworks
that are constantly coming up, and even worse trying to integrate them all.
Trust me, I get paid to do it. Fortunately there's a massive community to
fall back on when it comes to troubleshooting.

If you're building Flex apps you'd definitely like Angular, which you would
use with Cordova to publish to iPad. Basically, Cordova is part of
Phonegap, which is a build system for deploying to mobile devices. Phonegap
will wrap your code in a native app with a web view, so it's essentially a
website being viewed in an app. Cordova is a javascript library that
exposes all the native APIs of iOS/Android, so now your app can do much
more than a website. I have used XCode on a Mac to test my Phonegap apps.
IIRC, the native wrapper isn't changing, only the internal HTML/CSS/JS, so
you don't have to compile like you would with a native app. I also used
this to my advantage by building parts of the app in-browser.

You could use Angular to structure your app in a MVC-like pattern, and then
use Phonegap to deploy it.

Also, I've switched to using Sublime Text 3 as my editor of choice, and I
can't recommend it enough.

Hopefully that helps!



On Mon, Sep 8, 2014 at 12:04 PM, John McCormack 
wrote:

> James,
>
> I would prefer to avoid learning a handful of applications, if possible,
> though I did follow your link and subscribe to the channel. Thank you.
>
> It sounds such a spaghetti mix one has to learn before even attempting to
> write the app:
> JS + CSS + HTML5 +Angular +Reactjs +Cordova
>
> Flash Builder can publish an app straight to the tablet, how does one go
> about the with the combination you use?
>
> You used to be interested in IntelliJ - is that the IDE you settled on?
>
> On Flash Builder:
> Today I asked Adobe for the upgrade price to Flash Builder 4.7 Premium but
> the guy didn't know if was kept up-to-date as the CC version is.
>
> One Adobe's site the forum has one recent post and the rest are from weeks
> ago, so no clue there about what, if anything is happening.
>
> What IDE's are other people using?
>
> John
>
>
> On 08/09/2014 15:50, James Merrill wrote:
>
>> I was one of those Flash evangelists that fought the good fight against
>> HTML/JS/CSS for years And I can remember when the iPhone was launched
>> almost 8 years ago and everyone called it the death of Flash.
>>
>> You can debate the merits of Steve Jobs' comments on Flash all day, but
>> the
>> damage was done, 8 years ago.
>>
>> In the last 2-3 years amazing things have been cultivated in JS/CSS/HTML5.
>> We now have two-way data binding with Angular, and responsive CSS to
>> handle
>> all devices out there. We have something kind of like Starling for the DOM
>> called Reactjs. Building RIA's has never been easier, and frameworks like
>> Cordova allow them to be published to not only the web, but mobile devices
>> too.
>>
>> There's been a ton of innovation with how we build websites and apps in
>> HTML, and things are getting more exciting with a stronger focus on
>> animation and interactivity <https://www.youtube.com/watch?v=Q8TXgCzxEnw
>> >.
>>
>> There's a  unified force in the community pushing new features for us
>> developers to use. I have to wonder how this compares to the Flash
>> community. Is Adobe adding new features? Are there new frameworks coming
>> out that redefine Flash development as we know it?
>>
>> Flash does a lot of things very well, but I wonder how much longer can it
>> be relevant without major support from Adobe. I'm sure there's still jobs
>> out there for Flash devs, but I'd have to imagine the pool is getting
>> smaller.
>>
>>
>>
>>
>> On Sun, Sep 7, 2014 at 12:26 PM, John McCormack 
>> wrote:
>>
>>  That's really encouraging.
>>> Great!
>>> Thanks
>>>
>>>

Re: [Flashcoders] AIR native extension - Windows debugging

2014-09-08 Thread James Merrill
I was one of those Flash evangelists that fought the good fight against
HTML/JS/CSS for years And I can remember when the iPhone was launched
almost 8 years ago and everyone called it the death of Flash.

You can debate the merits of Steve Jobs' comments on Flash all day, but the
damage was done, 8 years ago.

In the last 2-3 years amazing things have been cultivated in JS/CSS/HTML5.
We now have two-way data binding with Angular, and responsive CSS to handle
all devices out there. We have something kind of like Starling for the DOM
called Reactjs. Building RIA's has never been easier, and frameworks like
Cordova allow them to be published to not only the web, but mobile devices
too.

There's been a ton of innovation with how we build websites and apps in
HTML, and things are getting more exciting with a stronger focus on
animation and interactivity <https://www.youtube.com/watch?v=Q8TXgCzxEnw>.
There's a  unified force in the community pushing new features for us
developers to use. I have to wonder how this compares to the Flash
community. Is Adobe adding new features? Are there new frameworks coming
out that redefine Flash development as we know it?

Flash does a lot of things very well, but I wonder how much longer can it
be relevant without major support from Adobe. I'm sure there's still jobs
out there for Flash devs, but I'd have to imagine the pool is getting
smaller.




On Sun, Sep 7, 2014 at 12:26 PM, John McCormack 
wrote:

> That's really encouraging.
> Great!
> Thanks
>
>
> On 07/09/2014 02:13, Rick wrote:
>
>> AIR app installs cross a billion - April 2014
>>   "now powers almost a hundred thousand unique applications on desktops
>> and mobile devices.
>>
>> http://blogs.adobe.com/flashplayer/2014/04/air-app-
>> installs-cross-a-billion.html
>>
>> It's such a great platform still - I've been using it to make ios apps
>> with good results. The weakness is how it is perceived. But clients do
>> smile at the reduced developer costs and its great capabilities. If only
>> adobe would hire an a-list PR firm to change the perception to match the
>> reality.
>>
>>  Date: Sat, 6 Sep 2014 20:18:12 +0100
>>> From: j...@easypeasy.co.uk
>>> To: flashcoders@chattyfig.figleaf.com
>>> Subject: Re: [Flashcoders] AIR native extension - Windows debugging
>>>
>>> Good point.
>>> Thanks
>>> John
>>>
>>> On 05/09/2014 21:43, Henrik Andersson wrote:
>>>
>>>> The problem here is developers not stating what runtime they use for
>>>> their apps. What can be done is checking existing apps for obvious signs
>>>> of the runtime. Shouldn't take long for someone to crawl the appstore
>>>> and check all the apps for the fingerprint of the runtime.
>>>>
>>>> John McCormack skriver:
>>>>
>>>>> There may have been some merit in Apple's battery argument since
>>>>> greater cpu activity, for Flash's vector format, might incur a greater
>>>>> energy cost.
>>>>>
>>>>> Although Flash is having a hard time I was thinking more of using AIR,
>>>>> which I think has more life left in it.
>>>>>
>>>>> The thing is, I have no idea how active developers are with app's
>>>>> delivered via AIR.
>>>>> Are there many AIR app's being produced?
>>>>>
>>>>>
>>>>>  ___
>>>> 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
>



-- 
James Merrill
toThePixel.com <http://www.toThePixel.com>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Pulling data from social media

2014-08-27 Thread James Merrill
Instagram uses JSON formatting for their API too. Depending on the data you
want to retrieve, you may need to use OAuth. Fortunately they make it
pretty easy.

Have you considered using PHP to fetch the data you need, and then convert
it from JSON to XML? It may be easier to deal with.

http://stackoverflow.com/questions/856833/is-there-some-way-to-convert-json-to-xml-in-php


On Tue, Aug 26, 2014 at 5:59 PM, John R. Sweeney Jr.  wrote:

> Hi,
>
> So one else has any experience with Pinterest or Instagram?
>
> Thanks,
> John
>
> John R. Sweeney Jr.
> Senior Interactive Multimedia Developer
> OnDemand Interactive Inc
> Hoffman Estates, IL 60169
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
James Merrill
toThePixel.com <http://www.toThePixel.com>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-22 Thread James Merrill
>
> > >> I use SWFObject to attempt to write the flash SWF, and put our html5
> > >> rendering code into the callback after the attempt, if the flash
> failed
> > to
> > >> write.
> > >>
> > >>
> > >>
> > >> On Jul 21, 2014, at 1:57 AM, natalia Vikhtinskaya <
> > natavi.m...@gmail.com>
> > >> wrote:
> > >>
> > >>> Thank you very much for this link. But I need a bit different. If
> > browser
> > >>> support HTML5 and Flash it should play Flash. Only platforms that
> does
> > >> not
> > >>> support Flash should play video.
> > >>>
> > >>>
> > >>> 2014-07-20 21:55 GMT+04:00 Ruben Quintana  >:
> > >>>
> > >>>>
> http://coolestguidesontheplanet.com/use-html-5-video-on-all-browsers/
> > >>>>
> > >>>>
> > >>>>
> > >>>> On Sun, Jul 20, 2014 at 12:05 PM, natalia Vikhtinskaya <
> > >>>> natavi.m...@gmail.com> wrote:
> > >>>>
> > >>>>> I need play video only for iPad and other devices that does not
> > support
> > >>>>> Flash. Does this code do that?
> > >>>>>
> > >>>>>
> > >>>>> 2014-07-20 19:51 GMT+04:00 Micky Hulse  >:
> > >>>>>
> > >>>>>> On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya
> > >>>>>>  wrote:
> > >>>>>>> I tested on Windows - just blank page. It seems  does not like
> > >>>>>>> style="display:none" but I don't know another solition.
> > >>>>>>
> > >>>>>> I typically use:
> > >>>>>>
> > >>>>>>  > >>>> controls>
> > >>>>>>   
> > >>>>>>   
> > >>>>>>   
> > >>>>>>   ... Flash fallback goes here ...
> > >>>>>> 
> > >>>>>>
> > >>>>>> You'll have to change width/height to match video.
> > >>>>>>
> > >>>>>> This app is great for converting your source to diff formats:
> > >>>>>>
> > >>>>>> <http://www.mirovideoconverter.com/>
> > >>>>>> ___
> > >>>>>> 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
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
James Merrill
toThePixel.com <http://www.toThePixel.com>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash to HTML

2014-06-19 Thread James Merrill
I would really consider saying no to that request, and suggesting a rebuild
that uses modern web standards. There are a lot of web optimizations that I
would almost guarantee an export wouldn't consider... You'd definitely want
to be lazy loading a lot of those assets so the preloading is reasonable.
Ultimately, do you want to be refactoring and fixing AS3 code that Adobe
will hopefully support in the future, or dealing with loads of Javascript.
It's a tough choice :/


On Thu, Jun 19, 2014 at 4:31 PM, John R. Sweeney Jr.  wrote:

> Has anyone played with this? Everything I’ve read, timeline animations can
> get converted and simple code. I have a 5 frame app that has 50 layers,
> 1000+ library elements and thousands of lines of code that the client now
> wants to go online for all platforms. What a surprise. ;)
>
> I’ll look into the latest update more closely, but was just wondering of
> things like Google Swiffy had gotten better or something else had come
> along. I’ll glad do the research, just wonder if anyone could point me in a
> direction.
>
> Thanks,
> John
>
> John R. Sweeney Jr.
> Senior Interactive Multimedia Developer
> OnDemand Interactive Inc
> Hoffman Estates, IL 60169
>
>
>
>
> On Jun 19, 2014, at 3:19 PM, Merrill, Jason <
> jason.merr...@bankofamerica.com> wrote:
>
> > New version of Flash just came out that claims to export to HTML5 Canvas
> and do Actionscript to Javascript translations. Worth checking out?
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
James Merrill
toThePixel.com <http://www.toThePixel.com>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Mailing Lists and Tools

2013-05-23 Thread James Merrill
I've been moving to StackOverflow for questions, and Reddit's coding
subreddits for general programming discussion  Here's a URL that bundles a
bunch of good programming subreddits:
http://www.reddit.com/r/webdev+web_design+html+css+programming+learnprogramming+design+ProgrammerHumor+html5

As for an IDE, I would highly discourage you from using Dreamweaver. There
are much better tools that are cheap/free. I am currently using Aptana,
which is Eclipse based and contains tons of helpful features. I am moving
towards using SublimeText as my primary IDE. It's extremely streamlined and
elegant, and I highly suggest checking it out. Adobe has been working on an
IDE called Brackets that looks pretty cool too.




On Thu, May 23, 2013 at 11:06 AM, Kerry Thompson wrote:

> I've found Dreamweaver to be a good tool for HTML5. when you get JavaScript
> under your belt, take a look at JQuery. it will save you a lot of
> development time.
>
> Mailing lists are pretty quiet these days. I don't know where the
> programmers congregate, but my colleagues in the French Horn world have
> moved to a Facebook group.
>
> Cordially,
>
> Kerry Thompson
> On May 23, 2013 9:52 AM, "Bryan Thompson"  wrote:
>
> > I know many developers are migrating towards HTML5/CSS/JavaScript. Google
> > reveals a multitude of results for mailing lists.  I hope to take
> advantage
> > of the experience on this list to get some advice on good quality lists
> > like
> > this one.  I also would like recommendations for (Windows) IDE's for
> > JavaScript, or general HTML5 development including all the supporting
> > languages. I have Dreamweaver, but that seems a bit of overkill for a
> > developer.
> >
> > Thanks in advance guys!
> >
> >
> >
> > Bryan Thompson
> >
> > ___
> > 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
>



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


Re: [Flashcoders] Adobe Flash future

2013-05-09 Thread James Merrill
Thanks for the link Mike, it seems that CreateJS is definitely a step in
the right direction.

I'm still not sold on Adobe's EDGE suite though... I am afraid that I'll
always be skeptical of generated HTML after seeing Dreamweaver's design
view. I also know from experience that including Adobe Edge's javascript
libraries in filesize sensitive contexts will really limit your options.
These things make me worried that there may never be a competent,
visual-based IDE for HTML... which would be a major step backwards from the
glory days of Flash.






On Thu, May 9, 2013 at 12:27 PM, Jon Bradley wrote:

> Nice to see you're still lurking, mesh :)
>
> CreateJS looks interesting and I've toyed with it a bit. Some of the new
> integration opportunities with Flash CC will be interesting to check out.
> However, it'll be primarily a toy and best for demo work until (and if)
> Adobe can create a clear professional solution for the development of
> creative application apps in HTML.
>
> Edge tooling doesn't cut it for robust, performant and maintainable code –
> at least not even close to the same ballpark as those in the space had with
> Flex/Flash. There's some interesting things going on there though.
>
> -j
>
>
>
> On May 9, 2013, at 12:18 PM, Mike Chambers wrote:
>
> > Check out CreateJS:
> >
> > http://www.createjs.com/
> >
> > Includes the ability to export from Flash Pro.
> >
> > mike chambers
> >
> > m...@adobe.com
> >
> > On May 8, 2013, at 8:30 AM, "Liu, Peter"  wrote:
> >
> >> Why can't Adobe make HTML5 as one of the publishing options, then we
> can continue to use Flash without the need to learn another program?
> >
> >
> > ___
> > 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
>



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


Re: [Flashcoders] Adobe Flash future

2013-05-09 Thread James Merrill
>From my perspective as a former Flash Developer at an Ad agency, I can't
imagine us getting any more serious Flash work. These days we still use
Flash for banner ads, but that's it. We've tried using Adobe Edge to do
HTML5 banners, but it was an awful experience. I rest ALL of my blame on
Adobe for both of these situations, not the underlying technologies.

If you're betting on Adobe, you're going to lose. They've royally screwed
up how they handled this whole Flash fiasco in the last five years. I have
ZERO faith in their Edge HTML5 platform, and I suggest that you don't buy
the hype. Adobe makes good designs software, and that's it.

As AS3 Flash developers, we understand the complexities of RIA's much
better than your average Javascript programmer. We've been doing "AJAX" far
before it was popularized in mainstream web development. It was sendAndLoad
to us in AS2. We understand animation, interactivity, and user experience
much more than most. That's our strength, and it transcends Flash. A lot of
you may not believe me, but it's becoming a reality that you can make Flash
quality experiences in modern browsers.

As for coding HTML5/CSS/JS in an opensource IDE with Greensock JS, Angular,
or even Jquery, it's getting better. Javascript is not as elegant as AS3,
actually it's more akin to AS2... But progress is being made with new
releases of ECMAScript, and MV* frameworks like Backbone and Angular.

I miss the good ole days of Flash... But times are exciting as a web
developer, I've found some comfort in embracing the change.



On Wed, May 8, 2013 at 3:42 PM, Kevin Newman  wrote:

> On 5/8/13 2:20 PM, John R. Sweeney Jr. wrote:
>
>> Please tell me another software that I can build an app that runs on
>> PC/MAC/Linux/iPad/Android/Web (non-mobile)?
>>
> NME / haXe, or with a bit of additional work, Xamarin (with the various
> Mono ports) - or Unity3D - based on the same tech. There are dozens of
> C/C++ based cross platform frameworks as well - Cocos2D, MarmaladeSDK, etc.
> Some scripting engines, CoronaSDK, LoomScript, etc. I still think Flash has
> an edge (except maybe over Xamarin), but tell that to Adobe.
>
> I wish Adobe was as enthusiastic about defending Flash as you are. That
> would go a long way toward convincing potential buyers, that the platform
> isn't going to evaporate tomorrow. As I said in another post - Flash and
> AIR are great tech, but Adobe's public support is nonexistent, which is
> sad, because it wouldn't take much.
>
> Kevin N.
>
>
> __**_
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.**com 
> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>



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


Re: [Flashcoders] iOS picker component for AIR

2012-06-19 Thread James Merrill
Sid, you might be able to use Native Extensions to pull up the iOS picker.
I also tried to replicate the native picker with little success. I would
find it very hard to believe that a AS3 based alternative will work
smoothly, given the performance issues apparent in much simpler things in
Flash iOS.



On Tue, Jun 19, 2012 at 2:25 PM, Sidney de Koning wrote:

> Hi Ivan,
>
> Thanks for your reply, but i actually meant an different kind of picker.
> More along the lines of iOS native date picker component:
> http://www.techotopia.com/images/8/88/Ios_4_date_picker.jpg
>
> Thoughts anyone?
>
> Best,
> Sid
>
>
> --
> Sidney de Koning - "Be a geek, rockstar style!"
> Read my blog: http://www.funky-monkey.nl (http://www.funky-monkey.nl/blog/
> )
>
>
> On Tuesday 19 June 2012 Week 25 at 20:11, Ivan Dembicki wrote:
>
> > Hi,
> >
> > http://code.google.com/p/as3colorpicker/
> >
> >
> > --
> > Ivan Dembicki
> > http://realaxy.com
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com (mailto:
> 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
>



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


[Flashcoders] Game programmers wanted (also recommendations for same)

2012-03-31 Thread James Salsman
I'm looking for Flash game programmers open to freelance work. Please
send resume, portfolio URL, and any information regarding your games'
popularity statistics you might have to ga...@talknicer.com

Also, I'm very interested in recommendations of game programmers who
might be open to contract work, even if they are not on this list. Who
are the biggest names in Flash game freelancers? Please let me know.

Some sites such as addictinggames.com name authors but make it hard to
reach them directly. What are the best sites for hiring Flash game
creators?

Thanks!

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


Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-24 Thread James Merrill
Have you guys given Adobe edge a try? It's like Flash MX, without easily
accessible fonts or drawing tools...

My fear is that handwriting HTML will always be cleaner and more structured
than using an IDE. Imagine building a robust web application with tons of
animation in Edge... It just seems impossible, where as Flash made it easy.



On Thu, Feb 23, 2012 at 3:57 PM, Karl DeSaulniers wrote:

> +1
>
>
> On Feb 23, 2012, at 10:49 AM, Kevin Newman wrote:
>
>  There is this idea that was articulated by an old timer - an ex-bank CEO
>> - on Bill Moyer's show a few weeks ago, that companies and running
>> companies used to be about product and solving customers' problems - great
>> loan products if you are are a banker, or Flash and great tools if you run
>> Adobe. But these days business culture has changed to be primarily about
>> profit, to the point where you actually get Kudos for gloating about how
>> much money you were able to stock pile this quarter, instead of what great
>> products you created, or how many customers you satisfied.
>>
>> This is a sad state of affairs that affects more than just Adobe, though
>> they seem to have slipped into that black hole of profit gloating just like
>> so many other American corporations. And the CEOs probably get real social
>> kudos for that money gloating at their cocktail parties.
>>
>> Personally, I'll stay focused on products and customers, and hope that's
>> enough to help change the culture back. I'm pretty much at the bottom of
>> the totem pole though. I can only hope these old ideas will see some kind
>> of revival at that corporate board and CEO level of American culture.
>>
>> Kevin N.
>>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> __**_
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.**com 
> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>



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


Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread James Merrill
I haven't personally tried WebGL. I have seen tests though that show it's
faster than Flash. However, there aren't any major frameworks like we have
for Flash Stage3D. I am sure that will change in time though. I don't know
if it's a safe bet that Flash will win out over HTML5 with 3D.

In regards to development speed, Flash definitely kicks ass. It's
unquestionably faster to develop it, and AS3 is IMO, a superior language to
JS. This is what hangs me up the most. I want to use AS3 for Web
Development, but it doesn't look like that's going to be viable for much
longer.

Javascript doesn't support classes, but you can "hack" in public in
private variables by playing around with object scope. It's not a very
ideal situation.

@Matt
I should have pointed out that there are some Flash elements on that site.
The HTML page transitions are ridiculous though.

On Wed, Feb 22, 2012 at 3:04 PM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> Have you tried building an interactive 3D environment in Javascript/HTML5?
>  There is 3D capability out there, but most of the examples I have seen
> have been ports from C++ code. Just because there is a trend towards
> something, and it's possible to do something with a new tech, doesn't make
> it the best option. Most of my friends in the interactive space tell me
> while they can do most "Flash like" stuff in HTML 5/Canvas/CSS3/Javascript,
> it takes about three times longer than it does in Flash/Flex/Actionscript
> and they don't get the same OOP benefits when programming.
>
>  Jason Merrill
>  Instructional Technology Architect II
>  Bank of America  Global Learning
>
>
>
>
>
> ___
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of James Merrill
> Sent: Wednesday, February 22, 2012 2:53 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Flash Platform roadmap released - time to start
> learning HTML 5 unless you make games.
>
> I'm going to play devils advocate here for a second.
>
> The whole browser compatibility aspect of HTML is diminishing, modern
> browsers are constantly updated without having to re-download them. In a
> couple of years, it won't be a problem.
>
> Another major concern of mine was seeing this site:
> http://www.nikechosenseries.com/
>
> That's basically Flash quality, with SEO, linking, native scroll, all the
> goodies from HTML. Once it becomes easy to develop sites like that, I can't
> see why using Flash would be better.
>
>
>
>
> On Wed, Feb 22, 2012 at 2:41 PM, Creighton, Gerry <
> gcreigh...@discmakers.com
> > wrote:
>
> > Except that you need a certain level of browser to handle HTML5.
> > That's the bummer, it'll Take some time to get more people on board.
> >
> > -Gerry
> >
> > On 2/22/12 2:24 PM, "James Merrill"  wrote:
> >
> > >" When HTML5 can do what I can do in AS3, I'll consider it.  :) "
> > >
> > >What exactly are you referring to? I have very few examples of things
> > >that Flash can do that HTML5/CSS3/JS cant do these days. At my agency
> > >Flash is being utilized for banner ads, and that's it. Every cool,
> > >animated website we do these days is built in HTML. I am seriously
> > >afraid to start developing for mobile, because the second a client
> > >asks for some functionality that requires Native Extensions to work,
> > >I'll be totally SOL.
> > >
> > >Wouldn't it be such a nice world if JS was revised with ECMAScript 4?
> > >It's unfortunate that it will never happen.
> > >
> > >
> > >
> > >On Wed, Feb 22, 2012 at 2:06 PM, Ima Newsletta
> > >wrote:
> > >
> > >> At last, Adobe showed us that is alive.
> > >>
> > >>
> > >> Il 22/02/2012 20:01, John R. Sweeney Jr. ha scritto:
> > >>
> > >>  When HTML5 can do what I can do in AS3, I'll consider it.  :)
> > >>>
> > >>> John
> > >>>
> > >>> John R. Sweeney Jr.
> > >>> Senior Interactive Multimedia Developer OnDemand Interactive Inc
> > >>> Hoffman Estates, IL 60169
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> On Feb 22, 2012, at 12:50 PM, James Merrill wrote:
> > >>>
> > >>>
> > >>>http://www.adobe.com/devnet/**flashplatform/whitepapers/*

Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread James Merrill
I'm going to play devils advocate here for a second.

The whole browser compatibility aspect of HTML is diminishing, modern
browsers are constantly updated without having to re-download them. In a
couple of years, it won't be a problem.

Another major concern of mine was seeing this site:
http://www.nikechosenseries.com/

That's basically Flash quality, with SEO, linking, native scroll, all the
goodies from HTML. Once it becomes easy to develop sites like that, I can't
see why using Flash would be better.




On Wed, Feb 22, 2012 at 2:41 PM, Creighton, Gerry  wrote:

> Except that you need a certain level of browser to handle HTML5. That's
> the bummer, it'll
> Take some time to get more people on board.
>
> -Gerry
>
> On 2/22/12 2:24 PM, "James Merrill"  wrote:
>
> >" When HTML5 can do what I can do in AS3, I'll consider it.  :) "
> >
> >What exactly are you referring to? I have very few examples of things that
> >Flash can do that HTML5/CSS3/JS cant do these days. At my agency Flash is
> >being utilized for banner ads, and that's it. Every cool, animated website
> >we do these days is built in HTML. I am seriously afraid to start
> >developing for mobile, because the second a client asks for some
> >functionality that requires Native Extensions to work, I'll be totally
> >SOL.
> >
> >Wouldn't it be such a nice world if JS was revised with ECMAScript 4? It's
> >unfortunate that it will never happen.
> >
> >
> >
> >On Wed, Feb 22, 2012 at 2:06 PM, Ima Newsletta
> >wrote:
> >
> >> At last, Adobe showed us that is alive.
> >>
> >>
> >> Il 22/02/2012 20:01, John R. Sweeney Jr. ha scritto:
> >>
> >>  When HTML5 can do what I can do in AS3, I'll consider it.  :)
> >>>
> >>> John
> >>>
> >>> John R. Sweeney Jr.
> >>> Senior Interactive Multimedia Developer
> >>> OnDemand Interactive Inc
> >>> Hoffman Estates, IL 60169
> >>>
> >>>
> >>>
> >>>
> >>> On Feb 22, 2012, at 12:50 PM, James Merrill wrote:
> >>>
> >>>
> >>>http://www.adobe.com/devnet/**flashplatform/whitepapers/**roadmap.html
>  >>>ttp://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html>
> >>>>
> >>>> A new version of AS3 will be nice, it's just too bad no one wants
> >>>>Flash
> >>>> anymore. Flash player is basically dead in the water, with its future
> >>>> usage
> >>>> being hardcore gaming. How many of you guys/gals are doing that?
> >>>>
> >>> __**_
> >>> Flashcoders mailing list
> >>> Flashcoders@chattyfig.figleaf.**com  >
> >>>
> >>>http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<
> http://chatt
> >>>yfig.figleaf.com/mailman/listinfo/flashcoders>
> >>>
> >>
> >> __**_
> >> Flashcoders mailing list
> >> Flashcoders@chattyfig.figleaf.**com 
> >>
> >>http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<
> http://chatty
> >>fig.figleaf.com/mailman/listinfo/flashcoders>
> >>
> >
> >
> >
> >--
> >James Merrill
> >___
> >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
>



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


Re: [Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread James Merrill
" When HTML5 can do what I can do in AS3, I'll consider it.  :) "

What exactly are you referring to? I have very few examples of things that
Flash can do that HTML5/CSS3/JS cant do these days. At my agency Flash is
being utilized for banner ads, and that's it. Every cool, animated website
we do these days is built in HTML. I am seriously afraid to start
developing for mobile, because the second a client asks for some
functionality that requires Native Extensions to work, I'll be totally SOL.

Wouldn't it be such a nice world if JS was revised with ECMAScript 4? It's
unfortunate that it will never happen.



On Wed, Feb 22, 2012 at 2:06 PM, Ima Newsletta
wrote:

> At last, Adobe showed us that is alive.
>
>
> Il 22/02/2012 20:01, John R. Sweeney Jr. ha scritto:
>
>  When HTML5 can do what I can do in AS3, I'll consider it.  :)
>>
>> John
>>
>> John R. Sweeney Jr.
>> Senior Interactive Multimedia Developer
>> OnDemand Interactive Inc
>> Hoffman Estates, IL 60169
>>
>>
>>
>>
>> On Feb 22, 2012, at 12:50 PM, James Merrill wrote:
>>
>>  
>> http://www.adobe.com/devnet/**flashplatform/whitepapers/**roadmap.html<http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html>
>>>
>>> A new version of AS3 will be nice, it's just too bad no one wants Flash
>>> anymore. Flash player is basically dead in the water, with its future
>>> usage
>>> being hardcore gaming. How many of you guys/gals are doing that?
>>>
>> __**_
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.**com 
>> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>>
>
> __**_
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.**com 
> http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>



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


[Flashcoders] Flash Platform roadmap released - time to start learning HTML 5 unless you make games.

2012-02-22 Thread James Merrill
http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html

A new version of AS3 will be nice, it's just too bad no one wants Flash
anymore. Flash player is basically dead in the water, with its future usage
being hardcore gaming. How many of you guys/gals are doing that?



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


[Flashcoders] audio recorder from Red5 to rtmplite

2010-07-02 Thread James Salsman
About half a year ago I had someone help me with this recorder which
works great with Red5: http://talknicer.com/d/audioup.html
The source for it is at: http://actionscript.pastebin.com/r9P87093 --
that is in the public domain, by the way, so you may adapt it for your
use if you like.

I'm trying to get it to work with rtmplite --
http://code.google.com/p/rtmplite -- but it doesn't work; it records
13 byte (empty) .flv files, for some reason. The "testClient" which
comes with the rtmplite download works fine, so here's what I need,
from someone who has better Flash/Flex debugging skills than I do
(most Flex programmers, I bet): Please go through rtmplite's
testClient, making a note of the calls and events it uses to connect
and upload to the rtmplite server, then change the audioup.mxml
recorder to do it the way rtmplite wants it.

I am willing to pay for this, but I'm also hoping that the general
simplicity of this task (says the coder who can't do it) combined with
the generosity of the fancy public domain audio recorder will lead to
free help.  But again, I'm happy to pay so if this is something that
will take more time that you would want to trade for the code
involved, please quote me an estimate.

Please let me know if you have any trouble compiling with your rtmp: url. I use:
  mxmlc -debug=true audioup.mxml
for development.

Thanks for your help with this. I really need the smaller memory footprint.

Sincerely,
James Salsman
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Anyone remember 3d tile stacking physics app?

2009-03-24 Thread James Marsden
There's this too:

http://www.ted.com/index.php/talks/anand_agarawala_demos_his_bumptop_des
ktop.html 

Cheers,

James 

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


RE: [Flashcoders] Anyone remember 3d tile stacking physics app?

2009-03-24 Thread James Marsden
http://dougmccune.com/blog/2007/08/04/the-making-of-tileui/

Here y'go! 


James Marsden
 
Creative Je Ne Sais Quoi | FuturLab Limited
 
+44 (0) 1273 420 367
+44 (0) 7547 775 705

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ali
drongo
Sent: 24 March 2009 11:01
To: Flash Coders List
Subject: [Flashcoders] Anyone remember 3d tile stacking physics app?

Hi there I saw a video that showed the speeded-up development for an
application that used the cove APE physics engine to create a 3D effect
board with tiles on that you could move around and stack.
I can't find this anywhere.

Can anyone point me in the direction of the project or the video that
shows the development?

Thanks :)


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


RE: [Flashcoders] Open Source PRISM Game Engine

2009-03-14 Thread James Marsden
Hello,

Thanks for the wish of luck. I've had a bug to work in the games
industry since I was at college. I sucked at Maths at school so was told
pretty early on that I'd never be able to work in the games industry.
Back then I had no idea that 'game design' was a recognised role. Damned
careers advice.

So when I left Uni I had something to prove and started making this
engine as a vehicle to pitch game ideas. 

I'm still an artist at heart, so I've moved from coding to game design.

The engine has opened a lot of doors for me over the years, so now it's
time to give something back :)

Cheers,

James Marsden
 
Creative Je Ne Sais Quoi | FuturLab Limited
 
+44 (0) 1273 420 367
+44 (0) 7547 775 705

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of dr.ache
Sent: 13 March 2009 22:07
To: Flash Coders List
Subject: Re: [Flashcoders] Open Source PRISM Game Engine

Looks nice. Speed is really amazing. How comes that an art graduate is
involved in coding a game engine for about 3 years ? :)

good luck with that one. good example of what you can archive if you
JUST DO IT!



James Marsden schrieb:
> Hey folks,
>
> [ apologies for cross posting ]
>  
>
> I've decided to open source a 2D Flash game engine/framework I've been

> slaving over for years.
>
> The engine was previously licensed for use by the BBC on this game:
> http://www.bbc.co.uk/cbbc/run/play.shtml
> <http://www.bbc.co.uk/cbbc/run/play.shtml>
>
> It's also responsible for a game demo that helped us make a big 
> impression on PlayStation a couple of years ago:
> http://www.futurlab.co.uk/games/prism/
> <http://www.futurlab.co.uk/games/prism/>
>
> - and more recently was used to create this demo:
> http://www.futurlab.co.uk/revenge/ 
> <http://www.futurlab.co.uk/revenge/>
> - select 'Play Demo' and then 'Play Scene' for Scene 9.
>
> Here is a list of the features:
> http://www.futurlab.co.uk/Prism_Engine.png
> <http://www.futurlab.co.uk/Prism_Engine.png>  - there's also some 
> pretty advanced enemy A.I that enables enemies to jump around from 
> platform to platform to chase a player down, which isn't showcased by
either demo.
>
>
> There's no doubt in my mind that the engine is awesome, and lots of 
> different types of 2D games can be made with it quickly.
>
>
>
> However, the architecture of the engine probably isn't too awesome 
> because I'm a fine art graduate!
>
> It is MCV as far as I could make it, and it's ActionScript 3.0, but 
> there will be people out there who will shake their heads at some of 
> the decisions I've made.
>
> Well, that's what Open Source is all about right, to make something 
> better together...
>
>
> So - all this is great, but I haven't got a lot of time. I'm looking 
> for someone who wants to get involved in the PRISM engine, who is 
> willing to work for free to help organise the files, become an 
> admin/moderator on the forum, and to deal with a lot of the initial 
> bulk of administration required to get the engine seen.
>
> In exchange, this person/small group of people, will have first access

> to all the code, and will be an Approved Developer on the website 
> we're building.
>
> The engine could be really huge in this never ending wave of casual 
> games interest, so would anyone like to jump in and help?
>
> Please email me offlist with some examples of your stuff so I can 
> check yo skillz - james at futurlab co uk
>
> Thanks!
>
>
> James Marsden
>  
> Creative Je Ne Sais Quoi | FuturLab Limited
>  
> +44 (0) 1273 420 367
> +44 (0) 7547 775 705
>  
> ___
> 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] Open Source PRISM Game Engine

2009-03-13 Thread James Marsden
Hey folks,

[ apologies for cross posting ]
 

I've decided to open source a 2D Flash game engine/framework I've been
slaving over for years. 

The engine was previously licensed for use by the BBC on this game:
http://www.bbc.co.uk/cbbc/run/play.shtml
<http://www.bbc.co.uk/cbbc/run/play.shtml> 

It's also responsible for a game demo that helped us make a big
impression on PlayStation a couple of years ago:
http://www.futurlab.co.uk/games/prism/
<http://www.futurlab.co.uk/games/prism/> 

- and more recently was used to create this demo:
http://www.futurlab.co.uk/revenge/ <http://www.futurlab.co.uk/revenge/>
- select 'Play Demo' and then 'Play Scene' for Scene 9.

Here is a list of the features:
http://www.futurlab.co.uk/Prism_Engine.png
<http://www.futurlab.co.uk/Prism_Engine.png>  - there's also some pretty
advanced enemy A.I that enables enemies to jump around from platform to
platform to chase a player down, which isn't showcased by either demo.


There's no doubt in my mind that the engine is awesome, and lots of
different types of 2D games can be made with it quickly. 



However, the architecture of the engine probably isn't too awesome
because I'm a fine art graduate!

It is MCV as far as I could make it, and it's ActionScript 3.0, but
there will be people out there who will shake their heads at some of the
decisions I've made. 

Well, that's what Open Source is all about right, to make something
better together...


So - all this is great, but I haven't got a lot of time. I'm looking for
someone who wants to get involved in the PRISM engine, who is willing to
work for free to help organise the files, become an admin/moderator on
the forum, and to deal with a lot of the initial bulk of administration
required to get the engine seen.

In exchange, this person/small group of people, will have first access
to all the code, and will be an Approved Developer on the website we're
building.

The engine could be really huge in this never ending wave of casual
games interest, so would anyone like to jump in and help?

Please email me offlist with some examples of your stuff so I can check
yo skillz - james at futurlab co uk

Thanks!


James Marsden
 
Creative Je Ne Sais Quoi | FuturLab Limited
 
+44 (0) 1273 420 367
+44 (0) 7547 775 705
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] IE7 wont trigger popups locally

2008-04-08 Thread Matthew James Poole
Are you setting allowScriptAccess in the params? 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Klasson
Sent: 08 April 2008 14:03
To: Flash Coders List
Subject: [Flashcoders] IE7 wont trigger popups locally

Hi People.

I am having trouble with opening popups from Flash, I am using getURL to call a 
javascript-function that should open a popup.

it worked before, and it works in Firefox, but it doesnt work in IE7 when 
trying it locally, but it will work in IE7 if run from a server.

It is an older projekt, published in Flash 6, if I make it to Flash 8 and use 
ExternalInterface to call the javascript - then it do work, but not when 
running it as it is - Flash 6 with getURL - the javascript-function will not be 
reached.

How can this be solved - without digging through an old application and turn it 
to flash 8 and going that way?

-- 

Martin Klasson
Flash Developer
Parkgatan 9-11
S-411 24 Göteborg
Sweden
Office +46 (0) 31 711 54 50
Cell +46 (0) 730 964 561
[EMAIL PROTECTED]
www.kokokaka.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] [AS3] Memory leaks & unloading

2008-03-12 Thread Matthew James Poole
True, but its sounds like Henry has lots of stuff not marked for GC so
he still has references somewhere, just a case of finding them... Easier
said than done 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: 12 March 2008 16:30
To: Flash Coders List
Subject: Re: [Flashcoders] [AS3] Memory leaks & unloading

as far as i know, there is no way of dumping the garbage manually - you
have to wait for the flash plugin to dump it once it has been marked

you can check chapter 14 of essential actionscript 3.0 (moock) for more
info about that


On 12 Mar 2008, at 15:54, Henry Cooke wrote:

> Hey all,
>
> I'm currently working on a Flash module to sit inside a larger Flash 
> site being developed by another agency. This module needs to be loaded

> and unloaded as needed, and has a fair few library assets, quite 
> substantial codebase and will be running PV3D or Away3D, so I need to 
> be very careful about destroying everything when my module is finished

> with; the container site is pretty resource-hungry too.
>
> So, my current problem: I've built initialisation and destruction 
> routines that run on Event.ADDED_TO_STAGE and 
> Event.REMOVED_FROM_STAGE, and a test loader which loads and removes my

> module. However, watching the test loader unload my module in the 
> Flash Player shows no noticeable drop in memory after my destructors 
> have been called in the module and $loader.unload() has been called in

> the test loader, so it seems like a lot o stuff is gettign stuck in 
> memory.
>
> Basically, my destructors set any class variables which reference 
> objects to null, which I believe should mark them for garbage 
> collection, if nothing else points to them? I also do things like
> removeChild() and bitmapData.dispose() where relevant.
>
> I've compiled in XRay, which shows what you'd expect: various bits 
> present on stage while my module is loaded, all gone when it's not.
>
> So I guess my questions are: does anyone know any secret voodoo 
> techniques to track down memory use in the Flash player? Is there 
> anything better I can be doing than just setting pointers to null?
> Back in the AS2 day, I'd suspect the _global namespace of becoming 
> cluttered and just try and nuke _global[ package_name ], but dirty 
> hacks like that don't exist in our shiny new AS3 world, do they?
>
> I'd be grateful if anyone can offer any advice about how to properly 
> clear up memory after unloading my module. This is my first AS3 
> project, and none of my old tricks work :(
>
> Cheers,
> Henry
> ___
> 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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

___
Flashcoders mailing list
Flashcod

RE: [Flashcoders] [AS3] Memory leaks & unloading

2008-03-12 Thread Matthew James Poole
You can start by using weak references for you events listeners... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Henry
Cooke
Sent: 12 March 2008 15:55
To: Flashcoders mailing list
Subject: [Flashcoders] [AS3] Memory leaks & unloading

Hey all,

I'm currently working on a Flash module to sit inside a larger Flash
site being developed by another agency. This module needs to be loaded
and unloaded as needed, and has a fair few library assets, quite
substantial codebase and will be running PV3D or Away3D, so I need to be
very careful about destroying everything when my module is finished
with; the container site is pretty resource-hungry too.

So, my current problem: I've built initialisation and destruction
routines that run on Event.ADDED_TO_STAGE and Event.REMOVED_FROM_STAGE,
and a test loader which loads and removes my module. However, watching
the test loader unload my module in the Flash Player shows no noticeable
drop in memory after my destructors have been called in the module and
$loader.unload() has been called in the test loader, so it seems like a
lot o stuff is gettign stuck in memory.

Basically, my destructors set any class variables which reference
objects to null, which I believe should mark them for garbage
collection, if nothing else points to them? I also do things like
removeChild() and bitmapData.dispose() where relevant.

I've compiled in XRay, which shows what you'd expect: various bits
present on stage while my module is loaded, all gone when it's not.

So I guess my questions are: does anyone know any secret voodoo
techniques to track down memory use in the Flash player? Is there
anything better I can be doing than just setting pointers to null?
Back in the AS2 day, I'd suspect the _global namespace of becoming
cluttered and just try and nuke _global[ package_name ], but dirty hacks
like that don't exist in our shiny new AS3 world, do they?

I'd be grateful if anyone can offer any advice about how to properly
clear up memory after unloading my module. This is my first AS3 project,
and none of my old tricks work :(

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] pixel-accurate _xmouse tracking?

2008-03-12 Thread Matthew James Poole
Matt, the mouse move event fired at a set rate so the faster you move it
the greater the distance will be until the next event. If you want to
sample faster then you'd have to use a setInterval at something really
small like 10ms and grab the mouse location like that. Even then you
cant guarantee that each event will give you the next pixel. I suggest
you change your logic to suit this behaviour.

Cheers
Matt 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt S.
Sent: 12 March 2008 14:56
To: Flash Coders List
Subject: [Flashcoders] pixel-accurate _xmouse tracking?

Hi,
can anyone recommend a way to have pixel-accurate mouse tracking? If I
move my mouse slowly it pretty much grabs them all, but any fast
movements result in huge gaps in the _xmouse tracking, so instead of
being 1,2,3,4,5,6,7,8,9,10,11,12 etc, it'll be
1,4,6,9,12,15,16,23,30,35, etc. I need it it to be as accurate as
possible. Can this be done?

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] clean scripting

2008-03-11 Thread Matthew James Poole
Actually, I've seen that the values are often set quicker when
initilaised in the contructor rather than against class members , but I
think it looks tidier the way you've done it... imo

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: 11 March 2008 17:41
To: flashcoders
Subject: [Flashcoders] clean scripting

hi

just a semantic question really

when writing your classes, would you only declare variables in the class
and assign variables later or would you assign values straight away if
you had them?

so for instance, would you...:

package com.receptacle.timeline
{
//package imports
import flash.display.Sprite;

internal class Class extends Sprite
{
// class variable declarations
private var cp:CommonProperties = new
CommonProperties();
private var commonY:uint = cp. commonY;
private var commonCopy:String = cp.commonCopy;
private static var title:String = "Title";
private static var subtitle:String = "Subtitle";

public function Class()
{
myFunc1();
}

private function myFunc1()
{
trace ("function ran");
trace ("commonY is "+commonY);
trace ("commonCopy is "+commonCopy);
trace ("title is "+title);
trace ("subtitle is "+subtitle);
}
}
}

which works fine but is a little messy at the class level

or would you...:

package com.receptacle.timeline
{
//package imports
import flash.display.Sprite;

internal class Class extends Sprite
{
// class variable declarations
private var cp:CommonProperties;
private var commonY:uint;
private var commonCopy:String
private static var title:String
private static var subtitle:String ;

public function Class()
{
setVars();
myFunc1();
}

private function setVars()
{
cp =  new CommonProperties();
commonY = cp. commonY;
commonCopy = cp.commonCopy;
title = "Title";
subtitle = "Subtitle";
}

private function myFunc1()
{
trace ("function ran");
trace ("commonY is "+commonY);
trace ("commonCopy is "+commonCopy);
trace ("title is "+title);
trace ("subtitle is "+subtitle);
}
}
}

which seems cleaner but is more round the houses.

thanks in advance
a


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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email (which include its attachments) are confidential and 
may be subject to legal privilege and protected by copyright. If you are not 
the intended recipient any use, copying or disclosure of this e-mail to any 
third party is strictly forbidden by the sender and we reserve all rights and 
remedies against any person or entity making any such unauthorised use. If you 
have received this email in error, please contact the sender immediately by 
telephone or return the email to the sender and then delete this email and any 
copies of it on your system. Virtual Universe Limited may monitor the contents 
of emails sent and received via its network for viruses and to ensure the 
lawful and authorised use of its systems. Virtual Universe Limited will not be 
held responsible for any damage caused by viruses which may be transmitted upon 
receipt of this email or the opening of any attachment thereto. Any views or 
opinions presented in this email are solely those of th!
 e author and do not necessarily represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


_

RE: [Flashcoders] AS3 Function question

2008-02-07 Thread Matthew James Poole
Better to do this if you want to ensure Type too... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 07 February 2008 13:27
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Function question

this works for me, since i only need either 1 or 2 arguments, never
more.

Thanks for all the examples guys,

Sid

Matthew James Poole wrote:
> True, but with the rest argument you can have as many args as you 
> want...
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jim 
> Hayes
> Sent: 07 February 2008 12:11
> To: Flash Coders List
> Subject: RE: [Flashcoders] AS3 Function question
>
> I normally just set a default value for the second argument :
>
> function someFunction(arg1:int,arg2:String=null):void
> {
>   if(arg2==null)
>   {
>   //whatever.
>   }
>   //some code ...
> }
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 07 February 2008 11:45
> To: Flash Coders List
> Subject: [Flashcoders] AS3 Function question
>
> Hi list,
>
> I have a function in  AS3, and it takes two arguments, but sometimes i

> want it to have 1 argument. But when i run it now it errors:
> 1136: Incorrect number of arguments.  Expected 2.
> How do i do this? keep one arguments standard in the function brackets

> and check for the second argument with the arguments array like in
AS2?
>
> Help would be advised,
>
> Thanks,
>
> Sidney
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This communication is from Primal Pictures Ltd., a company registered 
> in England and Wales with registration No. 02622298 and registered
office:
> 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 
> 5PA, UK. VAT registration No. 648874577.
>
> This e-mail is confidential and may be privileged. It may be read, 
> copied and used only by the intended recipient. If you have received 
> it in error, please contact the sender immediately by return e-mail or

> by telephoning +44(0)20 7637 1010. Please then delete the e-mail and 
> do not disclose its contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs 
> Email Security System.
> __
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> The contents of this email are confidential and may be subject to
legal privilege and protected by copyright. If you are not the intended
recipient any use, copying or disclosure of this e-mail to any third
party is strictly forbidden by the sender and we reserve all rights and
remedies against any person or entity making any such unauthorised use.
If you have received this email in error, please contact the sender
immediately by telephone or return the email to the sender and then
delete this email and any copies of it on your system. Virtual Universe
Limited may monitor the contents of emails sent and received via its
network for viruses and to ensure the lawful and authorised use of its
systems. Virtual Universe Limited will not be held responsible for any
damage caused by viruses which may be transmitted upon receipt of this
email or the opening of any attachment thereto. Any views or opinions
presented in this email are solely those of the author and do not
necessarily !
>  represent those of Virtual Universe Limited.
>
> Virtual Universe Limited is a company established under the laws of
England and Wales with registered number 03064568 and has its registered
office at 1 Regent Street, London, SW1Y 4NW and principal place of
business at 28-39 The Quadrant, 135 Salusbury Road, London NW6 6RJ,
United Kingdom. It is registered for VAT in the United Kingdom with
number GB877113217.
>
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs. 
> http://www.virtual-universe.net
>
> ___

RE: [Flashcoders] AS3 Function question

2008-02-07 Thread Matthew James Poole
Yep that's exactly how to do it... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pavel
Krusek
Sent: 07 February 2008 12:07
To: 'Flash Coders List'
Subject: RE: [Flashcoders] AS3 Function question

Hi,

maybe is possible solution via ...(rest) parameter?

function methodName (...argumentsArray) { }

Example:

public function addArticle(name, ...attribs) { }

And method invocation:

addArticle("article_1", "argument_2", "argument_3", "argument_4");


Pavel



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: Thursday, February 07, 2008 12:45 PM
To: Flash Coders List
Subject: [Flashcoders] AS3 Function question

Hi list,

I have a function in  AS3, and it takes two arguments, but sometimes i
want it to have 1 argument. But when i run it now it errors:
1136: Incorrect number of arguments.  Expected 2.
How do i do this? keep one arguments standard in the function brackets
and check for the second argument with the arguments array like in AS2?

Help would be advised,

Thanks,

Sidney

___
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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email are confidential and may be subject to legal 
privilege and protected by copyright. If you are not the intended recipient any 
use, copying or disclosure of this e-mail to any third party is strictly 
forbidden by the sender and we reserve all rights and remedies against any 
person or entity making any such unauthorised use. If you have received this 
email in error, please contact the sender immediately by telephone or return 
the email to the sender and then delete this email and any copies of it on your 
system. Virtual Universe Limited may monitor the contents of emails sent and 
received via its network for viruses and to ensure the lawful and authorised 
use of its systems. Virtual Universe Limited will not be held responsible for 
any damage caused by viruses which may be transmitted upon receipt of this 
email or the opening of any attachment thereto. Any views or opinions presented 
in this email are solely those of the author and do not necessarily !
 represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] AS3 Function question

2008-02-07 Thread Matthew James Poole
True, but with the rest argument you can have as many args as you
want... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
Hayes
Sent: 07 February 2008 12:11
To: Flash Coders List
Subject: RE: [Flashcoders] AS3 Function question

I normally just set a default value for the second argument :

function someFunction(arg1:int,arg2:String=null):void
{
if(arg2==null)
{
//whatever.
}
//some code ...
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 07 February 2008 11:45
To: Flash Coders List
Subject: [Flashcoders] AS3 Function question

Hi list,

I have a function in  AS3, and it takes two arguments, but sometimes i
want it to have 1 argument. But when i run it now it errors:
1136: Incorrect number of arguments.  Expected 2.
How do i do this? keep one arguments standard in the function brackets
and check for the second argument with the arguments array like in AS2?

Help would be advised,

Thanks,

Sidney

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

__
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office:
4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W
5PA, UK. VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received it
in error, please contact the sender immediately by return e-mail or by
telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not
disclose its contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email are confidential and may be subject to legal 
privilege and protected by copyright. If you are not the intended recipient any 
use, copying or disclosure of this e-mail to any third party is strictly 
forbidden by the sender and we reserve all rights and remedies against any 
person or entity making any such unauthorised use. If you have received this 
email in error, please contact the sender immediately by telephone or return 
the email to the sender and then delete this email and any copies of it on your 
system. Virtual Universe Limited may monitor the contents of emails sent and 
received via its network for viruses and to ensure the lawful and authorised 
use of its systems. Virtual Universe Limited will not be held responsible for 
any damage caused by viruses which may be transmitted upon receipt of this 
email or the opening of any attachment thereto. Any views or opinions presented 
in this email are solely those of the author and do not necessarily !
 represent those of Virtual Universe Limited.

Virtual Universe Limited is a company established under the laws of England and 
Wales with registered number 03064568 and has its registered office at 1 Regent 
Street, London, SW1Y 4NW and principal place of business at 28-39 The Quadrant, 
135 Salusbury Road, London NW6 6RJ, United Kingdom. It is registered for VAT in 
the United Kingdom with number GB877113217.


__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] AS2 Delegate event won't fire in my multi swf loadclass

2008-01-31 Thread Matthew James Poole
Are you sure the method on the clips have initialised yet? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alistair
Colling
Sent: 31 January 2008 11:16
To: Flash Coders List
Subject: Re: [Flashcoders] AS2 Delegate event won't fire in my multi swf
loadclass

Thanks for your quick reply Glen, thing is, I want to allow the class to
trigger different functions that are passed to it and also to monitor
the progress of a number of SWFs. Sorry if I'm missing something here.
Cheers,
Ali




On 31 Jan 2008, at 10:55, Glen Pike wrote:

> Hi,
>
>Why don't you just make your class the listener for the 
> MovieClipLoader and then implement the functions in your class?
>
>class LoadChecker {
>   var mcLoader:MovieClipLoader;
>
>   function LoadChecker() {
>  mcLoader = new MovieClipLoader();
>  mcLoader.addListener(this);
>   }
>
>   function myLoader(str, mc) {
>  //...
>  mcLoader.loadClip(str, mc);
>   }
>
>
>   function onLoadInit(mc...) {
>  trace("loaded mc " + mc) ;
>  //...doStuff.
>  mcLoaded(mc);
>}
>
>   function onLoadError(mc...) {
>  trace("oops, there was an error ");
>  //...carry on?
>   }
>
>   function mcLoaded(mc) {
>  //...
>   }
>}
>  Put a trace in your onLoadInit function and also implement the 
> onLoadError function for the listener so you can see if they are 
> called - you can also stub out the other functions for MovieClipLoader

> listeners and put traces in those to make sure it starts loading, etc.
>
>HTH
>
>Glen
>
>
> ali drongo wrote:
>> Hiya, I've written a class that will load multiple SWFs and then call

>> a passed function when complete. My problem is that when all the 
>> movies have downloaded the passed function won't fire. If anyone 
>> could help me figure this that would be really helpful.Cheers, Ali
>>
>>
>>
>> //
>> //  LoadChecker
>>
>> // this class is passed am array and calls a function when all of the

>> objects in the array are loaded // //  Created by Alistair Colling on

>> 2008-01-30.
>> //  Copyright FPP Design Ltd 2008. All rights reserved.
>> //
>> // pass mcs to load and start loading
>>
>> import mc.*;
>> import mx.utils.Delegate;
>>
>>
>> class mc.LoadChecker {
>> private var allLoadedFn:Function;
>> public var itemsToLoad_ar:Array;
>> private var itemsLoaded:Array;
>>
>>  public function LoadChecker(a:Array, f:Function) { 
>> trace("loadchecker! created:"+a.toString()); allLoadedFn = f; 
>> itemsLoaded = new Array(); itemsToLoad_ar = a; for (var i = 0; 
>> i> tempLoad:LoadObj = itemsToLoad_ar[arRef]; 
>> myLoader(tempLoad.targURL,tempLoad.targMC);
>> }
>> }
>>
>>  function myLoader(str, mc) {
>> trace("MY LOADER   loading file:"+str+"   mc:"+mc);
>> var loadListener:Object = new Object(); var tmpFun:Function = 
>> mcLoaded; loadListener.onLoadInit = 
>> function(target_mc:MovieClip):Void  { tmpFun.apply(null, 
>> [target_mc]); }; var mcLoader:MovieClipLoader = new 
>> MovieClipLoader(); mcLoader.addListener(loadListener);
>> //create holder inside of movie clip
>> var holder:MovieClip = mc.createEmptyMovieClip("holder", 
>> mc.getNextHighestDepth()); mcLoader.loadClip(str,holder);
>>
>> }
>> function mcLoaded(mcl:MovieClip) {
>> trace("a movie is loaded:"+mcl);
>> itemsLoaded.push(mcl);
>> if(itemsLoaded.length==itemsToLoad_ar.length){
>> trace("all movies are now loaded");
>> allLoadedFn.apply(null);
>> }
>> }
>> }
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>
> --
>
> Glen Pike
> 01736 759321
> www.glenpike.co.uk  
> ___
> 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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

The contents of this email are confidential and may be subject to legal 
privilege and protected by copyright. If you are not the intended recipient any 
use, copying or disclosure of this e-mail to any third party is strictly 
forbidden by the sender and we reserve all rights and remedies against any 
person or entity making any such unauthorised use. If you have received this 
email in error, please contact the sender immediately by telephone or return 
the email to the sender and then delete this email and any copies of it on your 
system. Virtual Universe Limited m

RE: [Flashcoders] OldSchool buttons w/NewSchool AS

2008-01-28 Thread Matthew James Poole
A number of companies I've worked for have had solutions for this along
a similar vein.

Basically you have labeled states in a MovieClip and that MovieClip has
a AS class linkage and you have code that manages the states. It does
mean that the desingers have to remember to use the class linkage, but
I've never found a problem explaining that to them - just a small
learning curve on their part.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Sinning
Sent: 28 January 2008 15:28
To: Flash Coders
Subject: [Flashcoders] OldSchool buttons w/NewSchool AS

Old school (4-frame) buttons are so nice because they give designers
direct access to the look of the button in each of four states, but as a
programmer they've always driven me nuts.  I want to use AS to control
the buttons.  I want a set of templates that determine what the body of
the button looks like and the ability to dynamically set the text and/or
graphical "content" inside the border of the button.  While I can think
of a few ways to do this, I don't want to reinvent the wheel and I'm
looking for some friendly wisdom.  I see the world through the eyes of a
programmer, and I've been a soloist for a very, very long time.  New
opportunities call for me to lead and direct artists, and to provide a
framework that won't hinder their creativity.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] AIR Sandbox while loading sounds

2008-01-24 Thread Matthew James Poole
Just create the mm.cfg file if it doesnt exist, 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 24 January 2008 16:13
To: Flash Coders List
Subject: Re: [Flashcoders] AIR Sandbox while loading sounds

No such files here, tried looking for it but no luck.

Still cant find the bug i was looking for, maybee tomorrow. Any other
sugestions i can try?

cheers, Sid

Matthew James Poole wrote:
> Your policy file looks good, heres something you could try to see if 
> there is a problem with the policy file:
>
> Find this file 'mm.cfg' here :
>
> C:\Documents and Settings\{username}
>
> And add to it these lines:
>
> PolicyFileLog=1   # Enables policy file logging
> PolicyFileLogAppend=1  # Optional; do not clear log at startup
>
> Then when you test a swf have a look here:
>
> C:\Documents and Settings\{username}\Application Data\Macromedia\Flash

> Player\Logs
>
> For a file called 'policyfiles.txt'. It logs info about policy files 
> that have been loaded, so that will confirm whether or not your file 
> is ok.
>
> Cheers
> Matt
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 24 January 2008 12:42
> To: Flash Coders List
> Subject: Re: [Flashcoders] AIR Sandbox while loading sounds
>
> Download the CS3 Air extension :)
>
> Code is pasted below, this works in AS3, but not in AIR.
> The radio stream sits on port 8000 (shoutcast). But its not a socket 
> connection im making just a http call.
>
> the stream i want to use is a different url than below, but that real 
> domain does had a crossdomain.xml (with the new policies) I hope i 
> have the syntax right for the new c.d file, if its wrong, please
correct me:
>
> 
>  
>
>
>
> // Sandbox error in AIR, AS3 publish works fine, grmbl AIR!
> //
http://livedocs.adobe.com/labs/flex3/html/Working_with_Sound_11.html
> var lounge   = new URLRequest("http://207.200.96.226:8000";);
>
> var context:SoundLoaderContext = new SoundLoaderContext(100, true); 
> var s:Sound = new Sound(); s = new Sound(lounge, context); 
> trace(lounge.url); var sc:SoundChannel = s.play(); 
> s.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
>
> stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, stopStream);
>
> function errorHandler(errorEvent:IOErrorEvent):void {trace("The 
> sound could not be loaded: " + errorEvent.text);} function
> stopStream(evtObj:MouseEvent) { s.close(); }
>
>
> Cheers Sid
>
> Matthew James Poole wrote:
>   
>> I think what it was basically saying is that same domain socket 
>> servers need to have policy files now, where before they didn't. So 
>> really if you have a policy file you should be ok.
>>
>> With the port nunber, what it was saying is that if you have a policy

>> file on a server that listens on ports above 1024 the policy file is 
>> only valid for connections coming in to ports above that 1024. So in 
>> this case connections made for that ports 1024 and below are no 
>> longer
>> 
>
>   
>> considered secure. So this shouldn't effect you so long as you have a

>> policy file and you continue to make connections above port 1024 (I 
>> assume you are only connecting to port 8080)
>>
>> Regarding streaming audio, I'd have to have a test (which would be in
>> flex) so Im not sure I can help you - remind me to down load the CS3 
>> Air extention!
>>
>> Is that radio URL availble to everyone? i.e. could I test (though it 
>> would have to be at home - work are pretty strict about portts)
>>
>> Cheers
>> Matt
>>
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Sidney
>> 
>
>   
>> de Koning
>> Sent: 24 January 2008 10:54
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] AIR Sandbox while loading sounds
>>
>> He Matt,
>>
>> Ofcourse they changed it :)
>> Still does not work; this is inside my policy file:
>> 
>> 
>> 
>>
>> Cant find in the doc if i need to specify the port, since it is above

>> 1024? And does '|to-ports' |work on normal connections aswell as only

>> XML Socket connection?
>>
>> Been trying everything and notthing seems to work, is there anything 
>> specific to AIR and loading sounds?
>>
>> Cheers,
>> Sid
>>
>>
>> Matthew James Poole wrote:
>>   
>> 
>>> Hey sid,
>>>
>>> There are new s

RE: [Flashcoders] MultiLanguage

2008-01-24 Thread Matthew James Poole
Check the viewed language and turn embedding on/off depending on whether
its chinese?

 - you'd only see the chinese if you had the right font installed (e.g.
simsun) but I believe this is the case on chinese machines. If course if
your text was masked or animated then this wont work as dynamic text has
to be embeded in these circumstances

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Mennenoh
Sent: 24 January 2008 14:06
To: Flash Coders List
Subject: Re: [Flashcoders] MultiLanguage

>>One solution would be to avoid embeding the chinese fonts if you could

>>-
depends on what you want for your project

Except I am embedding, so I can anti-alias. I'm not sure how I could
embed all the other glyphs and have the chinese still render at all.

Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] MultiLanguage

2008-01-24 Thread Matthew James Poole
One solution would be to avoid embeding the chinese fonts if you could -
depends on what you want for your project

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Mennenoh
Sent: 24 January 2008 13:36
To: Flash Coders List
Subject: Re: [Flashcoders] MultiLanguage

Thanks much for the great advice. I'm getting there... However, soon as
I include the Chinese glyphs my swf gets to near 5MB. Is there an easy
way to embed only the chinese glyphs in a separate swf and load them
only if needed? AS2...  With Cryllic, Hangul, and everything else I get
a respectable 300K, but the chinese adds too much to just leave it in.

Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] AIR Sandbox while loading sounds

2008-01-24 Thread Matthew James Poole
Your policy file looks good, heres something you could try to see if
there is a problem with the policy file:

Find this file 'mm.cfg' here :

C:\Documents and Settings\{username}

And add to it these lines:

PolicyFileLog=1   # Enables policy file logging
PolicyFileLogAppend=1  # Optional; do not clear log at startup

Then when you test a swf have a look here:

C:\Documents and Settings\{username}\Application Data\Macromedia\Flash
Player\Logs

For a file called 'policyfiles.txt'. It logs info about policy files
that have been loaded, so that will confirm whether or not your file is
ok.

Cheers
Matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 24 January 2008 12:42
To: Flash Coders List
Subject: Re: [Flashcoders] AIR Sandbox while loading sounds

Download the CS3 Air extension :)

Code is pasted below, this works in AS3, but not in AIR.
The radio stream sits on port 8000 (shoutcast). But its not a socket
connection im making just a http call.

the stream i want to use is a different url than below, but that real
domain does had a crossdomain.xml (with the new policies) I hope i have
the syntax right for the new c.d file, if its wrong, please correct me:


 



// Sandbox error in AIR, AS3 publish works fine, grmbl AIR!
// http://livedocs.adobe.com/labs/flex3/html/Working_with_Sound_11.html
var lounge   = new URLRequest("http://207.200.96.226:8000";);

var context:SoundLoaderContext = new SoundLoaderContext(100, true); var
s:Sound = new Sound(); s = new Sound(lounge, context);
trace(lounge.url); var sc:SoundChannel = s.play();
s.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);

stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, stopStream);

function errorHandler(errorEvent:IOErrorEvent):void {trace("The 
sound could not be loaded: " + errorEvent.text);} function
stopStream(evtObj:MouseEvent) { s.close(); }


Cheers Sid

Matthew James Poole wrote:
> I think what it was basically saying is that same domain socket 
> servers need to have policy files now, where before they didn't. So 
> really if you have a policy file you should be ok.
>
> With the port nunber, what it was saying is that if you have a policy 
> file on a server that listens on ports above 1024 the policy file is 
> only valid for connections coming in to ports above that 1024. So in 
> this case connections made for that ports 1024 and below are no longer

> considered secure. So this shouldn't effect you so long as you have a 
> policy file and you continue to make connections above port 1024 (I 
> assume you are only connecting to port 8080)
>
> Regarding streaming audio, I'd have to have a test (which would be in
> flex) so Im not sure I can help you - remind me to down load the CS3 
> Air extention!
>
> Is that radio URL availble to everyone? i.e. could I test (though it 
> would have to be at home - work are pretty strict about portts)
>
> Cheers
> Matt
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 24 January 2008 10:54
> To: Flash Coders List
> Subject: Re: [Flashcoders] AIR Sandbox while loading sounds
>
> He Matt,
>
> Ofcourse they changed it :)
> Still does not work; this is inside my policy file:
> 
> 
> 
>
> Cant find in the doc if i need to specify the port, since it is above 
> 1024? And does '|to-ports' |work on normal connections aswell as only 
> XML Socket connection?
>
> Been trying everything and notthing seems to work, is there anything 
> specific to AIR and loading sounds?
>
> Cheers,
> Sid
>
>
> Matthew James Poole wrote:
>   
>> Hey sid,
>>
>> There are new security rules for build 115 (update 3) of FP9: 
>>
>>
>> 
> http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.ht.
> m
>   
>> l
>>
>> Bit of a long read, but it may help you... Though if you;ve got the 
>> poilcy file it ought to be ok
>>
>> Cheers
>> Matt
>>
>>
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Sidney
>> 
>
>   
>> de Koning
>> Sent: 24 January 2008 10:09
>> To: Flash Coders List
>> Subject: [Flashcoders] AIR Sandbox while loading sounds
>>
>> Hi List,
>>
>> I'm trying to load a sound stream into my air application, it is a 
>> radio stream bound to a port (ie: http://radio.example.com:8000/).
>> When publishing to flash 9, it works smooth as silk, but when 
>> publishing to AIR i get errors (I work work with the Flash IDE):
>>
>

RE: [Flashcoders] AIR Sandbox while loading sounds

2008-01-24 Thread Matthew James Poole
I think what it was basically saying is that same domain socket servers
need to have policy files now, where before they didn't. So really if
you have a policy file you should be ok. 

With the port nunber, what it was saying is that if you have a policy
file on a server that listens on ports above 1024 the policy file is
only valid for connections coming in to ports above that 1024. So in
this case connections made for that ports 1024 and below are no longer
considered secure. So this shouldn't effect you so long as you have a
policy file and you continue to make connections above port 1024 (I
assume you are only connecting to port 8080)

Regarding streaming audio, I'd have to have a test (which would be in
flex) so Im not sure I can help you - remind me to down load the CS3 Air
extention!

Is that radio URL availble to everyone? i.e. could I test (though it
would have to be at home - work are pretty strict about portts)

Cheers
Matt


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 24 January 2008 10:54
To: Flash Coders List
Subject: Re: [Flashcoders] AIR Sandbox while loading sounds

He Matt,

Ofcourse they changed it :)
Still does not work; this is inside my policy file:




Cant find in the doc if i need to specify the port, since it is above
1024? And does '|to-ports' |work on normal connections aswell as only
XML Socket connection?

Been trying everything and notthing seems to work, is there anything
specific to AIR and loading sounds?

Cheers,
Sid


Matthew James Poole wrote:
> Hey sid,
>
> There are new security rules for build 115 (update 3) of FP9: 
>
>
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.ht.m
> l
>
> Bit of a long read, but it may help you... Though if you;ve got the 
> poilcy file it ought to be ok
>
> Cheers
> Matt
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 24 January 2008 10:09
> To: Flash Coders List
> Subject: [Flashcoders] AIR Sandbox while loading sounds
>
> Hi List,
>
> I'm trying to load a sound stream into my air application, it is a 
> radio stream bound to a port (ie: http://radio.example.com:8000/).
> When publishing to flash 9, it works smooth as silk, but when 
> publishing to AIR i get errors (I work work with the Flash IDE):
>
> *** Security Sandbox Violation ***
> SecurityDomain 'app:/soundRadio.swf' tried to access incompatible 
> context 'http://adobe.com/apollo'
>
> However everytime i load a stream it throws me a security error. How 
> do i get past this, and make it work in a good manner?
> And i have done all the usual stuff like, set up a crossdomain file, 
> and i make use of the SoundLoaderContext.
>
> Help is advised!
>
> Cheers,
>
> Sid
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  
> NW6 6RJ
>
> Tel:  +44 (0) 870 788 6000  
>
> Fax: +44 (0) 870 788 6689
>
> Web:www.virtual-universe.net
>
> --
> ---
>
> CONFIDENTIALITY NOTICE
>
> This e-mail may contain information which is confidential and
privileged. If you are not the named addressee of this e-mail, you may
not copy or use it, or forward or otherwise disclose it to anyone else.
If you have received this e-mail in error, please e-mail the sender by
replying to this message and then fully delete it from your system. 
>
> Any views or opinions presented in this e-mail are solely those of the
author and do not necessarily represent those of Amplefuture Group.
Amplefuture Group reserves the right to monitor e-mail communications
from both external and internal sources for the purposes of ensuring
correct and appropriate use of our communication equipment.
>
>
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs. 
> http://www.virtual-universe.net
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman

RE: [Flashcoders] AIR Sandbox while loading sounds

2008-01-24 Thread Matthew James Poole
Hey sid,

There are new security rules for build 115 (update 3) of FP9: 

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html 

Bit of a long read, but it may help you... Though if you;ve got the
poilcy file it ought to be ok

Cheers
Matt



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 24 January 2008 10:09
To: Flash Coders List
Subject: [Flashcoders] AIR Sandbox while loading sounds

Hi List,

I'm trying to load a sound stream into my air application, it is a radio
stream bound to a port (ie: http://radio.example.com:8000/).
When publishing to flash 9, it works smooth as silk, but when publishing
to AIR i get errors (I work work with the Flash IDE):

*** Security Sandbox Violation ***
SecurityDomain 'app:/soundRadio.swf' tried to access incompatible
context 'http://adobe.com/apollo'

However everytime i load a stream it throws me a security error. How do
i get past this, and make it work in a good manner?
And i have done all the usual stuff like, set up a crossdomain file, and
i make use of the SoundLoaderContext.

Help is advised!

Cheers,

Sid


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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] MultiLanguage

2008-01-24 Thread Matthew James Poole
You can use simsun ttf for rendering chinese glyfs 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Mennenoh
Sent: 23 January 2008 15:00
To: Flash Coders List
Subject: Re: [Flashcoders] MultiLanguage

>>It's essential that you use a Unicode font--I use Arial Unicode for 
>>Asian
languages, because it has all the languages I typically need. Embed the
font, of course.

Gotcha. This is fairly new to me so I've been reading as much as I can.
I found that true type fonts, like regular Arial, adhere to Unicode
standards. 
In Flash, if I use Arial I can embed Korean (Hangul), and a few
different Chinese glyphs. However, I cannot see the incoming UTF-8
encoded chinese text from my XML. Russian and all my other languages are
working fine. But I get squares when trying to display Chinese or
Korean, even though the glyphs are embedded for both. Hmmm... do I need
a different font (Arial 'Unicode') or am I doing something wrong?

Thanks much.


Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] [AS2] bitmapdata from external loaded swf

2008-01-22 Thread Matthew James Poole
You're not lonely then - :P 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans
Wichman
Sent: 22 January 2008 11:06
To: [EMAIL PROTECTED]; Flash Coders List
Subject: Re: [Flashcoders] [AS2] bitmapdata from external loaded swf

http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg37404.h
tml

:)


On Jan 22, 2008 8:54 AM, Latcho <[EMAIL PROTECTED]> wrote:

> Hi list,
>
> Playin with setup strategies, my major hassle was a shared library.
> When I load library.swf in main.swf with MCloader, i noticed there was

> no way of doing a loadBitmap from within main.swf to get to the 
> bitmap-data of the linked bitmap in the library.swf An experiment 
> followed:
>
> I put this in the root of library.swf and recompiled:
> *_Library.swf
>
> _*import flash.display.BitmapData;
> Object.prototype.libload=function (_lnk){
>var b:BitmapData;
>b=BitmapData.loadBitmap(_lnk);
>return b;
> }
> ASSetPropFlags(Object.prototype, "libload", 7)
>
> _
> *Main.swf:*_
> //after the library was loaded !
> var _bmp:BitmapData=libload("librarylink")
> trace("checkwidth:"+_bmp.width)
>
> To my amazement this traces the actual width of the library linked 
> bitmap !
> I can even attach the bmp it to an clip in main.swf
>
> Now I have some questions:
>
> If above is the case, that you can't use a loadbitmap() to get to a 
> library-asset of a (loaded) external swf, then why is it that this 
> works ? And then why in the first place was this functionallity not 
> implemented in the flash 8 api ?
> Are there cleaner ways or is this a lonely invention?
>
> Regards,
> Latcho
>
>
>
>
> ___
> 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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] MultiLanguage

2008-01-21 Thread Matthew James Poole
Failing all that just code your own buttons using scale-9 so they can
stretch to fit the text...

... If that seems like hard work, maybe the project should be done in
Flex which has a localisation API and a framework specifically designed
to handle this sort of dynamically changing interface 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis -
I Sioux
Sent: 21 January 2008 13:36
To: [EMAIL PROTECTED]; Flash Coders List
Subject: Re: [Flashcoders] MultiLanguage

I agree with Glen on the stringpanel part.
I've done a big project in the past with multilanguage games..
stringpanel is a good start.. although if you want to give the user the
possibility to select the language at runtime you had to code that
yourself into the panel.. (that was made back in flash 7 though.. might
be in there right now) ..

Translating it on forhand isn't always an option.. somtimes the product
gets popular and a new country/language is added..
The way we did it is to keep space for larger languages in the design..
and if it isn't possible to translate it shorter.. it will always be a
pain in the @ss.. but there should be a balance to keep the
designer/design happy and the translations/translators good..

We made an extra panel to add character sets to all textfields on the
press of a button.. this way it is easier to add a new character set.

Hope this helps..

With kind regards,

Dennis
Isioux

- Original Message -
From: "Glen Pike" <[EMAIL PROTECTED]>
To: "Flash Coders List" 
Sent: Monday, January 21, 2008 2:01 PM
Subject: Re: [Flashcoders] MultiLanguage


> Hi,
>
>Look at using the "Strings Panel" - it's in FL8, probably in CS3.
This 
> lets you attach an ID to all your text fields, etc. and define
languages 
> in XML.  The help has more in depth stuff about this, but that is a
good 
> start.
>
>You may also want to ensure all your translation is done before the

> designer starts, otherwise they might start getting stressed when you
ask 
> them to resize a button for German, etc.
>
>Glen
>
> Geografiek wrote:
>> Hi Dave,
>> I would ask the designer to put all the text in dynamic textFields
(and 
>> fill them w3ith dummy text).
>> You can than adress these TextFields and fill them with text from a 
>> database at runtime, depending on a 'language' flag.
>> HTH,
>> Willem van den Goorbergh
>>
>> Op 21-jan-2008, om 13:26 heeft Dave Mennenoh het volgende geschreven:
>>
>>> I may be doing an app that has to be deployed in various languages,
and 
>>> I'm trying to find a good method of doing it. I guess my main issue
is 
>>> that the interface is Flash, and would be created by a designer.
Content 
>>> is pretty much all external, but things like button text, tool tip
text, 
>>> etc. are put in place by the designer.
>>>
>>> I'd thought of just making different interface 'shells' for the
various 
>>> languages, but that'd be more difficult to maintain. What'd be
perfect 
>>> is language plugins but then I'm not quite sure on how to handle
sizing 
>>> problems - especially with certain languages like chinese.
>>>
>>> Just looking for some guidance.
>>>
>>>
>>> Dave -
>>> Head Developer
>>> http://www.blurredistinction.com
>>> Adobe Community Expert
>>> http://www.adobe.com/communities/experts/
>>
>>
>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>> Geografiek is a Dutch, Utrecht-based map and chart design company.
>> Willem van den Goorbergh can be contacted by telephone:
(+31)30-2719512 
>> or cell phone: (+31)6-26372378
>> or by fax: (+31)302719687
>> snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
>> Visit our website at: http://www.geografiek.nl
>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>>
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
> -- 
>
> Glen Pike
> 01736 759321
> www.glenpike.co.uk 
> ___
> 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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee 

RE: [Flashcoders] Windowing in AIR

2008-01-21 Thread Matthew James Poole
Im on XP at work / Vista at home and don't get the border, so that's a
bit weird. 

Ah, NativeWindow.bounds, that looks like just the thing - includes any
system chrome (visible or not). Lots of handy events with it too by the
looks. Yeah, let me know how it goes - good luck.

Cheers
Matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 18 January 2008 18:27
To: Flash Coders List
Subject: Re: [Flashcoders] Windowing in AIR

I'm using XP, i have noticed that on Vista it doesn't do it, on mac it
is also a bit weird.
I think i have found something, namely NativeWindowBounds, i'll let you
know about my findings

Sid

Matthew James Poole wrote:
> Ah I see.
>
> Oddly I don't actually get that border when dragging the employees 
> app, which OS are you using?
>
> ... You could always ensure that your main NativeWindow is always 
> maximised and other 'windows' inside are just MovieClips, but that's a

> bit hacky
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 18 January 2008 10:45
> To: Flash Coders List
> Subject: Re: [Flashcoders] Windowing in AIR
>
> Hi Matthew,
>
> I have placed the screenshots online at: 
> http://www.funky-monkey.nl/flashcoders/
> The border you see, is the border that appears when i drag the app. I 
> have placed the EmployeeDirectory also in the screenshot so you can 
> see the difference.
>
> Hope this makes it more clear,
>
> Cheers,
>
> Sidney
>
>
>
> Matthew James Poole wrote:
>   
>> Screen shots would be good please mate - I don't seem to get any 
>> problem with the sample AIR, I'm probably still misunderstanding the 
>> issue though ;)
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Sidney
>> 
>
>   
>> de Koning
>> Sent: 17 January 2008 10:52
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] Windowing in AIR
>>
>> Well, kindof, if you install that EmployeeDirectory app, you see that

>> when you drag, the size of the window is only as big as the content, 
>> and then your operating system displays an border for how big the app

>> is(only if you dragg it). when the app is folded out (when you press 
>> the little i button) and you start dragging you see that the border 
>> when you drag it, is again just as big as the app.
>> What happends with my app is that that border always stays the same, 
>> the size of my canvas i specify in the Flash IDE, and cannot make it 
>> any smaller. The bounds of my app will never confine to my content 
>> but
>> 
>
>   
>> only to my canvas. I want my bounds to be smaller accourding to the 
>> state of my app. Does that make any sense to you?
>>
>> If not clear, i can make some screenshots and place on my website if 
>> that helps,
>>
>> Thanks,
>>
>> Sid
>>
>> Matthew James Poole wrote:
>>   
>> 
>>> ...Ok, I think I see what you mean. NativeWindows are always 
>>> rectangular
>>> - The OS doesn't allow anything other than this. So the dimentions 
>>> of
>>>   
>
>   
>>> the NativeWindow will always be bigger than the size of the content 
>>> if
>>> 
>>>   
>>   
>> 
>>> it isnt rectangular in appearance.
>>>
>>> The work around for this is to not to set your drag on the 
>>> containing
>>>   
>
>   
>>> NativeWindow, but put it on your next container inside that... Does 
>>> that answer your question?
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>>> Sidney
>>> 
>>>   
>>   
>> 
>>> de Koning
>>> Sent: 17 January 2008 10:01
>>> To: Flash Coders List
>>> Subject: Re: [Flashcoders] Windowing in AIR
>>>
>>> Hi Matthew,
>>>
>>> Thanks for the answers; like i said:
>>>
>>> The problem that i dont want is that when my app unfolds, my 
>>> 'appllication canvas' is actully bigger that what the user sees. 
>>> When
>>>   
>
>   
>>> you dragg the app i want the draggeble area to be confined to the 
>>> size
>>> 
>>>   
>>   
>> 
>>> of the current state of my application). When your current state is 
&

RE: [Flashcoders] Windowing in AIR

2008-01-18 Thread Matthew James Poole
Ah I see.

Oddly I don't actually get that border when dragging the employees app,
which OS are you using?

... You could always ensure that your main NativeWindow is always
maximised and other 'windows' inside are just MovieClips, but that's a
bit hacky

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 18 January 2008 10:45
To: Flash Coders List
Subject: Re: [Flashcoders] Windowing in AIR

Hi Matthew,

I have placed the screenshots online at: 
http://www.funky-monkey.nl/flashcoders/
The border you see, is the border that appears when i drag the app. I
have placed the EmployeeDirectory also in the screenshot so you can see
the difference.

Hope this makes it more clear,

Cheers,

Sidney



Matthew James Poole wrote:
> Screen shots would be good please mate - I don't seem to get any 
> problem with the sample AIR, I'm probably still misunderstanding the 
> issue though ;)
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 17 January 2008 10:52
> To: Flash Coders List
> Subject: Re: [Flashcoders] Windowing in AIR
>
> Well, kindof, if you install that EmployeeDirectory app, you see that 
> when you drag, the size of the window is only as big as the content, 
> and then your operating system displays an border for how big the app 
> is(only if you dragg it). when the app is folded out (when you press 
> the little i button) and you start dragging you see that the border 
> when you drag it, is again just as big as the app.
> What happends with my app is that that border always stays the same, 
> the size of my canvas i specify in the Flash IDE, and cannot make it 
> any smaller. The bounds of my app will never confine to my content but

> only to my canvas. I want my bounds to be smaller accourding to the 
> state of my app. Does that make any sense to you?
>
> If not clear, i can make some screenshots and place on my website if 
> that helps,
>
> Thanks,
>
> Sid
>
> Matthew James Poole wrote:
>   
>> ...Ok, I think I see what you mean. NativeWindows are always 
>> rectangular
>> - The OS doesn't allow anything other than this. So the dimentions of

>> the NativeWindow will always be bigger than the size of the content 
>> if
>> 
>
>   
>> it isnt rectangular in appearance.
>>
>> The work around for this is to not to set your drag on the containing

>> NativeWindow, but put it on your next container inside that... Does 
>> that answer your question?
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Sidney
>> 
>
>   
>> de Koning
>> Sent: 17 January 2008 10:01
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] Windowing in AIR
>>
>> Hi Matthew,
>>
>> Thanks for the answers; like i said:
>>
>> The problem that i dont want is that when my app unfolds, my 
>> 'appllication canvas' is actully bigger that what the user sees. When

>> you dragg the app i want the draggeble area to be confined to the 
>> size
>> 
>
>   
>> of the current state of my application). When your current state is 
>> smaller than your canvas, you still see the border.
>>
>> For instance when you look at the EmployeeDirectory app, on 
>> http://labs.adobe.com/technologies/air/samples/ and when it folds 
>> open
>> 
>
>   
>> the 'canvas' is also stretched, and when you drag it, the borrder is 
>> only confined to the current state of the app.
>>
>> Can you tell me how this can be realized?
>>
>> Cheers, Sidney
>>
>>
>>
>> Matthew James Poole wrote:
>>   
>> 
>>> Hi Sid,
>>>
>>> 1. NativeWindow's have height and width properties, so you should be

>>> able just to set these directly 2. A NativeWindow is just that - an 
>>> OS
>>> 
>>>   
>>   
>> 
>>> native windo - so at best you can have a MC in a NativeWindow 3. see
>>> 2
>>> 
>>>   
>>   
>> 
>>> - a NativeWindow can have many MC's inside it...
>>> 4. Not really, though if it was the same size it would appear to be 
>>> masked (assuming the top one was visible) 5. Yes just set the width 
>>> and height, x and y properties onEnterFrame
>>>
>>> Cheers
>>> Matt
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On 

RE: [Flashcoders] Windowing in AIR

2008-01-17 Thread Matthew James Poole
Screen shots would be good please mate - I don't seem to get any problem
with the sample AIR, I'm probably still misunderstanding the issue
though ;) 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 17 January 2008 10:52
To: Flash Coders List
Subject: Re: [Flashcoders] Windowing in AIR

Well, kindof, if you install that EmployeeDirectory app, you see that
when you drag, the size of the window is only as big as the content, and
then your operating system displays an border for how big the app
is(only if you dragg it). when the app is folded out (when you press the
little i button) and you start dragging you see that the border when you
drag it, is again just as big as the app.
What happends with my app is that that border always stays the same, the
size of my canvas i specify in the Flash IDE, and cannot make it any
smaller. The bounds of my app will never confine to my content but only
to my canvas. I want my bounds to be smaller accourding to the state of
my app. Does that make any sense to you?

If not clear, i can make some screenshots and place on my website if
that helps,

Thanks,

Sid

Matthew James Poole wrote:
> ...Ok, I think I see what you mean. NativeWindows are always 
> rectangular
> - The OS doesn't allow anything other than this. So the dimentions of 
> the NativeWindow will always be bigger than the size of the content if

> it isnt rectangular in appearance.
>
> The work around for this is to not to set your drag on the containing 
> NativeWindow, but put it on your next container inside that... Does 
> that answer your question?
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 17 January 2008 10:01
> To: Flash Coders List
> Subject: Re: [Flashcoders] Windowing in AIR
>
> Hi Matthew,
>
> Thanks for the answers; like i said:
>
> The problem that i dont want is that when my app unfolds, my 
> 'appllication canvas' is actully bigger that what the user sees. When 
> you dragg the app i want the draggeble area to be confined to the size

> of the current state of my application). When your current state is 
> smaller than your canvas, you still see the border.
>
> For instance when you look at the EmployeeDirectory app, on 
> http://labs.adobe.com/technologies/air/samples/ and when it folds open

> the 'canvas' is also stretched, and when you drag it, the borrder is 
> only confined to the current state of the app.
>
> Can you tell me how this can be realized?
>
> Cheers, Sidney
>
>
>
> Matthew James Poole wrote:
>   
>> Hi Sid,
>>
>> 1. NativeWindow's have height and width properties, so you should be 
>> able just to set these directly 2. A NativeWindow is just that - an 
>> OS
>> 
>
>   
>> native windo - so at best you can have a MC in a NativeWindow 3. see 
>> 2
>> 
>
>   
>> - a NativeWindow can have many MC's inside it...
>> 4. Not really, though if it was the same size it would appear to be 
>> masked (assuming the top one was visible) 5. Yes just set the width 
>> and height, x and y properties onEnterFrame
>>
>> Cheers
>> Matt
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Sidney
>> 
>
>   
>> de Koning
>> Sent: 17 January 2008 09:16
>> To: Flash Coders List
>> Subject: [Flashcoders] Windowing in AIR
>>
>> Hi List,
>>
>> Couple of questions about AIR and NativeWindows.
>> - How do i set the width and height of an NativeWindow? Can i do that

>> in the code or only in the descriptor file?
>> - Can a NativeWindow also be an MovieClip (living in the library with
>> linkage) and how do i set this?
>> - Can a NativeWindow be composed of multiple movieclips?
>> - Can a NativeWindow be masked with another NativeWindow (to create a

>> sliding panel below the other NW)
>> - Is it possible to animate an NativeWindow (using third party 
>> classes
>> 
>
>   
>> like Tweener)
>>
>> What i would like to accomplish is this: The AIR app launches in a 
>> certain width and height but when i click a button, the app unfolds 
>> to
>> 
>
>   
>> a bigger version with the content, can i, at certain times set the 
>> size of my NativeWindow bigger?
>> (The problem that i dont want is that when my app unfolds, my 
>> 'appllication canvas' is actuly bigger that what the user sees. When 
>> you dragg the app i want the draggeble area to be confined to the 
>> size
>

RE: [Flashcoders] Windowing in AIR

2008-01-17 Thread Matthew James Poole
...Ok, I think I see what you mean. NativeWindows are always rectangular
- The OS doesn't allow anything other than this. So the dimentions of
the NativeWindow will always be bigger than the size of the content if
it isnt rectangular in appearance. 

The work around for this is to not to set your drag on the containing
NativeWindow, but put it on your next container inside that... Does that
answer your question?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 17 January 2008 10:01
To: Flash Coders List
Subject: Re: [Flashcoders] Windowing in AIR

Hi Matthew,

Thanks for the answers; like i said:

The problem that i dont want is that when my app unfolds, my
'appllication canvas' is actully bigger that what the user sees. When
you dragg the app i want the draggeble area to be confined to the size
of the current state of my application). When your current state is
smaller than your canvas, you still see the border.

For instance when you look at the EmployeeDirectory app, on
http://labs.adobe.com/technologies/air/samples/ and when it folds open
the 'canvas' is also stretched, and when you drag it, the borrder is
only confined to the current state of the app.

Can you tell me how this can be realized?

Cheers, Sidney



Matthew James Poole wrote:
> Hi Sid,
>
> 1. NativeWindow's have height and width properties, so you should be 
> able just to set these directly 2. A NativeWindow is just that - an OS

> native windo - so at best you can have a MC in a NativeWindow 3. see 2

> - a NativeWindow can have many MC's inside it...
> 4. Not really, though if it was the same size it would appear to be 
> masked (assuming the top one was visible) 5. Yes just set the width 
> and height, x and y properties onEnterFrame
>
> Cheers
> Matt
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 17 January 2008 09:16
> To: Flash Coders List
> Subject: [Flashcoders] Windowing in AIR
>
> Hi List,
>
> Couple of questions about AIR and NativeWindows.
> - How do i set the width and height of an NativeWindow? Can i do that 
> in the code or only in the descriptor file?
> - Can a NativeWindow also be an MovieClip (living in the library with
> linkage) and how do i set this?
> - Can a NativeWindow be composed of multiple movieclips?
> - Can a NativeWindow be masked with another NativeWindow (to create a 
> sliding panel below the other NW)
> - Is it possible to animate an NativeWindow (using third party classes

> like Tweener)
>
> What i would like to accomplish is this: The AIR app launches in a 
> certain width and height but when i click a button, the app unfolds to

> a bigger version with the content, can i, at certain times set the 
> size of my NativeWindow bigger?
> (The problem that i dont want is that when my app unfolds, my 
> 'appllication canvas' is actuly bigger that what the user sees. When 
> you dragg the app i want the draggeble area to be confined to the size

> of the current stat of my application)
>
> Help is appreciated :)
>
> Cheers,
>
> Sidney
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  
> NW6 6RJ
>
> Tel:  +44 (0) 870 788 6000  
>
> Fax: +44 (0) 870 788 6689
>
> Web:www.virtual-universe.net
>
> --
> ---
>
> CONFIDENTIALITY NOTICE
>
> This e-mail may contain information which is confidential and
privileged. If you are not the named addressee of this e-mail, you may
not copy or use it, or forward or otherwise disclose it to anyone else.
If you have received this e-mail in error, please e-mail the sender by
replying to this message and then fully delete it from your system. 
>
> Any views or opinions presented in this e-mail are solely those of the
author and do not necessarily represent those of Amplefuture Group.
Amplefuture Group reserves the right to monitor e-mail communications
from both external and internal sources for the purposes of ensuring
correct and appropriate use of our communication equipment.
>
>
>
> __
> This e

RE: [Flashcoders] Windowing in AIR

2008-01-17 Thread Matthew James Poole
I don't think I understand what the problem you having is. Are you
saying the not visible areas of your app are draggable? Because I have
apps that have differing shapes and sizes whose windows active area is
confined only to what is visible...

Can you explain your problem a bit more?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 17 January 2008 10:01
To: Flash Coders List
Subject: Re: [Flashcoders] Windowing in AIR

Hi Matthew,

Thanks for the answers; like i said:

The problem that i dont want is that when my app unfolds, my
'appllication canvas' is actully bigger that what the user sees. When
you dragg the app i want the draggeble area to be confined to the size
of the current state of my application). When your current state is
smaller than your canvas, you still see the border.

For instance when you look at the EmployeeDirectory app, on
http://labs.adobe.com/technologies/air/samples/ and when it folds open
the 'canvas' is also stretched, and when you drag it, the borrder is
only confined to the current state of the app.

Can you tell me how this can be realized?

Cheers, Sidney



Matthew James Poole wrote:
> Hi Sid,
>
> 1. NativeWindow's have height and width properties, so you should be 
> able just to set these directly 2. A NativeWindow is just that - an OS

> native windo - so at best you can have a MC in a NativeWindow 3. see 2

> - a NativeWindow can have many MC's inside it...
> 4. Not really, though if it was the same size it would appear to be 
> masked (assuming the top one was visible) 5. Yes just set the width 
> and height, x and y properties onEnterFrame
>
> Cheers
> Matt
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 17 January 2008 09:16
> To: Flash Coders List
> Subject: [Flashcoders] Windowing in AIR
>
> Hi List,
>
> Couple of questions about AIR and NativeWindows.
> - How do i set the width and height of an NativeWindow? Can i do that 
> in the code or only in the descriptor file?
> - Can a NativeWindow also be an MovieClip (living in the library with
> linkage) and how do i set this?
> - Can a NativeWindow be composed of multiple movieclips?
> - Can a NativeWindow be masked with another NativeWindow (to create a 
> sliding panel below the other NW)
> - Is it possible to animate an NativeWindow (using third party classes

> like Tweener)
>
> What i would like to accomplish is this: The AIR app launches in a 
> certain width and height but when i click a button, the app unfolds to

> a bigger version with the content, can i, at certain times set the 
> size of my NativeWindow bigger?
> (The problem that i dont want is that when my app unfolds, my 
> 'appllication canvas' is actuly bigger that what the user sees. When 
> you dragg the app i want the draggeble area to be confined to the size

> of the current stat of my application)
>
> Help is appreciated :)
>
> Cheers,
>
> Sidney
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  
> NW6 6RJ
>
> Tel:  +44 (0) 870 788 6000  
>
> Fax: +44 (0) 870 788 6689
>
> Web:www.virtual-universe.net
>
> --
> ---
>
> CONFIDENTIALITY NOTICE
>
> This e-mail may contain information which is confidential and
privileged. If you are not the named addressee of this e-mail, you may
not copy or use it, or forward or otherwise disclose it to anyone else.
If you have received this e-mail in error, please e-mail the sender by
replying to this message and then fully delete it from your system. 
>
> Any views or opinions presented in this e-mail are solely those of the
author and do not necessarily represent those of Amplefuture Group.
Amplefuture Group reserves the right to monitor e-mail communications
from both external and internal sources for the purposes of ensuring
correct and appropriate use of our communication equipment.
>
>
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs. 
> 

RE: [Flashcoders] Windowing in AIR

2008-01-17 Thread Matthew James Poole
Hi Sid,

1. NativeWindow's have height and width properties, so you should be
able just to set these directly 
2. A NativeWindow is just that - an OS native windo - so at best you can
have a MC in a NativeWindow
3. see 2 - a NativeWindow can have many MC's inside it...
4. Not really, though if it was the same size it would appear to be
masked (assuming the top one was visible)
5. Yes just set the width and height, x and y properties onEnterFrame

Cheers
Matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 17 January 2008 09:16
To: Flash Coders List
Subject: [Flashcoders] Windowing in AIR

Hi List,

Couple of questions about AIR and NativeWindows.
- How do i set the width and height of an NativeWindow? Can i do that in
the code or only in the descriptor file?
- Can a NativeWindow also be an MovieClip (living in the library with
linkage) and how do i set this?
- Can a NativeWindow be composed of multiple movieclips?
- Can a NativeWindow be masked with another NativeWindow (to create a
sliding panel below the other NW)
- Is it possible to animate an NativeWindow (using third party classes
like Tweener)

What i would like to accomplish is this: The AIR app launches in a
certain width and height but when i click a button, the app unfolds to a
bigger version with the content, can i, at certain times set the size of
my NativeWindow bigger?
(The problem that i dont want is that when my app unfolds, my
'appllication canvas' is actuly bigger that what the user sees. When you
dragg the app i want the draggeble area to be confined to the size of
the current stat of my application)

Help is appreciated :)

Cheers,

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] Classes added

2008-01-15 Thread Matthew James Poole
Yep we got that ;) 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: 15 January 2008 00:55
To: Flash Coders List
Subject: Re: [Flashcoders] Classes added

And by that I mean that it's poorly written, hehe.

>> 14.11 New expressions
>>
>> A new expression results in the invocation of the intrinsic construct

>> method of the value computed by the expression that follows the new 
>> keyword. Arguments, if specified, are passed to the construct method.

>> If no arguments are specified, the parentheses may be omitted.
>>   
> That paragraph really clears things up. LOL!

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] component rendering delay

2008-01-11 Thread Matthew James Poole
Have a look at this using a pseudo-threading technique for large
processing jobs that affect the UI - this should be what you need:

http://blogs.adobe.com/aharui/2008/01/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of learner
Sent: 11 January 2008 13:07
To: [EMAIL PROTECTED]; Flashcoders mailing list
Subject: [Flashcoders] component rendering delay

Hi all,
My component structure contains following things:


 
 
  
  
  


when i create this component it takes time to render its UI, the reason
is mainly because,
1) The list has dataProvider which takes a custom item rendere  which
has images and 5-6 labels and a textArea
2) I Add VBox to tabnavigator and and in this Vbox I add lots of row
more than 50 , which has images and text...

So the base component takes time to render and all the  things on the UI
hangs ,, the processing resumes after 1/2 or 1 second..
is there any way which we can improve the processing time...

Thanks in advance ..please help
Regards
PS
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] startAtLogin in AIR

2008-01-11 Thread Matthew James Poole
Cool, have you had a go with using Flex for AIR? Is very good :)

... Its about time I installed the Flash extension for AIR too ;) 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 11 January 2008 10:01
To: Flash Coders List
Subject: Re: [Flashcoders] startAtLogin in AIR

That works :) Thanks

Muzak wrote:
>> How do you trace your messages in AIR from the IDE? i dont get any i 
>> just noticed.
>>
>
> In the Flash IDE:
> "Debug -> Debug Movie" works fine here.
>
> As explained in the docs:
> http://livedocs.adobe.com/labs/air/1/devappsflash/
> http://livedocs.adobe.com/labs/air/1/devappsflash/UsingFlash_5.html#10
> 84922
>
>
> - Original Message - From: "Sidney de Koning" 
> <[EMAIL PROTECTED]>
> To: "Flash Coders List" 
> Sent: Thursday, January 10, 2008 6:27 PM
> Subject: Re: [Flashcoders] startAtLogin in AIR
>
>
>> I'll leave it be than, i'll use the standard adobe methods, they are 
>> working without a hassel (time constrain ... :S)
>>
>> How do you trace your messages in AIR from the IDE? i dont get any i 
>> just noticed.
>>
>> Matthew James Poole wrote:
>>> There are a few changes to the File class for example 
>>> file.resolve(url), is now file.resolvePath(url) and there are a 
>>> couple of new methods ...
>>>
>>> ... But from the error it looks like the AIRRemoteUpdaterEvent class

>>> is missing an import.
>>>
>
> ___
> 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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] startAtLogin in AIR

2008-01-10 Thread Matthew James Poole
Good plan, it doesn't look that complicated anyway...

@How do you trace your messages in AIR from the IDE?

Are you using Flex or Flash? I've not built any AIR in Flash so I cant
comment, but in Flex you get full stack trace, debug and memory profiler
for working in the IDE ;)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 10 January 2008 17:27
To: Flash Coders List
Subject: Re: [Flashcoders] startAtLogin in AIR

I'll leave it be than, i'll use the standard adobe methods, they are
working without a hassel (time constrain ... :S)

How do you trace your messages in AIR from the IDE? i dont get any i
just noticed.

Matthew James Poole wrote:
> There are a few changes to the File class for example 
> file.resolve(url), is now file.resolvePath(url) and there are a couple
of new methods ...
>
> ... But from the error it looks like the AIRRemoteUpdaterEvent class 
> is missing an import.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 10 January 2008 14:49
> To: Flash Coders List
> Subject: Re: [Flashcoders] startAtLogin in AIR
>
> Nice one :)
>
> Another thing, maybe you know this aswell; i'm using Claus Wahlers AIR

> update class (http://codeazur.com.br/lab/airremoteupdater/) and i 
> already converted it to beta 3, however there is still a error i'm 
> getting about the flash.filesystem.File; import it says:
> 1046: Type was not found or was not a compile-time constant: File. 
> public function AIRRemoteUpdaterEvent(type:String, file:File = null, 
> bubbles:Boolean = false, cancelable:Boolean = true) { 
>
> Had anything changed in flash.filesystem.File aswell?
>
> Cheers,
> Sid
>
> Matthew James Poole wrote:
>   
>> Hi Sid,
>>
>> Thanks, That makes sense. That does help me - I'll be starting a app 
>> soon that will need it. I've posted this the bug list anyway as this 
>> isnt a very desriable thing:
>>
>> http://bugs.adobe.com/jira/browse/SDK-14282
>>
>> You can try looking to see if you are running in a IDE player - In 
>> AS2
>> 
>
>   
>> you could look at System.capabilities.playerType for this - I'm not 
>> sure what AIR returns to this, but it should be different when 
>> running
>> 
>
>   
>> in the IDE compared to a installed release version
>>
>> Cheers
>> Matt
>>
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Sidney
>> 
>
>   
>> de Koning
>> Sent: 10 January 2008 10:44
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] startAtLogin in AIR
>>
>> Hi Matthew,
>>
>> Turns out that my function works, but only when i package and install

>> it, not when testing in the IDE, (and that is where the "Feature is 
>> not available" error came from. So on Beta 3 it is:
>> NativeApplication.nativeApplication.startAtLogin = Boolean;
>>
>> Hope this helps you aswell :)
>>
>> Sid
>>
>> Matthew James Poole wrote:
>>   
>> 
>>> Hi Sidney,
>>>
>>> I've just searched the Adobe bugs db on jira and there doesn't seem 
>>> to
>>> 
>>>   
>>   
>> 
>>> be anything reported for this. But I can confirm that I get the same

>>> RTE too, so I'd guess they will make it available at the real 
>>> launch... Had you tried this functionality in the Earlier releases? 
>>> -
>>>   

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully del

RE: [Flashcoders] startAtLogin in AIR

2008-01-10 Thread Matthew James Poole
There are a few changes to the File class for example file.resolve(url),
is now file.resolvePath(url) and there are a couple of new methods ...

... But from the error it looks like the AIRRemoteUpdaterEvent class is
missing an import.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 10 January 2008 14:49
To: Flash Coders List
Subject: Re: [Flashcoders] startAtLogin in AIR

Nice one :)

Another thing, maybe you know this aswell; i'm using Claus Wahlers AIR
update class (http://codeazur.com.br/lab/airremoteupdater/) and i
already converted it to beta 3, however there is still a error i'm
getting about the flash.filesystem.File; import it says:
1046: Type was not found or was not a compile-time constant: File. 
public function AIRRemoteUpdaterEvent(type:String, file:File = null, 
bubbles:Boolean = false, cancelable:Boolean = true) { 

Had anything changed in flash.filesystem.File aswell?

Cheers,
Sid

Matthew James Poole wrote:
> Hi Sid,
>
> Thanks, That makes sense. That does help me - I'll be starting a app 
> soon that will need it. I've posted this the bug list anyway as this 
> isnt a very desriable thing:
>
> http://bugs.adobe.com/jira/browse/SDK-14282
>
> You can try looking to see if you are running in a IDE player - In AS2

> you could look at System.capabilities.playerType for this - I'm not 
> sure what AIR returns to this, but it should be different when running

> in the IDE compared to a installed release version
>
> Cheers
> Matt
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 10 January 2008 10:44
> To: Flash Coders List
> Subject: Re: [Flashcoders] startAtLogin in AIR
>
> Hi Matthew,
>
> Turns out that my function works, but only when i package and install 
> it, not when testing in the IDE, (and that is where the "Feature is 
> not available" error came from. So on Beta 3 it is:
> NativeApplication.nativeApplication.startAtLogin = Boolean;
>
> Hope this helps you aswell :)
>
> Sid
>
> Matthew James Poole wrote:
>   
>> Hi Sidney,
>>
>> I've just searched the Adobe bugs db on jira and there doesn't seem 
>> to
>> 
>
>   
>> be anything reported for this. But I can confirm that I get the same 
>> RTE too, so I'd guess they will make it available at the real 
>> launch... Had you tried this functionality in the Earlier releases? -

>> I believe it was called Shell.startApplicationAtLogin...
>>
>> Cheers
>> Matt
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Sidney
>> 
>
>   
>> de Koning
>> Sent: 10 January 2008 09:28
>> To: Flash Coders List
>> Subject: [Flashcoders] startAtLogin in AIR
>>
>> Hi List,
>>
>> I'm creating an app in AIR and do a
>> NativeApplication.nativeApplication.startAtLogin = true; (i have also
>> tried: NativeApplication.startAtLogin as stated in
>> http://labs.adobe.com/wiki/index.php/AIR:Release_Notes) to create a 
>> startup folder entry (pc and mac). I import the file 
>> flash.desktop.NativeApplication.
>> However it gives me this error:
>>
>> Error: Error #2014: Feature is not available at this time.
>> at flash.desktop::NativeApplication/set startAtLogin()
>> at ae_fla::MainTimeline/setRunAtStartup()
>> at ae_fla::MainTimeline/frame1()
>>
>> I have checked the error codes here: 
>> http://www.flexcoders.cn/showtopic-582.aspx and it says that " The 
>> feature is not supported on this system.". Now i have checked the 
>> labs.adobe docs and said it should be in there, i'm using the beta 3 
>> for CS3.
>>
>> Does anyone have experience with this? Or know a workaround? Maybe 
>> the
>> 
>
>   
>> method call was changed in beta 3?
>>
>>
>> Cheers,
>>
>> Sidney
>> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  
> NW6 6RJ
>
> Tel:  +44 (0) 870 788 6000  
>
> Fax: 

RE: [Flashcoders] startAtLogin in AIR

2008-01-10 Thread Matthew James Poole
Hi Sid,

Thanks, That makes sense. That does help me - I'll be starting a app
soon that will need it. I've posted this the bug list anyway as this
isnt a very desriable thing:

http://bugs.adobe.com/jira/browse/SDK-14282

You can try looking to see if you are running in a IDE player - In AS2
you could look at System.capabilities.playerType for this - I'm not sure
what AIR returns to this, but it should be different when running in the
IDE compared to a installed release version

Cheers
Matt


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 10 January 2008 10:44
To: Flash Coders List
Subject: Re: [Flashcoders] startAtLogin in AIR

Hi Matthew,

Turns out that my function works, but only when i package and install
it, not when testing in the IDE, (and that is where the "Feature is not
available" error came from. So on Beta 3 it is: 
NativeApplication.nativeApplication.startAtLogin = Boolean;

Hope this helps you aswell :)

Sid

Matthew James Poole wrote:
> Hi Sidney,
>
> I've just searched the Adobe bugs db on jira and there doesn't seem to

> be anything reported for this. But I can confirm that I get the same 
> RTE too, so I'd guess they will make it available at the real 
> launch... Had you tried this functionality in the Earlier releases? - 
> I believe it was called Shell.startApplicationAtLogin...
>
> Cheers
> Matt
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 10 January 2008 09:28
> To: Flash Coders List
> Subject: [Flashcoders] startAtLogin in AIR
>
> Hi List,
>
> I'm creating an app in AIR and do a
> NativeApplication.nativeApplication.startAtLogin = true; (i have also
> tried: NativeApplication.startAtLogin as stated in
> http://labs.adobe.com/wiki/index.php/AIR:Release_Notes) to create a 
> startup folder entry (pc and mac). I import the file 
> flash.desktop.NativeApplication.
> However it gives me this error:
>
> Error: Error #2014: Feature is not available at this time.
> at flash.desktop::NativeApplication/set startAtLogin()
> at ae_fla::MainTimeline/setRunAtStartup()
> at ae_fla::MainTimeline/frame1()
>
> I have checked the error codes here: 
> http://www.flexcoders.cn/showtopic-582.aspx and it says that " The 
> feature is not supported on this system.". Now i have checked the 
> labs.adobe docs and said it should be in there, i'm using the beta 3 
> for CS3.
>
> Does anyone have experience with this? Or know a workaround? Maybe the

> method call was changed in beta 3?
>
>
> Cheers,
>
> Sidney
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] startAtLogin in AIR

2008-01-10 Thread Matthew James Poole
Hi Sidney,

I've just searched the Adobe bugs db on jira and there doesn't seem to
be anything reported for this. But I can confirm that I get the same RTE
too, so I'd guess they will make it available at the real launch... Had
you tried this functionality in the Earlier releases? - I believe it was
called Shell.startApplicationAtLogin...

Cheers
Matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 10 January 2008 09:28
To: Flash Coders List
Subject: [Flashcoders] startAtLogin in AIR

Hi List,

I'm creating an app in AIR and do a
NativeApplication.nativeApplication.startAtLogin = true; (i have also
tried: NativeApplication.startAtLogin as stated in
http://labs.adobe.com/wiki/index.php/AIR:Release_Notes) to create a
startup folder entry (pc and mac). I import the file
flash.desktop.NativeApplication.
However it gives me this error:

Error: Error #2014: Feature is not available at this time.
at flash.desktop::NativeApplication/set startAtLogin()
at ae_fla::MainTimeline/setRunAtStartup()
at ae_fla::MainTimeline/frame1()

I have checked the error codes here: 
http://www.flexcoders.cn/showtopic-582.aspx and it says that " The
feature is not supported on this system.". Now i have checked the
labs.adobe docs and said it should be in there, i'm using the beta 3 for
CS3.

Does anyone have experience with this? Or know a workaround? Maybe the
method call was changed in beta 3?


Cheers,

Sidney

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


Re: [Flashcoders] Error 1120?

2008-01-09 Thread James Booth

Try :

public class MathUtil {

- James

On Jan 9, 2008, at 10:00 PM, Dwayne Neckles wrote:


thanks so much for help me out
but its not working still here is the updated code..

** inside fla 
import com.bigspaceship.util.math.MathUtil;

var num:Number = MathUtil.getRandom(4,100);
trace(num)
* Class file below

package com.bigspaceship.util.math{
class MathUtil {

static var min_num:Number;
static var max_num:Number;
static var num1:Number;
static var num2:Number;
public static function getRandom(min_num, max_num) {
//return min_num + Math.floor(Math.random() * (max_num  
+ 1 - min_num));

}

public static function getRandomFloat(min_num, max_num) {
//return (min_num + Math.random() * (max_num - min_num));

}
public static function getCenterPoint(num1,num2) {
//return (num1 - num2 )/ 2;
}
}
}




Date: Wed, 9 Jan 2008 18:35:18 -0800
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Error 1120?

You're attempting to access instance vars in a static method.  Make
min_num and max_num static.

Also, you don't need to put a constructor in a static class.

Also, you should follow common practice and put public before static
when declaring functions and variables.


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


_
Watch “Cause Effect,” a show about real people making a real  
difference.
http://im.live.com/Messenger/IM/MTV/? 
source=text_watchcause___

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


James Booth
[EMAIL PROTECTED]



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


RE: [Flashcoders] capture and email

2008-01-08 Thread Matthew James Poole
If its AS3 You could use the JPEGEncoder class to send a ByteArray over
remoting using AMF3 and create the jpg serevr side and add it to an
attachment of an email you send or embed it...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bo
Parker
Sent: 08 January 2008 17:26
To: Flashcoders mailing list
Subject: [Flashcoders] capture and email

I have an application that allows people to build, and customize
buildings. The client would like the functionality available to screen
capture their final building and attach to an email through a flash
based email form. The email form is no problem but
1) I"m not sure how to is best to capture what they have built on screen
&
2) not sure how to take that capture and attach the email.

Can you guys possibly steer me in the right direction?

Thanks,

--
Bo Parker, AIGA
Bo Co. Design
650 W Vickery
Suite 130
Fort Worth, Texas  76104

817.332.4700 phone
817.332.4710 facsimile

www.rmcfw.com


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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] PUSH/PULL model in AIR

2008-01-08 Thread Matthew James Poole
Its sounds like you want to investigate using an XMLSocket Server users
connect and stay connected such that when a change occurs all connected
clients get the data instantly (plus or minus the latency / wire time) 

Download the trials of one of both of these and have a play:

http://www.smartfoxserver.com/
http://www.electro-server.com/

I can help suggest architechtures for these if you like...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 08 January 2008 17:15
To: Flash Coders List
Subject: Re: [Flashcoders] PUSH/PULL model in AIR

Hi Matthew,

Thanks for the reply, it cleared things up.

What i 'm trying to achieve is this: I have a application that is just
listening to updates according to the preferences within tha app, and
checks every 5 minutes if there is an update. However with the push
model , as soon as an update is available it is pushed to all connected
clients. And this is what i would like to accomplish, to have updates
pushed to my app. Updates are in the form of xml or text (dont know how
an socket server pushes its data, or in what format it is. is there and
uniform format or can i specify?)

Thanks

Sidney


Matthew James Poole wrote:
> Hi Sidney,
>
> It is possible to write socket servers in PHP (theres one in the Pear
> library), but php is not generally considered a good language to write
> one in. As such most Socket Servers used with Flash are written in
Java
> (or sometimes .Net).
>
> It really depends on what you are trying to achieve, for example if
its
> multiuser games or chat then there are plenty of 3rd party solutions
out
> there - SmartFox and ElectroServer being just two. Also have you
> considered using FMS? The new FMSI (or FMS 3.0) is looking like it
will
> be very good... 
>
> ... If the data doesn't need to be instantly synchronised across all
> users then you might be better opting for polling your php on
interval.
>
> BlazeDS is the new Open Source remoting and web messagaing solution
from
> Adobe. I believe it used to be part of Life Cycle Data services which
is
> a paid-for product, but Adobe have now opened it up. Ultimately there
> will be some sort of socket server involved in BlazeDS. BlazeDS is
more
> the framework that makes it easy to integrate distributed data into
> Flex/AIR (also its written in Java so you'd need some sort of Java
> application server such as Apache Tomcat (free) or IBM Websphere (not
> free) etc).
>
> Heres the BlazeDS link on labs:
> http://labs.adobe.com/technologies/blazeds/
>
> Hope all this helps
>
> Cheers
> Matt
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney
> de Koning
> Sent: 08 January 2008 15:54
> To: Flash Coders List
> Subject: Re: [Flashcoders] PUSH/PULL model in AIR
>
> Hi Matthew!
>
> With a socket server, can you tell me how to go? What software would i
> need, and how long would it take to set up a socket server? (can this
be
> done with php, or do i need another language? because it needs to
> support quite some people).
>
> Can you also explain the difference tween a socket server and BlazeDS?
>
> Thanks in advance,
>
> Sidney
>
> Matthew James Poole wrote:
>   
>> Everything you can do in Flex you can do in AIR, with the addition 
>> that the security model is more relaxed. So yes polling a php script 
>> would work. Or you could use XMLSocker or BinarySocker to have actual

>> push - though you'd need a socket server to achieve this...
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
Sidney
>> 
>
>   
>> de Koning
>> Sent: 08 January 2008 14:30
>> To: Flash Coders List
>> Subject: [Flashcoders] PUSH/PULL model in AIR
>>
>> Hi List,
>>
>> Is there a push/pull model in AIR like there is in Flex? I need to 
>> show a popup if the database has changed.
>> What is the best way of realizing this?
>> My idea was this;
>> let the air app contact a server/database (through php) with an 
>> interval of 5 minutes orso to see if the data has changed, and if so,

>> show the popup. To simulate a push model.
>>
>> If anybody has some ground breaking ideas, or a really good way of 
>> realizing this, i'd love to hear!
>>
>> Thanks,
>>
>> Sidney
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
__
>> This e-mail has been scanned for 

RE: [Flashcoders] F9/Flex2: Resource Hit for Flash 8 Embeds?

2008-01-08 Thread Matthew James Poole
Yeah I think it may ignore any AS2 code when you embed an FP8 swf and
runs in the AVM2 as a simple animation... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen
Pike
Sent: 08 January 2008 16:42
To: Flash Coders List
Subject: Re: [Flashcoders] F9/Flex2: Resource Hit for Flash 8 Embeds?

Hi,

I think by using [Embed], the Flex compiler "Transcodes" stuff at
compile time - it also whinges about AS2 code if you are coding in AS3,
so I am guessing it maybe does not use the AVM1.

Runtime loading is different, but outside my expertise.

Glen

Matthew James Poole wrote:
> Flash 8 movies loaded into a Flash 9 movie use the AVM1, whereas 
> anything AS3 uses the AVM2. I wasn't aware that multiple AVM1 
> instances would be started up though...
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jer 
> Brand
> Sent: 08 January 2008 13:59
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] F9/Flex2: Resource Hit for Flash 8 Embeds?
>
> Okay, random question sparked by Glen Pike's response in another
thread:
>
> I was under the impression that any use of Flash 8 assets in a Flex 2 
> (and by extension Flash 9) by either embedding or loading caused the 
> new Player to instantiate a virtual FP8 player for each instance.
> Does it apply only to loadMovie-ish commands?
>
> Is this correct or did my reading comprehension fail me while first 
> learning Flex?
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  
> NW6 6RJ
>
> Tel:  +44 (0) 870 788 6000  
>
> Fax: +44 (0) 870 788 6689
>
> Web:www.virtual-universe.net
>
> --
> ---
>
> CONFIDENTIALITY NOTICE
>
> This e-mail may contain information which is confidential and
privileged. If you are not the named addressee of this e-mail, you may
not copy or use it, or forward or otherwise disclose it to anyone else.
If you have received this e-mail in error, please e-mail the sender by
replying to this message and then fully delete it from your system. 
>
> Any views or opinions presented in this e-mail are solely those of the
author and do not necessarily represent those of Amplefuture Group.
Amplefuture Group reserves the right to monitor e-mail communications
from both external and internal sources for the purposes of ensuring
correct and appropriate use of our communication equipment.
>
>
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs. 
> http://www.virtual-universe.net
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>   

-- 

Glen Pike
01736 759321
www.glenpike.co.uk <http://www.glenpike.co.uk>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] PUSH/PULL model in AIR

2008-01-08 Thread Matthew James Poole
Hi Sidney,

It is possible to write socket servers in PHP (theres one in the Pear
library), but php is not generally considered a good language to write
one in. As such most Socket Servers used with Flash are written in Java
(or sometimes .Net).

It really depends on what you are trying to achieve, for example if its
multiuser games or chat then there are plenty of 3rd party solutions out
there - SmartFox and ElectroServer being just two. Also have you
considered using FMS? The new FMSI (or FMS 3.0) is looking like it will
be very good... 

... If the data doesn't need to be instantly synchronised across all
users then you might be better opting for polling your php on interval.

BlazeDS is the new Open Source remoting and web messagaing solution from
Adobe. I believe it used to be part of Life Cycle Data services which is
a paid-for product, but Adobe have now opened it up. Ultimately there
will be some sort of socket server involved in BlazeDS. BlazeDS is more
the framework that makes it easy to integrate distributed data into
Flex/AIR (also its written in Java so you'd need some sort of Java
application server such as Apache Tomcat (free) or IBM Websphere (not
free) etc).

Heres the BlazeDS link on labs:
http://labs.adobe.com/technologies/blazeds/

Hope all this helps

Cheers
Matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 08 January 2008 15:54
To: Flash Coders List
Subject: Re: [Flashcoders] PUSH/PULL model in AIR

Hi Matthew!

With a socket server, can you tell me how to go? What software would i
need, and how long would it take to set up a socket server? (can this be
done with php, or do i need another language? because it needs to
support quite some people).

Can you also explain the difference tween a socket server and BlazeDS?

Thanks in advance,

Sidney

Matthew James Poole wrote:
> Everything you can do in Flex you can do in AIR, with the addition 
> that the security model is more relaxed. So yes polling a php script 
> would work. Or you could use XMLSocker or BinarySocker to have actual 
> push - though you'd need a socket server to achieve this...
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 08 January 2008 14:30
> To: Flash Coders List
> Subject: [Flashcoders] PUSH/PULL model in AIR
>
> Hi List,
>
> Is there a push/pull model in AIR like there is in Flex? I need to 
> show a popup if the database has changed.
> What is the best way of realizing this?
> My idea was this;
> let the air app contact a server/database (through php) with an 
> interval of 5 minutes orso to see if the data has changed, and if so, 
> show the popup. To simulate a push model.
>
> If anybody has some ground breaking ideas, or a really good way of 
> realizing this, i'd love to hear!
>
> Thanks,
>
> Sidney
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
>   

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e

RE: [Flashcoders] PUSH/PULL model in AIR

2008-01-08 Thread Matthew James Poole
... Also you could look into using BlazeDS if you know any Java you
could implement a JMS adapter for it... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
James Poole
Sent: 08 January 2008 15:00
To: Flash Coders List
Subject: RE: [Flashcoders] PUSH/PULL model in AIR

Everything you can do in Flex you can do in AIR, with the addition that
the security model is more relaxed. So yes polling a php script would
work. Or you could use XMLSocker or BinarySocker to have actual push -
though you'd need a socket server to achieve this... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 08 January 2008 14:30
To: Flash Coders List
Subject: [Flashcoders] PUSH/PULL model in AIR

Hi List,

Is there a push/pull model in AIR like there is in Flex? I need to show
a popup if the database has changed.
What is the best way of realizing this?
My idea was this;
let the air app contact a server/database (through php) with an interval
of 5 minutes orso to see if the data has changed, and if so, show the
popup. To simulate a push model.

If anybody has some ground breaking ideas, or a really good way of
realizing this, i'd love to hear!

Thanks,

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London
NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net


-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and
privileged. If you are not the named addressee of this e-mail, you may
not copy or use it, or forward or otherwise disclose it to anyone else.
If you have received this e-mail in error, please e-mail the sender by
replying to this message and then fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the
author and do not necessarily represent those of Amplefuture Group.
Amplefuture Group reserves the right to monitor e-mail communications
from both external and internal sources for the purposes of ensuring
correct and appropriate use of our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] PUSH/PULL model in AIR

2008-01-08 Thread Matthew James Poole
Everything you can do in Flex you can do in AIR, with the addition that
the security model is more relaxed. So yes polling a php script would
work. Or you could use XMLSocker or BinarySocker to have actual push -
though you'd need a socket server to achieve this... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 08 January 2008 14:30
To: Flash Coders List
Subject: [Flashcoders] PUSH/PULL model in AIR

Hi List,

Is there a push/pull model in AIR like there is in Flex? I need to show
a popup if the database has changed.
What is the best way of realizing this?
My idea was this;
let the air app contact a server/database (through php) with an interval
of 5 minutes orso to see if the data has changed, and if so, show the
popup. To simulate a push model.

If anybody has some ground breaking ideas, or a really good way of
realizing this, i'd love to hear!

Thanks,

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] F9/Flex2: Resource Hit for Flash 8 Embeds?

2008-01-08 Thread Matthew James Poole
Flash 8 movies loaded into a Flash 9 movie use the AVM1, whereas
anything AS3 uses the AVM2. I wasn't aware that multiple AVM1 instances
would be started up though... 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jer
Brand
Sent: 08 January 2008 13:59
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] F9/Flex2: Resource Hit for Flash 8 Embeds?

Okay, random question sparked by Glen Pike's response in another thread:

I was under the impression that any use of Flash 8 assets in a Flex 2
(and by extension Flash 9) by either embedding or loading caused the new
Player to instantiate a virtual FP8 player for each instance.
Does it apply only to loadMovie-ish commands?

Is this correct or did my reading comprehension fail me while first
learning Flex?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] Executing external ,exe witn AIR

2008-01-03 Thread Matthew James Poole
That's what we have the wish list for. Add it to Jira
http://bugs.adobe.com/jira and if enough people vote for it Adobe put it
in - simple :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Omar
Fouad
Sent: 02 January 2008 20:54
To: Flash Coders List
Subject: Re: [Flashcoders] Executing external ,exe witn AIR

I've been thinking about something else.. Why they don't let me execute
files from the fscommand like I do in any Projector application
(fscommand directory)... I think that this would be one solution, that
yet covers their security polices. Why should I Make use of other
programming technologies like .net or java while developing in
Adobe...And yet Microsoft and Sun are two major companies and their
products give us the functionality to do stuff like executing files,
printing without showing any dialog boxes etc... How they can permit to
let us wrap their products in other third party "compilers"?

On Jan 2, 2008 10:08 PM, Omar Fouad <[EMAIL PROTECTED]> wrote:

> First of all thanks for the replies, and by the way um sorry for being

> rude... The thing is that I found out that AIR does not support the 
> function too late, now that the whole project is finished and the 
> print function is missing - I am trying to find out a way to get it 
> working without doing the whole work again..
>
>
> ARRGHH never mind... but is it possible to have it available in the 
> next releases?
>
> And what about creating an application with multiple AIR files, or 
> executing other Installed AIR applications? Is that possible?
>
> Many Thanks
>
>
> On Jan 2, 2008 6:21 PM, Kerry Thompson <[EMAIL PROTECTED]>
wrote:
>
> > Steven Sacks wrote:
> >
> > > The only true benefits I see in AIR over other wrappers are:
> > >
> > > 1) Unified cross-platform development
> > > 2) First-Party Wrapper (Adobe)
> > >
> > > That's it.  If neither of those is important to your particular
> > project,
> > > you probably are better off using mProjector or Zinc.
> >
> > Or Director. It's also Adobe, an excellent wrapper for Flash, and a 
> > powerful product in its own right.
> >
> > Cordially,
> >
> > Kerry Thompson
> >
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> Omar M. Fouad - Digital Emotions
> http://www.omarfouad.net
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential 
> information and/or be subject to legal privilege. It should not be 
> copied, disclosed to, retained or used by, any other party. If you are

> not an intended recipient then please promptly delete this e-mail and 
> any attachment and all copies and inform the sender. Thank you.
>



--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.n

RE: [Flashcoders] Executing external ,exe witn AIR

2008-01-03 Thread Matthew James Poole
Or more to the point the lawyers :) 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ricky
Bacon
Sent: 03 January 2008 07:46
To: Flash Coders List
Subject: Re: [Flashcoders] Executing external ,exe witn AIR

Matthew James Poole wrote:
> I have to agree with Steven on this too if security isnt to much of an

> issue then use Zinc etc...

I constantly question Adobe's reasoning on this.  AIR is a great way to
present a platform...that sucks ass if you really want to do anything on
the client side.

Guess what?  If I want to break your sandbox, it's done.  No user should
download an app that they don't trust and no amount of your sandbox
would prevent me from breaking that if I were a cracker.  Give us
external access (dll, so, etc.).  Flash still has alot of potential.

Your marketers are getting in the way of your engineers.

/rant

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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] Executing external ,exe witn AIR

2008-01-02 Thread Matthew James Poole
Omar, fscommmand exec only works from with a projector i.e. not AIR in
addition to this AIR will print exactly as any other AS3 application
prints so if the AS3 print library allows you to do what you want then
you can do it in AIR if not, then you cant.

I have to agree with Steven on this too if security isnt to much of an
issue then use Zinc etc...

One other benefit over other wrappers steve is that it's a one off
install for the run time and there after you just all AIR apps will
work, whereas with all the other wrappers I've tried the wrapper has
bundled into every app install.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: 02 January 2008 06:25
To: Flash Coders List
Subject: Re: [Flashcoders] Executing external ,exe witn AIR

If you're having trouble with Adobe's beta wrapper, you should go with
one of the other wrappers.

Because AIR is a wrapper that is being pushed by a major company (Adobe)
and because they've been marketing it heavily, and because they want it
to be widely used and they want people to feel safe installing AIR
applications, AIR cannot have the level of power that other wrappers
have when it comes to accessing the operating system.

The fact is, with any other Flash wrapper, you can do some truly
nefarious things.  Heck, you could probably achieve some nasty stuff
with AIR as it is right now.

The only true benefits I see in AIR over other wrappers are:

1) Unified cross-platform development
2) First-Party Wrapper (Adobe)

That's it.  If neither of those is important to your particular project,
you probably are better off using mProjector or Zinc.

Cheers,
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
gaia: http://www.gaiaflashframework.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] AS3 drag-and-drop data grid

2007-12-19 Thread Matthew James Poole
The Flex data grid can do this. Obviously you are using flash, but you
could have a Flex swf with just the datagrid and load it in exposing the
API via code (or by local connection if that doesn't work). 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: 18 December 2007 17:47
To: Flash Coders List
Subject: [Flashcoders] AS3 drag-and-drop data grid

Does anyone know of a drag-and-drop data grid component (where you can
multi-select and drag/drop rows to new indices) for AS3?  The Adobe one
does not allow this type of behavior because it's always sorted.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


RE: [Flashcoders] Flex 3 & Air Beta 3

2007-12-17 Thread Matthew James Poole
Right, that will probably be becuase the stage.nativeWindow hasn't yet
initialized you can test this theory by using this code:


var timer:Timer = new Timer(100)
timer.addEventListener(Timer.TIMER, teststage);
timer.start();

function teststage (): void
{
if (stage.nativeWindow != undefined)
{
timer.stop();
backgroundClip.addEventListener(MouseEvent.MOUSE_DOWN,
doDrag); 
// any other set up
}
}

Something alon g those lines

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 13 December 2007 18:00
To: Flash Coders List
Subject: Re: [Flashcoders] Flex 3 & Air Beta 3

Hi Matthew,

Yes i'm using Flash IDE to publish.
i'm getting a bunch of errors:

1119: Access of possibly undefined property nativeWindow through a
reference with static type flash.display:Stage.

And also i get an error about a ArtemisJSExtension.cpp on line 563 -
importPublishProfile: Argument number 1 is invalid

So i cant trace the output of the event fired.

(i'll prabably replay tomorrow, have to be on my way now, but i'll read
your reply).

Cheers, Sidney

Matthew James Poole wrote:
> Hi Sidney,
>
> Assumiung you are working in Flex the following will work just fine 
> (just tested it myself)
>
>   xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="init()">
>   
>   
>   
>color="#ff9900" />
> 
>
> If you are working in Flash, I cant help you immediately as I don't 
> have the Flash Air extension installed, but does the event get fired??

> If it does what do you get when you trace(window)??
>
> Cheers
> Matt
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 09 December 2007 17:29
> To: Flash Coders List
> Subject: Re: [Flashcoders] Flex 3 & Air Beta 3
>
> Hi Mathew,
>
> Currently i'm developing a AIR application and it needs to drag when i

> click with my mouse on the background of the app.
> But that does not work any more. Can you lend assistence? Belwo is the
> code:
>
> import flash.events.MouseEvent;
> import flash.display.MovieClip;
>
> import flash.display.NativeWindow;
> import flash.display.Stage.nativeWindow; import 
> flash.events.MouseEvent;
>
> backgroundClip.addEventListener(MouseEvent.MOUSE_DOWN, doDrag); var 
> window:NativeWindow = stage.nativeWindow;
>
> function doDrag(event:MouseEvent):void {
> window.startMove();
> }
>
> Is there anything i'm forgetting?
>
> Regards, Sidney
>
>
> Matthew James Poole wrote:
>   
>> Heres a couple of differences I found in the framework since Beta 2:
>>
>> Air - the Shell object is no more it is replaced by the 
>> NativeApplication Singleton Air - the flash.desktop.DragManager is 
>> now
>> 
>
>   
>> mx.managers.DragManager Flex / Air - Clipboard object no longer has 
>> the dataFormats() method now use getData() instead
>>
>> ... That's it so far - I'll post more ifd I find any. Has anyone else

>> found any?
>>
>> Cheers
>> Matt
>> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  
> NW6 6RJ
>
> Tel:  +44 (0) 870 788 6000  
>
> Fax: +44 (0) 870 788 6689
>
> Web:www.virtual-universe.net
>
> --
> ---
>
> CONFIDENTIALITY NOTICE
>
> This e-mail may contain information which is confidential and
privileged. If you are not the named addressee of this e-mail, you may
not copy or use it, or forward or otherwise disclose it to anyone else.
If you have received this e-mail in error, please e-mail the sender by
replying to this message and then fully delete it from your system. 
>
> Any views or opinions presented in this e-mail are solely those of the
author and do not necessarily represent those of Amplefuture Group.
Amplefuture Group reserves the right to monitor e-mail communications
from both external and internal sources for the purposes of ensuring
correct and 

RE: [Flashcoders] navigateToURL or getURL and pop-up blocking

2007-10-24 Thread Matthew James Poole
John you'd need to have allowScriptAccess enabled in the page. If it is
then you can call window.open(...), otherwise - you might be out of
luck...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Olson
Sent: 20 October 2007 18:24
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] navigateToURL or getURL and pop-up blocking

I have a client Flash AS3 project where I need to open a new window  
from within Flash.   I won't have any control over the html wrapper  
for the SWF so I can't use javascript within the HTML page.   I've  
read suggestions about using Javascript:window.open but seems that will
get blocked as well.

Any suggestions?


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

__
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net

__

Virtual Universe Ltd, Amplefuture House, The Quadrant, 135 Salusbury Road, 
London  NW6 6RJ

Tel:  +44 (0) 870 788 6000  

Fax: +44 (0) 870 788 6689

Web:www.virtual-universe.net

-

CONFIDENTIALITY NOTICE

This e-mail may contain information which is confidential and privileged. If 
you are not the named addressee of this e-mail, you may not copy or use it, or 
forward or otherwise disclose it to anyone else. If you have received this 
e-mail in error, please e-mail the sender by replying to this message and then 
fully delete it from your system. 

Any views or opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of Amplefuture Group. Amplefuture Group 
reserves the right to monitor e-mail communications from both external and 
internal sources for the purposes of ensuring correct and appropriate use of 
our communication equipment.



__
This e-mail has been scanned for viruses by the Virtual Universe e-mail 
security system - powered by MessageLabs. http://www.virtual-universe.net

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


Re: [FlashCoders] AS3 TextFields with filters - game performance?

2007-09-14 Thread James Marsden
you'll only get a performance hit if the textfields are updating 
frequently. As soon as you apply a filter, the image is converted to a 
bitmap anyhoo (I believe).


If your fields rarely change, it shouldn't be an issue.

J


EECOLOR wrote:

I do not know what the performance inpact is of TextFields with
filters. If the performance it too great you could take a snapshot
of the text using a BitmapData instance. Then draw that BitmapData to
a Shape or Bitmap and apply the filters there.

As I said, I dont know about the difference in performance, but you could
try it :)


  

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

2007-09-12 Thread James Marsden

ha, ok

It's pretty fugly. All the functionality is accessed through 
ExternalInterface from JavaScript, so there are no Flash based buttons 
at all.


As the person responsible for building the HTML hasn't focused on it 
yet, it mings a considerable amount.


There are a few bugs still too, where undo/redo does unexpected things, 
and TextFormats aren't maintained throughout, but the guts of it are done!


http://www.futurlab.co.uk/clients/kowari/

J



dr.ache wrote:

show us! :)

James Marsden schrieb:

Hallo,

The text editor app is up and running now, thanks to those folks that 
offered suggestions.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] toString(aArray[i]) ?? does this work

2007-09-12 Thread James Marsden

try

var myStr:String = String(aArray[i]);// where 'i' is the increment.

J




Muzak wrote:

What is stored in the Array?

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

To: "Flash Coders" 
Sent: Tuesday, September 11, 2007 5:30 AM
Subject: [Flashcoders] toString(aArray[i]) ?? does this work



Quick question, can I toString an array element.
ie:   var  myStr:String  =  toString(aArray[i]);// where 'i' is the 
increment.

I am having an issue with this.  when I trace myStr it traces [object object]
instead of what I intended/expected "mcMovieClipName14" as a string.

Any insite would be appreciated.

Thanks in advance,

Paul V.


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

2007-09-12 Thread James Marsden

skillz, thanks :)



Muzak wrote:

Use javascript:

//HTML


 function getClipBoardText() {
  var t = window.clipboardData.getData("TEXT");
  return t;
 }



  

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

2007-09-11 Thread James Marsden

Hallo,

The text editor app is up and running now, thanks to those folks that 
offered suggestions. I've got everything working apart from the pasting 
of text. Does anyone know how it is possible to do this? Any cool tricks 
to access the clipboard from ActionScript (I've had a look online and 
found nowt).


Cheers!

James


dr.ache wrote:
Command done on the text! A command representing the action and the 
amount, like cut from location 3 to 24 of the text.

The text you cut of must also be saved, certainly!

James Marsden schrieb:



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

2007-09-04 Thread James Marsden

Hello,

This is what I was thinking - I find it hard to conceptualise the time 
aspect of undoing and redoing actions, and how to capture events such as 
cut and paste...


I guess cutting you just read the selected text at the point a Keyboard 
event for X gets fired at the same time as CTRL is held down? Is it that 
straightforward?


J




dr.ache wrote:
Command done on the text! A command representing the action and the 
amount, like cut from location 3 to 24 of the text.

The text you cut of must also be saved, certainly!

James Marsden schrieb:


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

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


[Flashcoders] Text Editor Undo/Redo Stack

2007-09-03 Thread James Marsden

Hello all,

I'm looking at building a very simple text editor application in Flash, 
which needs an undo/redo stack of around 20.


My question is related to capturing the events in the stack; whether the 
done thing is to capture the state of the text field contents at every 
step, or just to record commands that are operated on the text field. 
For example, when cutting a piece of text, does the system record the 
state of the textfield when the cut is made, or does it just record the 
action and values related to it, ie. "cut /piece of text/ from string 
position 344".


Any advice from bods with experience in this area much appreciated!

Thanks,

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

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


[Flashcoders] flv playback speed control

2007-08-24 Thread james o

can flv's be slowed down and or sped up programmatically?

any thoughts, directions or brain storms would be beneficial.

thanks,
./james

{ primaxSTUDIO : http://primaxSTUDIO.com : 513.772.1223 }



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem with xml.sendAndLoad, IE, https, and ASP

2007-08-24 Thread James Wrubel
I ran in to this same problem. The issue is that since everything in https
is supposed to expire immediately (meaning not be cached because it is
secure), IE actually expires the XML that's returned after it gets to the
page object but before making it available to any content on the page, such
as your swf.

If you have access to the IIS server, you need to remove the Pragma:no-cache
and/or Cache-control:no-cache HTTP headers.

See:

http://www.blog.lessrain.com/?p=276

Jim 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of matt
stuehler
Sent: Thursday, August 23, 2007 5:31 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Problem with xml.sendAndLoad, IE, https, and ASP

All,

I'm working on a project in which a SWF uses xml.sendAndLoad to send a short
XML document to an ASP page.

The ASP page receives the XML, parses it, pulls out a few pieces of data,
runs a query against  a database, and returns a longer XML document.

Everything works perfectly when I run the app over http. However, when I run
the app over https, it doesn't work (I can't tell if it can't call the ASP
page, or the ASP page doesn't respond, but it does fail immediately).

A few notes:

- the SWF and ASP page are in the same subdirectory, so it's not a
cross-domain issue

- the SWF doesn't include any absolute references, so I haven't hardcoded
"http" anywhere in the actionscript

- strangely - the entire process works perfectly in Firefox. It only fails
in IE

- the entire process also works perfectly if I run the app in the Flash IDE,
and call the ASP page over https

- if I comment out ALL of the logic/code in the ASP page, so that it just
uses "Response.write" to send back a simple XML document, it still fails.
So, it's not a problem with the ASP - it's a problem with the SWF/ASP
communication.

Does anyone have any thoughts, suggestions, advice on why this is the case,
or how to fix it?

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] ASDoc with Flash CS3

2007-07-23 Thread James Marsden

Here's my snip:



// naviation to FlexSDK
cd ../../Program Files/FlexSDK/bin

// Run ASDoc
asdoc -source-path S:\demo\game\source\com -doc-classes 
prism.engine.World -main-title "Prism Game Engine Documentation" 
-window-title "Prism Game Engine Documentation" -output 
S:\demo\game\source\docs




-- this worked for me because the World.as class links to all classes in 
the project


I used this for reference:

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=asdoc_127_2.html

Click the link at the bottom 'Running the ASDoc tool'



HTH,

James





Sherri wrote:

YAY! Someone got it working. I'm getting a bunch of compile errors too, so I
tried setting -strict=false but that seemed to just break it altogether...
is it possible for you to send me a snippet of what worked for you? It might
show me what I'm missing. 


*.*   Sherri

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Marsden
Sent: Monday, July 23, 2007 11:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] ASDoc with Flash CS3

Hey Sherri,

I got it working, but it took a lot of code tweaking - I'd converted a 
game engine from AS2, so there were endless compile errors on syntax etc.


J




Sherri wrote:
  

Just wondering if anyone has successfully used ASDoc with AS3 classes for
flash? I have used it for Flex projects no problem (so I don't need help
with that). but it seems to take a lot of tinkering to get it to work with
Flash projects and I still have the asdoc tool failing. 

 


If not, I'd be interested in learning about other similar doc tools to use
with Flash AS3 projects.

 


Thanks

 


*.*   Sherri

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

2007-07-23 Thread James Marsden

Hey Sherri,

I got it working, but it took a lot of code tweaking - I'd converted a 
game engine from AS2, so there were endless compile errors on syntax etc.


J




Sherri wrote:

Just wondering if anyone has successfully used ASDoc with AS3 classes for
flash? I have used it for Flex projects no problem (so I don't need help
with that). but it seems to take a lot of tinkering to get it to work with
Flash projects and I still have the asdoc tool failing. 

 


If not, I'd be interested in learning about other similar doc tools to use
with Flash AS3 projects.

 


Thanks

 


*.*   Sherri

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

2007-07-20 Thread James Ford
Does it make much use of bitmap objects in the library?  That's a real
bugger for Flash 8, I know. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jobe Makar
Sent: 20 July 2007 15:32
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Incredible Crashing Flash

Hi guys,

I have one FLA file that crashes Flash about one in 3 or 4 publishes. The
FLA was created by someone on a Mac. It appears to be very clean. It is
Flash CS3, AS3. This issue is not happening with any of my other projects.

Needless to say this is driving me crazy. Any ideas at all?

ps - I'm on Vista Ultimate. And by 'crash' I mean Flash stops responding and
eventually I'm told by Windows that it needs to be closed forcefully.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121 


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

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

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

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


RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

2007-07-10 Thread James Booth
Varun,

To make sure that any listener are properly removed and the way I usually
handle EventDispatcher, is to first create a private variable for the
delegate.

private var onStatus_func : Function;

Then in an init function or elsewhere prior to adding the listeners:

onStatus_func = Delegate.create (this, updateStatus);

then, adding the listener:

myClass.addEventListener ("onStatus", onStatus_func);

you would then remove it as:

myClass.removeEventListener ("onStatus", onStatus_func);

This is one of the few ways that will properly remove the eventListener.  I
tend to keep them in a destroy function to make it easy.

If you are throwing the delegate in as such:

myClass.addEventListener ("onStatus", Delegate.create (this, updateStatus));

myClass.removeEventListener ("onStatus", Delegate.create (this,
updateStatus));

This will not work. It's how the function is referenced.  I've done simple
tests with components to verify that it doesn't work.

Hope that helps.

- James

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Ngo
Sent: Tuesday, July 10, 2007 7:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Removing the MovieClips or objects does not remove the listeners to that
object. You would have to explicitly remove the listeners first then remove
your MovieClip/object. Otherwise, the reference to the listener will still
exist, thus not get picked up by garbage collection. This could be another
cause of your leak issue.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Varun
Soundararajan
Sent: Tuesday, July 10, 2007 2:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Hi James,
you are right, I use a lot of EventDispatcher in the code. Most of the
components throw events which are listened by other components in the scene.
I have lot of components, more commonly, Tree, Scrollpanes, list box,etc
etc..

in my XML if I command the object to be deleted, it gets deleted.

If it were a movieclip in a scrollpane.
i do :
scrollpane.content.unloadMovie();
scrollpane.content.removeMovieClip();

and then i unload and remove the scrollpane itself.

if say, the XML commands the object to be created, i would also add
eventHandlers for the object I created.. eg:
object.addActionListener("enter",Delegate.create(this,enterActionHandler));

I dont remember adding a removeActionListener method when the object is
deleted (the deletion command is sent through the XML, which makes the VM to
delete the object)..I will do that ASAP and see how that helps..

This is a good lead.. Are there anything else associated with Action
Listeners/Event Dipatchers that I missed out?

One more thing, New listeners are NOT added to the existing object during 1
minute intervals,
I add listeners only when I create a new object, in other words, if the
server through the XML commands the client to create an object.

Is there some profiler that will help know if any event that was dispatched
has not been caught by any component/object?

Thanks
Varun

On 7/10/07, James Booth <[EMAIL PROTECTED]> wrote:
>
> Are you using EventDispatcher at all?  If so, are you adding listeners at
> each interval?  Make sure they're added and removed properly or they'll
> get
> lost and mount up. It's hard to help without seeing any code.  Can you
> give
> a brief example of the code that runs at each interval?
>
> - James
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Varun
> Soundararajan
> Sent: Monday, July 09, 2007 2:51 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?
>
> Hi,
> can anyone give some hints on how to proceed?
>
> On 7/9/07, Varun Soundararajan <[EMAIL PROTECTED]> wrote:
> >
> > Hi Flash Champs,
> >
> >   I need help regarding handle leak issue. I have a Flash
> > movie that parses XML from the server every 1 minute. The XML file that
> the
> > SWF parses in every 1 minute interval is around 100- 200 KB. I m seeing
> that
> > IE starts leaking handles (not sure if that is related to XML parsing,
> but
> > the XML every one minute can trigger a change in the content of the
> movie
> > (ie., what objects should be visible or if a new object needs to be
> created
> > etc) ).
> >
> >When I profiled IE process, I see a lot of "token" handle
> leaks
> > (more than 2000 handles leaks per day) ( My understanding on Token
> Handles:
> > It is a handle to a security credential. Usually when IE connects to a
> > server i

RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

2007-07-09 Thread James Booth
Are you using EventDispatcher at all?  If so, are you adding listeners at
each interval?  Make sure they're added and removed properly or they'll get
lost and mount up. It's hard to help without seeing any code.  Can you give
a brief example of the code that runs at each interval?

- James

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Varun
Soundararajan
Sent: Monday, July 09, 2007 2:51 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?

Hi,
can anyone give some hints on how to proceed?

On 7/9/07, Varun Soundararajan <[EMAIL PROTECTED]> wrote:
>
> Hi Flash Champs,
>
>   I need help regarding handle leak issue. I have a Flash
> movie that parses XML from the server every 1 minute. The XML file that
the
> SWF parses in every 1 minute interval is around 100- 200 KB. I m seeing
that
> IE starts leaking handles (not sure if that is related to XML parsing, but
> the XML every one minute can trigger a change in the content of the movie
> (ie., what objects should be visible or if a new object needs to be
created
> etc) ).
>
>When I profiled IE process, I see a lot of "token" handle leaks
> (more than 2000 handles leaks per day) ( My understanding on Token
Handles:
> It is a handle to a security credential. Usually when IE connects to a
> server it tries to send the credentials of the logged in user. These
> credentials are seen as tokens in windows.)
>
>Are there any documented issues regarding this? If I keep IE
> open for a few days (2-3 days), Flash will cause IE to either crash, or
make
> the system unstable.. I have disabled all Toolbars (except Adobe PDF
> toolbar)..
>
> I use HTTP to request XML data from Server (I think thats the only
> non-remoting way to obtain data from server in Flash). There is JSP
Session
> ID based authentication to connect to server before running the SWF. Does
> that have something to do with this? When I login to the server with
> credentials, but dont launch the Flash movie, I dont have Handle Leaks,
that
> has led me to the conclusion that something in the flash movie could be
the
> trouble maker. How do I go ahead debugging? Thanks in advance.
>
>
> Some details about the Flash Movie:
> There are several Actionscript Verison 2 components in the movie all
> instances of which are created at runtime using actionscript. all of my
code
> is in Actionscript 2 There is quite some XML parsing. There are not much
> animations in the movie (the movie more has to do with parsing the XML and
> representing it in the screen). Please feel free to ask more details that
> are needed..
>
>
> Regards
> Varun
>



-- 
Regards
--Varun S
http://mailvarun.blogspot.com

/* This mail was sent using 100% recycled electrons */
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Sorry for the off topic post but is anyone out there a really good Ajax JavaScript person we need help

2007-07-04 Thread James Deakin

Sorry for the off topic post but is anyone out there a really good Ajax
JavaScript person we need help. I'm not an agent I work for
http://www.avenuea-razorfish.com/. We are really stuck if anyone knows
someone who wants a good job. Just let me know.

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

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


[Flashcoders] local shared object version compatability

2007-07-03 Thread james safetycat

Hi

Does anyone know if a locally saved shared object from a swf made in Flash 
CS3 can be read with a swf made in FLash 8? It's XML stored in the object.


thanks for your time

James

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

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


RE: [Flashcoders] Problem printing html page with embedded swf

2007-07-03 Thread James Ford
Hmm, How does the flash object get added to the page?  I have a feeling that
objects & suchlike don't tend to appear in the print versions of many
browsers, especially if they're added with the javascript flash detection.
Perhaps you could use a normal image-based fallback? () 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Chang
Sent: 03 July 2007 03:08
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Problem printing html page with embedded swf

Hi All,

I am attempting to print an html page with an embedded swf. However, the
page prints except for the embedded swf which is just a blank white area.
Can someone please suggest the setting that controls this?

Thanks in advance,
Paul
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Flash garbage collection

2007-06-28 Thread James Tu

How will Flash's garbage collection handle the following scenario?


function loadAsset(url:String) {

this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());

this.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc + "...loaded");
}

var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(this);;
mcl.loadClip(url);

}




loadAsset("foo.jpg");
loadAsset("bar.swf");
...

What happens to all the instances MovieClipLoader?


-James





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

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


Re: [Flashcoders] Estimating the time required for a project

2007-06-27 Thread James Deakin

Thanks for the once again for the advice. It has already proved useful.

Kind regards

James

On 6/19/07, Hans Wichman <[EMAIL PROTECTED]> wrote:


Hi,

i think i'd recommend 'code complete', 'the mythical manmonth', 'software
project survival guide', but that's just based on personal preference,
picking up some books about agile development methodologies could be a
good
idea too. To be honest, I know the ideas in there, and read papers about
it,
but havent got to reading a lot of book on agile methods perse.

The thing you describe with the employee sounds familiar, but I think
there
are two separate issues:
* wrong estimates (the subject of your first email)
* different programming approaches (the subject of the last email)

An employee who hacks everything together might give off very accurate
estimates:), the main thing probably is trying to tell your manager WHY
that
is not the way to go. If you are a perfectionist you might wanna plan for
all those one in a million cases that happen 9 times out of 10, but if
your
boss asked you to develop a quick prototype, you are indeed wasting a lot
of
time with that formal approach (not saying you are, but just if).
The reason we still do it that way is probably that we know 99,% sure
that the quick prototype will end up in production before you blink your
eyes, and one way or another you've been manouvered in such a position
that
your biting dust either way.
However, i tend to keep all communication and assumptions on email, if
someone wants a quick prototype, i give them a quick prototype, "ok here
is
the quick prototype you asked for. Note it has been hacked together,
meaning
it will probably crash, its unmaintainable, has to be rewritten from
scratch
if etc etc etc.". You might go on to tell them the nitty gritty details,
tell them to read a book on software project management, or tell m to just
trust you, depending on the kind of work relationship/environment you are
in.
(note that i am leaving out the option that you have a solid simple
framework, allowing you to put together prototypes more quickly with less
disadvantages such as the ones described above).

The books mentioned will give you a lot of information on how to educate
your boss why it takes you a factor 5 or 10 or 20 compared to your
collegue,
if he wants a maintainable production ready system. If your boss still
doesnt wanna listen, find another boss, more and more managers are seeing
the light of solid software development these days :). I had the kind of
collegue you mentioned and he was fired because he just couldnt get his
stuff bugfree.
And for yourself you need to decide what kind of project you are working
on,
and what kind of measures and overhead it demands. After all a nuclear
power
system control unit will require different methods than a bouncing flash
animation.

The estimate for the project I am currently working on, was originally a
year. We had to do it in 3 months. So we said ok, we'll do it in 3, BUT
documentation will be lacking, functionality will be lacking, it wont be
as
adaptable, etc, etc, but what we do create will be okay and bugfree.
However
if you ever want to incorporate more changes, we will have to refactor as
we
go along (which we are currently doing). Of course it didn't go quite as
smoothly as it sounds, but in the end we are getting there.

Sorry for the chaotic piece of text, but to conclude:
* go with the flow, but communicate about your assumptions so they dont
backfire
* i try to keep a 'we see possibilities' attitude with a note of warning,
instead of a 'we see only problems' attitude
* read up on books and try to educate your managers, and dont worry some
managers wont understand what you are trying to explain no matter how good
you do it:)
* if you have established that you are on the right track (based on what
you
read) and are still not valued and cant change it within your current
organisation, leave. Shame to let good talent rot to waste:)


just my 2 cnts and really the books explain these phenomena we all
encounter
way better than i just tried

greetz
JC




On 6/19/07, James Deakin <[EMAIL PROTECTED]> wrote:
>
> Thanks for taking the time to respond Hans. I actually record how long
> things take already. I think you are right though perhaps the hard part
is
> having the arguments to hand to support why it will take a while.
>
> Which books would you recommend?
>
> Where I work there is another employee who is willing to hack things
> together any old way. I like to do things properly and plan for the
cases
> where the application might fail and try to deal with those gracefully.
> But
> whenever I give estimates the project manager says "well the other guy
can
> do it in 5 days". its driving me nuts.
>
> Thanks once again for the advice.
>
> James
>
> On 6/16/07, Hans Wichma

Re: [Flashcoders] Estimating the time required for a project

2007-06-19 Thread James Deakin

Thanks for taking the time to respond Hans. I actually record how long
things take already. I think you are right though perhaps the hard part is
having the arguments to hand to support why it will take a while.

Which books would you recommend?

Where I work there is another employee who is willing to hack things
together any old way. I like to do things properly and plan for the cases
where the application might fail and try to deal with those gracefully. But
whenever I give estimates the project manager says "well the other guy can
do it in 5 days". its driving me nuts.

Thanks once again for the advice.

James

On 6/16/07, Hans Wichman <[EMAIL PROTECTED]> wrote:


Hi,

well one advice is to start recording your current measures and check
afterwards how close you were.
Record things you forget that made your estimates go wrong, records the
factor realhours vs estimate.
Assume that when you think you know everything, you only know about 40% of
whats going to happen.
Adjust your estimate as you go along. Put your estimate on paper, and
include your assumptions.
If the assumptions change, check if you estimates need to be adjusted too.

Read up on software management lifecycle or books that describe software
processes such as code complete or mythical manmonth, to understand WHY
estimating a software project is hard, and how you can make your manager
understand.

It's pretty easy to become better at estimating theoretically, say you
have
a project and its estimate is 10 hours. Now it turns out to be 40 hours.
Next time you estimate 20 hours, and you go 'hey but wait, i was wrong by
400% last time', so you say 80. The hard part of doing it this way is not
having rock solid arguments to present to your boss.

Other things that come with understanding the software process is the
difference between the time it takes to hack something together, or create
a
software product, or a software system of combined working products. A
proof
of concept for a memory game might take 45 minutes, but a full flegded off
the shelf sellable memory game might take a month. It's still just a
memory
game.

etc etc

To conclude my best advice is probably to:
* start measuring, and try to understand why your estimate was wrong (or
right)
* read up on software development material

greetz
JC





On 6/16/07, James Deakin <[EMAIL PROTECTED]> wrote:
>
> I'm looking to improve the accuracy of the estimations of time required
> which I give to my project managers. Does anyone have any good advice?
>
> Please note that I am far from a newbie as I have been programming
> actionScript ever since it first came out (with that nasty slash
syntax).
> This is one area of the job which we never seem to talk about but its is
> one
> of the most important.
>
> James Deakin
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] Estimating the time required for a project

2007-06-16 Thread James Deakin

I'm looking to improve the accuracy of the estimations of time required
which I give to my project managers. Does anyone have any good advice?

Please note that I am far from a newbie as I have been programming
actionScript ever since it first came out (with that nasty slash syntax).
This is one area of the job which we never seem to talk about but its is one
of the most important.

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

2007-06-11 Thread James Ford
this.cli_mc.hu_btn.onPress = function() {
   buttonfunction();
};

Function buttonfunction(){
cli_mc._visible = 0;
_root.mtit_txt.text = "Cliniques";
_root.categ_var = "CLINIQUE";
_level41.mar = "cli";
_root.liste();
}

-- Move your onPress code into another function, then you can reference that
function through ActionScript, and through other functions like onPress.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Laurent
CUCHET
Sent: 11 June 2007 08:42
To: Flashcoders mailing list
Subject: [Flashcoders] >> function - AS2

Hi

I got function with button
Is there a way to use this with the button and by AS ??
For exemple if the movie go to image 5 it make the btn function work

Thank you

this.cli_mc.hu_btn.onPress = function() {
cli_mc._visible = 0;
_root.mtit_txt.text = "Cliniques";
_root.categ_var = "CLINIQUE";
_level41.mar = "cli";
_root.liste();
};

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Using Vista, Flash doesn't reload in FF or IE

2007-06-09 Thread James Marsden

Cheers for the replies folks.

Firstly, we're unable to export as a projector.exe as the pitch requires 
the use of a browser.


Not sure about commenting stuff until it works as the ActionScript 
involved is enormously complex, but we'll have a go at commenting the 
initial class instantiation and see if that makes a difference.


The only thing I could think that might be causing an issue is that the 
swf uses LocalConnection and ExternalInterface to communicate with 
another SWF. I thought perhaps the security for this kind of thing might 
have been tightened up.


I guess we'll have to create a bare bones ExtInt and LoCo test to see if 
that works...


I'll post our findings back...

Thanks again,

James



Ian Thomas wrote:

For the record, SWFObject works fine on Vista - so it's not that.

Ian

On 6/8/07, James Marsden <[EMAIL PROTECTED]> wrote:

Hallo,

We've got a presentation to give with some Flash using a Vista laptop,
and reloading the page with the Flash on it causes the Flash to stall on
the first frame (no code executed either). We're using SWFObject to
embed, and it works fine on XP with IE 6, 7 and FF, and on OSX with both
Safari and FF.

Does Vista suck or are we missing a "Make this OS good" setting 
somewhere?


Thanks all,

James

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

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



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

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


[Flashcoders] Using Vista, Flash doesn't reload in FF or IE

2007-06-08 Thread James Marsden

Hallo,

We've got a presentation to give with some Flash using a Vista laptop, 
and reloading the page with the Flash on it causes the Flash to stall on 
the first frame (no code executed either). We're using SWFObject to 
embed, and it works fine on XP with IE 6, 7 and FF, and on OSX with both 
Safari and FF.


Does Vista suck or are we missing a "Make this OS good" setting somewhere?

Thanks all,

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

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


RE: [Flashcoders] EventDispatcher weirdness in AS2

2007-06-07 Thread James E. Booth Jr.
Another thing to note:

Delegating the event as such:
_dg.addEventListener("change", Delegate.create(this,
datagridChangeHandler));

will NOT allow you to remove the event listener.

This won't work:
_dg.removeEventListener("change", Delegate.create(this,
datagridChangeHandler));


What I usually do is have a private variable:

private var datagridChangeHandler_func

and then create the delegate:

datagridChangeHandler_func = Delegate.create(this, datagridChangeHandler);

Thany you would add and remove it as:

_dg.addEventListener("change", datagridChangeHandler_func);

_dg.removeEventListener("change", datagridChangeHandler_func);

- James

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Muzak
Sent: Thursday, June 07, 2007 12:22 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] EventDispatcher weirdness in AS2


Even though it's possible to use the class instance as the listener (this),
you're still better off using Delegate.
What if you have 2 instances dispatching the same event that need to be
handled completely different?

submit_btn.addEventListener("click", this);
aTotallyUnrelated_btn.addEventListener("click", this);

The above will work, but they'll both trigger the same event handler and
you'll have to resort to if()else() stuff.
No big deal if you have 2 buttons.. get's hairy with loads of buttons.
Or what about different components (DataGrid, ComboBox, List, etc..) who all
dispatch a "change" event..

_dg.addEventListener("change", this);
_cb.addEventListener("change", this);
_list.addEventListener("change", this);

versus:

_dg.addEventListener("change", Delegate.create(this,
datagridChangeHandler));
_cb.addEventListener("change", Delegate.create(this, comboChangeHandler));
_list.addEventListener("change", Delegate.create(this, listChangeHandler));

Get in the habit of using Delegate (in AS2) and *always* use it.. no
exceptions ;-)

regards,
Muzak

- Original Message -
From: "Alain Rousseau" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, June 07, 2007 4:07 PM
Subject: RE: [Flashcoders] EventDispatcher weirdness in AS2


> Hehe no prob.
>
> For your listener are you doing something like
>
> _myClass.addEventListener("onTransition", Delegeate.create(this,
> onTransitionHandler));
>
> private function onTransitionHandler() {
> //do stuff
> }
>
> don't you prefer
>
> _myClass.addEventListener("onTransition", this);
>
> function onTransition() {
> //do stuff
> }
>
> for better clarity and less code writing ? No need of delegate in this
case.
>
> Of course it's a question of choice and habit. Just to let you know of the
> alternatives !
>
> Alain
>


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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.7/830 - Release Date: 6/3/2007
12:47 PM

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.7/830 - Release Date: 6/3/2007
12:47 PM

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

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


[Flashcoders] class member Array

2007-05-24 Thread James Tu

Has anyone encountered this before...

If you have a class variable that is of type Array...
DO NOT DO THIS:
private var ListOfThings:Array = new Array();


DO THIS:
private var ListOfThings:Array;
//then in your constructor, do this
ListOfThings = new Array();


If you do the former, Flash will create an Array that is SHARED  
between all instances of the class!!!  (i.e., it makes it STATIC)





I did the former:

//this is in the class declaration section
class Foo
{
private var _pressed_event_message:Array = new Array();


//other stuff omitted

function setPressedEventMessage ( m:String, p:Object ) {
_pressed_event_message.push( { msg:m, param:p} );
	trace("this._pressed_event_message.length: " +  
_pressed_event_message.length);

}

}


class FooExtender extends Foo {

}



When I create two FooExtender instances...and call the  
setPressedEventMessage() function, the trace increments as if there  
these both instances share the same array!!!

var a=new FooExtender();
var b=new FooExtender();


a.setPressedEventMessage( "blah" ); //traces   
"this._pressed_event_message.length: 1"
b.setPressedEventMessage( "blah" ); //traces   
"this._pressed_event_message.length: 2"
a.setPressedEventMessage( "blah" ); //traces   
"this._pressed_event_message.length: 3"
a.setPressedEventMessage( "blah" ); //traces   
"this._pressed_event_message.length: 4"
b.setPressedEventMessage( "blah" ); //traces   
"this._pressed_event_message.length: 5"
b.setPressedEventMessage( "blah" ); //traces   
"this._pressed_event_message.length: 6"






When I took the initialization out of the variable declaration  
section and just did this...

class Foo
{
private var _pressed_event_message:Array;

function Foo () {
    _pressed_event_message = new Array();
}

}

All behaved as expected...


Was I not doing something correctly?
-James







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

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


Re: [Flashcoders] class file updated, but .aso not updated?

2007-05-24 Thread James Tu

Figured it out:


I'm using runtime shared libraries.  These are automatically imported  
in frame 1.  The classes in my movie are not exported until frame 5!


So, the version of the compiled classes that I'm getting are from the  
rsl's !!!  We're using rsl's to share assets and not code, but one  
specific rsl it also compiles some of the classes.  So, now I'm going  
into that one and just extracting the assets that will be shared.


Whew.  I'm so happy that there was a logical explanation.

-James


On May 24, 2007, at 2:54 PM, James Tu wrote:

I'm having a problem that is not directly related to a previous  
thread on this list about ASO files.


Here's my inheritance heirarchy...

BaseClass -> VisualBaseClass -> ButtonMessagingBaseClass ->  
CardBase -> CardSpecial



I'm on a Mac OSX 10.4.8 running Flash Professional v8.0.
I've updated CardBase, but the changes don't appear!  I've deleted  
ASO files and that didn't work.  I've deleted ASO files, quit  
Flash, restarted and that didn't work.


I also tried to add trace statements all the way up to the parent  
(BaseClass) and those trace statements don't appear.


The other curious bit is that I've checked "Omit Trace Actions" but  
the old trace statements in CardBase and the other onces all the  
way up to the parent (BaseClass) are still showing!!!



CardSpecial...the last one in the chain, behaves  
correctly...changes take effect, when I "Omit Trace Action" its  
traces are suppressed!



What's going on here?  Am I going crazy?  Is the Flash file  
corrupt? (Right now I'm going to try grabbing an older version and  
see how that behaves)


-James





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

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




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

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


[Flashcoders] class file updated, but .aso not updated?

2007-05-24 Thread James Tu
I'm having a problem that is not directly related to a previous  
thread on this list about ASO files.


Here's my inheritance heirarchy...

BaseClass -> VisualBaseClass -> ButtonMessagingBaseClass -> CardBase - 
> CardSpecial



I'm on a Mac OSX 10.4.8 running Flash Professional v8.0.
I've updated CardBase, but the changes don't appear!  I've deleted  
ASO files and that didn't work.  I've deleted ASO files, quit Flash,  
restarted and that didn't work.


I also tried to add trace statements all the way up to the parent  
(BaseClass) and those trace statements don't appear.


The other curious bit is that I've checked "Omit Trace Actions" but  
the old trace statements in CardBase and the other onces all the way  
up to the parent (BaseClass) are still showing!!!



CardSpecial...the last one in the chain, behaves correctly...changes  
take effect, when I "Omit Trace Action" its traces are suppressed!



What's going on here?  Am I going crazy?  Is the Flash file corrupt?  
(Right now I'm going to try grabbing an older version and see how  
that behaves)


-James





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

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


[Flashcoders] Persistent A.I for off-screen enemies

2007-05-21 Thread James Marsden

Hey all,

I've just finished adding persistent AI to my game engine, and made a 
little song and dance about it on my blog:


http://futurlab.blogspot.com/

Thanks to everyone that had suggestions!

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

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


[Flashcoders] AS3 KeyboardEvent Oddity [cross-post alert]

2007-05-15 Thread James Marsden

Hey all,

Having a bit of a mare with a 2 player game using WASD for player 1 and 
cursor keys (UP, DOWN, LEFT, RIGHT) for player 2. It seems that the 
keyboard will only trigger either RIGHT or D, not both together :(


If I change player 1's controls to SZXC (or ESDF) it works fine.

Has anyone come across this, or know if it's possible to hack the 
Keyboard class to make RIGHT and D work at the same time?


Thanks!

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

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


Re: [Flashcoders] OT: Spiderman 3 === Worst movie ever

2007-05-07 Thread james
Completely disagree.

The packed out cinema I watched it in laughed, hissed (at an appropriate
moment) and gave a round of applause at the end.

It's different, not bad.




> Spiderman 3: So bad, I have to post OT on Flashcoders to warn my
> colleagues to avoid it at all costs.
>
> Never see Spiderman 3.  Ever.  Go your whole life without seeing it.  It
> might be the worst movie ever made.  Seriously.  It was unbelievable how
> bad it was.  Of the people who did not walk out, a huge amount booed at
> the end (myself included).  Many people walked out.  I felt I should
> have, too, and I have never walked out of a movie.  The theater was
> packed at the beginning and maybe 2/3 full at the end.  There were more
> scenes than I can count where you could hear the whole audience groaning
> at how ridiculously stupid it was.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] Animating Character Movement

2007-05-04 Thread James Marsden

Hey Dan,

I've had a bit of a struggle with this too. I've tried a few ways of 
doing it, but have settled on having all state/animations in a MovieClip 
on the first frame of the character MovieClip, and then functions to 
show and hide whichever animations you need eg:


turnRightFromLeft()
{
   paddleLeftMC.visible = false;
   idleLeftMC.visible = false;
   idleRightMC.visible = false
 
   idleCentre.gotoAndPlay("turnRightFromLeft"); // at the end of this 
animation, it calls back to set 'paddleRightMC.visible = true';

}


It's quite long winded, and you still need a state machine to work out 
which functions you need to call, but the other ways I tried were vastly 
more complex, and introducing a new animation at a later date was a real 
headache.


HTH,

James



Holth, Daniel C. wrote:

Hello,

I'm working on an project where the user uses the arrows keys to move a
guy in a kayak left and right across the screen.  I have 6 total
animations set up: Paddling Left, Idle Facing Left, Turning Left to
Right, Paddling Right, Idle Facing Right, and Turning Right To Left.

I've never programmed a moving character before, so I'm looking for some
tips on the best way to program this sort of thing.  I started to create
a pseudo-state pattern using a 6 switch statement to figure out what
state the character is currently in and responding accordingly when the
user presses a key.  This seems rather tedious though, and I figured
there must be a better way of doing this.

I think the part I'm having the most trouble with is the 'turning
states'. 



Any feedback greatly appreciated!  I can post some of my current code if
it helps, but I really haven't gotten anywhere productive with it yet.

Thanks!

Daniel Holth
I.S. Programmer



This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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 html anchors, target='_self' not working in browser..

2007-05-03 Thread Hobson, James, VF UK
Hi,
 
I'm trying to create some HTML anchor links within a text field that
will open in the current browser page (using target='_self').
 
The link works, but only in the following circumstances:
 
a) When you click the link on the published version within flash
b) When you drag the swf file into a browser
 
And it doesn't work when the flash file is embedded in a HTML doc.
 
For example, doesn't work when:
 
a) Publish with an HTML page from flash and open in browser
b) Drag and drop into a new HTML page created in Dreamweaver and open in
browser
 
However if you CTRL-click within Firefox, or SHIFT-click with IE it does
work!?!
 
I've set the Local playback security in the publish settings to Access
network only and still no joy.
 
Here is my code:
 
this.createTextField("myText_txt", 0, 25, 25, 300, 200);
var myStyle:TextField.StyleSheet = new TextField.StyleSheet ();
myStyle.setStyle ("a:link", {fontWeight:'bold',
textDecoration:'underline', fontSize:'16'});
myStyle.setStyle ("a:visited", {fontWeight:'bold',
textDecoration:'underline', fontSize:'16'});
myStyle.setStyle ("a:hover", {fontWeight:'bold',
textDecoration:'underline', fontSize:'16'});
//
myText_txt.styleSheet = myStyle;
myText_txt.html = true;
myText_txt.htmlText = "www.bbc.co.uk";

I obviously need it to work within an HTML page.
 
Any help greatly appreciated.
 
Cheers,
James
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Persistent Game AI for Off-screen baddies

2007-04-27 Thread James Marsden

Really great advice there guys, thanks a lot :)

I had my suspicions it would be done like this, but needed to be 
reassured by the Ninja's.


Luckily the game logic is separated from the display, in a similar way 
to how you're describing.
I currently have multiple scrolling engines, each representing a layer 
of parallax. I'm guessing I just need to duplicate a single 'terrain' 
scrolling engine (which is never actually drawn) and combine it with the 
necessary collision detection for each baddy that needs AI.


Cheers folks!

J



Joshua Sera wrote:

Separate your display code from your game logic.

One thing that I see frequently is people inheriting
directly from movie clips for their game objects. This
is bad because it encourages overuse of inheritance,
and makes display/game logic separation harder.

Usually, I'll have my game object as separate items,
with their own x and y properties, then a viewport
object for determining where you're looking. To
determine what gets displayed, I'll check to see if
the game object is within half a screen distance from
the viewport, and if it is, and not already displayed,
I'll attach a new movieclip, and position it relative
to the screen center by the distance from the viewport
to the game object.




--- James Marsden <[EMAIL PROTECTED]> wrote:

  

Hello all,

When building a game where collision detection for
enemies is important 
(such as a scrolling tile game), how do you create
persistent AI for an 
enemy when it's off-screen?


For example, walking away from the enemy causes it
to be removed from 
the game area, but the enemy needs to keep wandering
around the world in 
virtual terms, so the player can't easily tell where
the enemy is going 
to be when returning to the same area. How do you
maintain that 
interaction for the enemy, or is it not done like
that because it's too 
processor intensive?


Any tips or pointers to resources would be much
appreciated.

Thanks!

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



http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  

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





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___

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

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


  

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

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


  1   2   3   >