Hello :)
1 - in AS1 you can use addProperty with the prototype and not in the
constructor !!
// o Constructor
_global.Square= function(side)
{
this.side=side
}
// o Public Methods
Square.prototype.getArea=function()
{
return Math.pow(this.side,2);
}
Square.prototype.setArea =
If you aren't you should
Knee jerk reaction:
Nobody should use any pattern. They CAN use patterns if it benefits
the project, benefits their mental health and provides for a better
product. I probably read too much into it but pattern worship is
useless, crippling and annoying.
- A
Per
Hear hear.
Patterns are no magic bullet.
Alias
On 25/09/06, Andreas Rønning [EMAIL PROTECTED] wrote:
If you aren't you should
Knee jerk reaction:
Nobody should use any pattern. They CAN use patterns if it benefits
the project, benefits their mental health and provides for a better
product.
There is a bug which you could potentially exploit for this.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?
catid=184threadid=1000550enterthread=y
Note the last post. If MIDI is not set to 44.1, Flash can't output
any audio.
-josh
On Sep 22, 2006, at 10:27a, aaron smith
FLVPlayback only supports a subset of SMIL, which bits I'm not sure.
I've asked on the wishlist for a proper SMIL renderer, but who knows
if that will ever happen.
The release notes for the FLVPlayback updater include some info about
fixes to SMIL bugs, though.
Hi all,
I'm using the BitmapData Object to take a snapshot of the pages in my flash
app and it works fine on movieclips without a flv video player inside.
But on of the pages has an movieclip inside it which is playing (streaming) a
flv file and when I try to take a snapshot of this page
I try to put a button in a row of a datagrid for each line of it.
How can I do ??
Thank you
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Check out the CellRenderer API in the Flash docs.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Laurent
CUCHET
Sent: 25 September 2006 11:09
To: Flashcoders mailing list
Subject: [Flashcoders] Datagrid
I try to put a button in a row of a datagrid for
Even if someone just wants to take a guess that would be fine. Thanks!
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, September 22, 2006 4:01 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Help debug
How can I simplify this ?
Thak you
function getScale(mc:MovieClip) {
al_mc._xscale =
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r
ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi
Keep an array of your movie clips and then loop through the array to set
the properties. Also, keep the setting of specific movie clip
properties (lor_mc ._xscale= frc_mc._xscale) separate from the setting
of generic movie clips (mc._xscale = 300;). Those should be two
separate functions.
group mc in some array or object, set valu viafunction to all memebers
in group
var group1=[al_mc,lor_mc,frc_mc,cha_mc,npc_mc,pic_mc]
var group2=[ho_mc, pro_mc, bou_mc, lan_mc, auv_mc]
var group3=[d_mc, aqu_mc, lim_mc, poi_mc, cen_mc]
var group4=[_mc, han_mc, ban_mc, pad_mc, bre_mc]
function
Hi Aaron
Detour provides individual sound control for each app running on Mac OS.
http://www.versiontracker.com/dyn/moreinfo/macosx/20128
I'm not a Mac user, so I can't vouch for it. Good luck.
Jake
On 22/09/06, aaron smith [EMAIL PROTECTED] wrote:
Does anyone know of an application that
import mx.controls.Label;
public function createLabel(owner:MovieClip, instanceName:String,
depth:Number, initObj:Object):Label{
var label = owner.attachMovie(Label.symbolName, instanceName,
depth, initObj);
logger.debug(label : + label);
label.autoSize = left;
If your getScale function is called many times a second you should keep
it the way it is. The way you currently have it is the most efficient
way of doing it and will yield higher FPS.
However, if speed isn't and issue and you are not calling this function
very often and want to simplify it
Laurent CUCHET escreveu:
How can I simplify this ?
Thak you
function getScale(mc:MovieClip) {
al_mc._xscale =
lor_mc._xscale=frc_mc._xscale=cha_mc._xscale=npc_mc._xscale=pic_mc._xscale=r
ho_mc._xscale=pro_mc._xscale=bou_mc._xscale=lan_mc._xscale=auv_mc._xscale=mi
1. Comment your code!
Ah, yes, of course. Sorry about that. I'll comment it right away.
2. Are you using the MVC pattern? It's not really clear from the
code, but it looks somewhat like it
nope, I don't use pattern. I just want to make the HistoryList and
HistoryItem 'talk' to each other. I
I've been reading and learning about OO design
analysis for the past few months and I've just
recently started applying what I've learned in my
Flash projects ?
Learning a new language (like AS3) is no biggie but
learning how to code differently (from procedural to
OOP) is the real challenge for
The OO motivation behind using setter (and getters) is that it enforces the
notion that nobody should be able to manipulate the state of the object
except the object itself. If you follow this design principal as well as a
handful of others, you will keep your code low-coupled, less likely to be
Try putting a saveResultObj.onFault() handler in your code to see if
you're getting a failure response. Note that if your server responds
with a 505 HTTP header, your fault handler won't see it, as the Flash
player filters these out. You need a TCP snoop utility to monitor the
messages passed
I think you probably want parenthesis around your typecast, as
var label:Label = (Label)(owner.attachMovie(Label.symbolName,
instanceName, depth, initObj));
P.
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Lieven Cardoen
Sent:
Thanks for the ideas Pete. Just my luck it's hard to test this morning
because it's working fine now - but still makes me uncomfortable on
Friday it was only working 50% of the time, and no change in sourcecode
since then.
Jason Merrill
Bank of America
Learning Organization Effectiveness -
Alright, what am I doing wrong? I have tried over and over to decode an
XML string, but Flash won't decode it. The XML is returning special
Characters (') encoded. I have tried to use escape, unescape,
encode, decode and I can't get anything to convert the encoded text to
its character
Has anyone had a dynamic text field with text set to embedded not display?
the field is nested within some mcs, but there is no masking, no bold, no
italic, etc. And its simple Arial. When embedded (even if I set the string
in the IDE) - nothing displays. Is this a bug with FP8?
- e.
If this is related at all, or helps any, this is what I use to decode
entities from an XML string - someone on this list suggested using
XML.parseXML()
private function decodeEntities(entityString:String):String {
var x:XML = new XML(n+entityString+/n);
Just happened to me, with Arial bold. Totally random so far (I've embedded
arial successfully before), and no idea what.
-Scott
On 9/25/06, eric dolecki [EMAIL PROTECTED] wrote:
Has anyone had a dynamic text field with text set to embedded not display?
the field is nested within some mcs, but
Hmm - weird. All other fonts are working for me at the moment except for
basic Arial. This indeed seems quite random.
- e.
On 9/25/06, slangeberg [EMAIL PROTECTED] wrote:
Just happened to me, with Arial bold. Totally random so far (I've embedded
arial successfully before), and no idea what.
3) Validate the value and it it's an undesired value,
throw an error ? Here, the component prevents the user
from assigning and undesired value like NaN or
undefined and the user is alerted of the failure at
runtime provided that he used a try catch statement.
What do you guys think ?
(3)
yeah detour is not in development, and doesn't run on an intel mac..
Hijack is the way to go. it works perfectly
smith
On 9/25/06, Jake Prime [EMAIL PROTECTED] wrote:
Hi Aaron
Detour provides individual sound control for each app running on Mac OS.
Those are html encodings. If you put them into an HTML textField as is
they will work fine (if that is what you are after).
Escape and unescape deal with URL encoding which is a different thing.
If you want the html encoding to turn into the actual characters then I
don't think flash can do it
so if it's a bad input, it cannot tell the object
that is modifying the setter property that something went wrong.
Not sure if it's the best practice, but if someone passes in a bad input to
your setter, in AS3 you can throw errors, such as:
public function set volume( val:Number ) {
if (
Thanks Jason,
Yes, this does parse it correctly not so much because of the parseXML
step, but because of the nodeValue. I've been using the XPath class to
return my XML by using the selectNodes method. Apparently, this doesn't
parse the xml in the same manner as the nodeValue function does.
Not sure if it's the best practice, but if someone passes in a bad input to
your setter, in AS3 you can throw errors, such as:
You can do the same thing in AS2, of course...
Jim Kremens
On 9/25/06, slangeberg [EMAIL PROTECTED] wrote:
so if it's a bad input, it cannot tell the object
that is
Please contact me off list for the information on the project.
*Serious inquires only
*Submit URL of portfolio and resume.
Thanks
- Pay
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
That decodeEntities function is actually taken from a class I wrote to
overcome some annoyances with xfactorstudios Xpath implementation. So
in part of the class I just use that private function as needed in a
getString function I wrote which returns a string (also works with
CDATA):
public
Just I would mention this too:
import mx.utils.XMLString;
var myXMLString = XMLString.escape(some string that is misbehaving
breaking my xml);
trace(myXMLString); //some lt;stringgt; that is misbehaving amp; breaking
my xml
trace(XMLString.unescape(myXMLString)); //some string that is
tried turning auto-kern off?
eric dolecki wrote:
Hmm - weird. All other fonts are working for me at the moment except for
basic Arial. This indeed seems quite random.
- e.
On 9/25/06, slangeberg [EMAIL PROTECTED] wrote:
Just happened to me, with Arial bold. Totally random so far (I've
This is generally the route I take. The only thing is that it may halt
application flow in unforeseen circumstances, so 1) unit test and beta
test really well and 2) try as much as possible to catch errors in code
that sets the property.
―
Mike Keesey
-Original Message-
From: [EMAIL
I have that issue with MS Arial Unicode -- specifically the Unicode
version. I was wondering about it myself, but didn't investigate
further.
- MM
Hmm - weird. All other fonts are working for me at the moment except
for
basic Arial. This indeed seems quite random.
Yes please. I use extensive use of the XPath class and would appreciate
it. Thanks,
Doug Coning
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, September 25, 2006 12:20 PM
To: Flashcoders mailing list
Subject: RE:
I have been having font issues with Flash for the longest time. First, I want
to say hello to you all, I am brand new here and really impressed by the level
of programming. I came from actionscript.org where I almost always help people
out but I dont think that is going to be the case for me
It wasn't on to begin with :/
On 9/25/06, Nick Gerig [EMAIL PROTECTED] wrote:
tried turning auto-kern off?
eric dolecki wrote:
Hmm - weird. All other fonts are working for me at the moment except for
basic Arial. This indeed seems quite random.
- e.
On 9/25/06, slangeberg [EMAIL
Make sure you also have this line:
myText.html = true;
Does anyone have the solution...it could be myText.htmlText = 'foo'
but I am not sure.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
also, depending on the what sytles you apply to your html (IE: bi),
you'll have to embed that part of the font as well.
to do this,
1. create a dynamic textfield on stage and select the font you want to use
2. Click the render text as HTML button in the property inspector
3. Double click to
But if ido this wont i have to embed fonts for all fonts (Chineese, arabic,
english, etc.)? Doesnt that make the movie huge?
-- Original Message --
From: John Grden [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
I'm loading an external swf at runtime from a different domain,
and the loaded swf is doing some resizing when the Stage is resized..
I'm trying to prevent the loaded swf from doing this... is there a way?
--
- Alan Queen
___
Yes, that's right, that'll make it big ;) I've just given you a recipe to
get the fonts embedded for dynamic HTML work. *how* you implement from
there is another matter. But no matter what you do, Chinese character sets
can add alot. I did a conversion of a site to Chinese about 3 months ago,
also, finding that textfield was a complete nightmare until I got a hold of
gSearch ;) I was able to bring up all dynamic textfields, click to each of
them through the list and find it within a couple of minutes ;)
I had meant to include this in the last post, just didn't know if I had
hi.
the only tool i've found that converts SWF to SVG seems to no longer be working:
http://www.eprg.org/~sgp/swf2svg.html
anyone know of another tool? i cringe at writing the svg from scratch.
thanks. -- matt.
___
Flashcoders@chattyfig.figleaf.com
Does anybody know how to set the default selected node in a tree
component. Not only set it to open but get it to visually appear
selected.
-Dave
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi
Does anyone know if there is a way to change the publish path dynamically?
This would be really useful if working with the same FLA in different test
environments instead of manually having to change the publish settings...time
consuming with projects involving lots of fla's.
Thanks
Jim
This will select the first node in a Tree.
mTree.selectedNode = mTree.getTreeNodeAt(0);
Dave Geurts wrote:
Does anybody know how to set the default selected node in a tree
component. Not only set it to open but get it to visually appear
selected.
-Dave
You could write a jsfl to loop all open FLAs, or perhaps all FLAs in a
project if you're using the project panel. The latter I haven't done yet,
but should be possible.
On 9/25/06 1:29 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi
Does anyone know if there is a way to change the publish
Hi,
For anyone who uses XCode for ActionScript development... I have
built an application that can be used as an Executable to launch
a .swf (or html) after a successful MTASC or MXMLC build and log
messages from the flash player to the XCode run console. if you're
interested I've put a
Mike,
Another book that I might suggest is Programming Flash Communication
Serverhttp://www.oreilly.com/catalog/progflashcs/index.html#topby
Lesser, Guilizzoni, Reinhardt, Lott and Watkins.
If you are working with FlashCom or Flash Media Server, this book remains a
great resource. It was
Flashcoders,
I've been wondering how other flash developers deal with AS2/AS3
class management on both a project-based and common library level,
while addressing the need to package up source code for a given
project to deliver to a team member or client.
I've used version control
Using SVN, etc. make a repository on a shared server somewhere. Include
classes from there in your projects. Just make sure you update you're all
good to go.
On 9/25/06, Dan Rogers [EMAIL PROTECTED] wrote:
Flashcoders,
I've been wondering how other flash developers deal with AS2/AS3
class
I believe most vector drawing tools will let you export/save as SVG. For
example, http://www.inkscape.org/ is a free vector editing tool. Another
popular tool is Adobe's Illustrator.
If you really want to use flash to make SVG, another option is to save as
something besides SWF.
For example,
I have a combobox that I am using in a CellRenderer for a datagrid. For
some reason the text for the selected item in the comboobox wont display.
If i trace out the value of the text, it shows the right value, so I know
its being set. I am setting embedFonts to true for the TextInput and
the font must be available as a symbol font in the library. And, in some
cases, the font must be in the library of the main movie, in the case of
combobox being in a movie loaded by another one. This is because Flash
creates the combobox list in _level0. Sometime I created a combobox inside a
i am embedding the font through a dynamic textfiled on the main timeline,
since adding a font symbol takes up way more space.
On 9/25/06, Andrei Thomaz [EMAIL PROTECTED] wrote:
the font must be available as a symbol font in the library. And, in some
cases, the font must be in the library of
also, all the items in the combobox's dropdown display fine...its just the
TextInput that shows the cb's selected item.
On 9/25/06, Rich Rodecker [EMAIL PROTECTED] wrote:
i am embedding the font through a dynamic textfiled on the main timeline,
since adding a font symbol takes up way more
i also notice if i set the DG's editable property to true, i cant enter any
tex into the input field...wtf?
On 9/25/06, Rich Rodecker [EMAIL PROTECTED] wrote:
also, all the items in the combobox's dropdown display fine...its just the
TextInput that shows the cb's selected item.
On 9/25/06,
Hi,
Stage.scaleMode = noScale
On 9/26/06, Alan Queen [EMAIL PROTECTED] wrote:
I'm loading an external swf at runtime from a different domain,
and the loaded swf is doing some resizing when the Stage is resized..
I'm trying to prevent the loaded swf from doing this... is there a way?
--
- Alan
Hi there - I have a movie in which I use remoting to load images and
data. When run on it's own, it functions perfect. When it is loaded into
another movie, some data does not load. I have used service capture
and my data is in fact returned. Now I am pretty confident with the code
since it
I'm not very familiar with subversion- can it handle shared modules
(or recursive modules I guess)?
I am curious how one would handle utility classes that get included
in multiple projects...
On Sep 25, 2006, at 5:03 PM, eric dolecki wrote:
Using SVN, etc. make a repository on a shared
Dk,
Is your swf loaded from within the same domain?
Are the required remoting classes compiled into your swf?
Regards,
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Tuesday, 26
Bjorn Schultheiss wrote:
Dk,
Is your swf loaded from within the same domain?
Are the required remoting classes compiled into your swf?
Regards,
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
They are in the same domain, and I created a crossdomain.xml to cover
various
first thing that comes to mind is a cross domain issue. are you loading the
flv from another domain? if so, bitmapdata.draw will not work.
On 9/25/06, Martin Baltzer Hennelund [EMAIL PROTECTED] wrote:
Hi all,
I'm using the BitmapData Object to take a snapshot of the pages in my
flash app and
Dan,
I can not answer your specifc questions, so I hope that others will jump in
and add their voices along with details about how they manage the problems
you described.
I just want to comment generally that Subversion is the successor to CVS.
You can find full documentation here:
What error is it throwing?
Regards,
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Tuesday, 26 September 2006 1:53 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] ::dk::
it won't work at all with an flv streaming over RTMP - you can't use
bitmapData with it at all.
Yeah I know, it sucks.
On 9/26/06, John VanHorn [EMAIL PROTECTED] wrote:
first thing that comes to mind is a cross domain issue. are you loading
the
flv from another domain? if so, bitmapdata.draw
72 matches
Mail list logo