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




Flash Buttons Targeting Dhtml Layer, HELP



Hey everyone. I'm obviously new to flash and I've redesigned my site to use just some very basic flash techniques (ie buttons and sound). I'm trying to figure out how to add actions to my buttons that will send a page in my site to the content area below the navigation. To see what I mean go here: http://www.digitalmatt.net/index1.htm I need to know what to code in flash and in dhtml.

If you can please help me as soon as possible, it would be appreciated. I'm leaving for Iraq very soon and they pack up my computer tomorrow I believe, so I really wanted to get it done before I leave. Thank you



FlashKit > Flash Help > Flash ActionScript
Posted on: 03-10-2004, 12:33 AM


View Complete Forum Thread with Replies

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

DHTML Layer Over Flash?
Trying to get a drop down dhtml layer containing a flash movie to appear in front of flash content in an html page, like those floaty flash ads you see everywhere.

Never actually seen this technique appearing over another flash movie. Is it possible to have a layer appear over the top of flash?


Tried changing z order but does nothing, even if the background flash movie is put into a layer of it's own and moved down the z order below the drop down layer.


Cheers

cr0m

Can Flash Sit Below A DHTML DIV Layer?
is this possible? If so HOW???

thanks in advance

Control DHTML Layer From Flash
Hello,

Not up to speed with Flash... Have used Flash 3 a few years ago. I'm a designer so I'm not too good at the actionscripting side of things. Was wondering if anyone would know how to set the visibility of a dhtml layer from a button within a flash movie. Using Flash MX.

Cheers, help would be greatly appreciated,

Marty

Control DHTML Layer From Flash
Hello,

Not up to speed with Flash... Have used Flash 3 a few years ago. I'm a designer so I'm not too good at the actionscripting side of things. Was wondering if anyone would know how to set the visibility of a dhtml layer from a button within a flash movie. Using Flash MX.

Cheers, help would be greatly appreciated,

Marty

Can A Flash Button Call A Dhtml (div Layer)?
And what code do I need to get to make that happen?

Thanks in advance!

DHTML Flash Layer Over HTML Browser Check?
Okay, I'm trying to put a flash animation in a DHTML layer over a normal HTML site I'm building for my girlfriend. http://www.BunBunsBigWords.com.

Problem is it doesn't work in some browsers. The flash movie isn't transparent and covers half of the site...

I pulled apart weather.com, which uses one of these floating flash DHTML layers. It seems that they use a javascript to detect for different browsers and then hide or show the DHTML flash layer depending on the results of the browser check.

I tried to modify it for my site, but I don't know enough Java Script, and couldn't get it to work. Does anyone know of a script that I can easily modify to do this?

Closing A (dhtml, Not Flash) Layer From Flash
Hey all...
this is only my second day behind the Flash wheel, and the question might be a bit arcane...
im attempting to make a quick flash splash movie that sits in a layer in my html file, and i want to hide the layer when the stop() action script occurs...
im embedding my swf file into a dhtml layer on a file with multiple layers. i have a function in my javascript file which i use every time i open a layer that first closes all other layers...
(function hideLayer(), then function openLayer())
heres my question. the way that the action scripts are set up in flash, can i call a function that is in my javascript file from flash?
say, if i use stop ()... can i write my own scripts in flash such as: (ignore the syntax )
hideLayer ('the_layer_this_movie_is_in') and then
openLayer ('new_layer_without_swf.file')
and have these scripts actually close and and open a new set of layers in my html file?
much thanx
-e

Cant Move Dhtml Layer From Swf Button
i cant seem to figure out how to move my layer containing my swf menu. its a menu for navigation. i would like to get it to move from a small part showing on screen to full showing for use and then back. but i dont know how layer movement is done for dhtml layers. anybody?

Flash Targeting Div Layer
Ello,

Say now i have a page split into div layers, inside one of the div layers is a flash movie. What i would like to do is from the flash movie have links that target the other div layers and load content in them. Is this possible with something similar to


Code:
on (press) {
getURL("index.html", "DivName");
}

or with javascript


Code:
on (press) {
getURL("javascript:function('DivName')");
}


I know i cam get the same result in frames but i'd raher not.

Thanks

Targeting A Variable In Another Layer
Is it possible to call a variable from another layer? I only want to do it once at onClipEvent(load)

Targeting A Movieclip On A Different Layer
Hello,

I'm pretty new to Actionscripting and although I've figured out some pretty tricky stuff like springing, I'm still not sure about what I'm sure is a pretty basic question, how to correctly target an object / mc / button.

I hear it is good practice to have all your code in the first frame of the main movie. Does that include any code for buttons and movieclips or should that code be attached to the button / mc itself. If not, then how do I target a button called (for example) myButton from the first frame rather than putting the code on the button itself.

The other question which is not an example but a real problem is, I have a swf that was loaded into a movie clip using createEmptyMovieClip in the main swf and called it "holder_mc" on level 10. The swf is basically just a streaming mp3. I would like to have a stop and start button but don't know how to target the new movie clip ("holder_mc").

Any help would be appreciated.

Thanks,

Andy

Targeting A Movie On Layer 1 From A Php File
I have a flash movie that has a form, when the user hits the send button, certain information is passed to a php file. The problem occurs when the last bit of information is needed to be passed back to the flash movie, it will not go.

I discovered through debugging that the reason this is occuring is that the php file cannot find the flash movie since it is on layer 1 loaded into the main movie.

My question is how do I target the php file to send the required info back to the flash movie on layer 1.

the php bit reads like this.. it is fairly simple and adapted from a widely available tutorial...the php file and both flash movies all live in the same directory on the server.


//Confirmation is sent back to the Flash form that the process is complete
    $sendresult = "Done!";
    $send_answer = "answer=";
    $send_answer .= rawurlencode($sendresult);


Targeting Mc In Layer Of Button State With Actionscript
hi, I've got a button on the stage with an up state with two layers, one is just the regular up state and the other in an animation_mc that is supposed to attract attention to the button. after the button has been pressed I don't need that animation anymore -- how do I target an mc in a button state with action script to unload it or stop it? leaving the regular up state intact of course.

any good ideas would be very welcome

[MX] Targeting Flash Buttons To Iframes
I've looked up tutorials and things everywhere, but I still can't figure out why this doesn't work.

I have an Iframe named "bottom". On each button, I put this code:

on(release){
getURL("contact.html", "bottom")
}


but nothing happens. That should work, shouldn't it? Here's a link to what I'm doing if that helps any: http://www.jenni-bage.com/benzephyr/index2.html

Buttons Not Working In Flash Movie Within A DIV Layer
So I made a very simple flash movie with transparent background. I put this on a transparent layer with CSS style to position (relative) the object.

There are two buttons in the flash movie, one uses on (release){getURL()} to link to another page and the other button is just a text with a URL.

Both won't work, they are not clickable and there is no way to make them work.

Any suggestions or workaround about this?
Thanks.

Targeting Html Frames With Flash Buttons
I'm developing a site that is a hybrid of flash and html
I've built a frameset in dreamweaver, one frame area that will house the flash navigation and another frame that will hold the various pages of content

What I'd like to do is use the buttons in the flash navigation frame to change the page (*.html) in the content frame. So when I press the news button in the flash nav the news.html page will appear in the content frame

Can anyone help or suggest a tutorial?

Thanks in advance

[F8] Firefox Blocks Flash Buttons Targeting _blank
I have a simple frames website I'm helping a client update.

They have a flash menu.

For two of the links in the flash menu, I'm using target="_blank".

The links work when tested - however in Firefox, when you click on one of these links that targets "_blank" firefox blocks the links.

Is there a workaround for this? Internet Explorer does not block the links.

I'm guessing Firefox thinks my links are "pop ups" so the site isn't functioning correctly and I'm concerned people won't know how to unblock the site, so that the links will work.

Thanks

FOO

Linking Flash Buttons In A "layer" In Dreamweaver To The Main Frame Of A Frameset
Hi all!

I'm experiencing some problems with a site I am making.

