Give him some credit, he did say centered.
You would have to included StageSize and browser window size in your
evaluation.
This of course depends on how you have embed your swf in the html.
Regards,
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
-Original Message-
From:
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'm making a blog in flash with amfPHP. And till now everything went well.
I get all the data in the database from flash and I can loop through
de object I get back from amfPHP, I put everything in a text field
that renders as html.
But know I wanted to submit pictures with a post.
I made an
i had this problem a while back and was able to solve it...but i cant
remeber exactly what i did.
i think i had to set focusManger to false on every onKillFocus event. so if
you had 1 combo box and two input text fields, you would need to write, for
every component and text field:
Thank you, Jordan!
I am coding an AS2 pageflip class right now, which works as needed for
our current project and I am follwing the O'Reilly article from Sham
Bhangal, which is really excellent. I am making big steps forward a
reusable solution in pure code.
2006/8/24, jordan robinson [EMAIL
Ok, I see its not so easy for everyone. Can anyone point out some
tutorial-like examples on internet or books. I know a lot of theory
(inheritance, polymorphism...) but I would like to see more applications for
it so I can be more confident when I use it.
On 8/24/06, slangeberg [EMAIL
That's true - it happens to me all the time when I use _global(tt) with Xray
and have a circular reference (such as two classes that hold eachother as
listeners).
This was why John had to change his original treeview parser to a
non-recursive method. But it still happens with the trace function.
I had a project recently that was originally developed as a CDROM by a
3rd party, but then had to be migrated to the web. Many of the lib items
(1000's of items) had been set with specific compression values or
Lossless. This ended up with a 60MB swf file. Ick.
So I brewed up this little JSFL
The best books I've come across for an introduction to graphic design
for programming
types are
The Non-Designer's Design Book and
The Non-Designer's Type Book
both by Robin Williams, published by PeachPit
Joe Cutting
Computer exhibits and installations
www.joecutting.com
96 Heslington
This is 100% no cuss, but hop into flash newbie and ask these questions
there. I am even going to ask questions first in there as I know this is a
list for a lot of well developed coders!
Ontop of this it also helps the others in the flash newbie list, and you
will get more detailed responses to
Hi Steven,
You could try using arguments.caller to check if the setter was called by
the controller. Here's a little test function I whipped up on the _root:
function testCaller(){
trace (typeof arguments.caller)
trace (arguments.caller == controller.test)
trace
Almost all of the examples of coding on Macromedia are OOP.
If you download any of the open source code in the
http://www.osflash.org/ site, you will find nicely written, peer
reviewed code written in Actionscript. For dozens of examples, download
ActionStep.
It is easy for everyone, some
Hello
I need to replicate an effect very similar to the following
http://myspace.com/adidassoccerbv
Rotating movieclips, scaling and fading. Any idea on how this might have
been accomplished?
Thank you for the suggestions,
El
___
going a bit offtopic here, but isnt polymorphism a non-issue in both flash
and java? People talk about like there can be such a thing in these
languages,
which isn't really true. It seems a bit silly to call something polymorphism
just because its implementing some interfaces.
oh well, that
Great minds think alike :-)
Their Interactive Annuals have a good deal of Flash in them. And
there's some analysis as to why they chose what they chose to get into
the annuals.
On Aug 24, 2006, at 1:13 PM, Ryan Potter wrote:
That's funny. Comm Arts and How are the only subscriptions I
I don see any effects in the site..it's showing some error message...
best regards
RaviKiran Marella
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Elena
Blanco
Sent: Friday, August 25, 2006 8:53 AM
To: 'Flashcoders mailing list'
Subject:
Anyone have a working example of a PHP script to create a text file using
PHP?
I am trying to get the following to work but it is not creating the text
file on my server. I have set the permissions of the folder to 777 which
should in theory allow a file to be created.
Thanks
Paul
?php
// the
-
I had a similar problem with the camera security dialog box and Zinc. My
app was actually a kiosk, and my workaround was quite long winded - but
it might give you some ideas.
First I should mention that checking the 'remember my settings' box in
the security dialog never worked for me
Ricardo don't lose the faith! Ever! Sorry, I didn't see this post before : )
I'm using OOP Flash everyday, and yes, sometimes if makes you feel
stupid, but it's a matter of keep going until you feel comfortable.
Then, I have cristal clear that I'm not going to get mad with
patterns. Someone
This is working for me.
Serge
?php
$filename = 'test.txt';
$somecontent = Add this to the file\n;
$handle = fopen($filename, 'w')
// Write $somecontent to our opened file.
if (fwrite($handle, $somecontent) === FALSE) {
echo Cannot write to file ($filename);
exit;
}
echo Success, wrote
Others have also recommended Enterprise Architect for serious UML
diagramming.
Jason Merrill
Bank of America
Learning Organization Effectiveness - Technology Solutions
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Mike Keesey
Sent:
Can anyone point out some
tutorial-like examples on internet or books
A great book is Object Oriented Actionscript by Elst/Yard from Friend of Ed.
It takes you slowly from the very basic approach and understandings to more
complex and practical application demonstrated through tutorials.
I'm surprised nobody has dealt with this before? Array serialization
from a .NET Webservice?
Jason Merrill
Bank of America
Learning Organization Effectiveness - Technology Solutions
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf
Me too. I have searched the internet and have found no other people (or
examples) of this being done or being a problem.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, August 25, 2006 8:45 AM
To: Flashcoders mailing list
they are different, as far as I know
an interface, as in 'Interface' type does not itself have an
implementation, whereas a subclass which displays polymorphism does, the
difference comes from your design needs, for example:
(polymorphism)
class animal - can be a implemented class with
At 13:29 25/08/2006, you wrote:
I use pseudo-MVCs in almost every application, but I'm fairly sure
they are not strict MVCs. I don't care, to be honest. They do the
work, which is nothing else but help me.
yes. I don't use proper MVC pattern, but I find it very useful to divide
things into
Ok firstly you need to do this in stages.
1) Load your meta data from the web server. This includes the url, width and
height of you image. Put all this data into a container MC as variables or
objects, or whatever you want to store them as. A nice class would be good
here.
3) Create new
Hello Mike,
Thanks for the info.
It's not very likely that I'll be able to use this workaround,
but it's goot to know anyway. :)
Thanks again,
Dimitrios
- Original Message -
From: Mike Cobb [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent:
well, I get Interfaces, but thanks for explaining :).
I just don't think actionscript, or java, has any polymorphism,
since the definition of that is, in my opinion, a class having more
than one parent class (ie, can extend 2 or more classes), which
isn't the case. So I don't understand why
hi people,
I was creating local connection between two swf file,
first time it works fine and then after sometime it stops working,
then i change connection name(target name in both file) and it starts
working again,
can anyone tell me why this happen.
--
Regards,
Rutul Patel
you'd need some way of checking for circular references like Scott pointed
out. Believe me when I say - i've been down that road several times with
Xray.
var obj = new Object();
obj.prop1 = new Object();
obj.prop1.prop2 = new Object();
obj.prop1.prop2.ref = obj.prop1;
bingo, you'e into 256
It sounds like you are confusing polymorphism with multiple
inheritance. ActionScript and Java and pretty much any OOP language do
allow for polymorphism.
http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming
-Steve
*
Guess there's a first time for everything, eh?
var obj = new Object();
obj.prop1 = new Object();
obj.prop1.prop2 = new Object();
obj.prop1.prop2.ref = obj.prop1;
function clone(obj:Object):Object
{
var o = (null != obj.length) ? [] : {};
for (var i in obj)
{
o [i] = (typeof
That's really not what polymorphism is.
Polymorphism is where an Object can be used anywhere where an instance its
class's parent is supposed to be used.
And it has a lot of applications.
On 8/25/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
well, I get Interfaces, but thanks for
Sorry, I pasted the wrong link. Here it is
http://myspace.com/adidassoccer
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Elena Blanco
Sent: Thursday, August 24, 2006 8:23 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Flash effect
Hello
I
http://en.wikipedia.org/wiki/Polymorphism_(computer_science)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Meinte
van't Kruis
Sent: 25 August 2006 14:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP methodology and flash. I'm loosing my
There is a tute on this very thing here - check out the Creating 3D Carousels
- their nav is a 3-d carousel of players, rotating on an oval. Not terribly
difficult, and a very kewl look.
http://gotoandlearn.com
Currently you need to download the flv tutes and watch.
jimbo
*** REPLY
When it comes to OOP and Flash I think an individuals opinion comes from
their knowledge of OOP. Those that have used it swear by it and vice versa.
This is pretty much how it is with everything. I remember at the release of
AS2 there were quite a few developers that I had interactions with that
aaah ok, so polymorphism isnt multiple inheritance, well ok, got
it wrong all this time, lol.
thanks for the enlightenment :)
On 8/25/06, James [EMAIL PROTECTED] wrote:
in polymorphism using the previous example you could have a cat object
with
a 'make noise' method that prints 'meow' and a
I think that the mixture of prototype based and class based OOP is really
interesting. I think prototype based object orientated languages (such as
AS1.0 and JavaScript) are really pretty cool and you can do amazing things
with them.
I read somewhere (sorry can't find link but it was on
I think that the mixture of prototype based and class based OOP is really
interesting. I think prototype based object orientated languages (such as
AS1.0 and JavaScript) are really pretty cool and you can do amazing things
with them.
I read somewhere (sorry can't find link but it was on
Cool. Thanks I'll check it out
James
At 15:55 25/08/2006, you wrote:
Well, haXe (http://haxe.org) has both class-based and structural
objects. You can describe types such as :
typedef Point = {
var x : Int;
var y : Int;
}
Then every object or class instance having x and y Int public
Fantastic - I will take a look and post more questions if I have any
Elena
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Berkey
Sent: Friday, August 25, 2006 7:08 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Flash effect
It drove me nuts when testing a local connection issue once to realise
that after opening my test page with swfs using local connection once,
any page I opened after that would communicate to the first page's swfs.
So when testing your local connection issues make sure to close all
other instances
Make sure you aren't sending too much data across the localConnection, or it
shall break unceremoniously. I forget the limit, but there is indeed a
limit.
On 8/25/06, Rutul Patel [EMAIL PROTECTED] wrote:
hi people,
I was creating local connection between two swf file,
first time it works fine
40k limit
if you know you're going to be breaking that, consider using an Object2XML
converter, do a toString on the XML, break it up into 5k chunks and put
those chunks into an array. Then loop the array and send each chunk across
with a boolean that indicates that the last batch has been
yes, you are. If you read the first two paragraphs of the wikipedia
article you'd see it has nothing to do with multiple inheritance.
It has to do with multiple objects (poly) being contrained by the same
interface (form, morph), whether the interface is quite literally an
interface, or whether
Thanks - seems to be working now - may have been a cache problem.
However I have attempted to now write more than one variable to the text
file and it only appears to be writing the first one.
Here is my PHP code
?php
$filename = $_POST['filename'];
$text1_Font = $_POST['text1_Font'];
1. You don't need to remove movieclips - just reuse them, if you mean
falling objects
(it is easy and would remove source of potential memory leak)
(otherwise, delete listeners in mc first, and then mc.removeMovieClip() -
there was a good article I don't remember the name)
2. Check the loop
http://www.dopelogik.com/flash/snakes_in_a_class/
___
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
I've used Enterprise Architect for at last a year and i'm very happy with
results
2006/8/25, Mike Britton [EMAIL PROTECTED]:
Enterprise Architect:
http://www.sparxsystems.com.au/products/ea.html
Mike
___
Flashcoders@chattyfig.figleaf.com
To change
The problem i can see is tha in the singleton pattern constructor must be
private.
May be triin with something like this :
class com.shell.util.IntroAnimProxy
{
private static var _instance:IntroAnimProxy;
public static function get instance():IntroAnimProxy
{
if( _instance == null )
Just wanted to say Thanks! to all the people who answer all the noob
questions. Because of the archives, I haven't needed to spam the list
rehashing old Flash AS1 drudgery.
Much appreciated.
--
Thuy Nguyen
Web Designer
Angus Journal
email: [EMAIL PROTECTED]
phone: 816.383.5228
http://www.dopelogik.com/flash/snakes_in_a_class/
this._snakes.push( snake ); // BUG!
Cheers,
Claus.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hi Gang,
I'm wondering if it's possible to apply masking to an flv...seeing as how
components are a form of movie clip, can i do things i would normally do like
masks?
thanks
b
-- Original message --
From: Claus Wahlers [EMAIL PROTECTED]
wrap your video object in a MC, and go to town.
On 8/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi Gang,
I'm wondering if it's possible to apply masking to an flv...seeing as how
components are a form of movie clip, can i do things i would normally do
like masks?
thanks
b
Hi all,
I am facing some strange issue. I am using a piece of code to load a SWF
into movie clip.
on(release) {
abc = _root.swap.createEmptyMovieClip(swfHolder_mc, 1);
this.swfHolder_mc.loadMovie(trip.swf);
}
Its working fine when I open the SWF exported in Flash Player or IE. But
does anyone know how to change the flash player title bar from Macromedia
Flash Player 8 to whatever i wan't?
thanks,
lewis
-
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software
Visit www.ntlworld.com/security for more information
yeah I was trying all that.. if I change any graphics i recompile with the
IDE. then i would compile with mtasc for code changes. I was using the -keep
and -mx tags
On 8/24/06, John Grden [EMAIL PROTECTED] wrote:
do you have precompiled classes in the SWF you're using? you might have
to
Claus Wahlers wrote:
http://www.dopelogik.com/flash/snakes_in_a_class/
this._snakes.push( snake ); // BUG!
Cheers,
Claus.
Yeah, I don't know that I'd push a snake either. slice a snake perhaps. :-P
He probably meant to assign the snake var inside of the switch statement
instead of
var ar:Array = new Array();
trace(typeof(ar));
trace(ar instanceof Array);
Mit freundlichem Gruß,
Zoli
-Original Message-
From: Brake, Stephen [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 3:47 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and
//array declaration
var ds:Array = new Array();
//push data to array
ds.push({TranNum: value1, TranNum2: another value});
ds.push({TranNum: value2, TranNum2: yet another value});
//send array to .net web service
var Post_ws:mx.services.WebService;
var PostWsCall:mx.services.PendingCall;
Cool, so you're all swiggity now? working well?
On 8/24/06, aaron smith [EMAIL PROTECTED] wrote:
yeah I was trying all that.. if I change any graphics i recompile with the
IDE. then i would compile with mtasc for code changes. I was using the
-keep
and -mx tags
Use SWF Studio 3 to wrap it up:
http://www.northcode.com
They have a trial version to give it a go!
On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
does anyone know how to change the flash player title bar from Macromedia
Flash Player 8 to whatever i wan't?
thanks,
lewis
Check out the NetStream.onStatus callback. The flash 8 help
documentation is pretty comprehensive in describing the status codes,
etc.
-- Vishal
On 8/24/06, Bo Parker [EMAIL PROTECTED] wrote:
I have an swf that is utilizing video. I also have a set of tweens
that are happening in the
Matthias Dittgen wrote:
Thank you, Jordan!
I am coding an AS2 pageflip class right now, which works as needed for
our current project and I am follwing the O'Reilly article from Sham
Bhangal, which is really excellent. I am making big steps forward a
reusable solution in pure code.
Will it be
if (wrapping)
{
use(screenweaver, http://screenweaver.org/;);
// it's open source
}
:-)
Have fun!
Matthias
2006/8/25, Mendizabal [EMAIL PROTECTED]:
Use SWF Studio 3 to wrap it up:
http://www.northcode.com
They have a trial version to give it a go!
On 8/24/06, [EMAIL PROTECTED] [EMAIL
Just wondering if anyone has suggestions of a framework, or architecture to
create mini-sites in Flash?
i.e. site navigation, multiple levels / pages.
My goals would be high level of flexibility for content updates / navigation
changes.
I've really given myself headaches in this area before,
var ar:Array = new Array();
trace(typeof(ar));
trace(ar instanceof Array);
Mit freundlichem Gruß,
Zoli
That's not what I'm asking, but thanks.
Jason Merrill
Bank of America
Learning Organization Effectiveness - Technology Solutions
-Original Message-
From: [EMAIL
However, there is no way to
get the name/value pairs(the data in the array).
Actually Stephen, I think what you're asking about is different than what I'm
asking about. I can access the data in the .NET object array just fine, it's
just that referencing the array object directly returns
http://youtube.com/watch?v=CJ-n2IVxW_Y
___
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 Authorized
All I have to say about this is tellTarget and _global.
Conversation over!
___
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
It also has round trip AS2 code generation. Gotta love that.
http://www.5etdemi.com/blog/archives/2005/11/uml-to-as2-generator-for-enterprise-architect/
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
I'm using this to clone data objects. If you put circular references in
your data models that's not my problem. :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Friday, August 25, 2006 6:37 AM
To: Flashcoders
I'm using this to clone data objects. If you put circular references in
your data models that's not my problem. :)
Then you might consider renaming the method 'cloneDataObject' or
'cloneDataObjectThatDoesntContainCircularReference'
:-)
Jim Kremens
On 8/25/06, Steven Sacks | BLITZ [EMAIL
I guess you'd be right about that. It'd be my problem - good point.
while I'm at it:
1. I use block comments all the time - but if you think it's janky, more
power to you.
2. I prefer people to drop the curly brace down to the next line, not left
up on the method declaration line. But I
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Friday, August 25, 2006 3:06 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] clone object
I guess you'd be right about that. It'd be my problem - good point.
while I'm at it:
Are you stalking me, Grden? :)
1. I use block comments all the time - but if you think it's janky,
more
power to you.
I have the power of Greyskull. Block comments are for commenting out
*gasp* blocks of code. I use block comments all the time for that very
purpose. I use line comments to
shouldn't you boys be going out and getting a drink on blitz's account
instead of teasing each other like this?
On 8/25/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
Are you stalking me, Grden? :)
1. I use block comments all the time - but if you think it's janky,
more
power to you.
LOL I seriously think you may end up in a padded room with a box of crayons
;)
OK, we're officiall OT - sorry mods!
we're ending it here.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I'm not working for blitz at the moment ;)
On 8/25/06, Johannes Nel [EMAIL PROTECTED] wrote:
shouldn't you boys be going out and getting a drink on blitz's account
instead of teasing each other like this?
___
Flashcoders@chattyfig.figleaf.com
To
Hello,
I have a node that is being parsed by Flash, then used as a .url text
link. However the link that opens up once you export the flash is
being trimmed after 128 characters (it's about 151 characters). Is
there any inherit limit to a node or a link in Flash? Using AS 2.0. I
can look
I'm not working for blitz at the moment ;)
Me neither while this keeps up! ;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you
PET PEEVE ALERT
class com.shell.util.IntroAnimProxy
Unless you are actually doing Shell Petroleum's website at
http://shell.com, this isn't a proper name for the package. The com
convention is a strategy to keep package paths from overlapping on
different projects: if you're doing a website, you
In HTML enabled TextFields, the content of href in a href=.. has a
128 (or something) character limit.
Cheers,
Claus.
Aaron Hedquist wrote:
Hello,
I have a node that is being parsed by Flash, then used as a .url text
link. However the link that opens up once you export the flash is being
Hey guys,
I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?
Thanks for your fast responses ;-)
Serge
Hi Serge,
Maybe store the new name into the $_SESSION and request it when the
onComplete event is dispatched?
Or am I mis-understanding the situation?
Greets,
Jeroen
Serge Jespers wrote:
Hey guys,
I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5
Yeah... I see where you're going with that... Can also read the value
from my database but I thought it must have been possible to have my
upload.php return that new name to Flash. That would have made more
sense, but I guess that's not possible then...?
S
Hi Serge,
Maybe store the
Hi Jason,
I was trying out a similar scenario with fluorine when noticed your comment
//traces as object !?! and that was the snippet about.
Zoli
-Original Message-
From: Merrill, Jason [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 10:23 PM
To: Flashcoders mailing list
as far as I've seen there's no way to return any values from a file upload.
There was something I saw where you could return different HTTP header codes
back to flash to get some sort of control over what was sent back, but even
that still wouldnt send back any data.
jeroen's suggestion might
Yes, that's exactly the problem. Found the TechNote, for future
reference. Thanks, Claus.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15598
Aaron
On Aug 25, 2006, at 2:54 PM, Claus Wahlers wrote:
In HTML enabled TextFields, the content of href in a href=..
has a 128 (or
91 matches
Mail list logo