You might want to read Head First Design Patterns for some good ideas
about how to write good code.
Lots of practical ideas about many of te situations that you need to
resolve.
Ron
Andrew wrote:
Hi
I'm new to OOP programming in AS2.
I'm writing two classes right now. One which
sherif79,你好
I want change the input textbox to static textbox !
[EMAIL PROTECTED]
2007-04-24
- Original Message -
From: Sherif Elshazly
To: james.miao
Sent: 2007-04-23, 19:12:21
Subject: Re: [Flashcoders] text attribute!
What attribute do you want to change?
- Original
Hi Gustavo,
I assume that myBlog is a DataGrid component.
First of all dataProvider is a property, so the syntax to set it is as follows:
myBlog.dataProvider = myParsedRssData;
Second I think you need something in between your RSS feed and your
DataGrid component. This something must parse
Hi guys,
Sorry to bring this up again, but Danielle Libine has put up a really
interesting pdf about the subject. He gathers lots of data with really
clear graphics about prices and countries. Then a couple of questions
for Adobe:
http://web.mac.com/libine/iWeb/Site/Article.html
I think we
I will print this PDF and distribute it around ... to consumer
associations and the students
It has to be done whatever the reasons. Things must be fair and correct.
Thanks
Cedric
Hi guys,
Sorry to bring this up again, but Danielle Libine has put up a really
interesting pdf about the
Excellent article. I'll pass it around.
Ian
On 4/24/07, Zárate [EMAIL PROTECTED] wrote:
Hi guys,
Sorry to bring this up again, but Danielle Libine has put up a really
interesting pdf about the subject. He gathers lots of data with really
clear graphics about prices and countries. Then a
A related issue which has got me wondering is what to do with some of
my old software...
The upgrade path to either CS3 Web Premium or Design premium assumes
that we have one of several existing versions of software including
Creative Suite 2 OR Macromedia Studio 8.
I'm sure there are
Hello Dembicki
I am Mongolian student. I can't Do this. sorry Don't write mail again Please
Ðван ÐембиÑкий [EMAIL PROTECTED] wrote: Hello Matheus,
http://www.sharedfonts.com/eng/faq.html#include
A don't use all the caracters that it�s being embeded and I need my file to
be
Hi Everyone,
Is there anyway we can check where from the current swf file is being
played? Something similar to location.href of javascript?
I don't want to use flashvars or javascript. Pure swf/AS.
--
Thanks Regards,
Vivek Lakhanpal
___
sorry i repeated this question. I found answer to this question on
flashnewbie posted yesterday.
On 4/24/07, Vivek Lakhanpal [EMAIL PROTECTED] wrote:
Hi Everyone,
Is there anyway we can check where from the current swf file is being
played? Something similar to location.href of javascript?
I
Hello Gantulga,
Don't worry.
Relax.
And try again.
--
iv
2007/4/24, gantulga tsenguun [EMAIL PROTECTED]:
Hello Dembicki
I am Mongolian student. I can't Do this. sorry Don't write mail again Please
Иван Дембицкий [EMAIL PROTECTED] wrote: Hello Matheus,
You can use _url like this:
nomRoot = this;
src = nomRoot._url;
Patrick
2007/4/24, Vivek Lakhanpal [EMAIL PROTECTED]:
Hi Everyone,
Is there anyway we can check where from the current swf file is being
played? Something similar to location.href of javascript?
I don't want to use flashvars
/*
to find greater no. from the array whats the problem with this algo.
please help
*/
#includeiostream.h
void main(){
int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int greater=0;
for(int i=0; i15;){
if(arr[i++]greater){
greater=arr[i];
}
}
coutgreater is greaterendl;
super-useful guys, thankyou
how secure is this? are there any passwords or seller account details
sent by flash to paypal?
Quoting Jordan Snyder [EMAIL PROTECTED]:
That was helpful John!
FYI, it seems your Google Checkout code is broken!
Cheers
On 4/23/07, John Hattan [EMAIL PROTECTED]
you check if the arr[i] is greater than greater and then you increment i
rather do
for(int i=0; i15;i++){
if(arr[i]greater){
greater=arr[i];
}
}
:)
Waseem Shahzad wrote:
/*
to find greater no. from the array whats the problem with this algo.
please help
*/
#includeiostream.h
to find greater no. from the array whats the problem with this algo.
please help
int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int greater=0;
for(int i=0; i15;){
if(arr[i++]greater){
greater=arr[i];
}
}
First of all, it's C.
Second, try incrementing i inside the for statement,
Hey all,
I'm using the tutorial on building a carousel from gotoandlearn.com as the
basis of one that has a few more things it can do.
I'm having trouble with the placement of items on the circle at the
beginning.
The angle is derived with:
t.angle = i * ((Math.PI * 2) / numOfItems);
The x
Through playng about, I've come up with changing:
t.angle = i * ((Math.PI * 2) / numOfItems);
to:
t.angle = (i * ((Math.PI * 2) / numOfItems)) + (Math.PI * .5);
Adding 90 degrees to all items.
Seems to work :O)
Adrian
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
Could be irrelevant or could be useful so I'll mention it anyway.
That looks fine to me, but i would create a new variable to hold the value of
arr.length to test against, it'll be more efficient to access a variable than
an array's property.
var arr:Array =
And what about that ?
var arr:Array = [17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
arr.sort(16);
trace(arr[arr.length-1]);
Patrick
2007/4/24, Sherif Elshazly [EMAIL PROTECTED]:
Could be irrelevant or could be useful so I'll mention it anyway.
That looks fine to me, but i would
Yes it is. That's what happens when you make minor code changes without testing
'em. It's working now if you want to try it again.
- Original Message
From: Jordan Snyder [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 23, 2007 4:19:53 PM
Subject: Re:
I have a problem concerning Math. My app need to draw points
using movieclip from library. the data comes from the xml file. there are
nearly 7000 nodes in the xml describing each points, esp it's X and Y
coordinate.
Using a single for loop (counting 1, 2, 3, ...and so forth) doesn't let me
You don't send passwords to paypal. Just the transaction details (item
numbers, quantities, and prices) and your paypal address. The user enters all
the secure stuff on the paypal site so you don't have to mess with that. The
transaction you get from paypal only includes the user's info (name,
Thanx Nice solution.
On 4/24/07, opto-type [EMAIL PROTECTED] wrote:
And what about that ?
var arr:Array = [17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
arr.sort(16);
trace(arr[arr.length-1]);
Patrick
2007/4/24, Sherif Elshazly [EMAIL PROTECTED]:
Could be irrelevant or could be
thanx for ur help.
On 4/24/07, Sherif Elshazly [EMAIL PROTECTED] wrote:
Could be irrelevant or could be useful so I'll mention it anyway.
That looks fine to me, but i would create a new variable to hold the value
of arr.length to test against, it'll be more efficient to access a
variable than
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Erich Erlangga
Sent: 24 April 2007 14:27
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!
//run 7 times faster for attaching symbol in
Hi
I have a friend with a problem when try install the new Flash CS3.
The error ocurs when he executes Setup.exe file:
Critical errors were found in Setup
- Session has dependencies that cannot be satisfied
Please see the Setup log file for details
He don´t found any setup.log.
Any idea?
Ruben
thanks guys. You've been amazingly helpful
3 flashcoders
Quoting John Hattan [EMAIL PROTECTED]:
You don't send passwords to paypal. Just the transaction details (item
numbers, quantities, and prices) and your paypal address. The user
enters all the secure stuff on the paypal site so you
Don't know if it's relevant, but if he was on the Flash CS3 beta, he will
have to make sure he did the FULL uninstall on it forst. Any remnants will
cause problems when you try to install the new version .
Sean
Hi
I have a friend with a problem when try install the new Flash CS3.
The error
Both apps are using delagate and eventdispature.
problem I am having:
the shell
sets up this
function onLoadInit (mc : MovieClip)
{
trace (MOB onLoadInit: + mc);
passAlongParameters ();
this.getPlayer = function ()
{
return placeHolder_mc.embeddedPlayer.getPlayer ();
}
thanks it was the Security.allowDomain issue
*ActionScript 2.0 Language Reference*
[image:
Previous]file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/ActionScriptLangRef/2646.html
[image:
basic banner. you click on something, a url opens. However, this process
has to go through a delegate. User clicks, releases; bam,
Adobe flash player has stopped a potentially unsafe operation
Banner has a search bar, enter key, when this inputfield has focus,
calls getURL. Nuh uh.
Adobe
thanks guys, I've just download a data connection wizard and a grid
wizard from adobe exchange, I found it here:
http://www.adobe.com/devnet/flash/articles/datawizards.html
is quick to use and nice, the thing I have to figured out is how to
assign the link property (open a webpage) to the
Andreas,
try test your movies in internet.
--
iv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier
Andreas,
Are you testing on a webserver or locally? I rarely get errors from
using ExternalInterface or getURL calls when testing online...
Flash security is horrible to work with locally (hard-drive, CD-ROM,
etc) and it can be a real nuisance to have to always upload your files
to the
So please, smarter people than i; How do you facilitate user interactions
with the browser without crashing into this lunatic
security management solution? What are the rules of thumb?
You might want to start here:
http://www.adobe.com/resources/security/
Okay, so I have an FLA with a series of embedded movieclips:
garden tree branch twig flower.
I want a static function -- in an as 2.0 class -- that, when given
flower, returns tree. In other words, you can give in an embedded
movieclip and it finds that clips ALMOST outermost parent.
You need a 'return' before the recursive call:
class com.research.StaticRecurse
{
public static function
getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip
{
if (mc._parent._name == garden)
{
trace(inside getOuterMostParent:
duh!
Thanks, Andy.
On 4/24/07, Andy Herrman [EMAIL PROTECTED] wrote:
You need a 'return' before the recursive call:
class com.research.StaticRecurse
{
public static function
getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip
{
if (mc._parent._name ==
When I change the alpha of a movie clip, the alpha of static text inside
the clip remains at 100%. It looks just fine within Flash, but in the
Player it stays at 100%.
I'm using MX04.
Thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your
Totally weird. If I change my static text fields to #dynamic and embed
the characters then the alpha works. This is exactly the opposite of
what it says in this article here:
http://www.connectedpixel.com/blog/fonts/embedding
What the heck?
Andrew Sinning wrote:
When I change the alpha
Figured it out: I don't have the font's installed on this machine. duh.
Andrew Sinning wrote:
When I change the alpha of a movie clip, the alpha of static text
inside the clip remains at 100%. It looks just fine within Flash, but
in the Player it stays at 100%.
I'm using MX04.
Thanks.
Is there also some way to do this using a command called getinstance() ?
I've seen it in some AS script and it looks like it passes data between
classes?
Cheers
Andrew
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
Is there anyway to change the green highlight color for components without
having to create a custom skin (The green/orange/blue highlight when the
component has focus) ?
TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
Hi, just wanted to know if there is a best practice when creating a class for
the mother movie (i.e. the flash-movie itself). Is
this the way to go?
var mother:MyFabFlashApp = new MyFabFlashApp();
..or is there a better way? Seems kind of a stupid question, but I wanted to
put it anyway in
I do not think that this passes any data but it does let you grab an
instance (usually of a singleton) so that you can use setters and
getters to pass the data.
If the object is not a Singleton, I am not sure which instance you get
so it is only part of the solution.
Look at the book Head
I wouldn't hold my breath waiting for prices changing from this,
unfortunately.
At the end of the day pricing is purely a marketing function, and in that
world the only rule is to charge as much as the customer is willing to pay.
Then there are hundreds of ways to justify the price by calling
getInstance() is usually used for accessing Singleton classes. These
are classes of which only a single instance can exist. This way any
class can call getInstance (a static method) to get the class, and
that class can store shared data.
Take a look at this:
A Is there also some way to do this using a command called getinstance() ?
A I've seen it in some AS script and it looks like it passes data between
A classes?
There is no such method in Flash's built-in classes, so propably it
occured in someone's custom class. In general getInstance is a
_global.style.setStyle(themeColor, 0x6092B8);
Replace 0x6092B8 with whatever color you want. You can even use string
literals like haloGreen, haloBlue, etc.
-=matt
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Helmut
Granda
Sent: Tuesday, April 24,
One way:
In the same directory as your SWF. Have a main class with a static
function that takes in a movie clip.
In your FLA put code in Frame 1 like:
MainClass.main(this);
The this is the root movie clip. The static function main will pass
it around to who ever needs it in your
I believe you can use the setStyle function to do it. For instance,
in some of my code where I'm setting up a combo box I have this (I
forget which color setting actually changes the focus rectangle, but I
think it's 'themeColor'):
comboBox.setStyle('themeColor', 0x007CBA);
setStyle(themeColor, red ( or 0xFF or whatever ) );
From: Helmut Granda [EMAIL PROTECTED]
Date: 2007/04/24 Tue PM 02:04:23 CDT
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Changing Green (halogreen) highlight color
Is there anyway to change
Hi, I've recently downloaded a data grid editor and a data conn
wizard, it went fine in order to retrieve data from a xml page, but
I'd like to
use the links in order to go to the site where the news is bigger, do
you know how?
in the wizard everything went ok, but when I tried to click on
I'm not sure what you mean.
Are you trying to display clickable links (instead of just regular text)
inside cells in a DataGrid?
If so, you probably want to use a CellRenderer to do this.
CellRenderers allow you to display custom content in each cell of a
column inside the DataGrid.
They can be
Thanks Matt, it is exactly what I'm looking for: to make clickable
the cell of the link column. Do you mind to send me where I can learn
more about this cell renderer?
Regards.
Gustavo Duenas
On Apr 24, 2007, at 4:34 PM, Matt Samet wrote:
I'm not sure what you mean.
Are you trying
Do you mind to send me
where I can learn more about this cell renderer?
Google is your friend. Your bestest bestest friend.
http://www.flash-db.com/Tutorials/cellrenderer/
Jason Merrill
Bank of America
GTO Learning Leadership Development
eTools Multimedia Team
Is there any specific reason why after calling clearInterval the variable
with the interval returns 1 instead of undefined/null?
Following the docs and creating a simple item we get different results (no
different but no what our logic might expect)
function callback() {
trace(interval called:
An interval ID is just a number. If you clear the interval, it doesn't
get rid of the number, it just stops the interval of that ID from running.
delete intervalID;
Helmut Granda wrote:
Is there any specific reason why after calling clearInterval the variable
with the interval returns 1
Dunno if there's a good reason behind it, but if you need it to return null
you can always use delete intervalID just afar clearing the interval.
Karina
-Original Message-
From: Helmut Granda [mailto:[EMAIL PROTECTED]
Sent: 24 April 2007 22:19
To: Flashcoders mailing list
Subject:
Best practices:
A lot of people use main.swf and main.as. FLASC/MTASC has a feature to
support this very functionality.
Never put classes in the same folder as your movie. Always put them in
a namespace folder chain.
For instance:
class com.clientname.projectname.Main
HTH,
Steven
Thats what I thought. I just wanted to make sure I wasn't missing anything
else that was essential.
Thanks!
On 4/24/07, Steven Sacks [EMAIL PROTECTED] wrote:
An interval ID is just a number. If you clear the interval, it doesn't
get rid of the number, it just stops the interval of that ID
There are a number of ways of essentially 'hacking' AS2 to behave in a
more classic OO manner. Personally, as it IS a hack no matter what you do
in AS2, I always keep it simple and just import a Main.as file, rather
than go to unnecessarily elaborate lengths to fool myself that I'm really
using a
clearInterval stops an interval from executing, it doesn't remove the ID that
was assigned to the interval.
From the docs:
quote
setInterval:
Returns
Number - An integer that identifies the interval (the interval ID), which
you can pass to clearInterval() to cancel the
interval.
Andrew Sinning wrote:
Figured it out: I don't have the font's installed on this machine. duh.
Andrew Sinning wrote:
When I change the alpha of a movie clip, the alpha of static text
inside the clip remains at 100%. It looks just fine within Flash,
but in the Player it stays at 100%.
I'm
you could try
clearInterval( intervalID);
delete intervalID;
and then wait for the garbage truck to drive by and pick it up...
eric
On 4/24/07, Steven Sacks [EMAIL PROTECTED] wrote:
An interval ID is just a number. If you clear the interval, it doesn't
get rid of the number, it just stops
So once you create a new interval with the same name you will lose the path
of the original?
/*SAMPLE
Of course we know this is not the way to do it ;)
Its just for testing purposes */
var myInterval:Number = setInterval (this, test, 1000);
var myInterval:Number = setInterval (this, test,
you could try
clearInterval( intervalID);
delete intervalID;
and then wait for the garbage truck to drive by and pick it up...
eric
haha, nice...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
HG So once you create a new interval with the same name you will lose the path
HG of the original?
An interval has no name, it has a numeric ID - what has a name is the
variable (or more variables if you want) where you store this ID. And
yes, if you doesn't care about storing the ID (e.g. you
If you like Java so much, why don't you marry it?
If you want to make deferential commentary regarding Actionscript, go to
Java forums and seek validation from your Java friends. Unlike us
Flashcoders, I'm sure they'd be happy to oblige.
It's extremely easy to make a document class in AS2
Try this class. Put new ApplicationClass(this); on the first frame of
the timeline.
import mx.events.EventDispatcher;
class ApplicationClass extends MovieClip{
public var addEventListener:Function;
public var removeEventListener:Function;
private var
The documentation is rather lacking - but it's relatively easy once you
struggle through your first project.
The best thing that's happening right now, beyond just the core PV3D code, are
all the demos people are putting together with source code released.
It's really tough just doing a
Why would you extend MovieClip and composition a MovieClip as well? Seems a
bit redundant, no?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
Matte | BLITZ
Sent: Tuesday, April 24, 2007 7:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE:
jim, I haven't seen anywhere to download it readily...is it in Beta
only? Where might I get a copy?
Cheers
On 4/24/07, Palmer, Jim [EMAIL PROTECTED] wrote:
The documentation is rather lacking - but it's relatively easy once you
struggle through your first project.
The best thing that's
Jordan,
It's in bleeding-edge-beta only available through SVN repository. Check out the
osflash landing page http://www.osflash.org/papervision3d
and subscribe to the mailing list for acquisition information.
--
Jim Palmer ! Mammoth Web Operations
-Original Message-
From: [EMAIL
This AS2 class acts like the document class in AS3.
You need to extend MovieClip like you need to extend Sprite or MovieClip
in AS3.
Tracing this in the class will result in _level0, its not composition.
Its really useful for swf that you load, gives you the ability to type
check everything on
We have a piece of JavaScript like this:
swf.SetVariable(_level1.myvar,myvalue) ;
This JS code is triggered by a piece of Flash code that is executed when the
SWF loads. However, it appears that the variable is not immediately set:
// Called at load time for the SWF
getURL(javascript:doSet())
The browser is a big variable in latency of message-passing. You can confirm
that many SWF will run at different rates in different browsers. The NPRuntime
API is now implemented pretty well in today's popular browsers, but the size
and timing of permissible messages may vary among
I can't get mouse wheel events to work.
stage.addEventListener(MouseEvent.MOUSE_WHEEL,mousewheel);
trace('mousewheel event set');
function mousewheel(ev:MouseEvent):void {
trace('localX='+ev.localX+' localY='+ev.localY');
trace('stageX='+ev.stageX+'
79 matches
Mail list logo