Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Layers With Html And Flash.



hey. i'm new to this particular forum and everything, so i figured it'd be best to post here.

anyways, the problem i'm trying to make layers using html. i'm trying to put layers over the flash movie. i tried just leaving the flash movie in the regular html page, and making the layer on z-index:1. the flash movie ended up ontop of the layer. i tried putting the flash on it's own layer in the same position with z-index:0 and the other layer z-index:1, and the flash still covered it up. i can't find any information about this anywhere and i was wondering if anybody here had any ideas.

thank you.



FlashKit > Flash Help > Flash Newbies
Posted on: 07-25-2002, 05:33 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

-==Using Flash & HTML Layers==-
I'm trying to create a webpage using Flash (as the navigation) and layers. Any ideas how I could have a link in Flash to show/hide a layer on my page. I know that I would have to set it up in the Javascript, probably a FS Command of sorts?

Something like:

function theMovie_DoFSCommand(command)
{
if (command == "showlayer")
{
//need help here....
}
}


thanks to any who can help . . .

HTML Layers & Flash
Hello ppl =))
I have popup menu in <div> and flash movie above it.
Can I make z-index of flash under popup menu ??

Flash, HTML Layers, And ASP
Hello,

I've got a site that I have been working on for the past few months and I am starting to doubt that I will be able to use HTML layers as effectively as I had hoped.

My page requires layers because I wanted to do an interactive Flash map that overlayed transparent over the HTML content of my page. It works, but extremely inconsistently.

I know that it only works in IE, and I am willing to make our Netscape visitors suffer with the non-flash version.

All the values from the top and side navigation menus are coming from a SQL 2000 DB as well as the page content itself.

Can anyone tell me why I get such unpredicatable results on this site? Here is a test copy of it posted on my webserver: http://www.mypieceofcake.com/gil

One of the root problems that I think may be causing some of the problems is that when you are on the Flash site and click a link (ex. the text version link at the bottom) if you look at your back button's history, you will notice that it created an extra page between the page your were last on, and the one you are currently on.

I really want to keep my layered Flash menu, but it looks like it may be doomed because of inconsistency. Any help or notes are greatly appreciated.

Thanks,
Jon

Flash And HTML Layers
can you have a swf playing in a HTML table and have Layers over the top, ie can you have a flash movie playing in the backgorund behind the html content?

cheers

paul

Flash And HTML Layers
I have a flash menu that is on a layer in my html so that it can float above the page. It works well, except if I have another flash movie inside the page, that one will appear "on top", even though its just in the html body & not on a layer. Does anyone know any work-arounds for this?

Flash And HTML Layers
I have a website which utilizes HTML layers. However, I found that the swf file does not "obey" the layer order and forces its way to the top of the stack. Is there something I can do to fix this?

If not, I used two separate SWF movies in the same layer. I used getURL to launch the second movie from the first (which is a control panel). However, I can't control the timeline of the second movie from the first. Is there a way to launch to a specific frame using getURL? I tried the loadMovie but it just launched in the same place as the control panel, which does not solve my problem.

Thanks a ton - Dexter

HTML Over Flash In Layers
Is it possible to have a Flash animation going on in the background while you have .html text over the top? In this case, the html is dynamic so it has to actually be separate from the Flash.

Just wondering if this is possible and where to go to find more information. Thanks!

Flash And Html On Different Html Layers?
could i have flash on the bottom layer of my html page, and html only on a top layer using dreamweaver?

Flash And Its Interaction With HTML Layers
I have just embedded a Flash .swf on a webpage with pop-up menus in <div> tags with z-indexes. When I first put the Flash on the page, the pop-up menus which have z-indexes of 10 or so were obscured by the Flash swf/object. I then put the flash in a <div> of its own and gave it a z-index of 1,0 and -2. None of these worked and the Flash was still shown above the pop-up menu layer. It seems that flash has taken control of all of the browser layers.

Does anyone have any thoughts on this?

Thanks.
mike@spdesign.net

Z-index On Html Layers And Flash....
I have html layers (part of a navigation) that are activited by mouseovers. I have these html layers z-index set at 5.

I have a swf in a different html layer which has a z-index set to 0.

Why does my swf still appear on top over my html layers that have a higher z-index.

Not Regarding Flash, Regarding Html Frames And Layers
hi

This is not regarding flash, but its regarding html frames and layers, Plz help if any one has any ideas regarding this,

I have two frames, one top and other bottom, in the top frame the links are there and when u click on that links the contents load in the bottom frame.

The links in the top frame are in layers and are made visible onmouseover, but the layers get behind the bottom frame. i want the layers to be in front of the bottom frame. how can this be done.

This was also done in flash, the top menu was made in flash which was in the frames and onmouseover the links would displayed which where also in flash, in the same swf movie, how was done, plz help.

Flash's Interaction With HTML/DHTML Layers
I have just embedded a Flash .swf on a webpage with pop-up menus in <div> tags with z-indexes. When I first put the Flash on the page, the pop-up menus which have z-indexes of 10 or so were obscured by the Flash swf/object. I then put the flash in a <div> of its own and gave it a z-index of 1,0 and -2. None of these worked and the Flash was still shown above the pop-up menu layer. It seems that flash has taken control of all of the browser layers.

Does anyone have any thoughts on this?

Thanks.
mike@spdesign.net

Need Firefox Workaround For Flash Layers Over Html
I have an html page with two transparent background flash layers (z-index 1 & 2) on top of the html content (z-index 0).
In IE, links on all three layers are clickable thru the transparent backgrounds of the flash layers.
In Firefox, only the links on the top layer (z-index 2) are clickable.

Example

If you click the "flash layer 1" button a red box will expand to the full size of the flash stage with transparent background.

Link 1 and Link 2 are under the area of the stage and are still clickable when viewed in IE.
They are not clickable when viewed in Firefox.
Also in Firefox the "flash layer 1" button is not clickable because it is under the stage of flash layer 2.

Does anyone know of a good workaround to make this work in Firefox?

Controlling HTML Layers From A Flash Movie
Hi,

Is there a way of controlling HTML layer i.e. show-hide layer from a swf movie? so you can toggle between dynamic layers (Show-Hide layer) rather than toggle between SWF files?

Please see example attached

Thank you

HTML Frames And MX Layers
My website is at http://people.txucom.net/kicker
I want my website to do this http://www.bonus4u.da.ru

But my website doesn't, It unloads the webpage with a search box. But I will change the url to the index page as the first website. It's first button shows the webpage. And with their webpage at http://www.bonus4u.da.ru first window is clicked then the second button shows, or layer.

I know how to use frames, and their website at http://www.bonus4u.da.ru the entire flash movie is written as a layer to unload the bonus icon.

Can someone help me. My index page shows the whole movie. The website at http://www.bonus4u.da.ru is written using flash layers, I suppose. And the flash is written to unload the bonus.

Can someone explain how to do this effect. How to create a rollover from the clicking on the url to bring up the second button.

Except what this

SWF Communicating With HTML Layers
Is it possible to get a swf loaded into a html file to call layers visability i have a company history on a visual timeline done in flash but want to load the text for each year in the html file dont have a clue please help me

Hide/show Html Layers
I have a big problem and I hope someone can help me:

In the first frame of the actions layer, I wrote:

_global.categ="nothing";


I have 15 buttons in a swf with the following action:

on (press) {
getURL("javascript:MM_showHideLayers('"+categ+"',' ','hide')");
getURL("javascript:MM_showHideLayers('MBOARDL','', 'show')");
_global.categ="MBOARDL";

//MBOARDL is for one of them, while the others
//have different values for the "categ" variable and also in the second getURL statement
}