I have a frameset and in the top frame, I have a flash navigation bar. The swf of the nav bar is in a layer in Dreamweaver 4 (a layer being those rectangular boxes so whatever is within them can be moved anywhere on that frame). I want the buttons within the swf to open the page the user selects in the main frame. What is happening at the moment is that all of the pages that the user wants to open are opening in a new window.

In Flash, I have opened up my nav bar up and made the link targets of the buttons to go to mainFrame, but despite this it still won't work.

Is there something I have to add in the action script or any HTML which I have to insert?

I would be most grateful to anybody who responds. Thank you very much.

Take care,

Mark

Buttons Going Through Top Layer?
this is a WEIRD problem I've been having with MX2k4

I have two layers. Each layer has one movie clip and in those movie clips they have 3 links.

The bottom layer has an orange background and the top layer has a green background.

what's weird is the bottom layer's (orange) buttons are going through the top layer (green)

you can't see the buttons but you can click on them....this is weird shouldn't the green background block the buttons?

Please help!!

Buttons Under Top Layer
I have a movieclip which, when it gets to (and stops) on a certain frame, has buttons on it. Over this movieclip I have another layer with an invisible trigger over it, this trigger makes the movieclip play when the mouse goes over it. However, when I try to click on the buttons they dont work, im guessing this is because they are under the trigger. I have tried putting the moveclip over the trigger but then the trigger wont work. How do I make the trigger work and also make the buttons (underneath the trigger) work?

Cheers
Chris

Buttons Which Ar'nt On Top Layer
I have an invisible trigger which on a mouse over makes the main timeline play. As the timeline plays a button fades in over the trigger. Everything goes ok until you put the mouse over the button & (i think) the trigger thinks you have moved the mouse outside of it (when you havn't). I fixed this by putting the button on a layer below the trigger but then the button won't work. What do I have to do to make both the trigger and the button work?

I have linked to the .fla below if anyone wants to look at that they are welcome.

Thanks
Chris

.fla File

Should All Buttons Be On 1 Layer?
i guess that's my question right there. i've got simple, static buttons, animated buttons and tween functions that end in buttons. does it matter what layer the buttons are on?

Targeting Buttons Within A Mc
pls help a newbie

anyone had this problem??

i have a mc on the main stage which acts as a menu.

within that mc menu has buttons targeting certain markers.

Can't seem to trigger them using
on (release) {
gotoAndPlay("Scene 1", "section_1");
}

what am I doing wrong???

thx

Jim

Targeting Buttons
I'm trying to target an instance of a button (artbtn) within a movieclip that i have loaded into a emptyMovieClip (on level 35) I want this button to load a second movie clip (art.swf) into different emptyclip (navlist_mc) but I can't seem to target the button.

Here is my script. it just loads the movie when the page loads and not on relase of the button.

Any help out there?

_level35.artbtn.on (release); {
loadMovie("art.swf","navlist_mc")

Targeting Buttons
OK. Thanks for helping me get my buttons to be a link, but now I have another problem. I have frames on my site (left frame for my navigation br and right frame for everything else) How do I get my the link in my button to target the right frame?

Targeting Mcs In Buttons...
I have a problem when i want to target a mc located in a button and change it's proprieties...it's like the mc's instancename doesn't exist in the button ..is there a different, working way of targetting ?

Help Targeting Buttons
I found a very simple slideshow tutorial and thought I could adapt the next frame and previous frame buttons. So far I've had no luck.

on (release) { if (this._currentframe == this._totalframes) { gotoAndStop(1); } else { nextFrame(); } }

That's the code for the next button (obviously) and I need it to control the .swf on level 2

I've recieved such helpfull replies to all my other questions I hope you can help me out again.

Thanks

Help Targeting Buttons
I found a very simple slideshow tutorial and thought I could adapt the next frame and previous frame buttons. So far I've had no luck.

on (release) { if (this._currentframe == this._totalframes) { gotoAndStop(1); } else { nextFrame(); } }

That's the code for the next button (obviously) and I need it to control the .swf on level 2

I've recieved such helpfull replies to all my other questions I hope you can help me out again.

Thanks

Help With Targeting Buttons In Mc
I duplicate a Movie Clip:

MC names are box1, box2, box3, etc...

Inside button names are number1,number2,number3, etc...

For some reason i cant get the buttons to trace




function createDays(myTarget, spacer) {
for(i = 1; i <= 12; i++) {
myTarget.attachMovie("box" + i, "myBox" + i, i);
myTarget["myBox" + i]._x = spacer * i;

// THIS IS NOT WORKING !!!
var tempName = eval("number" + i);
myTarget["myBox" + i].tempName.onRollOver = function (){
//todaysDay(i);
trace("AAA");
}


}


}

If i do it manually it works:
_root.boxHolder.holder.myBox6.number6.onRelease = function() {
//trace("AAAAAAAAAAAAAAAAAAA");
}


Any ideas?

DHTML And Flash
Is there any way to have layers appear over a Flash movie? To make matters worse I need this to work in both IE 5+ and Netscape 4.7+!!!
I have created a drop down Nav but it is hidden by the Flash.
Any suggestions?

Dhtml And Flash
How do I need to export my movie so that my DHTML drop down menu drops in front of my movie instead of behind.

Thanks.

Flash With Dhtml On The Mac
I'm currntly try to make a flash mov appear over my web page with dhtml using the old.

<object ID="Flash5"
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash/cabs/swflash.cab"
STYLE="POSITION: absolute; HEIGHT:100%;WIDTH:100%;TOP:5;LEFT:5;VISIBILITY:VIS IBLE; ZINDEX:1"
width="400" height="400">
<param name="movie" value="youranimation.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="wmode" value="transparent">
<param name="quality" value="best">
</OBJECT>

But the promblem is that it does not hold up on a mac, infact it falls directly on it face.
Can any of you people help me with a multi browser combined dhtml flash answer.

Cheers
Ember

* DHTML And Flash ?
Hi:

I'm developing a website and at the top there is a DHTML drop down menu, then at the bottom of the mneu I have a flash animation. But the problem is that when the menu displays the subsections, I can't see them because the flash animation is on top.

Is there any work around besides the fact of may be designing the drop down menu in Flash? I will like to use the DHTML version of this menu.

Thank you in advanced for your time and help,

Dhtml & Flash
I don't know if this is the right place to be asking this, but thought I'd give it a shot. We have a client who wants dhtml drop-down menus on their home page and we have a Flash movie directly under where the menus need to drop. Problem is, the menus do not work over the Flash layer - they drop behind the Flash movie. Now, I am not a programmer, but the programmers I work with say it cannot be done. Anybody done this or have an example or workaround for this?

thanks!
butch

DHTML And Flash
I have a page that I am creating that uses a DHTML popup menu (created by Fireworks) for the navigation and has a flash "commercial" directly under it in another table. The problem is that when I roll over the menus the menus show up underneath the flash movie. This does not happen when I have a regular image in the "commercial" area only with the flash.

Do I need to solve this by using DHTML on the entire site and defining layer order or is there another way to solve this.


Any help would be appreciated

Thanks

DHTML With Flash?
I'm trying to get a DHTML drop down menu to work with a page that has flash movies in it. My problem is that when the menu meets up with the flash movies, it always appears behind them.

Is it possible to have DHTML appear on a layer above flash??

DHTML AND FLASH
Hi, i'm making a home work for my web class and im really confused about something...

I have a Dynamic HTML menu set up as an include file, but immidiatetly below it I placed a Flash movie.

Here is the problem...when I rollover the dhtml menu it opens down to show up the submenus but they GO underneath the flash movie....

I have tried everything from making different layers in dreamweaver to place my dhtml (include file) to making a send to back command in dreamweaver...

I just want my DHTML menu to open on top of the flash movie so the submenus arent interrupted by it...

I think this is something I cannt not unless i duplicate the menu in flash and make it a whole flash movie

IF anyone has an alternative for me to try or the solution please let me know, or email me a_argel@hotmail.com

DHTML And Flash
I have a site that I am working on and I am using a Flash file that Firestorm9527 created for me. The problem is that I would like to put the file in a table, and have the drop down menus come out side of the table. I read the tutorial on DHTML, but I didn't find much in the way of what I was looking for. Is there any way to make this happen? If you need the files, I can simply post them on my site (we aren't using them in the current site I am designing it for) and let you take a look. Anyway, any help people can give would be great.

DHTML Over Flash
hi there!!!

Can someone please set me straight, is there a way to
pop-over a DHTML navigation system over a flash movie?

Never Too Late!!! Never Too Early!!!

n4c

DHTML In Flash
I have created a Flash movie floating over the HTML page as in the following tutorial. http://www.kirupa.com/developer/flash5/dhtmlflash.htm

Can anyone tell me how to close the animation by using a buttom inside the Flash movie?

Ta
J

Put Dhtml Into Flash
How to put dhtml scripts into flash?

<script language="javascript">

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

</script>

----This is for the <head> tags

Then,

<a href="http://www.XXX.com/xxx.swf" onclick="NewWindow(this.href,'name','650','420','y es');return false">Click</a>

----This is what I want to put that into the buttons, using javascripts

Is is possible?



Thank you

DHTML AND FLASH
Hi, i'm making a home work for my web class and im really confused about something...

I have a Dynamic HTML menu set up as an include file, but immidiatetly below it I placed a Flash movie.

Here is the problem...when I rollover the dhtml menu it opens down to show up the submenus but they GO underneath the flash movie....

I have tried everything from making different layers in dreamweaver to place my dhtml (include file) to making a send to back command in dreamweaver...

I just want my DHTML menu to open on top of the flash movie so the submenus arent interrupted by it...

I think this is something I cannt not unless i duplicate the menu in flash and make it a whole flash movie

IF anyone has an alternative for me to try or the solution please let me know, or email me a_argel@hotmail.com

DHTML And Flash
I have a site that I am working on and I am using a Flash file that Firestorm9527 created for me. The problem is that I would like to put the file in a table, and have the drop down menus come out side of the table. I read the tutorial on DHTML, but I didn't find much in the way of what I was looking for. Is there any way to make this happen? If you need the files, I can simply post them on my site (we aren't using them in the current site I am designing it for) and let you take a look. Anyway, any help people can give would be great.

