Hi,
I'm trying to use the Mvc pattern for the first time and I'm guessing
if I'm using the best method to achieve a goal.
Now the thing is working... only not sure there is a better mode!
This is the problem:
1) in my fla there are some movieclip containing button, they are
called
Yes it was apparent on both CD and harddrive. It was
apparent because I
only played the loaded SWF when the onComplete handler was
firing, and
it never played!
Okm thanks Ben. What's peculiar about this issue is that it's only apparent
when playing from CD, not HD.
Pete
This email may
Why do your buttons all need references to different models?
If they really do use different models then I'd create different views to
render them and different controllers to control them.
If they're all using the same model then just pass a reference to the button
(this) to the controller, the
Even though a TextArea is not editable, the user can still select it.
Is there a simple 'off' feature I've missed?
Danke
--
---[ http://www.grimmwerks.com
---[ [EMAIL PROTECTED]
---[ [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
The button didn't need reference to differents model (there is just
one model) that was an error, now I have changed so now I pass just
one reference to the model to the _root an every button can get it.
How can I pass the reference to the button at the controller?
By now I get the reference
I am creating a simple pong / breakout / arkanoid game in AS2 and not sure
how best to deal with the classes.
So far I have a Game.as class, a Paddle.as class and a Ball.as class.
I need to detect when the ball (or balls) collide with the Paddle.
My question is, which class should check for
duh. TextArea.label.selectable = false.
___
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
I would make the ball responsible for checking if it collides with the paddle
because the ball's behavior/state will change - not the paddle's, nor does the
state of the 'game' really change.
An alternative would be to create a CollissionControler.as that does all your
hit testing for you.
Thanks for the reply Dan
Not quite sure how the Ball references the Paddle or alternatively the
CollisionController references the ball and paddle.
My Game class creates the Ball and Paddle as follows:
mcPaddle = new Paddle(mcReference, paddle_mc, 50, 100, 289);
var vBall_Object = new
That would be one way. Although it is rather limiting. I'm assuming that the
ball will bounce whenever it hits an object.
Perhaps create an array of bounceObjects[];
function addBounceObject(obj:Object):Number{
return bounceObjects.push(obj);
}
Then you could create your hit
if (x = duh){
lol
};
On 12/13/06, grimmwerks [EMAIL PROTECTED] wrote:
duh. TextArea.label.selectable = false.
--
count_schemula
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
that would be
if( x == duh){
:)
On 12/13/06, Count Schemula [EMAIL PROTECTED] wrote:
if (x = duh){
lol
};
On 12/13/06, grimmwerks [EMAIL PROTECTED] wrote:
duh. TextArea.label.selectable = false.
--
count_schemula
___
Oh yes that looks like a very neat solution Dan!!
From your code, it looks like your checkCollisions method is within the Ball
class - is that correct?
And hence would the addBounceObject method also be in the Ball class?
So the Game object would call the checkCollisions for each ball (there
To make the mouse loose focus on drag out of Flash,
Place an invisible button in a two frame clip. Set the button to goto
next frame on roll over and stop on frame two. Second frame is blank = no
button object from first frame. Place that clip over the drag button in
your app.
When
I would like to generate all(a lot at least) of my code in Eclipse.
The Java guys get a lot of their stuff done for free, why not ActionScript.
If you are really OOP, you mostly need getters and setters done
automatically. The real business methods are hard to get written through
a modelling
Another possible strategy is for the ball to fire off an event every
time it crosses certain vertical location thresholds. The target
objects could then listen for the event which matches their vertical
location to test for a collision.
For example, when the ball descends to the row containing
Have you actually implemented an event system like this in games? It seems
like a good idea, but for some reason I always thought this approach would
introduce unnecessary latency, but now I'm not sure why!
-Scott
On 12/13/06, Pete Miller [EMAIL PROTECTED] wrote:
Another possible strategy is
This will be my last post to this list on this request, thanks for your
patience. Please reply to me DIRECTLY.
CyberSource provides E-Commerce services for merchants like Buy.com,
Nike, and Adobe. We are trying to develop a flash application which has
no visual component, and used in a
I don't program games (so add that factor as a consideration), it was
just my first thought that if I were doing this, I wouldn't want to test
every object for a collision all the time. If there is a latency issue
such as you describe, a homebrewed Event class might eliminate it.
P.
I generally group my collisions test in movieclips
Take the brick for example:
brickHolder_mc.redBricks
brickHolder_mc.greenBricks
brickHolder_mc.yellowBricks
I hit test against brickHolder_mc first, if this is succesful I dip down
into the child mc's and break out when I get a positive.
Rather than testing every brick for a collision all the time, I was thinking
of using a tile based approach to display the bricks. Therefore rather than
each brick checking for a collision with the ball, it is a case of checking
what tile (brick) the ball currently occupies if any and if that
thank you now I understand I will clean my code to use your neat
solution...
Roberto
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to
From a computational standpoint, you end up running the same amount of
processses. Are you either haveing the ball constantly checking Where am I?
Am I over a brick? or you have the ball checking Am i hitting something?
every onEnterFrame.
Pete's suggested having checks when it reaches a
If you want to take this a step further then think about creating a custom
button class - the button class can extend MovieClip - be given a reference
to the view's controller when it's created and simply overwrite onRelease
with something like:
Public function onRelease():Void
{
Dan, I was thinking using the tile solution would reduce the amount of
checks as instead of looping through all the brick objects and checking for
a collision using hitTest, I would simply call a function passing in the
balls current position and if this was a tile (brick) that hadn't been
I'm looking for a good Actionscript editor for the Mac. I've tried Sepy but it
seems like its really buggy on a Mac. Does anyone have any other
recomendations?
Thanks!
Chris
Have a burning
Hey, could y'all visit a site I just did. Client is say her whole
family had issues accessing the site and she says it makes her
upgrade the flash player every time. She's on a Mac.
I asked her for more information, but for now, I'm just assuming that
there is something wrong.
I've got an instance of the FLVPlayback in an app that is getting sent
a path; it's contentPath was just being resent the new path.
It's not working 100%, as every so often it decides it doesn't want to
load that requested video.
What's a better way of using one FLVPlayback object that reloads
TextMate is the best script editor for the Mac, period, hands down.
Integrates with MTASC, auto-completion, macros, actions, command line
access, etc. etc. If you take the time to learn all the cool stuff it
will become an invaluable tool for you.
http://www.macromates.com
I'm on a Mac and it works fine for me (no upgrade prompt).
- Original Message
From: Count Schemula [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 13, 2006 10:18:20 AM
Subject: [Flashcoders] site check please: swfobject issues
Hey, could y'all
I uninstalled the Flash Players from my FF and my IE7.
When I went to the site, I got the text message to update the flash
player and a link to the install page. So, that worked correct on both
browsers.
I installed Player 7 for FF and when i went to the site in FF, it
upgraded the browser and
Yeah, I think that could work and it seems to cut down on computations.
I personally would be learing using it becuase of the limitations it sets for
expanding your game... What if you wanted to use bigger bricks? What if you
have bricks that slide back and forth across the screen?
Thanks. Safari? FF?
On 12/13/06, Chris W. Paterson [EMAIL PROTECTED] wrote:
I'm on a Mac and it works fine for me (no upgrade prompt).
--
count_schemula
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I'm relearning components and came across a somewhat recent thread
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg21869.html
that lead me to this statement regarding xch from Eric D..
What do I need to put in my component class to allow updates on the Stage
of the component
Fine on, IE6, FF 1.5.0.8
Win XP, Flash Player 9.
-Andy Stone
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Count
Schemula
Sent: Wednesday, December 13, 2006 1:48 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] site check please: swfobject
Can you not get Eclipse?
http://developer.apple.com/tools/eclipse.html
That is the best cross-platform, cross-language IDE for Actionscript.
You can also run the same development tools as the PC guys so that you
can share their ideas more easily.
Get the ActionScript plug-in from osflash.
If you want an easy way to learn MVC, pick up this book and go through
the tutorial:
Agile Web Development with Rails
The Ruby on Rails MVC structure is easy to implement and understand and
it will set you on your way in MVC. They've got great naming
conventions, too.
You should use the MVC
Eclipse has eaten all my desktop files before when I made a workspace there
by accident.
I vote for TextMate, or SubEthaEdit, or anything from BareBones really
On 12/13/06, Ron Wheeler [EMAIL PROTECTED] wrote:
Can you not get Eclipse?
http://developer.apple.com/tools/eclipse.html
That is
I'd vote against Eclipse as well, but only because I couldn't ever get
the Actionscript plugin to work.
Then again, I tend to use Vim for all my text editing on the Mac, so
maybe I'm just weird. I will have to take a look at TextMate though.
I keep hearing good things about it.
-Andy
On
After that piece of excitement did you have a chance to use any of the
ActionScript plug-ins?
I like the idea of a complete IDE that works for all languages, has CVS
and SVN built-in.
The integrated ANT gives a good start on automating builds and workflow.
I am hoping that the nice features
I have had no troubles with it. We use it to maintain and develop our
RIA but we do the projector creation under the Flash IDE.
We also use Eclipse for all sorts of non-programming document management
tasks(preparing sales quotes and project proposals). We are a
geographically distributed
On Tue, Dec 12, 2006 at 03:47:01PM -0500, Andy Herrman wrote:
Hey all,
At work I've run into a situation where I need to decompile some SWFs.
A few weeks ago I had looked for one, but couldn't find any good free
ones. It looks like the company may be willing to buy one, so I'm
wondering if
I'm not a fan of Eclipse. I don't like that Flex Builder is based on
Eclipse, but I can't seem to get the ANT compiler working with Flash
Develop, so I'm stuck using the Flash IDE or Flex Builder 2 for my AS3
projects for now.
___
You get live preview for free when you set your Library item as a
component and point it to the AS2 class for that component.
However, you won't actually see the live preview in your FLA until you
compile the SWF (right-click option in the Library panel), or you create
the SWC and add it to an
Not to turn this into a Flash Develop conversation cause it's not for
OSX, but I had tons of trouble getting my AS3 projects to work with ANT
in Flash Develop, but I finally took the time and followed
http://www.bit-101.com/blog/?p=849 step by step, and I've been using
Flash Develop for AS3
Xcode works well for me. Although SCM support is a little flaky and
I've ended up using svnX for SCM.
Cheers,
Mischa
On 13 Dec 2006, at 20:07, Steven Sacks | BLITZ wrote:
I'm not a fan of Eclipse. I don't like that Flex Builder is based on
Eclipse, but I can't seem to get the ANT compiler
i've never heard of this happening on a mac.
i *have* heard a few reports of this behavior happening with IE7,
which i recently outlined in this blog post:
http://blog.deconcept.com/2006/12/08/corrupt-flash-player-install-
after-ie-7-upgrade/
but if she says she is on a mac, then maybe
Yeah, I followed Keith's step by step instructions, I've followed other
people's step by step instructions, John Grden has walked me through it,
and it still isn't working on my box. I get a java command line error
every time I try to compile. My computer is cursed or something.
-Original
that would be
if( x == duh){
:)
duh.
;)
___
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
k.. what you said jives with other things that I've been reading, but I can't
get it to work and it doesn't match up to what I'm finding in the docs or the
IDE settings.
In Component DefinitionLive Preview there's No live preview, Live Preview
in external .swf file, and Live Preview with .swf
In Component DefinitionLive Preview there's No live preview, Live
Preview in external .swf file, and Live Preview with .swf file embedded
in .fla file. There's nothing for use this symbol for Live Preview as
well.
You don't set that. When you add the AS2 class in the Component Definition
I have components that extend MovieClip in which I'm using an onUpdate
handler to perform a live preview. Define this handler function/method to
perform whatever visual updates you require on the Stage. Presuming you compile
the clip to a SWF, this handler gets invoked each time a parameter in
CrossPosting on FlashComm and FlashCoders forgive my transgression.
Hi,
Im trying to build an flv player using as3. The server is FMS2, and I have no
access to it. (yet) The thing that is tripping me up is the server is returning
:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
FF
- Original Message
From: Count Schemula [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 13, 2006 10:47:44 AM
Subject: Re: [Flashcoders] site check please: swfobject issues
Thanks. Safari? FF?
On 12/13/06, Chris W.
oh.
put a client on the netconnection and there you are.
no?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jordan
Schiffer
Sent: Wednesday, December 13, 2006 5:08 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] onBWDone
CrossPosting on
Willing to spend? As little as possible (the $80 for the Sothink one
they'd pay, but that's cheap).
I like the idea of helping out with free versions, but that would cost
a few orders of magnitude more. Also, we need something soon, and
don't have time to wait (even if we help) for something
Mac OSX, Safari 2.0.4, Flash Player 9
Everything is peachy.
On 12/13/06, Chris W. Paterson [EMAIL PROTECTED] wrote:
FF
- Original Message
From: Count Schemula [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, December 13, 2006
It seems that the problem is pretty limited. Do you offer a link that
bypasses detection? E.g., in the replaced text:
a href=./?detectflash=falseClick here to enter the site, bypassing
Flash detection./a
Rather than trying to debug an issue that seems very difficult
(perhaps impossible) to
I use BBEdit along with a custom Applescript to compile my AS3 with
mxmlc and then view the resulting build (if successful) in Firefox.
In BBEdit, I set up Apple-Return to run the script so it's just like
using the Flash IDE (but better).
Alan
On Dec 13, 2006, at 1:22 PM, flashcoders-
the Orilley flash 8 actionscript bible isn't a bad pick up either. There are
not many 'project' type tutorials in it either just a good reference.
On 12/4/06, Radley Marx [EMAIL PROTECTED] wrote:
I'd suggest the basic reference manuals from MM press: AS2.0 Language
Reference, Learning AS
flare is free.
http://www.nowrap.de/flare.html
On Dec 13, 2006, at 5:20 PM, Andy Herrman wrote:
Willing to spend? As little as possible (the $80 for the Sothink one
they'd pay, but that's cheap).
I like the idea of helping out with free versions, but that would cost
a few orders of
On 12/13/06, Marshall MacGillivray [EMAIL PROTECTED] wrote:
the Orilley flash 8 actionscript bible isn't a bad pick up either. There are
not many 'project' type tutorials in it either just a good reference.
Actually, it's Wiley, not O'Reilly.
I have the one for MX 2004, it's pretty useful.
Hi,
A few weeks back I found a site that had all the different mx.transition
classes setup for showing examples of each... it was a pretty basic
Flash site... does this ring a bell for anyone?
Anyone know of a similar site that lets you test different variations of
the transition classes?
here is a basic one:
http://www.ericd.net/blog_images/transitions.html
On 12/13/06, Micky Hulse [EMAIL PROTECTED] wrote:
Hi,
A few weeks back I found a site that had all the different mx.transition
classes setup for showing examples of each... it was a pretty basic
Flash site... does this
eric dolecki wrote:
here is a basic one:
http://www.ericd.net/blog_images/transitions.html
Perfect! That is the one.
If it is not too much trouble, feel free to send other example sites. :)
Thanks Eric! I appreciate the help.
Cheers,
Micky
--
Wishlist: http://snipurl.com/vrs9
Switch:
65 matches
Mail list logo