| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2007
Posts: 26
|
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. |
|
|
|
|
|
#2 |
|
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
|
Set the Flash movie (wmode set to transparent) on a lower z-index than the other html content.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2007
Posts: 26
|
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; } } } } |
|
|
|
|
|
#4 |
|
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
|
Best way to find out, is to try it!
![]() |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Mar 2007
Posts: 26
|
I have been trying and it doesn't seem to work. But i guess i will just keep on trying.
|
|
|
|
|
|
#6 |
|
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
|
Can you attach your .fla and .html, or post a link to this online?
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Mar 2005
Posts: 76
|
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 |
|
|
|
|
|
#8 |
|
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
|
Isn't that what I first suggested?
|
|
|
|
|
|
#9 |
|
Registered User
Join Date: Mar 2005
Posts: 76
|
the lack of example and 4 replies later suggests he didnt get it.!
hope that helps.. |
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Mar 2005
Posts: 76
|
Quote:
hope that helps |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |