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




Pop-up On Flash Button?



I've lost my mind with this one, can't get my button to work with my javascript.

Here is the javascript code in the head of my html page.

<script language="javascript">

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

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= 0,menubar=0,directories=0,toolbar=0,status=0,locat ion=0'
win = window.open(mypage,myname,settings);
location.href="goodbye.html";
}

</script>


I'm trying to get my flash button to work with this javascript. I have a movie clip called "orb." when you mouse over the movie clip, you get a few fiulter effects. What I'm trying to fix is the onRelease function.

Here is my code in flash on a frame.

stop();
import flash.filters.*;

var gf:GlowFilter = new GlowFilter(0x977200,25,20,20,3,3,true,false);
var dsropShadowFilter = new DropShadowFilter(2,35,0x000000,5,5,5,.8,3,false,fa lse,false);

orb.filters = [gf,ds];

orb.onRollOver = function() {
this.onEnterFrame = function() {
gf.blurX += (100-gf.blurX)/5;
gf.blurY = gf.blurX;
orb.filters = [gf,ds];
}
}

orb.onRollOut = function() {
this.onEnterFrame = function() {
gf.blurX += (20-gf.blurX)/5;
gf.blurY = gf.blurX;
orb.filters = [gf,ds];
if(gf.blurX < 21) {
delete this.onEnterFrame;
}
}
}
orb.onRelease = function() {

}



I'm sure there is something simple to call the function to work with the javascript. Everything I try give s me an error.

G



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 06-27-2007, 03:49 PM


View Complete Forum Thread with Replies

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

Flash Button: Question Regarding "Animation In MouseOver And MouseOut On The Button.
Hello. I came across a problem while creating a flash button and I've come here to seek your help.

I am creating a Flash button where:

- MouseOver on the button will play Movie #1.
- MouseOut on the button will play Movie #2.

Now, I can do the first part without a problem because I can create Movie #1 within the "Over" section of the button. The problem is, I don't understand how to implement a method so that when MouseOut is detected, Movie #2 will play.

I don't know if you guys can understand what I mean, and I have supplied a link to the .fla file below:

button.fla

Any suggestions or help will be greatly appreciated. I am sort of a newbie to designing with Flash, and this part of working with buttons seems a bit advanced to me. Thank you. Have a nice day.

FLASH 8 - Toggle Button/released State/pressed Button
I have a series of buttons inside an array. I am trying to get the buttons so that once they are pressed, they remain in the over state. Which is a darker color than the up state. So that people know which button they have pressed. Is there an easy way to do this for buttons?

Please help someone,
Thanks,
M

How To Make A Button In Flash Work As A Form Button?
I'm trying to figure out how to use a button in flash as a form button. I have all of this HTML:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="julie1@juliedesigns.com">
<input type="hidden" name="item_name" value="picture">
<input type="hidden" name="item_number" value="picture1">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
</form>

And I want to be able to make button in flash be able to do what that form button would. Anyone know how to do this?

Tell Flash Which Button Is The Previous Button So It Can Goes Back To Normal
i have many buttons with rollOver and rollOut states... when the user clicks on a button the button stays red.. when the user clicks another button that button stays red and the previous button goes back to normal..

well how do i tell flash which button is the previous button so it can goes back to normal as the next button clicked goes red???

please help

Flash Mx 2004 Button Inside Button
hi all,

im having some problem... im working with flash mx 2004, and i have build a map of australia which i can mouse over all the states which is fine...

what i now need to do is when i mouse over a state 2 buttons have to 'pop up' (for lack of a better word), one that says "lease" and one that says "buy", when these buttons are clicked... dependant on which state is clicked and which button, i need to link to a webpage to be specified...

if anyone can help please do... thanks for your time and consideration...

Mojoinst.

Flash Button And The Browser BACK Button
I have a Flash Button that I'm using to drop a user down to an anchor link at the bottom of the page I'm on.

When the Flash button drops the user down to the anchor that's intended...afterward....when the user hits the browser BACK button to be taken back to the original position above within the page.....it instead takes them to the previous page visited.

How do you set the Flash button to remember the original position and go to this position when the BACK button within IE 6 is used?

Thanks!

SKURGE

Flash Button And The Browser BACK Button
I have a Flash Button that I'm using to drop a user down to an anchor link at the bottom of the page I'm on.

When the Flash button drops the user down to the anchor that's intended...afterward....when the user hits the browser BACK button to be taken back to the original position above within the page.....it instead takes them to the previous page visited.

How do you set the Flash button to remember the original position and go to this position when the BACK button within IE 6 is used?

Thanks!

SKURGE

Flash Button Vs HTML Button ?
Hello Peoples,

The following HTML code produces a button that when clicked sends the user to my online credit card processor's site where the user can proceed with a transaction.

----------HTML CODE----------
form action='https://www.casher.com/buyer/purchase' method='post'
input type='hidden' name='dis' value='435532'
input type='hidden' name='quantity' value='1'
input type='hidden' name='product_id' value='1'
input name="submit" type='submit' value='Click to pay thru casher.com'
/form
----------HTML CODE----------

So my question is: If I want to use a button in a flash piece to do the same thing as the above HTML button, what code do I apply to the button in flash ?

Thanks,
Reflex.

Flash Button To Control Another Button
Ok I have 2 buttons lets call them button 1 and 2

button 1 is the Code help I need.

Button 2 just sends too a webpage

How do I tell Button one to press button 2 ?

So i press button 1 and it tells button 2 to press. Any and all help would be Most helpful And thank you in advance.

ps I need to keep the 2 Buttons. And I need it in the

on (release) {


}

format . ;D

Flash Button Vs HTML Button
Hello Peoples,

The following HTML code produces a button that when clicked sends the user to my online credit card processor's site where the user can proceed with a transaction.

----------HTML CODE----------
<form action='https://www.casher.com/buyer/purchase' method='post'>
<input type='hidden' name='dis' value='435532' >
<input type='hidden' name='quantity' value='1' >
<input type='hidden' name='product_id' value='1' >
<input name="submit" type='submit' value='Click to pay thru casher.com' >
</form>
----------HTML CODE----------

So my question is: If I want to use a button in a flash piece to do the same thing as the above HTML button, what code do I apply to the button in flash ?

Thanks,
Reflex.

Flash Intro - On Button Sound Play, Off Button Sound Off
Hello,

I am working on this flash project. I want to make it so that when you put your mouse on the button, it plays this song, but when you take your mouse off, it stops the song..sounds really easy, but I need some help. Thanks!

David

[MX04] Open A New Link In Html By Clicking Button In Flash (no Code In Flash).
Hi,

I'm facing problem while opening a new html window by clicking button created in flash.

For this i don't want to write single code in flash but want to handle this through the html only.

For this I have used <embed> tag to add swf file in html. but could not add click code in HTML on that button.

Could any one help me out?

How Print Html Page Or Word Outside Flash When Click Button Inside Flash ?
hello,


how print html page or word outside flash when click button inside flash ?

any ideas or what the action can help me to do that ?

New To Flash, Create A Flash Form Which Is Emailed Using CGI Script When Submit Button Is Pressed
I'm trying to build a form in flash that is emailed using CGI script. I'm just lost and confused and I just can't seem to figure this out.

This is the CGI coding for HTML and I just need to convert it to use in CS3:
<form action="

Flash 8: Button For Flash Paper In A Flash Presentation
I am new to Flash. I have a presentation I am putting together.  I need a button to open a Flash Paper (Flash Papers 2) .  

How do I do this?
Does anyone sell premade buttons?

Thanks!
 

Flash SWT Files Creating Flash Button Templates For Dreamweaver
I was working with some students who like the Flash Buttons that are part of Dreamweaver. They thought it would be a cool idea to create their own buttons and add them as templates. Reading on the Adobe website it says to use Flash 5 to create and export the file as a SWT file type. There are further articles that says this can not be done with Flash MX. Has Adobe brought this back for Flash 8 or CS3? How else would someone accomplish this?


Thanks.

Button Over Button - Flash 8
Hey everyone,

How do you guys overcome this problem. I have a large mc that when you rollover it performs some animation. On top of this mc I have 2 buttons that serve as links. When I rollover my first mc my animation plays correctly but when I rollover the mc on top of the 1st mc (they are stacked) my rollout function executes.

I've tried using hit area since that is where I think I need to go with this and made a small example here

Any ideas?

Closing Flash Windows Within Flash Exit Button
who know that???can reply me soooon???


Closing flash windows within flash exit button

Flash Button Works In Flash But Not In Dreamweaver Preview?
ive created a button in flash and have followed the correct action script for it to open to a url because it works after ctrl and enter. when i import the flash to dreamweaver and load up the preview the flash button doesnt follow to the url? am i doing anything wrong or missing something?

A Button That Worked Perfectly In Flash 6, Does Not Work In Flash 8
I have picture gallery in my flash website with thumbnail previews on the right. I had a button that would automatically scroll down the thumbnails on the right to the next set of thumbnails on the right, like a vertical scroll bar.
Since I upgraded to Flash 8 the button no longers scrolls down.



Code:
on (rollOver) {
gotoAndPlay("S1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("S2");
}
on (release) {
if (_root.ykoord<-20) {
_root.ykoord += 308;
}
}

Code:
onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=20.5;
}

onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }

}

The RollOver and RollOut are just simple button animations, those work. But when I click it it dosn't scroll down or up.

Make Non-flash Button Control Flash Movie
Hi
Any idea how I can make a standard gif button in one frame control a flash movie held in a different frame? It's only a simple function that I want to do - I want to click on the button and the flash movie will jump to a particular frame on the main timeline.
Thx.

Flash Button Controlling A Separate Flash Movie
i am working on an html site with a javascript primary navigation system. i need to get a "browse by map" flash button that is on the same primary level to get a separate flash header with animating images and a hidden visual map to reveal itself after the separate "browse by map" button is click on. aside from passing a variable through a url which would have to reload the site, any tricks that can help out?

aloha)derailerhanger

Edit Exesting Flash Button In Flash Pogram
Hola guys,
I would like to edit/modify the existing flash button in C:Program FilesMacromediaDreamweaver MXConfigurationFlash ObjectsFlash Buttons.... I would like to reduce the height of the button "translucent tab (down)" using the flash program. I know I can edit to some extend from dreamweaver program but the text will be made smaller too which i dont want. Thanks in advance for any help at all.
Jaimito

Scroll Button In Flash 6, Not Working In Flash 8
on (press) {
_root.right = "1";
}
on (release, releaseOutside) {
_root.right = "0";
}


this code is not working in flash8, i'm using flash 6 before then i upgrade it into flash 8, then when i published my swf, the button isn't working... any help? please... my head is really exploding searching for solution....

Flash Menu Button With New Page Within Flash
Hey

Ive been working on this site and which I had purchased a template for. I figured out most of the things but I cannot figure out how to add another page to the flash. On the left side theres Menu buttons, I would like to add another button and another page...

Can someone look over this flash and possibly explain how another page is added to the flash, with a new button under the menu?

http://rishadzahir.net/main2smallRED.fla

thanks

[F8] Button For Flash Paper In A Flash Presentation
I am new to Flash. I have a presentation I am putting together. I need a button to open/run a Flash Paper2 swf.

How do I do this?
Does anyone sell premade buttons do to this?

Thanks!

Smal Flash Question/ Flash Button Help
Helo,
When creating animated buttons, i cant seem to make a button that animates on rollover and then plays an animation when clicked.
Not playing an animation elsewhere, but just a "clicked" animation on the button itself..

thnx..

How To Open Flash Pop Up In Html Using Flash Button
Hello Everyone,

I just purchased a flash template and i am having the html versions of the same. I am replacing the text in the html but i don't want to loose the look and feel of the template so i want to make sure that it will open the same flash pop up which was there and coded in the original fla.

So can anyone tell me how to call that flash pop up using that flash button. Please resolve the query urgently.

Regards,
Shishir

Smal Flash Question/ Flash Button Help
Helo,
When creating animated buttons, i cant seem to make a button that animates on rollover and then plays an animation when clicked.
Not playing an animation elsewhere, but just a "clicked" animation on the button itself..

thnx..

Stop Button States In Button With Animation With Button
Hello there,

I wonder if someone could help me to do this:

I have a movie clip with 3 animated buttons in it. Now I want to make the same movie clip into a button itself but I want the inside buttons not to show their over, press or hit states.

If I try and change the buttons' states this will change the originals which I don't want to do. I could replace the buttons with stills but this could be very time consuming since I have a lot of buttons in very long and complex animations. I could also duplicate the buttons and make the changes and then substitute them in the new movie, but this is also a very long process...

Is there a way to disable the buttons' state in an instance of the button as supposed to all of them when changing the master ?

Thanks a million to whoever helps.

Daniel

Button On Top Of A Button... Still Retain The Base Button Actions?
Hi there.... is it possible to still use the rollover / rollout buttons when a underneath another button??

I have been trying to have a slide in menu that basically slides away on rollout, but of course when you have buttons on this slide in menu, this triggers the rollout on the underlying movie or button and makes the menu dissapear.

Is there someway to avoid this or should I be using a different approach? Maybe a hit test on the mouse cursor perhaps?

Appreciate any help in advance,

Scott

Flash MX To Flash 5 Button Scripts
Hi all can anyone help me out here.

I have almost finished this site. However I am going to require the site to work with flash 5 as this will cover a wider array of users. The following action script works great. As I have buttons with movie clips, so this script works great, and has been placed in a seperate layer above the button on the timeline, rather than the instance button itself and it works fine. But this script is for Flash MX only, can anyone come up with an alternative with the same functionaility please:


ActionScript Code:
buttonOne.onRollOver = function(){    OK1 = true;}buttonOne.onRollOut = function(){    OK1 = false;}effectOne.onEnterFrame = function() {    if (OK1) {        effectOne.nextFrame();    } else {        effectOne.prevFrame();    }};


This code has been used for four buttons, so they are labeled buttonOne upwards likewise for the movie clips labeled effectOne, and of course OK1 / OK2 / OK3 / OK4. please help me out here, as it needs to be complete for tommorow.

