RE: [Flashcoders] [OT} simple math problem (cubic easing)

2007-08-30 Thread Roy Pardi
At 11:30 AM -0400 8/27/07, Mendelsohn, Michael wrote:
Hi Roy...

How ya been?  You could perhaps try something like this.

- Michael M.

hey Michael~

Things are good; hope all is well with you! The end code for this will be
in the C-like language that the Wiring microcontroller uses but I'm
modeling it in Flash because it's faster to rough out the code (compared to
compiling + downloading it to the board each time I want to run it) so I
can't use Flash specific stuff. (though I guess the Tween class is based on
the Penner easing stuff I am using).

Rich Shupe gave me a good push and I was able to get a workable routine
together. On another list someone suggested using a bezier curve to handle
the easing - and I think that has promise since I can control the easing
rate based on distance traveled more directly.

--Roy


import mx.transitions.Tween;
import mx.transitions.easing.*;

var YourDuration:Number = 25
var rampUp:Object = new Tween(_root.mc, _x, Regular.easeIn, 0,100,20,
false);
rampUp.onMotionFinished = function():Void{
   var continueTo:Object = new Tween(_root.mc, _x, None.easeNone,
100, 300, YourDuration, false);
   continueTo.onMotionFinished = function():Void{
   var rampDown:Object = new Tween(_root.mc, _x,
Regular.easeOut, 300, 400, 20, 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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Roy Pardi
At 11:43 PM -0700 8/19/07, Steven Sacks wrote:
If these students have no experience programming, you just can't start
with OOP.  They have no foundation to understand the concepts.  You have
to walk before you can run, and OOP is definitely runners territory.
Students with no programming experience are barely crawling.  Arrays,
Strings, Objects, Functions, Variables - these things are your first
steps.  You can't learn those while learning about Classes, Inheritance,
  and Design Patterns.  Those things are based on solid foundations.

This has been my experience teaching beginning programming to designers and
artists. You would be surprised at how many people have problems grasping
abstract concepts like objects or arrays, or translating their
understanding of conditional logic, objects and the rest from their
experience of the real world to the abstract world of code.

--Roy
-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Roy Pardi
At 9:54 PM -0400 8/19/07, Mike Reilly wrote:
I think we're on the same path Roy.  While I have some future coders,
this is Intro for 9th-11th grade kids, so my task is to teach but also
whet their appetite for more.  My deeper desire is to do it as OO as
possible, to better prepare them for AP Comp Sci if they choose.

I used to be the Co-Director of TechBoston up there in Boston, wish I
were closer. I'm in Georgia now.

If you're interested in doing more of an OO spin, let me know and I'll
keep you in the loop.


Hi Mike,
I'd be interested to hear how it goes. In this class that is now finishing
up most of the students are in the digital content creation areas, not
programming and this is a required class. I realized at a certain point
that there was a fundamental difference between my students who had
self-selected to pursue the programming path and those who were in the
class only because it was required. The former group are more comfortable
with abstract thinking, have a greater tolerance  patience for certain
types of problem solving. They had major problems with basic things and too
often resorted to memory rather than understanding (i.e they remember how
a for loop should be set up without really getting it). These are bright
folks so it's more that they have strengths in other areas.

Programming is basically just writing- and some people take to it and find
pleasure and creative opportunities through it and other people can do it
if they have to, though struggle with organizing their ideas or being clear
but find it difficult and frustrating.

--Roy
-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Roy Pardi
At 8:19 PM -0400 8/19/07, Mike Reilly wrote:
Hi there -

I'm a high school teacher who's decided to teach Intro to
Programming using Actionscript (2.0 for now, waiting for the school
to upgrade).

I'd prefer to take an OO approach, and use games in doing so.  For
example, my first game would be a Pong copy.  Lots of basics in there
to learn the environment, basic principles, etc.

Hi Mike,

I'm teaching an AS 2 class for non-programmers at Northeastern this Summer
(they haven't upgraded yet either). I use Pong as a basic example (and then
beat it to death.. ;-) Not true OOP with this group but I introduce the
ideas. The class site is here: http://roypardi.com/neu_summer/ - maybe this
will give you some ideas of what to do (or not to do..).

--Roy
-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] examples of scripting the Flash application?

2007-06-07 Thread Roy Pardi
At 11:53 AM +0200 6/7/07, Muzak wrote:
And wich part are you having problems with?

Well, I've been digging around for examples (for instance, of opening a
file picker) so I can see JSFL in action along with info on any dead ends
or other issues that would indicate that what I want to do isn't possible.

 Guess I was too vague about what I want to try to do- basically, within the
 Flash app:

 1. user opens a template movie that contains a Library of movieClips
 2. user selects my command from the menu
 3. the command opens a file picker dialog box where they can select a
 previously created XML file
 4. my command parses the XML file and instances the appropriate movieClip
 from the librbary, setting name  text props from the XML data
 5. my command opens a save as dialog so the file can be saved
 6. user can adjust/tweak positions of added MCs and then publish the swf.

 (just thinking out loud here)


-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] examples of scripting the Flash application?

2007-06-07 Thread Roy Pardi
Thanks much. I did find this breeze presentation:
http://mmusergroup.breezecentral.com/p87127622/

It's great - gives me a way to start tinkering.

--Roy

At 6:10 PM +0200 6/7/07, Muzak wrote:
You're not gonna find much JSFL examples out there I'm afraid.
Not that many people really use it (extensively).
There used to be a jsfl mailing list..
Ah, found it:
http://www.flashguru.co.uk/extending-flash-mailing-list/

I used to be on it, but there wasn't much activity and I left a while ago.
Might be worth looking into.. In any case, people there will be able to
help you out (as it's all about jsfl).

The things you mentioned all are possible through jsfl AFAIK.

For instance, the following will show a 'browse for file' dialog and then
read it and display the contents in the Output panel:

var fileURL = fl.browseForFileURL(open, Select file);
fl.trace(fileURL);
var str = FLfile.read( fileURL);
fl.trace(str);

Note that file content is returned as a String.

regards,
Muzak

- Original Message -
From: Roy Pardi [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, June 07, 2007 4:42 PM
Subject: Re: [Flashcoders] examples of scripting the Flash application?


 At 11:53 AM +0200 6/7/07, Muzak wrote:
And wich part are you having problems with?

 Well, I've been digging around for examples (for instance, of opening a
 file picker) so I can see JSFL in action along with info on any dead ends
 or other issues that would indicate that what I want to do isn't possible.

 Guess I was too vague about what I want to try to do- basically,
within the
 Flash app:

 1. user opens a template movie that contains a Library of movieClips
 2. user selects my command from the menu
 3. the command opens a file picker dialog box where they can select a
 previously created XML file
 4. my command parses the XML file and instances the appropriate movieClip
 from the librbary, setting name  text props from the XML data
 5. my command opens a save as dialog so the file can be saved
 6. user can adjust/tweak positions of added MCs and then publish the swf.

 (just thinking out loud here)




___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] examples of scripting the Flash application?

2007-06-07 Thread Roy Pardi
hi ben,

thanks for the demos - a big help! I just needed a nudge to get going with
JSFL. I also only just discovered that I can use the history panel to
understand syntax and get more familiar with the commands. fun stuff.

--Roy


At 12:43 PM -0400 6/7/07, ben gomez farrell wrote:
Hey, sorry, haven't been paying attention to flashcoders much as things
have been busy the past couple days.so I'm picking this thread up at
the end, and don't really know what's going on.  But I'm hearing you
want JSFL examples, and specifically external XML file to animation.
Among a few examples on my webpage, I have a Director executable which
contains a ball which you drag around.  It creates a text file, which
then when you run the JSFL script it will prompt you to open the text
file containing your animation and then writes the motion to the timeline.
If this is what you're after feel free to look!
http://www.yellow5labs.com/demos/

ben

Muzak wrote:
 You're not gonna find much JSFL examples out there I'm afraid.
 Not that many people really use it (extensively).
 There used to be a jsfl mailing list..
 Ah, found it:
 http://www.flashguru.co.uk/extending-flash-mailing-list/

 I used to be on it, but there wasn't much activity and I left a while ago.
 Might be worth looking into.. In any case, people there will be able to
help you out (as it's all about jsfl).

 The things you mentioned all are possible through jsfl AFAIK.

 For instance, the following will show a 'browse for file' dialog and
then read it and display the contents in the Output panel:

 var fileURL = fl.browseForFileURL(open, Select file);
 fl.trace(fileURL);
 var str = FLfile.read( fileURL);
 fl.trace(str);

 Note that file content is returned as a String.

 regards,
 Muzak

 - Original Message -
 From: Roy Pardi [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Thursday, June 07, 2007 4:42 PM
 Subject: Re: [Flashcoders] examples of scripting the Flash application?



 At 11:53 AM +0200 6/7/07, Muzak wrote:

 And wich part are you having problems with?

 Well, I've been digging around for examples (for instance, of opening a
 file picker) so I can see JSFL in action along with info on any dead ends
 or other issues that would indicate that what I want to do isn't possible.


 Guess I was too vague about what I want to try to do- basically,
within the
 Flash app:

 1. user opens a template movie that contains a Library of movieClips
 2. user selects my command from the menu
 3. the command opens a file picker dialog box where they can select a
 previously created XML file
 4. my command parses the XML file and instances the appropriate movieClip
 from the librbary, setting name  text props from the XML data
 5. my command opens a save as dialog so the file can be saved
 6. user can adjust/tweak positions of added MCs and then publish the swf.

 (just thinking out loud here)




 ___
 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 Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] examples of scripting the Flash application?

