Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 9 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-21-2007, 01:35 AM   #1
tecmeister
Registered User
 
Join Date: Mar 2007
Posts: 26
Default Flash as a background

Hello everyone,
I was wondering if it is possible to have a flash effect as the background of a html website.
If it is, how do i do so?

Thanks for the help.
tecmeister is offline   Reply With Quote
Old 07-21-2007, 02:46 AM   #2
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

Set the Flash movie (wmode set to transparent) on a lower z-index than the other html content.
atomic is offline   Reply With Quote
Old 07-21-2007, 12:04 PM   #3
tecmeister
Registered User
 
Join Date: Mar 2007
Posts: 26
Default

The thing that i was wondering was, will i be able to put the martix effect on the background of the website, and have the all of the tab, data etc over the top of it.
This is the actionscript if it helps:


maxLines = 40;
minScale = 10;
maxScale = 70;

theMatrix = createEmptyMovieClip('MatrixCode',1);
curLines = 0;

theMatrix.onEnterFrame = function(){

if(curLines <= maxLines){
curLines++;

codeLine = this.createEmptyMovieClip('codeLine',curLines);

var ranScale = Math.round(Math.random() * (maxScale-minScale)) + minScale;
codeLine._xscale = codeLine._yscale = ranScale;

codeLine._x = Math.random() * Stage.width;

codeLine.speed = (codeLine._xscale)/10;

codeLine.myCodes = [];
numPods = 0;
while(codeLine._height < Stage.height){
numPods++;

pod = codeLine.attachMovie('one_pod','pod'+numPods,numPo ds);
codeLine.myCodes.push(pod);

pod._y -= (pod._height+2) * numPods;

pod.the_one.Neo.text = chr(Math.round(Math.random() * 27) + 96);
}

codeLine.ind = 0;

codeLine.delay = codeLines.myCodes.length;

codeLine.onEnterFrame = function(){

this._y += this.speed;

if(this._y - this._height >= Stage.height) {

maxLines++;

this.removeMovieClip();
}

this.curCode = this.myCodes[this.ind];

if(this.curCode._currentframe == 1) this.curCode.play();

if(this.ind < this.myCodes.length and this.delay != 0){

this.ind++;

this.delay--;
} else {

this.ind = 0;

this.delay = this.myCodes.length;
}
}
}
}
tecmeister is offline   Reply With Quote
Old 07-21-2007, 02:12 PM   #4
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

Best way to find out, is to try it!
atomic is offline   Reply With Quote
Old 07-21-2007, 04:37 PM   #5
tecmeister
Registered User
 
Join Date: Mar 2007
Posts: 26
Default

I have been trying and it doesn't seem to work. But i guess i will just keep on trying.
tecmeister is offline   Reply With Quote
Old 07-21-2007, 04:45 PM   #6
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

Can you attach your .fla and .html, or post a link to this online?
atomic is offline   Reply With Quote
Old 07-21-2007, 10:13 PM   #7
Hambo
Registered User
 
Join Date: Mar 2005
Posts: 76
Default

put your flash in a div with a lower z-index than everything else i.e 0, and set its position to abosolute with top left @ 0,0 and width and height of 100%


did it myself here:
http://www.hambo.oneuk.com
Hambo is offline   Reply With Quote
Old 07-21-2007, 10:28 PM   #8
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

Isn't that what I first suggested?
atomic is offline   Reply With Quote
Old 07-24-2007, 08:49 AM   #9
Hambo
Registered User
 
Join Date: Mar 2005
Posts: 76
Default

the lack of example and 4 replies later suggests he didnt get it.!

hope that helps..
Hambo is offline   Reply With Quote
Old 07-24-2007, 08:51 AM   #10
Hambo
Registered User
 
Join Date: Mar 2005
Posts: 76
Default

Quote:
I have been trying and it doesn't seem to work.
the lack of example and 4 replies later suggests he didnt get it.!


hope that helps
Hambo is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retain background music in flash soulfly ActionScript 2.0 2 07-06-2007 04:34 AM
Transparent Background & transparent color in flash player FFighter Other Flash General Questions 1 10-26-2005 09:11 AM
can Flash control HTML background color? dmack HTML and JavaScript 4 07-08-2005 09:36 PM
Background Images in Flash fixate Other Flash General Questions 0 11-24-2004 11:46 PM


All times are GMT. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.