I'd go with SWFStudio or Screenweaver.
Ian
On 9/29/06, Telmo Dias [EMAIL PROTECTED] wrote:
Ok, but can you suggest a replacement?
Telmo
Ian Thomas wrote:
I disagree.
Twice now, I have had Zinc upgrades break existing functionality that
I relied on, and those new bugs have only been fixed
Patrick,
Take a look at this entry in the wiki:
http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library
It's almost certainly what you're trying to do.
Cheers,
Ian
On 9/20/06, Patrick Matte [EMAIL PROTECTED] wrote:
Flash help
Hi Mike,
Off the top of my head, I don't think you can do it directly.
However, presumably you could render the Flash movie using the
ActiveX control, grab the rendered frame as an image, and feed that in
to DirectX on every update.
How exactly to render from the ActiveX control to an
Here's a mad thought - if you know Apache/PHP you could do a few
tricks server side so that the URL:
http://someserver/flash.swf
actually points to a PHP file (use mod_rewrite). That PHP file could
then capture all sorts of details about the incoming request
(referring URL etc.) and log it or
On 9/15/06, Ian Thomas [EMAIL PROTECTED] wrote:
Here's a mad thought - if you know Apache/PHP you could do a few
tricks server side so that the URL:
http://someserver/flash.swf
actually points to a PHP file (use mod_rewrite). That PHP file could
then capture all sorts of details about
Hi Mike,
The URL of the page _containing_ the file, not the URL of the file itself.
Ian
On 9/15/06, Mike Mountain [EMAIL PROTECTED] wrote:
trace(this._url)
Have I missed something?
M
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Jim Berkey
Hi Jeff,
If you are on PHP/Apache, I've thrown together this small set of
scripts which might help:
http://www.wildwinter.net/public/files/swfProxy.zip
Cheers,
Ian
On 9/14/06, Jeff Mastropietro [EMAIL PROTECTED] wrote:
I need a 100% effective way to get the URL of the page that a flash
movie
Hi guys,
Prompted by a question from Jeff Mastropietro, I had a thought about
an easy way of stopping deep linking on .swf files and being certain
which page was referring to them/embedding them.
I've written a quick filter for Apache/PHP.
The idea is that the user makes a request to:
There was a pretty thorough discussion of this on the FlashGameCoders
list the other day - it might be worth you taking a look there.
HTH,
Ian
On 9/12/06, Almin Sehic [EMAIL PROTECTED] wrote:
Your sollution is good, but the other paramters dont
allow me to use it. It has to stay online.
S.
Another method is to have the server send out a generated hash code of
some sort to the client (that expires after a set time); for the
client to encrypt the score using the code and send it back.
Yet another mentioned on FlashCoders is to do the above, but send
(along with score and name) game
On 9/11/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
GCTarget only listens to an enterframe event and traces something so I know
wether it's still alive or not.
So you're saying you've passed GCTarget as a target of a listener? Did
you use weak references? Because if not, there's your
On 9/2/06, Zárate [EMAIL PROTECTED] wrote:
Having said that, it will be a huge surprise for me if they allow us
freely adding our own plugins.
Why not? They did with Director..?
Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
Hi Jason,
It's not because you're using an HTML textfield, is it?
Try tracing the test_txt.htmlText property after you're setting it -
it might be doing something odd like wrapping it in a 'font
face=Times New Roman' or something internally, even although you've
set the Textformat.font to
Guys,
This looks brilliant! Can't wait to have a play with it. Thanks for
all your hard work.
Cheers,
Ian
On 8/31/06, Edwin van Rijkom [EMAIL PROTECTED] wrote:
Hi list,
We are happy to announce that Screenweaver HX - version 1.0 is now
available!
Screenweaver HX is an (open source)
Um - on a really swift look - shouldn't the first parameter be a boolean?
i.e.
inventoryTool = toolArea.addTool(false, InventoryToolMC);
On 8/30/06, Andreas Rønning [EMAIL PROTECTED] wrote:
Kind of stumped here.
I have a class that holds an instance of a toolbar class.
The toolbar class has a
It's not something strange about the types you're using is it?
You always seem to be treating the return value of attachMovie as an
Object rather than a MovieClip (which should work fine) - but I've no
idea what type inventoryTool is, from you're code, and wonder vaguely
whether it's silently
be set not only
from other domain to the domain to which the swf is loaded but also from
the loading swf to the other.
_
Ian Thomas wrote:
My initial thought is it must be a cross-domain scripting issue - i.e.
the app wouldn't let you check the instanceof because of a domain
scripting policy
Again, how peculiar. I'd love to take a look at the internals of
MovieClip and Flash's loader system to see what's causing that
particular glitch!
Cheers,
Ian
On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote:
Okay,
I have fixed the problem. I would say that this is certainly bug with
Flash,
On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote:
Thanks for your help on this Ian.
I'm not sure I understand all of what you found here, so let me
summarize with some questions to see if I got it right.
Flash 6 SWFs fail every time when loaded remotely? - This hasn't been
my experience. I've
Okay, weirder and weirder:
On my local machine loading from a local file, loading .swf v6 gives
instanceof MovieClip=false and v7 and v8 give instanceof
MovieClip=true.
On a remote machine loading from that same remote machine, loading
.swf v6 gives instanceof MovieClip=false and v7 and v8 give
Oh, I should add - I get the same results when I throw the Fling code
out completely and write a simple loader from scratch.
Cheers,
Ian
On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote:
I'm certainly running out of ideas for a simple fix, here - and it's
definitely not the loading code, it's
Aaron,
What are you trying to do..?
There's no point in dynamically casting. Casting is just used to
tell the compiler that you know what you're doing.
For example:
class A
{
function doSomething(){/**/}
}
class B extends A
{
function doSomethingElse(){/**/}
}
var someObject:A=new B();
Hi Chris,
Having had a trawl through the source code, I see what you're
getting at. The fact that MovieAsset doesn't extend MovieClip is
nothing to do with the problem; MovieAsset wraps a MovieClip property
and passes that back, and that should be fine.
I've no idea where it's going wrong, I'm
Hi Chris,
I've tried that (with a bit tweaking for syntax errors) and it all
works fine - instanceof returns the correct results. This is loading a
clip I created from scratch (Flash 8, WinXP) - if you have a sample
clip I can try that's failing for you, that's be good.
However, I did have to
Oh, I should add, this is after I commented out the line:
if(targetMC instanceof MovieClip == false) targetMC.__proto__ = new MovieClip();
from MovieAssets - which I assume was your temporary hack to fix
things. It all works for me without this line.
Cheers,
Ian
On 8/23/06, Ian Thomas [EMAIL
Hi John,
Yeah, I've now tried it with a bunch of random downloaded movies and
managed to get some to fail.
I think I've nailed it - or at least, one thing that produces the problem.
At least on my system - if you load in a .swf version 7 or 8, it
works fine. If you load in a .swf version 6,
On 8/23/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
Experienced coders who don't want to take the time to trawl through
possibly impenetrable code read those documents.
If you write impenetrable code, you need to reevaluate your career
choice. If you're not willing to put forth the
Weird.
It's very reproducible here - I've tried varying sizes between 1Kb and
200Kb. They all fail if published to FP6, but work if published to FP7
and FP8 (the loader movie itself I've tested published to FP7 and
FP8).
I haven't tested a remote FP8 file, as I don't have one to hand.
Gonna
3) No. Setting embedFonts property tells the textField to _use_
embedded fonts, it doesn't actually enforce embedding.
4) The simplest way to have multiple fonts in the same dynamic
TextField is to create a bunch of other, offscreen textfields (or
imported in a clip in the library, doesn't
PROTECTED] Em nome de Ian Thomas
Enviada: terça-feira, 22 de Agosto de 2006 11:44
Para: Flashcoders mailing list
Assunto: Re: [Flashcoders] Multiple html formattings in a TextField
3) No. Setting embedFonts property tells the textField to _use_
embedded fonts, it doesn't actually enforce embedding.
4
On 8/21/06, [b) a d i [EMAIL PROTECTED] wrote:
the problem i have is after calling removeMovieClip or delete is that when i
need to re-instantiate the object...it's either corrupt or not created
properly...i was a little upset to find so many dangling pointers after i
went thru so much trouble
Hi Darren,
What are you creating a Hashtable _for_..?
For many applications you can just use a native AS object - e.g.:
var myTable:Object=new Object();
myTable[someIDOrOther]=someValue;
trace(myTable[someIDOrOther]); // gives someValue
For example, in your case:
var myTable:Object=new
Hi Andreas,
var UIClock:Clock = Clock(content.attachMovie(clock,uiclock1,1));
using className(supertype) i.e. Clock(supertype)
It's called typecasting - or just casting. It looks like a constructor
function but isn't.
Basically you're telling the compiler It's okay I know what I'm doing
- it
I agree with Julien - EventDispatcher is ideal for this purpose. It's
one of the reasons it exists - to allow more than one object to be
notified when an event occurs.
Ian
On 8/11/06, julien castelain [EMAIL PROTECTED] wrote:
hi,
maybe using mx.events.EventDispatcher could help
i'm probably
We tend to use them to specify private properties.
class MyClass
{
private var _something1:Number;
public var something2:Number;
}
Partly because it then makes replacing a public property with a
getter/setter pair easy:
class MyClass
{
private var _something1:Number;
private var
Hi John,
The actual internal structure of the XML comes out as follows:
news
+-- newsitem
|+-- TEXT NODE (Body of the news article.)
|+-- a
| | +-- TEXT NODE (Google)
|+-- TEXT NODE (More body of the news article.)
+-- newsitem
etc.
(I hope the formatting comes out)
As you
Only the standard be really careful what you do when calling methods
in your constructor issue.
i.e.
class A
{
function A()
{
someFunction();
}
function someFunction()
{
// do Something
}
}
class B extends A
{
function B()
{
super();
// set up some initialisation stuff
I second that. Buggy, and new releases break features that used to work. :-(
Ian
On 7/17/06, eric dolecki [EMAIL PROTECTED] wrote:
Zinc looks awesome on the outside. The app is nice looking, the APIs look to
be really deep extensive. However I have found it to be quite buggy
http://www.bytemark.co.uk/
Absolutely excellent virtual hosting, with excellent (and fast)
service and support.
HTH,
Ian
On 7/12/06, Miles Thompson [EMAIL PROTECTED] wrote:
At 12:35 PM 7/12/2006, Mike wrote:
I'm gonna jump on this thread with a more specific question.
One person mentioned
Hi grimm,
You need to embed the italic and bold versions of the font, too.
Best bet is to stick all three in off-screen dynamic textfields
somewhere (or exported in your library).
HTH,
Ian
On 7/11/06, grimmwerks [EMAIL PROTECTED] wrote:
It's got to be something stupid.
I'm using the
Hi Umesh,
You sent this exact same question on the 26th of June, and got 19
replies... I'm not sure why you need to ask it again..?
Old threads here:
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-June/168431.html
and here:
var someObject:Object = ... your object ...;
var arr:Array=[];
for(var key:String in someObject)
{
arr.push(someObject[key]);
}
HTH,
Ian
On 7/8/06, Graham Pearson [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Does anyone have a function or a bit of code that will
/06, Ian Thomas [EMAIL PROTECTED] wrote:
var someObject:Object = ... your object ...;
var arr:Array=[];
for(var key:String in someObject)
{
arr.push(someObject[key]);
}
HTH,
Ian
On 7/8/06, Graham Pearson [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Does anyone
Hi Julian,
They do return references.
You just have to cast them to the correct type.
e.g. var clip:MyClip=MyClip(attachMovie(SymbolName,instanceName,depth));
HTH,
Ian
On 7/7/06, Julian Bleecker [EMAIL PROTECTED] wrote:
Yeah, I think it gets worse. I'm used to a pattern where you create
Hi Julian,
Now I've had my first cup of coffee I'll try to explain it more clearly. :-)
In most cases AS2 works very similarly to Java in terms of
inheritance, instantiation and casting and the like - the only main
gotcha is that the class casting operator is MyClass(x) rather than
(MyClass)x
Hi folks,
I have a situation where my app doesn't work on a PC with no sound
card installed, because I depend on onSoundComplete for a couple of
synchronised triggers and (guess what) onSoundComplete is never called
if the machine doesn't have a sound card. Not unexpected, I guess.
However,
But if you're running offline, you could use a swf2exe tool such as
SWFStudio, Screenweaver or Zinc.
HTH,
Ian
On 7/7/06, Jim Berkey [EMAIL PROTECTED] wrote:
My understanding is that it is not possible to make the current browser window
fullscreen via any code. It is possible to open a new
On 7/7/06, Julian Bleecker [EMAIL PROTECTED] wrote:
One other thing occurred to me on this topic, that might actually
save the trouble of using a hash table, which AS direly needs.
Is there a way to summon forth a class that's been instantiated in
any of the ways described below, by name?
In
(To be clear - Object isn't quite the equivalent of HashMap, as you
can't natively specify hash codes etc. etc. But for many purposes, it
serves the same uses.)
Ian
On 7/7/06, Ian Thomas [EMAIL PROTECTED] wrote:
Firstly, Actionscript does have the equivalent of a HashMap.
Everything derived
Nice idea - but we're loading external mp3s and references to sounds
are being triggered off by code all over the place, so that'd mean a
lot of reworking across our whole framework of a number of different
apps.
However, the solution I posted works - and because I use a shared
manager for
,
Ian
On 7/7/06, Michael Stuhr [EMAIL PROTECTED] wrote:
Ian Thomas schrieb:
Hi folks,
I have a situation where my app doesn't work on a PC with no sound
card installed, because I depend on onSoundComplete for a couple of
synchronised triggers and (guess what) onSoundComplete is never called
I use 'watch' for exactly this purpose - drawing differences between
an enabled and disabled MovieClip by watching the 'enabled' property.
Cheers,
Ian
On 7/6/06, eka [EMAIL PROTECTED] wrote:
Hello :)
You can use watch with a MovieClip if you want create components with an
event when you use
Hi Julian,
You were nearly there with:
Object.registerClass(mFooA, FooA);
var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1);
Just change it to:
Object.registerClass(mFooA, FooA);
var aObject:FooA_Class = FooA_Class(_root.attachMovie(FooA, FooA, 1));
(as Class(x) is the equivalent of
Whoops, sorry, missed your extra 'm' on 'mFooA' (not sure why that
crept in there?):
Object.registerClass(FooA, FooA);
var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1);
Ian
On 7/7/06, Ian Thomas [EMAIL PROTECTED] wrote:
Hi Julian,
You were nearly there with:
Object.registerClass
*sigh* Having a bad morning and copying the wrong line. Third time lucky:
Object.registerClass(FooA, FooA_Class);
var aObject:FooA_Class = FooA_Class(_root.attachMovie(FooA, FooA, 1));
Ian
On 7/7/06, Ian Thomas [EMAIL PROTECTED] wrote:
Whoops, sorry, missed your extra 'm' on 'mFooA
One possibility might be that you're using an embedded font, but
haven't embedded all the characters in that font.
HTH,
Ian
On 7/5/06, Rick Lecoat [EMAIL PROTECTED] wrote:
Hi,
I'm trying to pass a sting variable (var teamName:String) to a dynamic
text field nested inside a couple of layers
That would affect all the text currently in the field.
Ian
On 7/5/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
But couldn´t I just set a new TextFormat using the setTextFormat() method?
On 7/5/06, Andreas Rønning [EMAIL PROTECTED] wrote:
Because it allows you to use several
Hi Erix - your answers do reach Flashcoders - this is the second time
I've seen your post this URL on this thread. :-)
HTH,
Ian
On 6/27/06, erixtekila [EMAIL PROTECTED] wrote:
Hep,
http://forum.v-i-a.net
You're welcome to register.
Don't know why my answer never reach flashcorder ?
To the best of my knowledge, no, unfortunately.
That's one of the reasons that I'm looking forward to AS3. :-)
Ian
On 6/29/06, Jason Lutes [EMAIL PROTECTED] wrote:
Since this relates to some things that were brought up recently...
Is it possible to have a class that extends MovieClip, but
I use Object.registerClass all the time.
It is very handy when programmatically controlling which class is
associated with a symbol without having to specify a class in the
Linkage dialog in the library, for example (which means you can
associate different classes with the same symbol if you
Hi Janis,
If you're just looking for the file size, you shouldn't need to go
anywhere near the file header! Won't the following work?
?php
$filename = 'myfile.flv';
echo filesize($filename);
?
HTH,
Ian
On 6/28/06, Janis Radins [EMAIL PROTECTED] wrote:
Hello people!
I'm trying ot get size
Hi Christophe,
We've done similar using SoundForge simply by exporting the
regions/markers file as a text file and loading it in alongside the
SWF - parsing it, and triggering events based on the contents.
HTH,
Ian
On 6/27/06, Christophe Herreman [EMAIL PROTECTED] wrote:
Hey Tom,
we don't
Sorry, I meant loading it in alongside an external .mp3. Having a bad
morning here...
Ian
On 6/27/06, Ian Thomas [EMAIL PROTECTED] wrote:
Hi Christophe,
We've done similar using SoundForge simply by exporting the
regions/markers file as a text file and loading it in alongside the
SWF
Yes, Tom, they are - it's someone else registered on this list who's
account is broken, not yours. I had the same thing yesterday.
Ian
On 6/27/06, Tom Jackson [EMAIL PROTECTED] wrote:
are my messages getting through? every time I send a message I'm getting a
email account not registered ,
Nice trick, Christophe - thanks for sharing that. You never know what
might come in useful some day...
Cheers,
Ian
On 6/27/06, Christophe Herreman [EMAIL PROTECTED] wrote:
Hey guys,
I found a little workaround using the scripting possibilities in
SoundForge. You can find a little explanation
Hi Franto,
That's the fourth time I've had your email...
Gmail doesn't automatically tag your outgoing mail, and ignores it
when it arrives back at your mailbox - so you won't necessarily see it
against a Flashcoders tag. It _has_ been sent, tho' - just look at
your Sent mailbox.
HTH,
Ian
On
Hi Franto,
I think it's just someone on the list whose email is now invalid -
I'm getting the same error when I post.
I'm afraid I can't help with the original problem!
Ian
On 6/26/06, franto [EMAIL PROTECTED] wrote:
Hi Ian,
thanks, i know, that i will not see my message, but after each
Another approach is to switch to a single bitmap for the whole MC,
scale and tween, then switch back to your vector version once the
tween has finished.
Ian
On 6/26/06, Mick G [EMAIL PROTECTED] wrote:
I've seen this mostly when the MC being tweened either has a lot of vector
information or
Thanks Franto - my mistake for skipping that discussion. The other one
mentioned is:
http://www.harveycartel.org/metanet/tutorials.html
However, the last discussion was about free physics engine, whereas
I'll happily take a look at anything commercial out there as well - if
anyone's got any
Hi folks,
Does anyone know if there's an Actionscript (preferably AS2) physics
engine out there other than Flade?
Thanks,
Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Dollars? Pounds? Lira? Deutschmarks? Yen?
And in which country? And which part of that country?
I'm pretty sure I can guess which currency and country - but there is
more world out there than just the USA, you know.
Ian
On 6/20/06, Tristan [EMAIL PROTECTED] wrote:
Does 30-55K a year sound
Martin,
I'd suggest thinking about rolling back to an earlier Zinc version.
It may fix the problem. It seems to work okay in version 14, if that
helps.
We have terrible trouble with Zinc's new releases. Each new release
seems to introduce a new bug, breaking old features which have been
working
Michael,
When are you tracing this? Have you given everything enough time for
the variables to be properly set up? Try leaving a frame at the
beginning before doing so.
HTH,
Ian
On 6/19/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote:
Hi Danny...
Thanks for responding.
The value is just a
On 6/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Alot of people complain that you can't pass parameters with delegate. Well
you can, a multiple of ways, and if you structure your code with some
forethought, you can have it pass params if you are delegating a function
structured do so.
And if you're going to be working on a collection of different
external .as files, it's always a good idea to look at using a
versioning system such as Subversion/SVN -
http://subversion.tigris.org
Versioning systems aren't a great deal of help with binary files such
as .flas, but are a great
On 6/15/06, Mark Lapasa [EMAIL PROTECTED] wrote:
Thx Ian, the only thing I can think of as an argument is Marker Interfaces.
Then again, I think I might just be using using interfaces the wrong way as
I am trying to establish some form of polymorphism in trying to access both
foo() and bar()
Hi Adrian,
I'd do it like this:
private function myMethod(i:Object):Void
{
if (i instanceof String) {
// do this
}
else if (i instanceof Number) {
// do this
}
else
{
// report an error
}
}
And, as you see, stick in an error condition - because by changing the
input type to
Hi Adrian,
Your i:Object declaration is a _compile-time_ declaration. All it's
there for is to make the compiler happy. instanceof, which is what I'm
using (typeof is an older construct which is more limited and less
safe) is an operator which does a comparison at runtime on the
underlying
Yes - but - why bother omitting it?
It's only a few characters you're saving - the word :Object. If later
down the line you decide to change compilers and go with MTASC (or
perhaps port your code to AS3) you'll have to trawl back through all
the code putting those missing type definitions back
Delegate, sadly, is a necessity.
I very rarely use components.
I use Delegate all the time. (Or rather, my own hand-rolled version,
which deals properly with arguments - there are a bunch of such
replacement versions knocking around.)
See here for more info on Delegate and its usage:
You don't need any special hash class for this; since you're using
string keys, you can simply use the Object class, like so:
class ChannelInput {
private handlerMap:Object = null;
function ChannelInput() {
handlerMap = new Object();
}
public function addKey(key:String,
Hi Danny,
mx.utils.ClassFinder.findClass(SomeClass) returns the constructor
function for a class.
e.g.
var className:String = 'String';
var cls:Function = mx.utils.ClassFinder.findClass(className);
var object:Object = new cls();
Hope that helps,
Ian
On 6/1/06, Danny Kodicek [EMAIL PROTECTED]
Hi Drew,
That's just type casting. See my email of a few days ago.
It's actually redundant in the example you provided, because the
compiler already knows that it's a MyTestClass object. You could
replace it with:
var myInst:MyTestClass = new MyTestClass();
myInst.runTest();
If, however, for
Hi,
As Mike says, casting is used to tell the compiler that you're sure
about the type of an object - where the compiler would otherwise
report an error, because it's unsure.
This is commonly needed in situations such as when you're using an
object designed for handling generic types to manage
Whoops - instead of this:
var animal2:Animal=z.removeAnimal(fido);
if (animal2 instanceof Dog)
{
var myDog:Dog=Dog(animal2);
animal2.fetchNewspaper();
}
I meant:
var animal2:Animal=z.removeAnimal(fido);
if (animal2 instanceof Dog)
{
var myDog:Dog=Dog(animal2);
myDog.fetchNewspaper();
That won't work - for example:
var foo:String = ABC;
var moo:String = ABC;
myFunct(foo);
myFunct(moo);
// Output
foo: ABC
foo: ABC
On 5/30/06, Kenneth Kawamoto [EMAIL PROTECTED] wrote:
Is it possible to retrieve the name of the variable passed into a
function?
function
Lee,
Terribly sorry about that. I'll tell my email delivery system to be
a bit faster next time, shall I..?
If everyone were to wait to see whether someone else had already
replied, nothing would ever get posted. Apologies if, for some reason,
it's caused you a problem.
Ian
On 5/30/06, Lee
Well, you learn something new every day... *throws away existing code*.
Thanks, Steve!
Ian
On 5/25/06, Steve Webster [EMAIL PROTECTED] wrote:
The built-in getimagesize() function supports SWF files:
http://uk.php.net/getimagesize
Enjoy!
___
Errm - actually that's not such a good reason.
The 'import' statement doesn't actually embed a class into the .swf.
All it does is tell the compiler that when you type (for example)
MyClass, you are actually referring to com.fred.MyClass.
You could just type com.fred.MyClass throughout the body
Yep - just to reiterate (and hopefully make it more clear):
The line:
import com.fred.MyClass;
Is _not enough_ to get Flash to compile MyClass into your .swf file.
You need to actually _reference_ MyClass for it to be included.
e.g. var a:MyClass=new MyClass();
In fact, import is _nothing to
Hi Derek,
That's really interesting - and goes against everything I'd expect.
Particularly when your other results have kind of proved the opposite
(and I've certainly proved the opposite before with ClassFinder
situations). A couple of other tests might prove illuminating...
- Is the same true
Having googled to find your code - that's a really nice way of doing
it. Well done!
(Does anyone know if AS3 has a better reflection system than AS2..?)
Ian
On 5/25/06, eka [EMAIL PROTECTED] wrote:
Hello :)
i think it's more easy to use my class :)
current architecture, but I guess I
will just store many different versions of the image **on the disk** instead
of using gd each time the users requests the image.
See the topic at as.org:
http://www.actionscript.org/forums/showthread.php3?t=106049
Thanks again!
Marcelo.
On 5/17/06, Ian Thomas
Hi Marcelo,
The obvious optimisation would be to cache the scaled images on the
server - save them under a name dependent on the dimensions of the
generated image.
E.g.
trees.jpg
becomes
cache/trees_400x300.jpg
Then when you serve the image, just check to see if the file is in the
cache - if it
I personally would avoid Zinc. Although we've used it successfully,
I've had two or three of their updates introduce bugs which break our
products, and I've had to revert until a fix comes along. The quality
control is just too shoddy.
Ian
On 5/9/06, eric dolecki [EMAIL PROTECTED] wrote:
I'm
is onDragOut() useful to you?
Ian
On 5/8/06, Michael Stuhr [EMAIL PROTECTED] wrote:
is this true ? while holding down the mouse, there's no rollover anymore, even
the dragOver
doesn't respond ?
___
Flashcoders@chattyfig.figleaf.com
To change your
Good point.
I assumed - Andreas - that you were talking about deleting _instances_
of a class; not actual classes. :-)
Ian
On 5/4/06, elibol [EMAIL PROTECTED] wrote:
Wait though, isn't a class part of the swf compilation? Technically, you
really cannot delete it unless you load the class in
Yep - that works perfectly well. But it's always better to avoid
situations like this:
Some of the developers used the same classes and
slightly modified them for their needs.
by assigning different package names to different modules, if you know
they'll all
be running in the same 'container'
Hi Andreas,
To turn it on its head...
What are you trying to achieve? In what circumstances do you need to
destroy a class?
Ian
On 5/3/06, Andreas Rønning [EMAIL PROTECTED] wrote:
has anyone got a good way for an as2 class to destroy itself? I know
it's not possible, but my heart tells me
Um - I'm not sure it is beside the point. :-) Given that you are at
the mercy of the garbage collector, implementing a function like:
class MyClass
{
function cleanup()
{
delete _someProp;
delete _someOtherProp;
}
}
is pointless anyway, because if you delete an object of MyClass (or
501 - 600 of 752 matches
Mail list logo