2007-06-05 Thread Roy Pardi
Would anyone have links handy of example for scripting the Flash app? Even
better would be data driven scripting.

I have a client who has frequent need of generating simple timelines that
consist of instancing a movieClip from the Library, naming it and entering
some display text in the clip. I could do it at runtime but there are
always cases where timeline events collide so it seems more feasible to
generate a layout through code and then let the client tweak positions
before they publish it.

thanks!

--Roy
-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [semi-OT] - Preventing Software Piracy

2007-04-11 Thread Roy Pardi
At 5:53 PM +0100 4/11/07, Blumenthal, Peter wrote:
Hi List.

I'm interested in hearing people's thoughts on the issues surrounding
prevention of software piracy on Flash based applications, released on
CD-ROM.


Since you are running in Director, one technique I have used in the past
which may work for you is to use the BinaryIO xtra and add some junk bytes
to each .swf prior to distribution and strip out those bytes at runtime -
basically munging the .swf so it won't playback (easily/at all) outside
your set up.
-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Webcam color tracking

2006-09-14 Thread Roy Pardi
At 8:51 AM +0200 9/13/06, dan wrote:
Cheak out
http://www.tipo.co.il/media/doritos/
I use color + motion traking to find hands and track them


Has anyone tried any pattern/face reco routines in AS? I imagine it would
be slow but maybe with small bitmaps it wouldn't be too bad (for fun and
art, not for security ;-)

--Roy
-- 
-
Studio Blog: http://www.roypardi.com/
Exhibit Announcements: http://www.roypardi.com/announce.htm
Gandhi - Be the change you want to see in the world
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Shape tweens through AS?

2006-03-06 Thread Roy Pardi
I haven't dug very deeply into the tween class. Anyone know if it is
possible to do shape tweens with it (or has someone written a custom class
to do this)?

thanks!

--Roy
-- 
-
Studio Blog: http://www.roypardi.com/studio/

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Shape tweens through AS?

2006-03-06 Thread Roy Pardi
At 6:08 PM -0300 3/6/06, Zeh Fernando wrote:
Well, short answer: you can't do it. It isn't a matter of building classes
for it; you can't just modify an existing drawing.


thanks for the succinct answer!

I'm coming to AS from the Director/Lingo side of the street. In Director,
the Vector Shape data type (which uses the Flash xtra/player code)
exposes all the data points so they can be manipulated through code. I
guess I assumed this was a feature in Flash that was carried over. Guess
not...

--Roy
-- 
-
Studio Blog: http://www.roypardi.com/studio/

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash and Midi

2006-01-29 Thread Roy Pardi
Anyone know of a cross-platform solution for receiving and sending midi
events from within Flash? I've seen a few projects out there but they
mostly seem beta/proof of concept or PC only.

I'm looking at options for converting a music education program done in
Director using the Sequence Xtra to Flash and/or Flash front end/C or Java
backend.

Thanks!

--Roy
-- 
-
Studio Blog: http://www.roypardi.com/studio/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash 8 inside Director MX 2004

2006-01-18 Thread Roy Pardi
At 3:59 PM -0800 1/18/06, Ralph Caraveo wrote:
Hey List,

Trying to figure out if it's possible to use Flash 8 with the new built
in effects within Director mx 2004?  Has anyone gotten this to work or
is the only solution to just wait and see if Macromedia *feels* like
updating Director?

From what I understand, an update is in progress but until it is released
we can't use the Flash 8 features in Director.
-- 
-
Studio Blog: http://www.roypardi.com/studio/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Local machine data manipulation

2005-10-27 Thread Roy Pardi
At 11:45 AM +0100 10/27/05, Nick Weekes wrote:
Thanks for the comments Jesse.  One question on Director though (before
going waaay OT), is it possible to perform local file write operations while
still in the browser, or do these have to be projector files, i.e.
standalone executables?



Using a Shockwave safe xtra it is possible to access the local drive
while in the browser. One xtra I've used for this is vList:
http://www.updatestage.com/xtras/vlist.html

It writes data out in a custom binary format - but that was fine for my
needs (can save image data, any cast data, etc.). There are other Shockwave
safe xtras that do local disk access.

SetPrefs/GetPrefs works in both the brwoser + projector but is limited to
text only, and to a small amount of data per write (I forget exactly how
much - 10-20k as I recall).


--Roy
-- 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OT: Macromedia Central - is it a flop?

2005-10-27 Thread Roy Pardi
At 8:35 PM -0400 10/27/05, Count Schemula wrote:
I don't think normal people have any clue that Central exists.

Macromedia creates a lot of things and then lets them die.

Remember the whole shockwave game player? Or even shockwave? Or Director
MUS?


Seriously! It's kind of amazingly pathological the benign neglect of
technologies and products they pioneered. Can corporations have an
inferiority complex?
-- 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders