and Googling seems to
turn up little info which tells me it isn't a common problem (unless I'm
just using the wrong terms).
Any help much appreciated. Otherwise, good weekends all!
Adrian Park
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http
but it seems MTASC replaces all code in the existing SWF rather
than augmenting it.
Anyone have any suggestions for how I might compile a few lines of extra
code into and existing SWF whilst maintaining all existing code?
Many thanks in advance for any help.
Regards,
Adrian Park
in order to see the motion.
HTH.
Adrian Park
On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:
Hi
Is there a way to apply to som text added with as3 some motion or alpha?
I've got this working well:
import flash.text.TextField;
import flash.text.TextFormat;
var
quotehowever, because the actual shape is a rectangle, i think there's an
issue
/quote
What exactly is the issue you're seeing?
I think you may be over-complicating it. If the angles that your people look
are in 45 degree increments then that's how your angles should be calculated
- i.e. using
to be more precise with the code but this should give you the
basics you need to customise your own script.
HTH
Adrian Park
On Fri, Feb 15, 2008 at 3:13 PM, Some Dude [EMAIL PROTECTED]
wrote:
Does anybody know what the jsfl would look like to automate the process of
aligning movieclips to the top
, I'll get off the OT conversation now. Good weekends all.
Adrian Park
On Feb 8, 2008 4:09 PM, Peter B [EMAIL PROTECTED] wrote:
Hi Adrian.
Ah, I see. In which case Jesse, my apologies. I must have had my
sarcasm filter on...
;p )
___
Flashcoders
Hi Peter,
I understood Jesse's comment to be a follow on to his sarcastic reference to
'magic' and he is in fact insinuating that it's simpler than it looks and
therefore, yes, anyone interested enough can learn how to do it. I don't
think he meant any offense.
If I'm not mistaken he's alluding
and MVC further, feel free to
contact me direct at [EMAIL PROTECTED]
Thanks all,
Adrian Park
On Jan 9, 2008 1:38 AM, Muzak [EMAIL PROTECTED] wrote:
Have you tried casting to MovieClip?
regards,
Muzak
- Original Message -
From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders
method startup through a reference with
static type flash.display:DisplayObject.
I tried a few things (including casting gameLoader.content to the Document
Class) but the only thing I could get to work is this...
gameLoader.content[startup]();
Any ideas? Thanks in advance.
Adrian Park
Hi - I'm really hoping someone can help as I'm tearing my hair out here.
Clip A - my production master clip which loads...
Clip B - a module of a site I'm building
Everything works fine in the Flash IDE but running on the standalone player,
Clip B doesn't seem to see Singleton instances created
If it helps, I had this problem and solved it by making the href point to an
ActionScript function which in turn used getURL to open the link. This way I
was able to use URLs longer than the 128 character limit.
HTH
A.
On 8/26/06, Aaron Hedquist [EMAIL PROTECTED] wrote:
Yes, that's exactly
It *is* for Shell Petroleum :)
But, point taken because I don't think the project I'm working on is going
under the .com domain. I copied some classes from a previous project which
was under the .com domain without even thinking about changing the package
names. Slap self on wrist!!
Also,
Hey all!
I'm using a class (AnimationProxy) based on the Singleton pattern to form a
bridge between a timeline based intro animation (sigh) and the application
objects (it's not strictly an intro because, when the intro is complete, the
animation continues in the background whilst the rest of
I've also encountered the issue where having a wide skill base is good in
some places but seen as a negative point elsewhere. Back in Zimbabwe, if I
could build a web site, fix the fridge, service the car and provide
professional child councelling I'd be very valuable - here in London I'd be
Hi David,
Like you, I didn't have any previous programming experience when I started
using ActionScript. I *think* I'm now pretty nifty with my OOP but still
feel like I have oodles to learn when it comes to structuring more complex
app's in a good way.
I'd echo the suggestions of learning a
Joe, that sounds like a really useful approach. I imaging it gets you on the
right track with distinct objects and duties. The way I understand MVC, I'd
guess that you'd use MVC to implement the *nouns* (if it seemed
appropriate). i.e. Pacman might have a model to store his state (e.g.
location,
I've googled for some enlightenment on this but haven't really found many
answers...
I've noticed many class authors prefix property names with an underscore, or
2 underscores or none at all. I often see all three of these prefix 'styles'
in one class. I haven't been able to figure out what the
Thanks Claus and Johannes - I can see some benefit in that.
A.
On 8/10/06, Johannes Nel [EMAIL PROTECTED] wrote:
tend to use to underscrores to indicate private one to indicate protected
On 8/10/06, Claus Wahlers [EMAIL PROTECTED] wrote:
I've noticed many class authors prefix property
try:
_level0[itemDividerStageRecord+x]._x
(note: removed '.' after _level0).
HTH
Adrian
On 8/2/06, Jon [EMAIL PROTECTED] wrote:
Cheers Jason,
Unfortunately I have no control over the XML produced.
The code you provided didn't work.
_root._level0.[itemDividerStageRecord+x]._x =
Have you uploaded 'video.flv' (the resource specified in contentPath)?
Adrian
On 7/27/06, Gavin Lilley [EMAIL PROTECTED] wrote:
I have recently produced a simple movie that appears not to work.
The movie is :
http://www.stairclimber-uk.com/images/movie.html
Hi Gavin,
As pointed out in Serge's message,
http://www.stairclimber-uk.com/images/video.flv still doesn't work.
According to your contentPath, video.flv should be in the same folder as the
other assets. If it isn't, then you do indeed have a relative path problem.
A.
On 7/27/06, Gavin Lilley
Glad you solved it and that's a handy thing to remember.
A.
On 7/27/06, Gavin Lilley [EMAIL PROTECTED] wrote:
Good morning All,
Thank you for looking at this. it is a very basic thing, but for some
reason
I just couldnt see the wood for the trees!
Toby was correct, it was a setting on iis,
with a Mac-only font, it can be embedded in base.fla, and the folks
working on PCs can still develop the child FLAs even though they don't
have
the font.
Kind regards,
Raymond Simmons
- Original Message -
From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders
The approach I'd take would be to use an XML configuration file to work out
what inputs are needed and then create all the widgets from the library.
This way, all you need to modify for each deployment is the XML
configuration file. You could then also add attributes to the XML to flag
things
/26/06, Adrian Park [EMAIL PROTECTED] wrote:
The approach I'd take would be to use an XML configuration file to work
out what inputs are needed and then create all the widgets from the library.
This way, all you need to modify for each deployment is the XML
configuration file. You could then also
I have successfully used this exact technique when targeting Flash 6 but, as
I think about it, I haven't used it in any Flash 7 projects yet. That said,
due to a quirk in the way a current project has evolved, it has ended up
using this technique but with the addition of identical Symbols in the
Nice!
On 7/23/06, Julian 'Julik' Tarkhanov [EMAIL PROTECTED] wrote:
On 6-jul-2006, at 11:27, Adrian Park wrote:
I encountered this strange quirk recently as well. I found the most
reliable
solution is to duplicate your project folder, open and recompile
from that
folder, close
and patience Adrian.
On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote:
I'm thinking more like this (using your most recent code as a starting
point)...
//create an instance of MovieClipLoader
var myMCL = new MovieClipLoader();
// register this as a listener
myMCL.addListener(this);
// define
When 'this.link' loads into imagem_mc, any existing properties and methods
of imagem_mc are destroyed because 'this.link' replaces imagem_mc.
Immediately after loading the MovieClip, you call subAppear which assigns
the onEnterFrame handler. This handler is destroyed when the MovieClip loads
so
Under View Proof Setup, choose 'Monitor RGB' - this will give you a better
representation fo what the image will look like in browsers and Flash.
Colour correct the image to look as you want then save out your jpg ready
for import into Flash.
Now, back to ActionScript... :)
HTH
Adrian
On
with a event listener?hummm
On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote:
When 'this.link' loads into imagem_mc, any existing properties and
methods
of imagem_mc are destroyed because 'this.link' replaces imagem_mc.
Immediately after loading the MovieClip, you call subAppear which
assigns
product from Northcode...
e.dolecki
On 7/17/06, Adrian Park [EMAIL PROTECTED] wrote:
Nick,
I know you asked Kelly but, in case it's interesting to you, I have
completed the project I was working on using Zinc. It is a kiosk
application in which I needed to capture user data from a form
Nick,
I know you asked Kelly but, in case it's interesting to you, I have
completed the project I was working on using Zinc. It is a kiosk application
in which I needed to capture user data from a form in Flash and append it to
a text file for collection later. Zinc made this an absolute breeze!
You can do it with something like Zinc ( http://www.multidmedia.com/ ) or
Jugglor (http://www.flashjester.com/).
There is also the open source Screenweaver (http://screenweaver.org/) which
can do this I think.
There are also other similar solutions - try
Hi Ville,
First up, you have my sympathy - I know what it's like working with
difficult clients like this! It sounds like you've found yourself in a
situation where the client's lack of technical knowledge means they
undervalue what you have done and are capable of.
Regards the code structure
Check out http://www.liquidjourney.com/ for some source that may help.
I'm particularly thinking you might find something useful in the
presentation you can get to via the link at the bottom of the page to FITC
06 Presentation :: Behaviours simulating AI.
HTH
On 7/8/06, Martin Weiser [EMAIL
I encountered this strange quirk recently as well. I found the most reliable
solution is to duplicate your project folder, open and recompile from that
folder, close and continue working from your original folder and everything
is fine (for a while)!
No amount of deleting ASO cache solves it (in
This sounds to me like what happens if you embed a certain set of characters
in the field but then pass it a String including characters you haven't
explicitly embedded. I'm guessing you may have pasted a string into the
Include these characters: field in the Character Embedding window? If
so,
Glad to be of help Rick.
On the font embedding thing v. the font being installed on your machine, I'm
pretty sure that if you specify a font but don't embed any characters then
Flash will use the installed font but if you embed then Flash will only look
to the embedded characters for display and
I'm not sure this is really a 'feature' that is missing since the problem
really boils down to OOP theory. For example, it could be argued that it is
incorrect for the country class to extend MovieClip since a country *is not*
a MovieClip but, rather, *uses* a MovieClip for display. By this
to access each country and
assign
the behavior.
I´ll will upload my .fla files so you can understand.
On 7/5/06, Adrian Park [EMAIL PROTECTED] wrote:
I'm not sure this is really a 'feature' that is missing since
the
problem
really boils down to OOP theory
The project I'm working on has several packages, each with several classes.
One package in particular compiles fine and everything works as expected and
if I run 'Check Syntax' everything checks out fine. But, if I try to 'Auto
Format' the code of one of the class files (just one of the classes
A method I've often used to get around this kind of processor hogging is to
set it up that only, say, 10 stars are animating at any one time (i.e. only
10 have onEnterFrame handlers set or even better, following Weyert's
suggestion, update only 10 at a time using a single onEnterFrame handler).
I'd agree with Kenneth. If possible, use something like Verdana which
definitely includes all the characters you need - not all fonts do.
But, if you really do need to embed the fonts, then you can use a
combination of your first two suggestions to acheive what you want.
1) create a font
OK, this is bugging me now!
Chuck, you suggested using the following would work. Jason, you said it did.
I can't get it to work! The size and colour of the text between the li's
is affected but the bullets are still black. What am I missing?!
li {color: #9A9CA6;font-weight: 900;font-family:
Thanks Jason,
Your code enabled me to work out exactly what's going on - it only works for
Flash Player 8 or above! If you publish to 7 the bullets won't be coloured.
Perhaps it doesn't work when you run the swf off the desktop because the
standalone player didn't have this update rolled into
Is it okay to build some animations using the timeline?
Surely it's as 'okay' to build timeline animations as it is to build
scripted animations! The decision is simply based on what best suits the
requirement in terms of efficiency to build, the production values of the
finished animation, how
Even using a stylesheet I have not been able to change the colour of bullets
in html text fields. The only way I've been able to do it is to embed the
font, nest the text field in a movie clip and tint it - not nice!
Adrian P
On 6/26/06, Merrill, Jason [EMAIL PROTECTED] wrote:
Is there any
Thanks everyone - this has helped me out a lot and I've learnt a few new
things through the discussion as well.
Adrian
On 6/15/06, Derek Vadneau [EMAIL PROTECTED] wrote:
It depends on how you are using it.
Object is NOT the same as untyped.
Try this code:
var a:Array = new Array();
Hi List,
What's the neatest way of accepting a single parameter with 2 possible types
into a method and then working out what type of parameter has been passed?
e.g. in pseudo code
private function myMethod( i:Number/String ):Void {
if ( i is a String ) {
// do this
} else if ( i is
about it, but without knowing a bit more about the
circumstances, it's kind of hard to say...
HTH,
Ian
On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote:
Hi List,
What's the neatest way of accepting a single parameter with 2 possible
types
into a method and then working out what type of parameter
Some really interesting and valuable stuff here. Adam, that link is really
useful - I like using formulas to make me feel confident about my
guestimates
One thing about clients who balk at your (perfectly reasonable) rates, plead
poverty and squeeze you for everything - in my experience it is
You'll also have to change...
if (this._alpha100) {
to
if (this._alpha0) {
On 6/1/06, Seb L [EMAIL PROTECTED] wrote:
try this...
myAlpha = ((alphaTime-(getTimer()-loadTime))/alphaTime)*100;
On 01/06/06, Tony Watkins [EMAIL PROTECTED] wrote:
So, the following script will cause a
I'm also wrestling with this at the moment so would like to be included
in/pointed towards any discussion (if it doesn't continue here).
Whilst I appreciate the issues with discussing exact rates, I'd find it
useful to hear thoughts on things like:
- differences between freelance rates (managing
Hi Nik,
As far as I know you can only duplicate a MovieClip into the same parent.
attachMovie is used for attaching MovieClip symbols (which have been
assigned linkage id's) from your library.
I think the simplest thing to do would be to set a linkage id for your
movieclip symbol in the
Hi Nik,
I see what you mean now - you want to be able to ask a MovieClip what the
linkage id of it's master in the library is. And, yes, there seems no nice
way of doing this!
Another option to consider might be to derive the attached movie clips'
names from the linkage ids and then use the
Hi all,
The preloading of the app' I'm working on is not working properly when
classes are exported on first frame. This is because they are large enough
to have a significant effect on the loading of the .swf as a whole (yes,
they can and should be optimised, if only I had that luxury!). More
Hey Julian,
With your example, this should work (I've just tested a similar class
instantiation in one of my classes):
var anObject = new eval(org).eval(foo).eval(Bar)();
You can pass parameters in the final set of braces as usual.
HTH
Adrian P.
On 4/12/06, Julian 'Julik' Tarkhanov [EMAIL
Of course, I was wrong (where's my head at?!).
I can get several of the eval() and [] options to work but, out of
curiosity, how would you pass parameters with the constructor? I can't seem
to do this with my tests. Apologies if this is a dumb q'.
Adrian P.
On 4/12/06, Cedric Muller [EMAIL
Hi Riccardo,
You can use the following form of hitTest for this:
MovieClip.hitTest (x, y, shapeFlag );
In your case, the MovieClip will be the movie clip in which you've drawn the
shape and x and y will be the coordinates of your pixel (in the global
coordinate space).
shapeFlag is an optional
Hi Riccardo,
I'd have to see a sample of your code and/or the .fla to work out exactly
what's happening. I'm going away for holiday for a week from tomorrow so
won't be able to help out with this. I hope someone else can help you out.
Good luck!
Adrian P
On 3/27/06, [EMAIL PROTECTED] [EMAIL
You could use ActionScript to manage the position of the playhead in the
timeline and therefore manipulate the speed the animation plays.
e.g.
With a clip with a 48 frame animation...
If you advance the playhead to the next frame (using script) 24 times a
second then your animation completes in 2
That's a neat approach to changing scripted animation speed globally but
made me realise that I'd assumed Lee was talking about chaging the runtime
speed of timeline animations created at authortime. Upon reading more
carefully, I think I may have been wrong in this assumption. Lee, are you
Kieth,
I saw a demo of Alf for the first time last week and the demonstrator did
exactly what you describe to illustrate it's power.
Adrian P
On 3/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Keith
Try alf..
http://www.code4net.com/archives/000116.html
I think it does what you
I want draw regular shapes with antialiased edges into a blank BitmapData
object. A rectangle is simple (if it isn't rotated at all) but how would I
go about drawing something like a filled circle at a specified position with
a radius r?
I figure I could easily draw what I want using vectors and
, Adrian Park [EMAIL PROTECTED] wrote:
I want draw regular shapes with antialiased edges into a blank
BitmapData
object. A rectangle is simple (if it isn't rotated at all) but how would
I
go about drawing something like a filled circle at a specified position
with
a radius r?
I figure I
Hi David,
Not sure of the exact nature of your setup but it just occured to me that
the simplest way to do this would be if you could enclose the rotated clip
in a wrapper clip - if you get the _width and _height of the wrapper clip
after rotating the enclosed tip you will have the width of
. This is simply because the
routines to draw the shapes are all native to the Flash Player, and
they are therefore going to be a _lot_ faster than anything you can
come up with in ActionScript.
HTH,
Ian
On 3/20/06, Adrian Park [EMAIL PROTECTED] wrote:
I want draw regular shapes
Have you looked at Ripple on OSFlash? I haven't had a chance to try it out
yet but will do as soon as I have a bit of time.
http://osflash.org/ripple
Adrian P.
On 3/16/06, Stephen Ford [EMAIL PROTECTED] wrote:
Does anyone have any good links or advice for optimising Flash for search
engines.
I've used Alex Uhlmann's animation package a lot - it's pretty in depth and
some think OTT but I like it :)
http://www.alex-uhlmann.de/flash/animationpackage/
Adrian P
On 3/15/06, Kevin Cannon [EMAIL PROTECTED] wrote:
Hi,
I'm looking to improve my handling of timed events for the sites I'm
Another oops...
This line...
var alreadyLoaded:Number = currentImageNo * segmentSize;
... should be...
var alreadyLoaded:Number = (currentImageNo-1) * segmentSize;
A.
On 3/12/06, Adrian Park [EMAIL PROTECTED] wrote:
Oops, spotted a mistake!
This line...
var currentImageProgress:Number
/12/06, Adrian Park [EMAIL PROTECTED] wrote:
Hey Sascha,
I see what you mean - the main problem is you have no way of knowing the
sum total of all the bytes to load when the download process starts.
I like the idea of dividing the bar into segments, one per image. I think
I'd try something
- Original Message -
From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, March 12, 2006 3:24 AM
Subject: Re: [Flashcoders] Loading several images with one progressbar?
Say you have 3 images loading, use something like
] wrote:
Le 11 mars 06, à 11:27, Adrian Park a écrit :
I encountered exactly the same issue on the project I'm currently
working
on. I got around the problem by using XPath.selectNodes rather than
XPath.selectNodesAsString.
Please send a mail to XPath author to get this fixed
Say you have 3 images loading, use something like this:
var bytesLoaded:Number = 0;
var bytesTotal:Number = 0;
bytesLoaded += image1.getBytesLoaded();
bytesTotal += image1.getBytesTotal();
bytesLoaded += image2.getBytesLoaded();
bytesTotal += image2.getBytesTotal();
bytesLoaded +=
I agree wholeheartedly with the Essential ActionScript 2.0 recomendation but
would add that Moock's previous book, ActionScript for Flash MX, is also
indispensable. Sure, some of the stuff in it is not necessarily up-to-date
but, as a reference to ActionScript's built in classes and methods I find
I'm working on an app' that uses the Datagrid component. It would make my
client very happy if I could apply unique colours to individual rows in the
datagrid and it would enhance the user exeprience of the app' if it were
possible. Looking through the documentation, I can't find any way of
- Original Message -
From: Adrian Park [EMAIL PROTECTED]
To: Flashcoders@chattyfig.figleaf.com
Sent: Friday, March 10, 2006 8:12 AM
Subject: [Flashcoders] DataGrid rows with unique background colours?
I'm working on an app' that uses the Datagrid component. It would make my
client very
Your class decleration should be:
// begin code
class com.drawing.rect {
i.e. you need to declare it with the full classpath
Your ref property should be declared like this:
var ref:Object = target_mc;
i.e. you shouldn't use the private or public keywords within a method since
the property is
the bitmap inside
a
swf, because i have no control over the bitmaps.
Any other ideas?
On Mon, 06 Mar 2006 17:36:46 -0300, Adrian Park [EMAIL PROTECTED]
wrote:
Hey Marcelo,
I've been playing with BitmapData for the first time this past weekend
so I
stand to be corrected on what I'm
I have always understood that you cannot attach an asset from the library of
one swf into another loaded swf. I've never succeeded in doing it and
haven't seen a workaround.
Sorry I can't be more helpful. Please can someone prove me wrong!
Adrian P
On 3/7/06, Marlon Harrison [EMAIL PROTECTED]
Hey Marcelo,
I've been playing with BitmapData for the first time this past weekend so I
stand to be corrected on what I'm about to say!
My understanding is that you can only load BitmapData from an existing image
which is already in your library and has a linkage ID. For this reason, I
don't
Hey Peter,
First probelm I see is this...
In your photo_navigation() method, you do this...
trace(my_xml = + my_xml);
... immediately after this...
var my_xml = load_xml(xml_file);
When you call the trace() your xml won't have loaded yet and therefore will
not have been returned. I'm
Without trying it myself I can't answer your first question but for your
second question, have you tried specifying the width and height attributes
of your img tags? This might prevent overlapping.
e.g. img src=myimg1.jpg width=20 height=20
On 2/28/06, Karim Beyrouti [EMAIL PROTECTED] wrote:
I think you might be looking for the Object.registerClass() method...
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2587.html
I haven't actually used it myself as I only became aware of it a few days
ago!
Adrian
On 2/27/06,
Firstly, I'm new to this list so hi!
I suspect your problem may be to do with the fact that you cannot use
library assets from one .swf in another.
From your description, I understand that your dndNodeDragger asset is in
the library of the second swf - if this is true you will not be able to
86 matches
Mail list logo