The problem is that if I press the buttons from the first to the last
(the buttons are placed vertically-but it shouldn't matter)-that means from top to bottom,
the script works perfectly.Then,if I try to press an upper button, the script will
not hide any layers).I've tried all kinds of intermediate solutions-I'm hoping this isn't a bug
(I've nottice that the following statement:

getURL("javascript:MM_showHideLayers('"+categ+"',' ','hide')");

doesn't always work if it is placed at the beginning of the row...
Then I thought I might have been wrong about something, but i don't know what...

Thank you in advance for your help,

Gabi,Romania

P.S.:If you want to see the whole thing(the FLA and the ASP page with the layers,
you can find it at

www.axle.ro/thread

,but the content is from a database and
it will probably not work.

www.axle.ro/thread

Java Links To Layers In Html
I posted this question in the "General" forum last week and have yet to get ANY replies, so I plead with you for mercy in answering my question!!! I have a link in a .swf that I want to reveal a hidden layer created in Dreamweaver with Javascript (Show/Hide Layer). Specifically, after the "GetURL" command, how do I then specify the layer in that page? when I "getURL" to the HTML page, it works, but with all the layers turned off. HELP!

thanks!

LAyers Issue On Html Page
I have 3 layers on my page, one of wich incorporates my SWF but the swf keeps comming to the top and appearing above my navigatgion, how can i control/stop this ?

ive set the z level but it dosnt work

Can Swf Show/hide Html Layers?
hi guys, quick question:

can a flash button show/hide an html layer?

right now i have a regular jpg image that shows/hides html layers like this:


Code:
<img src="../images/button.jpg" width="50" height="20"
onClick="MM_showHideLayers('bluelayer','','show','redlayer','','hide')">
if i want to replace that jpg image on the html page with a flash swf (that's a button), is there an actionscript way of controlling the html layers the same way?

i did a google search for this and searched these forums and couldn't find any syntax examples for this.

thanks for any help!

Importing AI Layers As Flash Layers
Is there a way to import Illustrator layers as Flash layers. Most of the time I export my Illustrator file as a swf then import it into flash. Then One by one I have copy an object...delete...then make a new layer and past it in place..

Show/Hide Layers HTML Script.
I asked this question on Virtual-FX.net and got a rather unclear & unkind response.

If someone knows a better way than the way im doing it, then tell me how. In detail.
I use Dreamweaver because my HTML knowledge goes only so far.
Im an artist, not a computer programmer.

What im looking for is where in Flash do i put this HTML code:

"MM_showHideLayers('Image2','','hide','Image1','', 'show')"

(Copied from Dreamweaver)
('Image1' is the layer name of the 1st layer)
('Image2' is the layer name of the 2nd layer)

I have a 640x480 Flash.
The Flash has 5 Flash buttons that when clicked, move accross the screen to a location.
In the center, it is blank.
This is due to Im putting the Flash in the Back of an HTML page created in Dreamweaver.
Im creating a Layer for each button in DW.
So when you click a button in the Flash,
it slides & animates, then Show/Hides the proper layer in DW.

I know the only HTML code that needs to be sent from Flash to the HTML it that command.

I must be staring right at the action Script line that allows you to input HTML but for some dumb reason I can find it.

Controlling Visibility Of Specific Html Layers From Swf Movie
Hi Folks.
Three questions really.
1) Can it (Controlling visibility of specific html layers from Swf movie) be done, cross browser and cross-platform within the swf via actionscript?
2) How? And please would someone be kind enough to give me an example and/or some sample code to work with please?

It is basically because Netscape doesn't support transparency settings, so I am having to make layers that appear/hide instead of just using the transparency settings in Flash (Which would be the ideal option), unless someone knows how to force NS to behave properly with the transparency option???

Are there any problems with Mac variants (IE and NS) that I should code for too, as there's nothing worse than doing loads of work only to find that it doesn't work at all with one platform/browser combo?

I'm using Flash 5
cheers
Biz

Clicking Trough Layers On Other Layers, How To Stop It?
I want to stop Flash from letting users to be able to click on buttons on layers below the top layer when the button is hidden, so not the whole layer, but just what is underneath something else. Is this possible?

Loading Mc 2 After Mc 1 Is Done Using Layers Seperate Layers In The Same Scene..
Hello, I'm wanting to know how to tell a scene to stop and play a mc in layer1 frame1, when its through playing that mc start playing another mc placed in layer 2 frame 2... so on so forth, if theres an easier way of doing this without using seperate frames could someone please tell me.. Thank you much!

Merging Layers Or Scanning Layers Into Image
Hello all. Been awhile since I've been to the FlashKit forums, but I'm learning something new.
Anyway, I've been programming in AS1 and AS2 for awhile and just recently started learning to do AS3. To start my learning progress I'm making a drawing program...
So far I just have draw and erase functions. Every time you "draw" it creates a new Shape object to draw on. This way if I want to add "Undo" I just go through and delete the new Shape object one by one. When you erase it creates a layer above the last draw area with a blend mode of "erase". So pretty simple.
The problem I have so far is that after drawing and erasing a bit it starts to get laggy as all the layers pile up on top of each other. When I add an undo function I will only have 10 steps of undo so to reduce overhead. But even without undo the extra layers are needed to be able to erase part of the drawing and then draw over where you erased.
So this brings me to my question. Is there a way in AS3 to merge together multiple layers or Shape objects? So after so many layers are created by drawing and erasing I can merge them into one flat one to reduce the processing needed.
I was thinking maybe I could do this though scanning the pixels on the clip contaning all the layers? I know I worked with saving images in Flash 8 before, but not sure how this works in AS3. I hear it's faster, hopefully fast enough to not have to wait 5 minutes every so many times you draw in my program.

And here's the code I have so far:

code:
var drawArray:Array=new Array();

var layerClip:MovieClip=new MovieClip();
var drawArea:Shape= new Shape();

this.addChild(layerClip);
layerClip.addChild(drawArea);

layerClip.blendMode=BlendMode.LAYER

drawArray.push(drawArea);

var drawLayer:int=0;
var prevX:int=0;
var prevY:int=0;
var erase:Boolean=false;
function runDraw(event:MouseEvent) {
drawArray[drawLayer].graphics.curveTo(prevX, prevY,(prevX+drawArray[drawLayer].mouseX)/2,(prevY+drawArray[drawLayer].mouseY)/2);
prevX=drawArray[drawLayer].mouseX;
prevY=drawArray[drawLayer].mouseY;
event.updateAfterEvent();
}
function startDraw(event:MouseEvent):void {
if (erase) {
drawArray[drawLayer].blendMode=BlendMode.ERASE
drawArray[drawLayer].graphics.lineStyle(6, 0x990000, .75);
}
else {
drawArray[drawLayer].graphics.lineStyle(2, 0x990000, .75);
}
drawArray[drawLayer].graphics.moveTo(drawArray[drawLayer].mouseX, drawArray[drawLayer].mouseY);
prevX=drawArea.mouseX;
prevY=drawArea.mouseY;
stage.addEventListener(MouseEvent.MOUSE_MOVE, runDraw);
}
function stopDraw(event:MouseEvent):void {
stage.removeEventListener(MouseEvent.MOUSE_MOVE, runDraw);
var drawArea:Shape= new Shape();
layerClip.addChild(drawArea);
drawArray.push(drawArea);
drawLayer++;
}
function toggleErase(event:MouseEvent):void {
if (erase) {
erase=false;
}
else {
erase=true;
}
}
stage.addEventListener(MouseEvent.MOUSE_DOWN, startDraw);
stage.addEventListener(MouseEvent.MOUSE_UP, stopDraw);
eraseBut.addEventListener(MouseEvent.CLICK, toggleErase);

Turn Selected Layers Into Guide Layers?
i had 3 layers selected... went to trash them and somehow the were turned into guide layers... this would be great if i could find out how it happened. rather than turning one at a time into a guide.

Anybody know how?

[F8] Layers ... Oh, GOOD LAWD, Layers
Greetings, Flash Gurus and Gurus-to-be,

i am mocking up a site, which can be found at HERE

The only links operational are Catering and King Cakes, and are only operational if you REFRESH the page. i know i am lacking a preloader, i have it built, but am not wasting time with it right now.

As you can see from the example, i have our little Butcher Guy off to the left, and for each "department" of our organization, i would like to dress him for the part. i want our butcher guy to fade in and out, and in the case of the King Cake page, i would like our logo and the Italian flag on the left to change into the traditional Mardi Gras colors in all their gaudy splendor.

My problem lies in the fact that my men seem to be piling up on one another, as does my Italian and Mardi Gras flags.

If i use "index.html" to load "Master.swf" (which is the initial, fade in page), and master.swf has inside of it, actionscript to load "MasterMardiGras.swf", (which is the King Cake page), how would i go about getting control and order in here?

Copies of the swf files are here:
http://img150.imageshack.us/my.php?image=loaderjw0.swf
http://img124.imageshack.us/my.php?image=masterqz4.swf
http://img145.imageshack.us/my.php?i...rdigrashh8.swf
http://img388.imageshack.us/my.php?i...ateringur4.swf
http://img125.imageshack.us/my.php?i...tercafety3.swf

Thanking you, i am, for your great, overflowing keg of knowledge!

Question About Controlling Layers From Other Layers
Is it possbile to create an action in a loaded movie in layer1 that will tell the movie in layer0 to go to a specific frame and start playing?

Another question I have is, can you load a movie into a container or layer and have it start, not at the begininning, but at a specific spot in the loaded movie's timeline?

Hidden Layers Vs Guide Layers
I often have things on a layer that I don't want to see while I'm working on another layer and frequently testing and tweaking and I used to just have those hidden in the timeline and they would publish. And if I didn't want a layer to publish, I'd make it a guide. In CS3 it seems that those hidden layers won't publish (though at times I've had them publish for me in certain files, but I don't know why).

Is there a setting I can choose to make hidden fields publish like they did prior to CS3?

Action Scripted Layers Always Act As Top Layers?
I used this snow effect from kirupa...
<A href="http://http://www.kirupa.com/developer/mx/snow.htm

However, the snow effect always acts like the top layer, ok what i mean is, i have 3 layers, (1)toplayer= a car, (2)middle= snow, (3)low= background.

I want to make the snow to be seen behind the car...i hope you understand what i mean , whenever i put the code from the link above it acts as the top layer and appears in front of everything.

Any help is appreciated...

Oh Layers..layers...I Hate Da Layers
HI!
so there is some hair on the floor, and some bald patches in my head...big deal!
anyways...at the moment my movie is kinda messy, but something is happening that really annoys me!
i have this mc that loads into a target..and then you click button2 and this loads mc2 into the target, ok fine!
BUT, what is buggin´me, is that when you click, say, button3, to load mc3...you see like whats underneat...on the very bottom layer...and i dont want that to happen....i want there to either be nothing...or atleast show the previously loaded mc...but not the very bottom.....
how can i solve this guys??

thanks very mucho! adios

Layers & Flash
I'm trying to setup a Flash Movie that will load specific layers after
the user selects a menu item.

Here's a photo example of what I am trying to do:

http://home.uleth.ca/~kim.siever/layerstest/

Thanks in advance for your help.

Layers? Flash?
Yo, I was wondering how would I script a button in flash to communicate with layers in the html file. If it is even possible. Say.. I click on a button in flash and a layer set to "hidden" becomes "visible". How would I do this?

Flash And Layers
Hi, I am trying to get flash to set layers from visible to invisible does anyone know how this can be done. Generally I avoid layers but it would be good know if it's possible for this particular project.

Thanks

Flash Layers
I am doing an open book test for school. I can't find the answer to one of them. It's the way it's word'ed I think. It goes like this:

Three different types of layers you can have in Flash.

I am thinking- movies, scenes and layers. But just not sure.
Can anyone help

Barbara/Babs

[web] Flash And Div Layers
Hi,

I have tried to get an I-frame on top of a flash file in a webpage, and this is the result:

http://www.cmd.tech.nhl.nl/users/regne200/test/test.htm

Bot the I-frame and the flash movie are in a <div> layer, but the one with the I-frame ofcourse with a higher z-index. It works (atleast in IE, not in Mozilla), but when I click the Flash movie, the div layer is moved up, over the I-frame.

Has anyone tried to experiment with this before, and have you found a sollution to my problem?!

Flash Layers
Whats the average amount of layers to make a nice flash intro...coz i try to keep my layers to a minimum so i can keep track of things but then i was wondering if i should let loose and go wild... will not affect my loading up speed or anything...

Flash In Layers
I have a site that has different movies in different layers. there is a menu layer above another layer with a tree component in it.

it was working fine but I rebuilt it after a redesign and now the tree layer is not functioning and I cannot work out why.

it works fine when it is not below the menu layer, so its a case of the menu layer disabling it.

I am using wmode transparent.

Flash And Layers
How can I make my flash movie go beneath my layered menu options? Currently, the movie appears above my layers.

Many thanks in advance for the help!!!

Flash And <div> Layers
I am having an issue with a scrolling menu and a flash movie. You can view it at:

http://www.na-charters.sagehost.net/index.htm

As you will see both work fine, but the menu scrolls below the flash movie. I have both on their own layer and have played with the <div> tags and z-index but the scrolling menu is always under the flash movie no matter what I do. Does anyone have any ideas?

Thanks

Flash And Layers
Hi, I am trying to get flash to set layers from visible to invisible does anyone know how this can be done. Generally I avoid layers but it would be good know if it's possible for this particular project.

Thanks

Flash Layers
Firstly, have to say thanks to this site as my flash programing has come on leaps and bounds due to you

OK, Hoping this is a simple one. I would like to "flatten" or merge layers within flash. Is this possible? The reason being is I have drawn a window component using numerous layers and now want to flatten them down to make final tweaks to the overall object.

Thank you in advance.


Jason.

Flash Layers
Hi I'm kinda new to flash and i was wondering how you can make sure that certain layers in your flash website are always visible.... After the last frame of my website's header-layer it goes over to the content box animation but remove's my header...how do i stop that :?:

Duplicate Layers In Flash 5
Is there any way to create a duplicate layer in flash?

Thanks

Layers (<div>) On Top Of Flash Movies
is it impossible to make a layer display on top of a flash movie? (using <div> tags) even if i put the movie on one layer and, say, some text on another with a higher z-index it will not display on top. please help, thanks so much.
Dan

Importing Flash Layers
I have been working on two flash projects. I want to import one file into the other. Using the import function, it will import it, but it will compress the project into 1 layer. I need the layers to keep functionality of the original project.(form)

Any help?

Overlapping Flash Layers
One flash file is on the page, another is on top of it, using transparency. When the two animations cross paths, the bottom swf shows thru to the top one.

What are the options in preventing this?

Here's what I've come up with, but I need more suggestions.

1. make the bottom flash file invisible while the top layer plays, then do a getURL javascript call to change the visibility at the end of the top one.

2. (similar execution) write a js function that will re-locate and then re-write the top layer so that the bottom file is actually just re-written into the top layer when the top layer is finished.

3. don't have the layers overlap.

I DESPERATELY need more options. Money is riding on this.

Now, here's the catch:
These files are being served by a third party, via a javascript call.

I have very little control over the actual OBJECT and EMBED tags... so the changes have to take place in the actual flash files, or after the fact via javascript.

Can You LINK Layers In Flash?
Hi... I'm fairly new to flash and I was wanting to do some animations with it for my website... I was wondering if it was possible to link the axies of layers or symbols to one another to create a chain that will move when you move one end but the other end stays stationary... I figure it involves alot of math but I'm not worried about it... I was looking into the triginometical calculations for a mouse look at controler but I was wanting something that worked in flash so I can Connect a character together... instead of animating each part seperate.

Copyright © 2005-08 www.BigResource.com, All rights reserved