Indigo Rose Software
  #1  
Old 11-05-2003
Colin's Avatar
Colin Colin is offline
President
 
Join Date: Jan 2000
Location: Indigo Rose Software
Posts: 126
Cool Demo

Here's something cool that Desmond came up with using AutoPlay Media Studio 5.0.

It demonstrates a number of features that are new to v5.0, such as:
  • Publishing to a compressed executable
  • Alpha channel transparency
  • On-the-fly image opacity
  • Dynamic object positioning
  • Advanced math functions like Sin and Cos
  • Self-referencing ("this")
  • Button objects
  • Label objects

http://www.indigorose.com/temp_web/logodemo.exe
(1.8 MB)

Cool isn't it?
Reply With Quote
  #2  
Old 11-05-2003
Bruce's Avatar
Bruce Bruce is offline
Indigo Rose Customer
 
Join Date: Jun 2001
Location: California
Posts: 1,769
That was very cool! I would love to see the code.
Reply With Quote
  #3  
Old 11-05-2003
eric_darling's Avatar
eric_darling eric_darling is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Southeast USA
Posts: 1,804
I'll second that... The source code would reveal a lot to me, too.
__________________
Eric Darling
eThree Media
http://www.ethreemedia.com
Reply With Quote
  #4  
Old 11-05-2003
AGRO's Avatar
AGRO AGRO is offline
Forum Member
 
Join Date: Oct 2000
Location: Peoria, AZ USA
Posts: 810
I'll third that!!

"show me the money. uh............I mean code"
Reply With Quote
  #5  
Old 11-05-2003
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
OK please bear in mind that I am truly not in the same league as Desmond et al here, but attached is my amateurish simulation of Desmonds project. I used a dot instead of a logo but it's easy enough to alter that. Please don't be surprised if my code is ridiculously stewpid, I know for a fact the math is flawed but since the preview looked similar to Desmond's right off, I didn't bother to spend any time fixing it... As Colin says, elegance isn't as important as getting it done quickly and looking good enough to satisfy the majority...

P.S. Code is On Page Show and On Timer...

Corey Milner
Creative Director, Indigo Rose Software
Attached Files
File Type: apz dot.apz (8.8 KB, 125 views)
Reply With Quote
  #6  
Old 11-05-2003
eric_darling's Avatar
eric_darling eric_darling is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Southeast USA
Posts: 1,804
Hey Corey...

That looks pretty darned close to me. Thanks for doing your darndest. One of these days, I think I'll take math again.
__________________
Eric Darling
eThree Media
http://www.ethreemedia.com
Reply With Quote
  #7  
Old 11-06-2003
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Yeah I really should start taking some night courses myself... Great quote from my roomate just now:


"In an ideal world, everything would be ideal."

- Marvin Yakoweshen

We were looking through some night course catalogs a while ago from local colleges. We saw one for "infant massage", we were thinking about enrolling our friend Steve the goon (think miniature Andre the Giant) so he could walk in, peruse the other students' babies and then pop off his shirt and lie down face first on the table stating, "I don't know how THEY plan to fix THIS sacroiliac with THOSE weak little hands but since I'm already here... Time is money people [clap, clap]..."

Corey Milner
Creative Director, Indigo Rose Software
Reply With Quote
  #8  
Old 11-06-2003
Bruce's Avatar
Bruce Bruce is offline
Indigo Rose Customer
 
Join Date: Jun 2001
Location: California
Posts: 1,769
Quote:
OK please bear in mind that I am truly not in the same league as Desmond et al here, but attached is my amateurish simulation of Desmonds project. I used a dot instead of a logo but it's easy enough to alter that. Please don't be surprised if my code is ridiculously stewpid, I know for a fact the math is flawed but since the preview looked similar to Desmond's, I didn't bother to fix it.
PLEASE!
Reply With Quote
  #9  
Old 11-06-2003
Colin's Avatar
Colin Colin is offline
President
 
Join Date: Jan 2000
Location: Indigo Rose Software
Posts: 126
Just for fun, here is the code desmond used. Just put it into an image object's "On Click" event and go. It uses a pretty cool (and a bit advanced) technique for an object to reference itself without knowing its name...

Corey's code that uses timers is an improvement, as you'll notice the rest of the runtime environment remains responsive while the animation occurs. That's awesome and really gives you a glimpse into the power of AutoPlay Media Studio 5.0.

-- The original example script
-- Put this script into an image object's On Click event
global_speed = 30;

--count used to keep track of position in loop
count = 0;

--gets the current position of the object
pos = Image.GetPos(this);
while count < 100 do
x = Math.Sin(count);
y = Math.Cos(count);
Image.SetPos(this, pos.X+(count*x), pos.Y+(count*y));
Image.SetOpacity(this, Math.Abs(count-100));
Application.Sleep(global_speed);
count = count + 1;
end

while count > 0 do
x = Math.Sin(count);
y = -Math.Cos(count);
Image.SetPos(this, pos.X-(count*x), pos.Y-(count*y));
Image.SetOpacity(this, Math.Abs(count-100));
Application.Sleep(global_speed);
count = count - 1;
end
Attached Files
File Type: apz indigo_rose_circle_logo.apz (51.6 KB, 83 views)
Reply With Quote
  #10  
Old 11-06-2003
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Flash is timeline based so timers will make sense to most flashers because it's exactly like a frame loop which is how they think. Desmond clearly has a better understanding of how this works, (and math) I just fluked out.

As you know I specialize in fluke luck, and once you learn to *really* depend on luck it's amazing how reliable it actually is. I call this hypothesis the, "Theory of Lazniess". Kind of like the Frank Grimes episode of the Simpsons.

Corey Milner
Creative Director, Indigo Rose Software
Reply With Quote
  #11  
Old 11-06-2003
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
I like the way your version produces a trail by modifying the opacity, Corey.
Reply With Quote
  #12  
Old 11-06-2003
John-oh's Avatar
John-oh John-oh is offline
Indigo Rose Customer
 
Join Date: Jun 2000
Location: England
Posts: 200
Wow,

I'm lost in admiration.

Corey, I always thought I was lucky, but I suspect your luck requires more ability than mine.

Of course, obviously, Desmond's just a clever b_eeder.

I hope you 'soaring eagles' keep throwing this stuff out, so that we sparrows can keep feeding on the crumbs.

Cheers
Reply With Quote
  #13  
Old 11-06-2003
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
BTW Further to the Flash comment, I've said it before and I say it again now, if we could get it across to the Flash developer community what AMS can do for them, i.e. finally they can easily make complete, secure, professional windows software out of their apps we could expand our user base by double or triple in a very short time. I've always meant to do that but time has been like a rabid schnauzer snapping at my britches for the entire year...

And I don't suspect the next year will be any less leisurely given John-oh's sudden thirst for trinketry. Still it would be nice to barnacle onto a couple of these fat fish as best we can with 5.0... Then again the MX line's popularity is waning rapidly so maybe this is old news but then again market is SO HUGE that even a near miss could double our users... And I'm not just wheezing Dixie.

Corey Milner
Creative Director, Indigo Rose Software
Reply With Quote
  #14  
Old 11-06-2003
AGRO's Avatar
AGRO AGRO is offline
Forum Member
 
Join Date: Oct 2000
Location: Peoria, AZ USA
Posts: 810
I downloaded the logodemo.exe from Colin and it works great.

If I click on the logo and the animation starts, I can not close the window. I have to wait for the animation to stop. Is that designed to work that way, having to wait for the animation to stop?
Reply With Quote
  #15  
Old 11-06-2003
Colin's Avatar
Colin Colin is offline
President
 
Join Date: Jan 2000
Location: Indigo Rose Software
Posts: 126
Due to the way that example works, it basically enters a loop and doesn't end until it's finished, the application "blocks". Corey's example uses timers, so the app remains responsive. Two different techniques!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 07:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software