Indigo Rose Software
  #1  
Old 05-17-2004
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Lightbulb Example: Animated Backgrounds Using Flash

Example : Creating projects with animated backgrounds using Flash

This is a popular request so I thought I'd post an example. Attached are two seperate files, the Macromedia Flash project source file and the AutoPlay Media Studio project source file. You can download them and follow along or edit them for your own usage if you like. Here's a basic overview of how I built the project:

Step 1. Building The Flash Project File:

a) Locate a good royalty-free video clip.
b) Create a new project file in Macromedia Flash the same size and frame rate as the video clip, i.e. 320 X 240 at 15fps.
c) Import the video clip into your Flash project. Flash will prompt you to ask if it should automatically extend the frame length to match your video, select 'yes'.
d) Create a new layer, and place two buttons on it. Create a new layer and add text labels for the buttons to it.
e) Add fscommands to each button one at a time. This is done by selecting a button and then typing into the actions editor something like:

Code:
on (release) {
fscommand("web");
}
* in our case we used "web" and "exit" for our two fscommands.

f) Publish your Flash file as a .swf file.

Step 2. Building the AutoPlay Media Studio Project File.

a) Create a new project file, in our case we made it the same size as our flash file and used the "bordered" window option.
b) Drag and drop your .swf file into your AutoPlay Media Studio project's "Flash" folder.
c) Drag your .swf from this folder into your AutoPlay Media Studio project, it will automatically become a Flash object. Align this to your stage and, if you like, lock it's position/size.
d) Double click the Flash object and then under the "Actions" tab in the "On FSCommand" area add your button actions. This is done by using an if statement to check the fscommand and then trigger the appropriate function. For our project that looks like this:

Code:
if e_FSCommand == "web" then
File.OpenURL("http://www.indigorose.com", SW_SHOWNORMAL);
end

if e_FSCommand == "exit" then
Application.Exit();
end
Anyhow that's it, enjoy! If you have any questions just start a thread in the general discussion forum and I'll be happy to assist...

Corey

Corey Milner
Creative Director, Indigo Rose Software
Attached Files
File Type: apz Vid_Background.apz (219.2 KB, 529 views)
File Type: fla vid_background.fla (284.5 KB, 460 views)

Last edited by Desmond; 05-18-2004 at 01:37 PM.
  #2  
Old 01-27-2005
pata pata is offline
Forum Member
 
Join Date: Feb 2004
Posts: 11
Huh? Projects with animated backgrounds using flash

Hi!!! I found this thread today because i was looking for some help for my project:

I want to build an AMS5 project with an animated background (an swf file created with swishmax). Then i will insert buttons in AMS5 to jump to other pages that will have the same animated background.

I´m really really new to AMS5, have almost no experience with script and besides my native language it´s not english.

Please be patient with me....
  #3  
Old 01-27-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Hi, Flash objects take precedence in the Z order so you can't really use them as backgrounds although forum user Ron (rhosk) figured out a way to do it using a web object. Try searching for posts containing "Flash background" from rhosk, you should be able to find it.
  #4  
Old 01-28-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
An additional thought.
Now that Worm has made his SetMask "plugin" available, you could actually make a button ontop of a flash object ("think outside the bun, baby").
Here is how:
1. Make you flash movie as Corey described.
2. For design purposes, use an empty layer in flash and draw the mask (covering the movie, but with "holes" corresponding to where you want your buttons to be (white=opaque, black=transparent).
3. export this layer only as a bmp file.
4. publish your flash movie into a html page (use margin=0 in the html)
5.in AMS, use a webobject containing the html file above.
6. use SetMask for the webobject, using the above bmp mask.
7. put your buttons in the "holes" of the mask.

That's it.
Good luck
Yossi
  #5  
Old 01-28-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Quote:
"think outside the bun, baby"
HAR! Classic yossism...

That's definitely a cool idea Yossi, big time power thinking.
  #6  
Old 01-28-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
http://www.indigorose.com/forums/sho...8&postcount=11

Quote:
Originally Posted by yosik
An additional thought.
Now that Worm has made his SetMask "plugin" available, you could actually make a button ontop of a flash object ("think outside the bun, baby").
Here is how:
1. Make you flash movie as Corey described.
2. For design purposes, use an empty layer in flash and draw the mask (covering the movie, but with "holes" corresponding to where you want your buttons to be (white=opaque, black=transparent).
3. export this layer only as a bmp file.
4. publish your flash movie into a html page (use margin=0 in the html)
5.in AMS, use a webobject containing the html file above.
6. use SetMask for the webobject, using the above bmp mask.
7. put your buttons in the "holes" of the mask.

That's it.
Good luck
Yossi
  #7  
Old 01-29-2005
pata pata is offline
Forum Member
 
Join Date: Feb 2004
Posts: 11
Projects with animated background using flash

I have the swishmax swf file as a background. How can i include buttons to access the pages of my project? I wan to to use a hotspot in the buttons
  #8  
Old 01-29-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Here's an example that does exactly what you are asking.
Download it, take a look at it, and post any questions you might have. It is very simple to do. Create a 2 color image, one color represents the areas that you want to show, the other color will be transparent. The color in the upper left corner will be the transparent color.

http://www.indigorose.com/forums/showthread.php?t=10117
  #9  
Old 01-29-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
Sorry Worm. I guess I forgot about your post.
No ill intentions here...
Yossi
  #10  
Old 01-29-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Hey Yos,

No problem here on my end. If I came across wrong with my post I apologize. Your step-by-step of how to use the DLL is much appreciated. For me, I learn faster by looking at an example.
 

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Autoplay 5 have animated backgrounds? David Delaney AutoPlay Media Studio 5.0 5 05-18-2004 01:29 PM
2 more: Killing external apps and creating projects on a specific location Seraph_SGN AutoPlay Media Studio 4.0 6 10-02-2003 09:45 AM
lowest flash version LegoGirl AutoPlay Media Studio 4.0 13 07-31-2003 07:04 AM
Here's an easy-to-use fully configurable general purpose Flash timer for your projects... Corey AutoPlay Media Studio 4.0 14 06-24-2003 05:21 AM
HOWTO: Install the Flash Player from a CD-ROM Support AutoPlay Media Studio 4.0 Examples 0 10-29-2002 05:05 PM


All times are GMT -6. The time now is 06:12 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