cheers all that help

Trev

Flash Button
How can I make a flash button that opens new html window with specified height & width?

Guuguu

Flash Button Help
hi all,

can someone help me with a button question? I have a menu with 4 buttons. When I click on a button the text changes color to indicate that you are in a particular section. Right now the button text changes back to it's original color after it is clicked. I want it to stay the new color until another button is clicked. How????


TIA

Flash Button
I would like to know if anyone knows how to integrate my own Flash button into a Dreamweaver page ?
And make this button link with another dreamweaver page

Flash Button Help
well i would like to know the stript for my button the button symbol is named button1 what i want it to do is play my movie

Flash Button To Run Exe
i am creating a flash menu for my desktop and would to know if it is posible to have a button run an .exe file from my system.

thanks for any and all help

Help - Flash Button Pop Up
Hey Guys,

I am working on creating a menu with popups, like the one I attached. I have been unsuccessful at creating 5 additional buttons side-by-side.

Can anyone help ???

Flash Button
I have a Flash Trivia Quiz and I was wondering if it is possible to record how many times the start button, in the flash movie( to start the quiz) is clicked and then to display this i.e. this quiz has been played x number of times ?

Any help would be appreciated.

Thanks!

Need A Button For Flash 5
I need to make a button function in Flash version 5.
I normally use Flash 6.

I created a button to play a frame of a movie clip that is inside a movie clip. To do this I used instance names. Of course to publish it as flash 5 I cannot use instance names.

How can I do this in flash 5 action script?

Here is what I have for the version in Flash 6.

homebtn.onRollover = function() {
allstars.star1.gotoAndPlay(7);
allstars.star2.gotoAndPlay(7);
};

Thanks for your time,
Patrick
Dream FX Media

Need Button In Flash 5
I need to make a button function in Flash version 5.
I normally use Flash 6.

I created a button to play a frame of a movie clip that is inside a movie clip. To do this I used instance names. Of course to publish it as flash 5 I cannot use instance names.

How can I do this in flash 5 action script?

Here is what I have for the version in Flash 6.

homebtn.onRollover = function() {
allstars.star1.gotoAndPlay(7);
allstars.star2.gotoAndPlay(7);
};

Thanks for your time,
Patrick
Dream FX Media

Flash Tab Button
Anyway to make a flash tab button instead of pressing the keyboard?

Flash Button - PDF?
what code would i put in a flash button so the user can download a PDF and JPG file to their desktop?

Button Help In Flash 6 Mx
Alright after wasting an hour skimming through tutorials, I've come here. I'm using flash 6 mx and I was trying to figure out what action thingys I need to put in to make the movie jump to and start playign scene 2 of my movie when somone clicks the button I have made. Help is appreciated

Flash Button
ok i have a problem...i'm have a menu system and when click on it it loads a picture in an area. On that picture i want to have a button that launchs it in a bigger window. I want to have the button change as i click on the menu to load a new picture. Any help would be cool
thanks josh

Flash Mx Button
Hi there-

so whats up with flash mx actionscripting? I can't even seem to put a script on a button, can you please help me out

Thanks

Flash Button Help
So I'm designing a web site in flash (MX on a Mac), and it's come to my attention that everything works perfectly when buttons are clicked once.. but if a user double-clicks a button - things get messed up.

This is a problem I've never encountered before - and I was wondering if anyone has had this problem, and might be able to offer a solution.

The site can be viewed at:

http://www.uniquerestoration.ca/testing/

thanks so much in advance for any help!

emalen

Flash Button Help
Site in question: Restaurant Site

This page consists of a flash movie, containing a button that reads:

"Click for details..."

The problem is, this button's text needs to be dynamic in nature, as opposed to being static as the original Flash developer made it. Now, I'm not a Flash expert, so I'm lost a bit...

So, these are my questions:

Which properties and/or actions are needed to set the text value of this button when the movie is loaded...?

Can the text come from an external file...? If so, how...?

Thanks in advance...

Flash Button Help
I know how to make the 'on' part of the flash button. But when I let it off how do I make it so the button does something? I see people with buttons where they have an animation, but when you move your mouse off of it another animation plays. How is this done?

MC In Button Using Flash 4
Yes I must be terribly retro but am still using Flash 4.


My button is wanting a movie clip to go into the over frame and
play about 6 frames of a fade.

Yes, I read tutorials to refresh my memory on this.

Yes, I placed a stop action at the end of the movie clip, before
placing it in the button "over" mode. It does not play. Merely the
1st frame of the "over" state is seen.

Is Flash 4 not able to accomplish this feat of magic or is
some glaring, hopelessly stupid mistake staring me in the face?

I did not think that it would require tell target actions but perhaps
that is something I will need to learn?? eeeek.

appreciate any help.

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