DHTML Over Flash
hi there!!!

Can someone please set me straight, is there a way to
pop-over a DHTML navigation system over a flash movie?

Never Too Late!!! Never Too Early!!!

n4c

Flash Or DHTML?
I'm working on a web project for a client. We are developing a website that is heavily dependent on search engines and "corporate" type clients. The website offers a service that larger corporations, universities, and other organizations would use. I am debating whether to use Flash or DHTML. Are there any disadvantages to using Flash for a website? Do search engines read it the same?

I would appreciate any advice. I am naturally leaning toward DHTML but my client prefers flash.

DHTML And FLash
Hi Folks

I started a thread in the HTML section (Thread215-473928 that I think should be cross referenced here.  Any thoughts here or there would be appreciated.

Thanks

Ben

Flash Under DHTML?
Hey guys,

I'm very new to flash and I am trying to make a small flash object to put on a page.  I want it to be moveable with DHTML.  So I have the little DHTML window that can be moved all over no problem.

The problem I have is when I <Emmbed> the flash object it gets precedence over the DHTML.  I heard somewhere that there was something you could do to the Flash object to make it go under the DHTML.  I tried messing with z-order on the DHTML but it didn't change anything.

I'm pretty stupid about Flash so far so if anyone could help that would be great.





Travis Hawkins
BeachBum Software
travis@cfm2asp.com
www.beachbumsoftware.com

Several Buttons On A Single Layer?
I've become accustomed to placing objects on separate layers for organizational purposes. Today I found out by accident that I could put multiple buttons with different actions on a single layer.

Is this common practice, or should I stick to placing them on separate layers?

Layer Where Buttons Are Moving Under It
I am sure this is a quick fix.

I have made a site where I have some buttons in the middle of the page. Then I have made at news drop down which goes over the buttons in the middel. My problem is that I want to be able to move the cursor around inside my news drop down without the buttons underneath moving because the cursor is over them. I cant see the buttons when the drop down is on, but the cursor react anyway. What do I do?

I am sorry if this question has been asked before but I couldn't find it

Tx

Jan

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