Andrew,
You might also want to check out this link:
http://www.zedia.net/2008/difference-between-mouseeventroll_over-and-mouseeventmouse_over-in-as3/
It does a great job of illustrating the difference between MOUSE_OVER and
ROLL_OVER.
Tony
http://www.lifelinewebsolutions.com
On Sun, Jul 5,
What types of objects other than FLV videos have metaData that triggers
the onMetaData event?
In AS3, why is the onMetaData event handled differently than all the
other events? I.e., why can't it be used with addEventListener?
___
Flashcoders
You should be able to set the text of a TextFieldType.INPUT type TextField using text property as
you are doing.
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Carl Welch wrote:
Hi,
I need to place some text into a input text field - the user needs to be
able to edit some text (from a
Hi,
I need to place some text into a input text field - the user needs to
be able to edit some text (from a database) and submit it back to a
database. So far, though, I've been unable to pass any vars to the
input textfield like this: datatext.text = database_vars;
do I need to handle
Hi,
You would probably have to roll your own for this:
You could make up your own 3D object out of planes and assign
different material to each plane.
Or render a large bitmap of all your movieclips and use that as a
material.
Not 100% on this - just a suggestion...
Glen
No one?
On Sun, Apr 26, 2009 at 8:49 AM, Omar Fouad omarfouad@gmail.com wrote:
So there is a way to apply multiple movieClips, or material to a sphere?
On Sun, Apr 26, 2009 at 8:41 AM, Christoffer Enedahl
christof...@enedahl.com wrote:
That site is not using papervision, it's using
: [Flashcoders] AS3 Loader() stupidity
Paul,
try to localize your error. Pull this code out and put it in a separate
swf
and see if that is still happening. I'm assuming that your assetLoader is
a
class variable.
Doesn't look like anything from here is an issue. You don't have a custom
Hi Guys,
I just realized I can't apply functions to MC's like I did with AS2. I
am creating a bunch of movieclips from some data I get from an xml
file. I wanted to create a rollover state for each of the mc's,
nothing fancy. Would some kind soul give me a nudge in the right
direction?
Try this:
function f_rollon(evt:MouseEvent)
{
evt.currentTarget.BG_Clickon.alpha = .1;
}
Jer
On Sun, Apr 26, 2009 at 4:10 AM, Carl Welch carlwelchdes...@gmail.comwrote:
function f_rollon(evt:MouseEvent){
// Back in AS2, I would have used this instead of
flashcoders@chattyfig.figleaf.com
Sent: Sunday, April 26, 2009 9:23 AM
Subject: Re: [Flashcoders] AS3 Loader() stupidity
Try to trace out what's in assets[i].assetPath inside the loop and see what
is returning. i also suggest to create the loader variable inside the loop.
for (var :uint = 0
Hi all,
I am wondering if I can create a 3D object in papervision, as a movieClip,
and apply it as a material to a Sphere, like, for example some piramids
placed on the Sphere.
Another thing, If I would let each piramid on the sphere to have a specific
click event, in this case I think that each
That site is not using papervision, it's using prerendered clips, which
is used celeverly with rotation.
I havn't tried using a viewpoint as a material, but I think it should
work, performance might be an issue though.
/Christoffer
Omar Fouad skrev:
Hi all,
I am wondering if I can create a
So there is a way to apply multiple movieClips, or material to a sphere?
On Sun, Apr 26, 2009 at 8:41 AM, Christoffer Enedahl
christof...@enedahl.com wrote:
That site is not using papervision, it's using prerendered clips, which is
used celeverly with rotation.
I havn't tried using a
I have:
assetLoader =new Loader();
var urlreq:URLRequest = new URLRequest(assets[i].assetPath);
assetLoader.load(urlreq);
I get:
TypeError: Error #1006: load is not a function.
at runtime.
I've seen some stuff about this to do with nested swfs, but can't quite
figure out the circumstances
Paul,
try to localize your error. Pull this code out and put it in a separate swf
and see if that is still happening. I'm assuming that your assetLoader is a
class variable.
Doesn't look like anything from here is an issue. You don't have a custom
Loader class that is interfering with the
- Original Message -
From: Gregory Boland breakfastcof...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Monday, April 20, 2009 4:36 PM
Subject: Re: [Flashcoders] AS3 Loader() stupidity
Paul,
try to localize your error. Pull this code out and put
That's a great response, thank you
On Sun, Apr 12, 2009 at 10:14 PM, Juan Pablo Califano
califa010.flashcod...@gmail.com wrote:
The problem is that, while static initializer blocks look like their
counterparts in Java, they have a little but important difference. Even
though you use curly
Hello,
I have a static initializer in my class and it works ok:
private static var BLACK:TextFormat = new TextFormat('Arial', 24,
0x00, true);
private static var RED:TextFormat = new TextFormat('Arial', 24,
0xFF, true);
// place 1 closer to 0 in the 10 string
{
On Sun, Apr 12, 2009 at 11:46 AM, Karl DeSaulniers k...@designdrumm.com wrote:
//for (var i:uint = 0; i 10; i++)
for (var i:int = 0; i 10; i++)
Nope this doesn't change anything and also
{
var i:int;
for (var i:int = 0; i 10; i++)
trace(i);
}
won't work
Regards
Oops a typo:
On Sun, Apr 12, 2009 at 11:58 AM, Alexander Farber
alexander.far...@gmail.com wrote:
Nope this doesn't change anything and also
{
var i:int;
for (i = 0; i 10; i++)
trace(i);
}
won't work
___
Flashcoders
Maybe try just:
{
var i:int;
for (i = 0; i 10; i++)
trace(i);
}
no need to declare the var part twice on the same variable.
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Apr 12, 2009, at 4:58 AM, Alexander Farber wrote:
On Sun, Apr 12, 2009 at 11:46 AM,
or dont delare the :int part and just put i=0
I'm just guessing now.. sry
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Apr 12, 2009, at 4:58 AM, Alexander Farber wrote:
On Sun, Apr 12, 2009 at 11:46 AM, Karl DeSaulniers
k...@designdrumm.com wrote:
//for (var i:uint = 0; i 10;
I am not a AS3 coder, but shouldn't this part be like this?
//for (var i:uint = 0; i 10; i++)
for (var i:int = 0; i 10; i++)
Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
The problem is that, while static initializer blocks look like their
counterparts in Java, they have a little but important difference. Even
though you use curly braces, you're not creating a new scope. In AS, scope
is either class / global or local (to a function or method).
So, you cannot
Many thanks for the in-depth reply, Juan. I learned something today.
Zeh
On Sun, Apr 12, 2009 at 5:14 PM, Juan Pablo Califano
califa010.flashcod...@gmail.com wrote:
The problem is that, while static initializer blocks look like their
counterparts in Java, they have a little but important
No worries, Zeh. I'm glad it was of use.
Cheers
Juan Pablo Califano
2009/4/12 Zeh Fernando z...@zehfernando.com
Many thanks for the in-depth reply, Juan. I learned something today.
Zeh
On Sun, Apr 12, 2009 at 5:14 PM, Juan Pablo Califano
califa010.flashcod...@gmail.com wrote:
The
Hello,
does anybody please have an idea, why would this code:
private function handleComplete(event:Event):void {
var urlvars:URLVariables = event.target.data;
..
if (urlvars.bids != null urlvars.bids != 0) {
trace(urlvars.bids);
.
the null is maybe a string if it's from url variables.
Alexander Farber wrote:
Hello,
does anybody please have an idea, why would this code:
private function handleComplete(event:Event):void {
var urlvars:URLVariables = event.target.data;
..
if (urlvars.bids != null
No, null==null in AS3.
I suspect that your url variable bids contains the string null, sent
from the server-side.
HTH,
Ian
On Thu, Apr 9, 2009 at 2:13 PM, Alexander Farber
alexander.far...@gmail.com wrote:
Hello,
does anybody please have an idea, why would this code:
private function
List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 09, 2009 3:13 PM
Subject: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids);still
prints null?
Hello,
does anybody please have an idea, why would this code:
private function handleComplete(event:Event):void {
var
!= urlvars.bids != 0)
regards,
Muzak
- Original Message - From: Alexander Farber
alexander.far...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 09, 2009 3:13 PM
Subject: [Flashcoders] AS3: if (urlvars.bids != null)
trace(urlvars.bids);still prints
So basically I have a bunch of thumbnail images set up in a grid form, each
is the same movieclip just multiple instances of it. This movie clip has a
rollover and rolloff state that basically scales the image up, this is done
with external as that loops through and creates the event listeners for
Preston,
There are two possible issues:
1. The scaled image is overlapping other scaled images and messing up your
chain of events fired
2. The tween method you are using to scale is not being properly terminated
and restarted/triggered. (How are you scaling the images?)
I would start by
Hello,
I have the following function called repeatedly:
private function handleComplete(event:Event):void {
var urlvars:URLVariables = event.target.data;
.
if (urlvars.lobby) {
.
} else if (urlvars.bids) {
Sent: Saturday, March 28, 2009 7:50 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Object reference
There's no _width in AS3.. it's width.
Array access notation should work fine:
photoStrip_mc[thumbnail + i + _mc].width;
As a sidenote, you're better off storing references in an array
-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
Sent: Saturday, March 28, 2009 7:50 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Object reference
There's no _width in AS3.. it's width.
Array access notation
Hi,
I'm having a difficult time pulling data out of some JSON I'm
currently working with. The following script is something that I found
online using Adobe's corelib to parse the JSON, but the sample JSON
the guy used was really basic. The one I'm working with has a few
levels. For
Trying to cylec through some objects. This doesn't seem to work in AS3 as it
does in AS2. Is there an equivalent in AS3?
photoStrip_mc[thumbnail + i + _mc]._width
Thanks ahead, T
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Apart from anything else, AS3 MovieClips don't have a _width property - it's
now width.
Paul
- Original Message -
From: TS sunnrun...@gmail.com
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 29, 2009 2:09 AM
Subject: [Flashcoders] AS3 Object reference
I am not at my computer, so that is just a guess. :)
Sent from losPhone
On Mar 28, 2009, at 8:09 PM, TS sunnrun...@gmail.com wrote:
Trying to cylec through some objects. This doesn't seem to work in
AS3 as it
does in AS2. Is there an equivalent in AS3?
photoStrip_mc[thumbnail + i +
Try this:
photoStrip_mc[thumbnail + I]_mc._width
Sent from losPhone
On Mar 28, 2009, at 8:09 PM, TS sunnrun...@gmail.com wrote:
Trying to cylec through some objects. This doesn't seem to work in
AS3 as it
does in AS2. Is there an equivalent in AS3?
photoStrip_mc[thumbnail + i +
Or you could try
photoStrip_mc.thumbnail[I]_mc._width
Sent from losPhone
On Mar 28, 2009, at 8:09 PM, TS sunnrun...@gmail.com wrote:
Trying to cylec through some objects. This doesn't seem to work in
AS3 as it
does in AS2. Is there an equivalent in AS3?
photoStrip_mc[thumbnail + i +
;
}
regards,
Muzak
- Original Message -
From: TS sunnrun...@gmail.com
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 29, 2009 3:09 AM
Subject: [Flashcoders] AS3 Object reference
Trying to cylec through some objects. This doesn't seem to work in AS3 as it
does
I might not have looked at them in while; yet, I think I know what you
are talking about. One of them reminded me of this weired thing I saw
in the bathroom once, and I figure just dragging a gradient through an
outer circular membrane would have a great looking movement effect; yet,
I really
Hi,
i have main.swf file, into it it is loading another swf with
additional items (png, xml,..). The another swf is loaded but not
external images, xml etc. Flash output says that there is security /
sandbox violation problem. Does anybody has any idea?
thanks
*** Security Sandbox Violation ***
i have main.swf file, into it it is loading another swf with
additional items (png, xml,..). The another swf is loaded but not
external images, xml etc. Flash output says that there is security /
sandbox violation problem. Does anybody has any idea?
thanks
*** Security Sandbox Violation
http://www.adobe.com/devnet/flash/articles/fplayer8_security_07.html
In order to enable local-with-filesystem, you have to add a
System.security.allowDomain(*) -- although since you are running the
swf on a local webserver (i.e. localhost or 127.0.0.1), I don't think
it treats it as a local swf,
@Matt
Thank you!!
Cor
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Muller
Sent: maandag 23 maart 2009 22:15
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 examples of amoeba or microbes
http://rafb.net/p/NZxD3554.html [1]
my code is pasted above for easy reading.
In AS3 I am trying to remove the previous image. In AS2 I could type
my_mc.unloadMovie(); but in AS3 I ned to refrence the child? I am not 100%
sure as to what to do. I tried to write a way for it to find the
If your image holder MC only has images in it, you can do this, BEFORE
you load the next image:
//remove all loaded images from img
while(img.numChildren 0){
var killIMG = img.getChildAt(0);
img.removeChild(killIMG);
killIMG = null;
}
I'm sure someone else will
Check this out:
http://www.nicoptere.net/blog/index.php/2008/10/13/51-bacteria-generator-actionscript-flash
On Sun, Mar 22, 2009 at 11:11 PM, Anthony Pace anthony.p...@utoronto.ca wrote:
I am looking for some really good examples of amoeba or microbe simulations
done in as3
I know that it is
This may sound a little kooky but if you have access to a copy of Resident
Evil 5, you might want to check out the game setup menu screens for
inspiration. At each level of the menu, they have different cells... one
trick that they do is tween the blur of an item so it looks like it's moving
you might find something useful here
http://www.liquidjourney.com/
there is source.
MaTT
On Mon, Mar 23, 2009 at 3:19 PM, Alan Shaw noden...@gmail.com wrote:
Check this out:
http://www.nicoptere.net/blog/index.php/2008/10/13/51-bacteria-generator-actionscript-flash
On Sun, Mar 22, 2009
Source??? Where exactly??
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Muller
Sent: maandag 23 maart 2009 18:10
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 examples of amoeba or microbes
??? Where exactly??
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt
Muller
Sent: maandag 23 maart 2009 18:10
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 examples of amoeba or microbes
you might
I am looking for some really good examples of amoeba or microbe
simulations done in as3
I know that it is probably just done using beziers; yet, I am also
wondering what the best way would be to connect hair feelers to the
edges, so if the microbe changes shape the hairs move accordingly.
Hey Everybody,
I just finished putting together an image cropper in AS3.
http://www.gigafied.com/dev/cropper/
Wanted to get some peer-developer feedback and if you have any
suggestions on improving it, notice anything wrong, etc.
The window is scalable, i.e. you can resize the window and the
Hi,
Have a look at this tutorial - it applies to lists too.
http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/
Glen
Alexander Farber wrote:
Hello,
I'm trying to change the font size in a fl.controls.List:
private static const SMALL:TextFormat = new
Hello,
I'm trying to change the font size in a fl.controls.List:
private static const SMALL:TextFormat = new TextFormat('Arial', 18,
0x00);
list = new List();
list.setStyle('textFormat', SMALL);
but the size of the font in the List doesn't seem to change.
Has
Hi all,
just for info:
https://bugs.adobe.com/jira/browse/FP-1719
--
Olivier Besson (gludion) - (33 1) 44 64 78 99
http://www.gludion.com
http://blog.gludion.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
: [Flashcoders] AS3 - XML Filter by Date
You can filter XML with arbitrary boolean functions, so the answer is
definitely yes.
See http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_08.html#131880
One of the examples there shows XML stored in var x with a list of employee
id=23/ type elements
Greetings everyone,
In AS3, can you filter xml by a date value or range?
Thanks,
Doug Coning
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I suppose if the XML has that kind of data in it you could.
On Mon, Mar 9, 2009 at 12:02 PM, Doug Coning dcon...@webize.com wrote:
Greetings everyone,
In AS3, can you filter xml by a date value or range?
Thanks,
Doug Coning
___
Flashcoders
You can filter XML with arbitrary boolean functions, so the answer is
definitely yes.
See http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_08.html#131880
One of the examples there shows XML stored in var x with a list of employee
id=23/ type elements, and you can use this syntax to get
I've finally run into a situation where I really need the same font both
embeded and used statically.
I've been searching the web and there a lots of mentions of the bug but I've
yet to find a great work around.
Does anyone have a preferred or elegant fix they can recommend?
--
--Joel Stransky
what's the exact bug, because I just created two text fields, one with
static text, the other dynamic. I embedded the font in the dynamic
text field and it worked...
On Wed, Mar 4, 2009 at 11:16 AM, Joel Stransky j...@stranskydesign.com wrote:
I've finally run into a situation where I really
Sorry I meant exported fonts that are in turn applied to a dynamic textField
whose embedFonts property is set to true.
On Wed, Mar 4, 2009 at 2:41 PM, Taka Kojima t...@gigafied.com wrote:
what's the exact bug, because I just created two text fields, one with
static text, the other dynamic. I
ahh...
I would use a tool like TypeTool to create a new version of the
font, use one for static and one for embedding...
However, why not just set your static textFields to dynamic...
You can use the font in your library by setting the font to exportName*
- Taka
On Wed, Mar 4, 2009 at 12:02
I considered the alternative font option too but new software is not in the
projects budget.
The font is not exported into the .swf that needs it. I'm using a fonts.swf
as a global library.
I don't want to create a textFormat for each static field so setting them to
dynamic is not an option.
What
Carl Welch wrote:
Hi Guys.
I need to make sure that my swf has completely loaded in the page
before I execute a particular script. Any suggestions on how to go
about this? Point me in the direction... please?
Thanks Cheers!
Hi,
If you mean calling JavaScript, could you call this
Hi Guys.
I need to make sure that my swf has completely loaded in the page
before I execute a particular script. Any suggestions on how to go
about this? Point me in the direction... please?
Thanks Cheers!
--
Carl Welch
___
Flashcoders
Hi,
I did not use AIR because I was doing a DVD / CDROM project and
projector works out of the box. Without lots of reading and extra work,
I could not have got AIR working and I am not sure it could autorun
standalone off a CDROM. If it can, the documentation / marketing needs
to be a
That's what I thought - projector runs, AIR requires installing. I
don't want that possible barrier to use - why should I have to install
something to run a CDROM???
Ian Thomas wrote:
It can autorun off a CD-ROM, but not standalone - you can package your
app with the AIR installer, but the
It can autorun off a CD-ROM, but not standalone - you can package your
app with the AIR installer, but the AIR app (and your app) will
install themselves on your user's computer.
Ian
On Tue, Feb 17, 2009 at 9:33 AM, Glen Pike g...@engineeredarts.co.uk wrote:
Hi,
I did not use AIR because I
Yup - makes sense to me. :-)
Projectors are there for a reason. :-)
Ian
On Tue, Feb 17, 2009 at 9:47 AM, Glen Pike g...@engineeredarts.co.uk wrote:
That's what I thought - projector runs, AIR requires installing. I don't
want that possible barrier to use - why should I have to install
Ah, now it makes sense, I was just unable to figure out where you would use
a projector in place of an AIR app now-a-days. But that makes total sense.
On Tue, Feb 17, 2009 at 2:00 AM, Ian Thomas i...@eirias.net wrote:
Yup - makes sense to me. :-)
Projectors are there for a reason. :-)
Ian
Hi there,
Just doing some tests loading flv dynamically and there's something I
don't quite get. From the reference:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#play()
If the video file can't be found, the netStatus event is dispatched
Indeed the
Glen, thanks for the response.
As an interesting (?) complication to this matter, I recently installed the
new versions of the players to CS3 Professional IDE:
http://kb.adobe.com/selfservice/viewContent.do?externalId=b62ce659sliceId=2
Before I updated, the stage.displayState =
Hi,
Will check later, but I don't think I ever upgraded the IDE.
I am also not running Vista yet - testing in WinXP...
Glen
jonathan howe wrote:
Glen, thanks for the response.
As an interesting (?) complication to this matter, I recently installed the
new versions of the players to
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors
Hi,
Will check later, but I don't think I ever upgraded the IDE.
I am also not running Vista yet - testing in WinXP...
Glen
jonathan howe wrote:
Glen, thanks for the response
My IDE published to 9.0.45.0 for that projector.
HTH
Glen
jonathan howe wrote:
Glen, thanks for the response.
As an interesting (?) complication to this matter, I recently installed the
new versions of the players to CS3 Professional IDE:
Well, it doesn't disprove my theory - that is the packaged version prior to
the security patch. The version of projectors that my IDE now creates is
9.0.151.0
So, the mystery remains.
Anyone with the unpatched version: Test your fullscreen projectors in Vista.
Anyone with the patched version:
Hi,
I don't think that updating the FP updates the IDE one normally - I
have never worked out how to do this, even with Kewbee's Plugin Switcher.
Not wishing to sound too cynical, but if everyone upgrades their FP
so easily, then content creators will have to keep up and they are the
Just out of curiosity... Why are you deploying your application as a
stand-alone projector when you could deploy it as an Adobe AIR application?
On Mon, Feb 16, 2009 at 2:03 PM, Glen Pike postmas...@glenpike.co.ukwrote:
Hi,
I don't think that updating the FP updates the IDE one normally - I
Hello,
I have some classes with a lot of code that I may or may not need depending
on the situation. These classes all extend a superclass that I refer to in
my main application.
My ideal would be to define subclasses only in external swfs, load the
swfs and then instantiate the classes via a
It definitely works (to do as you describe).
I think you need to take a good look at the ApplicationDomain class -
make sure that the loaded SWF is in the same application domain as
your loading SWF, and it should all be fine.
Alternatively, you can specifically query the child's
Cool, thanks Ian,
I had assumed that the currentDomain would be the default (or at least the
related behavior). I read this from the documentation:
By putting the loaded SWF file in the same application domain, you can
access its classes directly. This can be useful if you are loading a SWF
file
Hello,
According to docs Full-screen mode is always permitted in the stand-alone
player or in a projector file.
Yet I get a SecurityError: Error #2152 when I call stage.displayState =
StageDisplayState.FULL_SCREEN; from a projector. But I don't get it when I
use the old fscommand method of going
Hello , I'm having some troubles creating a swf with fonts embedded.
first I create a swf from swmill with the font and works perfect
(resource.swf)
then compile another swf from haxe with resources included inside, and thats
also fine.
but when i test my swf to see my fonts , doesn't exists.
if i
*height not right*
--
Create two .fla's called SizeParent.fla and SizeChild.fla.
In SizeChild draw a square of 20x20 and set it's y to 10.
Publish SizeChild.swf and place this code on frame 1 in SizeParent
Code:
import flash.display.*;
import flash.events.*;
import
It measures the height of the actual content.
You'd have to have something onstage at (0,0) for it to start measuring
there.
If you need it, write something that retrieves the Y value of the item plus
the item's height, where item is the DisplayObject in the loaded SWF.
var
Thanks Matt,
I understand I can work out the height manually but I'm trying to write a
function into the main stage that can read the height of any child swf. The
names and locations may vary so its not that attractive of a solution.
There has to be some way of reading the bounds. Like in as2, if
I dunno, man, I don't remember what that returned in AS2 (it's been a couple
years since I used it), but I would seriously get annoyed if AS3 returned a
height based on a non-existent piece of content. Right now, it sniffs out
the bounds of the displayobject then returns the height of that
Well I think I have something to work with. I found that I can just
getBounds() on the element in question and add the returned Rectangles .y to
its .height. I'd like a simple height prop somewhere but this will work. Now
to go post in the other two places I asked this question :)
On Sun, Jan 25,
It's not a I don't like change argument. It's a why remove logically
intuitive features without a replacement? one. AS3 is great, but it's not
fool proof.
On Sun, Jan 25, 2009 at 2:34 PM, Matt Gitchell m...@moonbootmedia.comwrote:
I dunno, man, I don't remember what that returned in AS2 (it's
Hello flash coders,
in my document class I check loaderInfo.parameters.debug:
public class MyGame extends Sprite {
public static const DEBUG:Boolean = loaderInfo.parameters.debug;
public static const SERVER:String = DEBUG ? 'http://192.168.111.43' :
'http://preferans.de';
Hi,
I think you can use this.stage.loaderInfo, but your Sprite needs to
be on stage before you can use the stage parameter.
For example:
private function _addedToStageHandler(event:Event):void {
trace(BackgroundAudio::_addedToStageHandler +
this.stage.loaderInfo.url);
Hello Glen
Ok, it needs to be on stage first - that's why it was null in my tests
I still wonder if it's possible to set DEBUG once as _static_ var or const?
Regards
Alex
On Wed, Jan 21, 2009 at 9:13 PM, Glen Pike postmas...@glenpike.co.uk wrote:
I think you can use this.stage.loaderInfo,
Dear flash coders,
I'm struggling since a week already with
several elements in my application not
acting as I want them to do. And they
all could be reduced to a rectangle button
which has a TextField on top of it and
which should lighten up on a mouse over
and scale down on a mouse down event.
Alexander,
I set
MyButton.mouseChildren= false;
Kind regards
Cor
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
301 - 400 of 1482 matches
Mail list logo