I guess you were using AS2? There is no native RegEx in AS2, though, so I don't
see how you were going to use AS3 in AS2. In AS3, you should NEVER use anything
other than ints to iterate integer values. Don't use uint, and don't use Number.
That code I provided is code I wrote and tested in
And just to add to this, in AS3, I never use Array anymore for the very reason
that passing an out of range value returns undefined instead of throwing an out
of range error. So, I always use Vector.
___
Flashcoders mailing list
Ah, yes, I thought I has stated that. I am using AS2.
I tried setting the Math.random first and then I used Math.floor,
that seemed to work,
but I put an extra catch and set up a..
if(ranCode == undefined){
ranCode = 0;
}
and so a zero gets added instead of any undefined
and that
Thanks for the responses. When I debug, I see both contextMenus created
correctly. It's just that the child one isn't showing up on the stage. The
odd part is that when I comment out the parent contextMenu property, the child
contextMenu STILL doesn't show up.
Karl: I'm not seeing how
Hi people of the flash coders list,
For a while I am having this problem of not knowing how to record my webcam
with augmented reality.
Lets start from the beginning, I have a webcam application that records to a
streaming server. This application hasn¹t bin written by me unfortunately.
I have
I know you can have named groups, but are there named group back
references in AS3? if so, do you have any examples of it working? it
isn't working for me if I try \kname, \name
The funny thing about this situation is that I know that you can access
them after exec of a regex, and I wonder
Hi;
The following script fully increments the value of i every time it calls
_addNewFlame. I would have thought (and need) that the value of i would be
incremented with each call. Please advise.
TIA,
John
package
{
import flash.display.MovieClip;
import flash.utils.setInterval;
So I have a datagrid that I am populating via some xml like:
var thisCol: DataGridColumn: new DataGridColumn(fieldFromXML);
How can I create a column that's value is the reult of something like
thisCol/thatCol?
___
Flashcoders mailing list
//Try this :
package
{
import flash.display.MovieClip;
import flash.utils.setInterval;
import flash.utils.clearInterval;
import fireBall;
public class Fire extends MovieClip
{
private var mcFlameContainer:MovieClip;
private var uintMakeAFlame:uint;
Assuming you're using AS3, you might want to rewrite it as such:
public function Fire() {
mcFlameContainer = new MovieClip();
addChild(mcFlameContainer);
var t:Timer = new Timer(15, 10);
t.addEventListener(TimerEvent.TIMER, _addNewFlame, 15);
}
Forget the
Hi,
Maybe it's because you looped through the loop before you started
adding flames - e.g. i is 10 by the time the first flame is added...
Can you just use the number of children already in the container to
set the x position of the next flameNew?
Glen
Lehr, Theodore wrote:
So I have a datagrid that I am populating via some xml like:
var thisCol: DataGridColumn: new DataGridColumn(fieldFromXML);
How can I create a column that's value is the reult of something like
thisCol/thatCol?
Write your own data provider class. Make it give a
Good morning folks,
Is it possible in Flash to take a live feed from a webcam of a person in front
of a green screen, perform a colour matte operation, and display the person
(without background) on the stage?
TTFN.
Glen
---
http://www.glenmead.com
Animation Multimedia
---
Augmented Reality
The timeout runs after the loop completes. The callback will use the
current value of i, and the loop leaves it at 10. So naturally, that is
what the timeout will see.
I fail to see the purpose of setting a timeout in a loop like this. Just
move the loop to inside the timeout. This way, you
Glen wrote:
Good morning folks,
Is it possible in Flash to take a live feed from a webcam of a person in front
of a green screen, perform a colour matte operation, and display the person
(without background) on the stage?
You will need a custom pixelbender shader for that. I was going to
Here is something I wrote about an online interactive piece by Andre
Michelle called Pulsate: http://netartery.vispo.com/?p=192
ja
http://vispo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
First, a word of thanks to Glen Pike. That was slick, numChildren!
Second, I like Michael Mendelsohn's idea, however, for what event am I
listening?
package
{
import flash.display.MovieClip;
import flash.utils.setInterval;
import flash.utils.clearInterval;
import
You're mixing an instance of the Timer class with setInterval. In order
for a timer to run, you have to tell it to start. Secondly, since the
method the Timer calls is _addNewFlame - that method needs to have an
event specified as an argument.
private function
(?Pnamegroup)
Is this what you are looking for?
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 18 June 2010 15:39, Anthony Pace anthony.p...@utoronto.ca wrote:
I know you can have named groups, but are there named group back references
in AS3? if so, do you have any examples of it
Can you access using
result.name
?
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 18 June 2010 15:39, Anthony Pace anthony.p...@utoronto.ca wrote:
I know you can have named groups, but are there named group back references
in AS3? if so, do you have any examples of it working? it
Hi John...
You're listening for TimerEvent.TIMER.
when you instance a new Timer, you pass two parameters. First, you pass the
time in milliseconds, from your code, it was 15. Then instead of looping
through to get 10 instances of the fireball, just run the timer 10 times.
That's the second
t.start() ?
On 18/06/2010 16:52, John Singleton wrote:
First, a word of thanks to Glen Pike. That was slick, numChildren!
Second, I like Michael Mendelsohn's idea, however, for what event am I
listening?
package
{
import flash.display.MovieClip;
import flash.utils.setInterval;
I wasn't reading your post properly :) Have you tried (?P=name) ? (or
you may want try \n)
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 18 June 2010 15:39, Anthony Pace anthony.p...@utoronto.ca wrote:
I know you can have named groups, but are there named group back references
in AS3?
- Original Message
From: Glen Pike g...@engineeredarts.co.uk
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Fri, June 18, 2010 11:25:24 AM
Subject: Re: [Flashcoders] Function Doesn't Increment Properly
t.start() ?
Oh :-} Yeah, that worked.
Merrill thought I was
Merrill thought I was mixing the timer with setInterval, but all of
that code was commented out.
Singleton, I didn't notice it was commented out since in my reader the
// was mixed in with , but either way, you really should just post the
relevant code if you want people to look it over. I also
Hi;
Here's code that I found online:
package
{
import flash.display.MovieClip;
import flash.utils.setInterval;
import flash.utils.clearInterval;
public class Fire extends MovieClip
{
private var mcFlameContainer:MovieClip;
private var
My idea was not that accessibility pref control the menus, but allow
the child object to be accessible, and in theory allow the menu to be
accessible.
Again, it was just a thought.
Karl
On Jun 18, 2010, at 8:42 AM, Mendelsohn, Michael wrote:
Thanks for the responses. When I debug, I see
Hi Jason...
I have an OT response to your post. Hope it's ok to respond here like this.
For the record, I have a job that I enjoy, and I'm doing AS3 for much of my
day.
That said, I'm curious about your educational background. You mentioned below
these people exist with instructional
Thanks Karl. It's an interesting approach. When I read the docs, it didn't
seem to be related. Anyway, I'm really stumped on this issue.
Thanks for replying, I appreciate it.
- MM
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
No problem, one thought too, do both variables that call the menus
(parent and child), are they the same var? this.menu?
Karl
On Jun 18, 2010, at 2:39 PM, Mendelsohn, Michael wrote:
Thanks Karl. It's an interesting approach. When I read the docs,
it didn't seem to be related. Anyway,
It's actually a large field. Most major universities have a degree in
Instructional Technology - or something named similar to that. It's
also called Educational Technology, Instructional Design, Adult
Learning, Educational Multimedia, Information Design, etc. Job
titles can range from
Thanks Jason! As usual with you, a complete answer. :-) I'm really wanting
to get better at what I do.
What university in Boston? That's where I call home.
- MM
One of my
co-workers is working on his PhD in the field from a university up in
Boston. Several others on my team have
Can't recall offhand, I tried pinging him when I was writing my
response, but he's gone for the weekend. I'll let you know next week.
Jason Merrill
Instructional Technology Architect
Bank of America Global Learning
Join the Bank of America Flash Platform Community and visit our
No problem, one thought too, do both variables that call the menus
(parent and child), are they the same var? this.menu?
They're not the same var.
Here's the structure:
Parent sprite -- contextMenu A
- child sprite 1
- child sprite 2
- child sprite 3
You can also learn as you go, but it's not as complete. I'm one of
Jason's coworkers - and while my instructional background isn't nearly
as good as Jason's I manage to muddle through :)
My degree is in graphic design/illustration and I've been self teaching
Flash/multimedia since '95. Been
g AGGIES! :)
On Fri, Jun 18, 2010 at 1:38 PM, Matt Perkins nudoru.m...@gmail.com wrote:
You can also learn as you go, but it's not as complete. I'm one of Jason's
coworkers - and while my instructional background isn't nearly as good as
Jason's I manage to muddle through :)
My degree
Sounds like a true Aggie! :)
Jason Merrill
Instructional Technology Architect
Bank of America Global Learning
Join the Bank of America Flash Platform Community and visit our
Instructional Technology Design Blog
(Note: these resources are only available for Bank of America
associates)
True, and Matt's pretty awesome. It is pretty hard to break in some
companies without the formal education, but if you're able to pick up
on-the-job experience like Matt has, you're golden.
Jason Merrill
Instructional Technology Architect
Bank of America Global Learning
Join the Bank of
38 matches
Mail list logo