Hi,
I would recommend ARP for this too. It's a bit tricky to use (at first),
but it will keep your code clean for sure and save you a lot of time.
There's a remoting example that you could adjust quite easily.
As for the moviecliploader, I try to use a single class to do all my
loading. I guess
I think that if you're just starting out with classes then using MVC
would be an excellent place to start since ARP could be quite
overwhelming.
Others might disagree. :)
I've spent many hours trying to figure out how to do some seemingly
basic things in ARP and to be honest I'm still not 100%
Hi Matt,
AS3 is slightly different.
You need to say:
private var fullScreen_mc:MovieClip = getChildByName(fullscreen);
Note that the reference (fullscreen_mc) can't be the same as the name on
the stage (fullscreen). Also in AS3 you can actually set instance
variables outside of functions.
I'm
);
}
public function getChild(stage, _name:String):MovieClip
{
return stage.getChildByName(_name);
}
}
}
On 7/12/07, Sunil Jolly [EMAIL PROTECTED] wrote:
Hi Matt,
AS3 is slightly different.
You need to say:
private var fullScreen_mc:MovieClip = getChildByName
Muzak - I share some of your frustrations though I see why they've done
it.
So what do people think the best practice for this is?
I don't like the idea of not declaring the MCs/Buttons in the class
because it's a great help knowing what a class can deal with without
having to refer to the Flash
Yeah - looks like it to me!
And what's with all the secrecy about the technique? :)
Sunil
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Priou
Sent: 17 July 2007 17:26
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] obfuscation
I agree with JC that it wasn't really necessary to be quite so spiteful
about defeating his code.
I think the problem may have come from a here's my solution, try and
break it attitude instead of simply giving details of how it (was
supposed to) work.
Everyone here shares their knowledge to help
This works for me:
-
var myObject:Object;
if (myObject) {
removeChild(myObject);
}
---
Another method would be to catch the error:
-
try {
removeChild(myObject);
} catch (e:Error) {
exist but is
not
on the display tree it will fail
On 7/19/07, Sunil Jolly [EMAIL PROTECTED] wrote:
This works for me:
-
var myObject:Object;
if (myObject) {
removeChild(myObject);
}
---
Another method would be to catch
and potential
use
case
On 7/19/07, Sunil Jolly [EMAIL PROTECTED] wrote:
If you use the try, catch method that shouldn't be a problem.
---
try {
removeChild(myObject);
} catch (e:Error) {
//object doesn't exist as a child, do nothing
Hi Ian, back at the start of this you asked:
- Why, in AS3, is my equivalent of using Delegate Not The Done Thing?
(Someone mentioned type-safety; and yes, at compile time, you'll lose
type safety)
Does anyone know why Delegate is frowned upon? Seems like a simple and
elegant solution to the
[EMAIL PROTECTED] wrote:
On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote:
Does anyone know why Delegate is frowned upon? Seems like a simple
and
elegant solution to the problem to me!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
A produce subclasses of Event instead;
unless the suggestion is to subclass A to produce different events,
which (depending on A's implementation) could be very difficult.
Ian
(Getting frustrated!)
On 7/25/07, Ian Thomas [EMAIL PROTECTED] wrote:
On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote:
Hi Ian
. :-) Because request
2 overwrites the contextInfo written by request 1 - which is why both
Muzak (and I) suggested B has an internal list of contextInfos. But
that gets more tricky...
But thanks!
Ian
On 7/25/07, Sunil Jolly [EMAIL PROTECTED] wrote:
Hi Ian,
I didn't fully understand your reply to Muzak's
Hi J.Bach,
It would be interesting to see/hear how you get along with this if you
can post a link back here when it's done?
Thanks,
Sunil
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: 30 July 2007 17:35
To:
That *is* strange!
Is something interfering with the localconnection? Another luminicbox
hidden away somewhere or another app in the browser?
Any app config settings that are different in the IDE to the browser?
Sunil
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
Hi Robert,
You'll need to post your form data to a URL which contains a script
which will grab the posted variables and then will email out the
information.
If you're using PHP it's quite simple and there are lots of scripts.
This is the first Google result for php emailer. I haven't tried it
Have you got an example Jamie?
Sunil
-Original Message-
From: Jamie S [mailto:[EMAIL PROTECTED]
Sent: 05 January 2008 01:51
To: Flash Coders List
Subject: [Flashcoders] How do you tell if an Object is dynamic?
I ran into a particular situation where i had a function that took an
Object
Hi Boyd,
I don't fully understand your example. Does this article help at all?
http://gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
Sunil
-Original Message-
From: BOYD SPEER [mailto:[EMAIL PROTECTED]
Sent: 29 January 2008 18:06
To: Flash Coders List
Subject: [Flashcoders]
Hi Henry,
I've found that even if items are garbage collected in the Flash Player
memory will be necessarily be freed in the browser.
If you want to check for garbage collection you can use the Flex
Profiler (In Flex Builder 3) to check whether items are collected or
not.
What you will most
If you enable debugging in your SWF and use a debug version of the flash
player, then you can use the Profile external application option.
After selecting that, select Launch the application manually outside
Flex Builder and hit Launch.
If you have trouble, try using a different browser and/or
Hi Steven,
I've joined this conversation half-way through so sorry if this has
already been said:
If you're wanted to exclude some classes because you want to load them
at runtime, then you can create an SWC with the classes in them and put
that in your classpath in the Flash IDE. Classes in the
I've used Drupal with the AMFPHP module very successfully.
S
-Original Message-
From: Paul Andrews [mailto:[EMAIL PROTECTED]
Sent: 02 July 2008 11:05
To: Flash Coders List
Subject: Re: [Flashcoders] Flash CMS
Interesting - thank you.
- Original Message -
From: SJM [EMAIL
Great post!
I've spent many hours searching through the Adobe site trying to find
things. For a company trying to spearhead web development it's a poor
show.
Sunil
-Original Message-
From: Radley Marx [mailto:[EMAIL PROTECTED]
Sent: 04 September 2008 20:50
To: Flash Coders List
24 matches
Mail list logo