Cant Get Button To Work
I have an account with 2checkout and have been given some html script fo a buuton but can not get it to work within flash.
The script is:
<form action='https://www2.2checkout.com/2co/buyer/purchase' method='post'>
<input type='hidden' name='sid' value='256640' >
<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 2CheckOut' >
</form>
<br>
Goods and services provided by Business Hub Limited.
can anyone help me?
FlashKit > Flash Help > Flash Newbies
Posted on: 11-07-2004, 06:05 PM
View Complete Forum Thread with Replies
Sponsored Links:
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?
View Replies !
View Related
Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill
View Replies !
View Related
Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill
View Replies !
View Related
New Instance Button Doesn't Work, No Apps Listed, But Apps Work
In my admin panel if I click on the New Instance button it doesn't do anything. I've seen other posts about this and they all end up being caused by people having no applications to load, but that's not the case here. My apps are installed and they work fine, but the new instance button doesn't list them and they don't show up in the applications list of the admin panel, even when they're running.
This has to be something pretty simple, but I'm not having any luck figuring it out. Any ideas?
View Replies !
View Related
Duplicate Button Just Work On 1st Button, Please HELP
Dear All,
I've the button. i make one button and duplicate it with
looping for amount of records from database..
this is my code
----------------
for (i=0; i<myrecs;i++) {
duplicateMovieClip(_root.main.btn_more, "btn_more" add i, depth);
setProperty("_root.main.btn_more" add i, _y, yposition-70);
var clip = _root.main["btn_more"+i];
clip.onRelease = function() {
loadVariablesNum ("DetailVilla.asp?id=" + i, 0);
gotoAndPlay ("loadDetail");
};
};
-----------
that code works! but just in 1st button works...(only first button)..i;ve 5 duplicated button, but another button cannot mouseover and click ....
how to resolve this problem?
please help..because i've heavy deadline and for one week i stack in
this part..
thank you...
best
ika
View Replies !
View Related
Getting A Button To Work
This is going to sound really dumb, but thats ok, I'm a newbie, it's my right!!!
How do I make a flash button link - whats the code?
I'm in Flash 5, I've made my button, I'm in the 'Down State', my symbol is highlighted, and my Object Actions Panel is open, now what? do I 'go to' or 'play' or 'get url'? do I just put the file name (eg. index.htm) or do I have to put in the full url (http://index.htm), I've tried loads of different turtorials and books, but everyone is busy showing you how to make a button, but not how to get it to link to another page, please help, some one, anyone??
View Replies !
View Related
Button Won't Work?
Can someone tell me why my $#@##%% stupid button won't work correctly? It's a button of a window shade and all I want is for it to sit there on the stage until you click it and then I want it to play the animation of it flipping and flapping up until it settles. I tried it a number of different ways including placing a movie of the shadeflipping up. Nothing works. Check the file out. Perhaps you can help me? :-)
ftp://public:igwt1@milowerx.tzo.com/
View Replies !
View Related
Please Help, Button Won't Work
Well, i have been trying to figure flash out on my own, and have had limited sucess. My problem has been getting my buttons to work properly. The first problem is that when you put the mouse over the button, the descritpion, it doesn't always fade away, and so sometimes they overlap. The bigger problem though is that the buttons won't work when you click on them. I want that when you click on the button it moves onto another scene in the flash movie, but if you click on the upper left button you see what happens instead (its the only one with the scripting as of now). Thanks for the help, here is the link http://www.eyelessfetus.com
View Replies !
View Related
Button In My MCs Don't Work
How come my buttons that are in movie clips will only do stuff in that movie clip? I can only tell them to go to certain frames in the movie clip, and not in another. Is there any way I can make it so the buttons in my movie clips will go to a certain frame of Scene 1 or even do anything else???
Thanks,
Matthew
View Replies !
View Related
Can't Get This Button To Work :(
Can I have a button inside a movie - that's inside another movie clip?
I want to program a button called "contact" that resides in a movie clip called "button_clip" that's inside a movie clip called "navigation" that resides on my root timeline to gotoAndStop on a keyframe labeled "contact".
Nothing I try seems to work.... Can you see a problem with my choice of script?...
on (release) {
gotoAndStop (_root.navigation."contact");
}
View Replies !
View Related
My Button Don't Work
Ok, I realize that I must be doing something stupid but when I use "gotoAndplay (framenumber)", it restarts the scene (appears to go to frame 1). However, when I use "gotoAndstop (framenumber)", it will work correctly and stop on that frame number. What the heck am I doing wrong?
Please help before I pull all my hair out!! thank you
View Replies !
View Related
Button Won't Work
I have an instance of a movieclip on my main stage and this movieclip is made up of another movieclip instance called "mvcilines_wordrenee" in one layer and a button instance in the other layer called "butirenee" . My problem is on the mainstage I am able to use the functions of the button within the movieclip on the mainstage like
on (release) {
tellTarget ("mvcilines_wordrenee") {
gotoAndPlay(2);
}
}
However, I am not able to get the button functionality to work with any of the elements on the main stage. What I really want to do is to be able to move the pointer on the main stage to go to a particular frame and play, and I guess maybe for some reason the button cannot recognize anything on the main stage, since it is not at the same level as the mainstage.
View Replies !
View Related
Button Won't Work
Hey all,
I would write with more description if I could, but I'm kinda a newbie - please be patient. I created a "main" page in which I'm loading subsequent folders set as "targets". The button control is via a drop-down type. If I place a GetUrl on a button, it works fine. If I add a new button onto the main page and use it to target my swf, it works fine. However, I cannot get the button to work on targets when its in the drop down menu. I'm working on this all night guys, I'm totally appreciating any feedback
thanks a bunch
russ
View Replies !
View Related
Why Won't This Button Work And The Other Do?
I designing a program in flash, I have it working (semi) its just one of these buttons won't work, and Im just not seeing why?
Heres the code
Code:
var btn_list:Object = new Object();
btn_list.click = function()
{
_root.gotoAndPlay("intro");
}
this.birth_btn.addEventListener("click",btn_list);
//-----------------------new listener-------------
var btn_guest:Object = new Object();
this.btn_guest.click = function()
{
trace("Hit Guest");
this.msg_lbl.text="Feature Coming Soon";
}
this.guest_btn.addEventListener("click",btn_guest);
Now, the birth_btn button, works fine, it does just as it should. The guest_btn button won't do anything, if just sits there. I even put a trace in to see if the "click" event is fireing, and its not?
Is it something Im overlooking?
Thanks,
Cedric
View Replies !
View Related
Only Want Button To Work Once Throughout MC
I have a jeopardy board set up with the dollar amounts as seperate buttons. After the user clicks one, I want the button deactivated. Since I don't know which button the user will click I have to set up code to turn off the button after it's been clicked. Can anyone direct me to a sample FLASH file with the correct code to do this?
Thanks in advance!
Missmetz
View Replies !
View Related
Why Won't This Button Work
Ok, I know by the title of the post that it might seem like I'm a newbie to Flash but I'm not. But I'm really stumped as to why the button I've created for a new flash site that I'm working on does not work. Its the last hurdle to clear until I put it up on the web and see how it flies, but I can't for the life of me figure out why my Audio button does not work. It does not work on any of the scenes, and I don't know why. I've troubleshooted to the best of my ability and so I turn it over to the kind souls on this forum to to help me figure out why its not working. you'll notice on frame 124 of the Home scene, that I have a frame action to stop the movie - at this point all my buttons become active and all of them function the way they should work, except for the damn Audio button and I don't know why.
Here's the .fla file
http://www.realgone.org/weegs/working8.fla
I've posted on another forum but noone has been able to help, maybe there are a few kind (genius) souls out there who will help me get this figgered out.
thnx in advance
greg
View Replies !
View Related
Button Won't Work
I am having a problem with my buttons inside of a movie clip. the contents of the movie clip are essentially a bunch of different buttons. for some reason my buttons won't work. i am using the same action script as i always do.
"on (release){
gotoAndStop("keyframe");
}
any ideas? thanks
View Replies !
View Related
Button Won't Work
Hi,
I've been trying to get the button for the "view resort" to work, but the best I get is the website pops up the minute you touch the box???
What am I missing?
Sample:
http://www.stoppedclock.com/test2/worldmap.html
Source:
http://www.stoppedclock.com/map.fla
Thanks
View Replies !
View Related
Why Does The Last Button Work?
Take a look at my file. I've got it working but don't understand why.
Layer 1 has a button with a hit-state (in this case also a up-state to make it visible, but normally I would only use hit and make it transparent). It has a rollover/out so when entering I get a "binnen" and when leaving a "buiten".
On layer 2 four different buttons:
- button 1: a normal button with an over-state
- button 2: a movieclip which instance has a rollover
- button 3: also a movieclip but it's rollover is addressed in the main timeline
- button 4: a movieclip, but it's instance has an onclipevent(enterframe) and works in combination with a hittest.
What should happen is that when I'm entering the stage, the hittestbutton layer1 is activated and traces ("binnen"). But it should remail "binnen" even when I'm entering the four buttons.
This only happels with button 4 (red). When I'm entering the first 3 it is regarded as a rollout from the hittestbutton and traces "buiten". And traces "binnen" again when I move from the 3 buttons back to the hittest square.
This only doesn't happen with button 4: it keeps saying "binnen" even when entering/leaving the button.
I understand that such things are problematic when using nested buttons or rollovers on higher/lower layers in a frame, but can someone tell me why it works like I want it to only when using a button 4 kind of movieclip? Using onclipevent(enterframe) on such an instance? Why is such a rollover not regarded as a nested button etc.?
View Replies !
View Related
Why Oh Why Won't My Button Work?
Hello,
I thought that it was going to be easy peasy just to insert a movieclip into the hit frame in the button so when you click the button the movieclip plays. But it doesn't work. Do I need an event listener? I didn't think I did! I have attached it so you can see what I mean, the movie is slightly above the stage inside the button. I'm confused!
Thanks,
Helen
View Replies !
View Related
Button Won't Work
On the main timeline I have 3 Layers
Layer one frame #1. contains movie clip with instance name index
Layer two frame #2. contains movie clip with instance name form
Layer #3. movieclip for navigation with all the buttons
The first button goes to index with this code and it works
on (release) {_root.index.gotoAndPlay(1);
}
With the same logic I should be able to use this for the form movie clip, but it doesn't work. I don't get it because it's the same as the first button and that one works.
on (release) {_root.form.gotoAndPlay(1);
}
View Replies !
View Related
Button 2 Work
using flash mx ....... i have made a button .... wanna make it work like .... on clicked it should play a movieclip [mc] ...... what ascript should i attach 2 it ?
View Replies !
View Related
[CS3][AS2] Button Won't Work
I'm making a website and I have already hit a snag. When I go into Test Movie the button to enter the website won't work. The button is in a movie clip and if I enable simple buttons inside the movie clip the button works but in Scene 1 it doesn't
I thought buttons worked even if they were in a movie clip. Please help
View Replies !
View Related
Button Will Not Work
My button code will not work. It will not go the the .swf indicated in the code. I copied it from a previous movie. The only difference between the previous movie and this one is that this button begins on frame 40 the other ones began on frame 1. I used the following code for a button.
else if (bEvent.target == bMeals)
{
//handle the bMeals event
var mealsMovieLoader:Loader = new Loader();
addChild(mealsMovieLoader);
var gmUrl:URLRequest = new URLRequest("mealspractice.swf");
mealsMovieLoader.load(gmUrl);
mealsMovieLoader.contentLoaderInfo.addEventListene r(Event.COMPLETE,gm,false,0,true);
function gm(e:Event)
{
MovieClip(e.currentTarget.content).gotoAndStop("mg allery");
}
}
Help Please!! Does anyone know what I did incorrectly?
Thanks!
View Replies !
View Related
Cant Get Button To Work
Hey guys,
Sorry this is probably a really easy question for you guys but...
I'm simply trying to great a button which I can press so it will move me to a specific frame. Is there any actionscript I can copy paste? Also what do I do with the buttons properties?
View Replies !
View Related
Button Will Still Not Work
In my previous post I was using a button component to perform a calculation when clicked upon using.....on(click) {
with(_parent){ however I need to use a designed button and this has to perform a calculation and go to another frame....so when I tried this it will now not work.
Previously in the button component version I had the main actionscript in the first frame and the on (click) actionscript directly on the button component....BUT when I use a regular 4 state button with actionscript in the main script now this will not work.
BEFORE (which worked - actionscript on button component)
//Calculates total price.
on(click) {
with(_parent){
priceTotal_txt.text = Number (price1_txt.text) + Number (price2_txt.text) + Number (price3_txt.text);
}
}
SCRIPT WHICH WILL NOT WORK - DESIGNED BUTTON,ACTIONSCRIPT IN FRAME 1 :
//Calculates total price.
two_btn.onRelease = function() {
priceTotal_txt.text = Number (price1_txt.text) + Number (price2_txt.text) + Number (price3_txt.text);
};
Can anyone explain why this will not work?
thanks
E
ERROR IS :
**Error** Symbol=button, layer=Layer 1, frame=1:Line 2: Invalid mouse event specified.
on(click) {
**Error** Symbol=button, layer=Layer 1, frame=1:Line 3: Statement must appear within on handler
with(_parent){
**Error** Symbol=button, layer=Layer 1, frame=1:Line 6: Unexpected '}' encountered
}
Total ActionScript Errors: 3 Reported Errors: 3
View Replies !
View Related
Button Don't Work
Hello, I would be happy to receive some help. I don't understand why the very simple action of a "getURL" sometimes just don't work. I have now one that I work for hours now. The button work on the swf file (when I play the fla movie) but it doesn't work in Dreamweaver. In dreamweaver the "hand-icon" show there is a button but nothing happens. Appreciate some advice. Thank you very much.
View Replies !
View Related
Button Does Not Work
I copied this code from the last movie I did. It worked very well. This time it will not navigate anywhere. I have a bCakes button. Capitalization and spelling is the same. I have a cakes.swf. Is there something I am missing? Do you have any idea why the button will not navigate to cakes.swf? Thanks
Attach Code
else if ( bEvent.target == bCakes)
{
//handle the bCakes event
var cakesMovieLoader:Loader = new Loader();
addChild(cakesMovieLoader);
var gcUrl:URLRequest = new URLRequest("cakes.swf");
cakesMovieLoader.load(gcUrl);
cakesMovieLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,gc,false,0,true);
function gc(e:Event)
{
MovieClip(e.currentTarget.content).gotoAndStop("cgallery");
}
}
View Replies !
View Related
Why Won't This Button Work?
Ok, I know by the title of the post that it might seem like I'm a newbie to Flash but I'm not. But I'm really stumped as to why the button I've created for a new flash site that I'm working on does not work. Its the last hurdle to clear until I put it up on the web and see how it flies, but I can't for the life of me figure out why my Audio button does not work. It does not work on any of the scenes, and I don't know why. I've troubleshooted to the best of my ability and so I turn it over to the kind souls on this forum to to help me figure out why its not working. you'll notice on frame 124 of the Home scene, that I have a frame action to stip the movie - at this point all my buttons become active and all of them function the way they should work, except for the damn Audio button and I don't know why.
Here's the .fla file
http://www.realgone.org/weegs/working8.fla
I've posted on another forum but noone has been able to help, maybe there are a few kind (genius) souls out there who will help me get this figgered out.
thnx in advance
greg
View Replies !
View Related
Can This Work From One Button
I am trying to use a button on stage to load a swf and then on subsequent presses, advance to next frame.
The movie loads, but on subsequent presses, it either reloads the movie, or replays the 1st frame.
So I believe the 1st Two lines work, but the rest?
or shpuld I go about this a different way? Suggestions?
Attach Code
on (press) {
this._parent.picLoader.loadMovie("show_01.swf","pi cLoader");
if (this._parent.picLoader.show_01.swf._currentframe == this._parent.picLoader.show_01.swf._totalframes) {
this._parent.picLoader.show_01.swf.gotoAndStop(3);
} else {
this._parent.picLoader.show_01.swf.nextFrame();
}
}
View Replies !
View Related
From SWF To SWF - Button Won't Work
A button works perfectly in one SWF - it calls a movie clip on the _root path.
That same SWF is called into another SWF with the loadClip action and the button will no longer work.
What could be wrong? Any suggestions are helpful - I have been working on this all night to no avail.
View Replies !
View Related
Button Won't Work. Why?
On my main timeline I have a movie clip named INS_31. Inside the movie clip I have a button named Next. When Next is clicked I would like the main timeline to advance to the next frame. The code on the main timeline is as follows:
INS_31.Next.onRelease = function(){
gotoAndPlay(_currrentFrame+1);
}
Nothing happens.
If I take out the name of the button and just target the movie clip it works properly, however my button doesn't act like a button any longer. The entire movie clip is hot.
INS_31.onRelease = function(){
gotoAndPlay(_currrentFrame+1);
}
What am I doing wrong? How can I get the button to control the action?
View Replies !
View Related
Work Like A On/off Button
Hello
I have various buttons (maybe over 10) which all need to be in it's over state when clicked and in it's up state when clicked again.
What comes to mind is script that says on release = true and then a if statement that says if = true then make it = false this time. Although this could get very long and tedious doing it for over 10 buttons .... anyone know of a more proper way of doing it?
Sandman9
View Replies !
View Related
Why Doesn't My Button Work?
In a movieclip which is called box3, I put a button in it that I had made before. In the edit mode of MC box3 I went into the object actions for the button. I put in this:
on (release) {
tellTarget ("box3") {
gotoAndPlay (50);
}
}
I wanted the MC to jump to frame 50 when the button is pressed (released). But when I run the movie (I put the MC on the main scene first) I can't click the button. It doesn't even change, it's just there like any other object.
Please help!
Thanx...
/Peter
View Replies !
View Related
Back Button Won't Work
I created a test site just to learn Flash's actions. In the FLA I have "burned off" three swf files. One for the main and two for test links. In the main, I made two buttons that load each of the other two swf's in place of the main in the finished site. Again, I'm doing this to learn how to use actions to basically navigate a flash site. Here's what I want to do: On the main swf, I click the either button. When I do this the associated swf loads just fine into level 0, replacing the main. From there I have a 'back' button to return to the main. So here is the actionscripting I have for that and it doesn't work. The actionscipting seems straight forward and I don't know why it won't go back to the main.
FOR THE BACK BUTTON
on (release) {
gotoAndPlay ("main", 3);
}
FOR THE BUTTON ON MAIN THAT LOADS THE SWF WITH THE BACK BUTTON
on (release) {
loadMovieNum ("flashTestSite_firstLink.swf", 0);
}
I've also tried "previous scene" and the "with" statement to go back to the _parent to a certain frame, to no avail. I simply have run out of ideas! Any help would be appreciated, if you want the FLA of what I'm attempting, post an email address and I'll mail it to you. Thanks in advance for any help!
View Replies !
View Related
Making My Button Work?
In an earlier post I was trying to make my Tweens stop looping so I could add a button. I added a layer and went to my last frame, created a new key frame and then made an action to "stop". I then created a new keyframe on the layer of my tween, created a button, went into my button and added my "over", "down" & "hit" keyframes. But now when I test my movie, not only does it stop at the end of my tween my button doesn't show up. Why could this be??????
Thanks............
View Replies !
View Related
How Can I Make This Button Work?
hello i'm new using flash
i have a problem with a button and this is the problem:
in my movie i have 2 scenes but at the end of my first scene a set a script stopping everything but before that happends i activate a button with the action goto scene 2 frame 1, it works in the editing mode but once i try to publish it doesn't work in teh proyector,swf or whatever! the behavior of the button is not a button any more. i hope somebody can help me thanks!
View Replies !
View Related
MovieClip Work Like Button
Hello guys.
I've registered before(1 year ago),but now i decided to return,because i got back to Flash scene,heh.
I'm actually using FlashMX...lets see if anyone can help.
I have done some cool things on swish..and imported them inside movie clips on Flash...those movieclips,are my buttons...
can i make a movieclip symbol work like a button symbol?
i want to make something like "on press goto x frame" with an movieclip symbol
hope u compreend and answer my question
Thanks
View Replies !
View Related
My Button Doesn't Work
I have no idea what I did wrong. Can anybody help me?
I'm using Flash MX, and am working on a website to display a couple of my son's pictures.
I'm not familiar with Flash at all. I did an intro with Flash and at the end of the movie I wanted a button to appear on the screen. When the button is clicked I wanted it to take the viewer to a standard html page on my site (where the pictures are).
Here's my feeble attempt
http://www.hadleyandneil.com
Here's the .fla file
http://www.hadleyandneil.com/hsdnneil2002.fla
I have a seperate layer for the button. I selected the button (in the first frame that the button appears) and put this action script in (I think it's action script?):
on (release) {
getURL("http://www.hadleyandneil.com/stars", "_self" );
}
I would really appreciate any help, I'm totally baffled over here!
Thanks a million.
View Replies !
View Related
Button Events Don't Work
Hi,
I have made 3 movies.
The main movie, movie2 and movie3.
In movie3 I load my buttons dynamicaly.
I place this movie in movie2 in a container.
In my main movie I load movie2.
Now the problem I have is that the events are not called from my buttons.
I have a on (release) event where I open an url.
But it doesn't work as it should.
Instead it's removes my movie2 from the main movie.
There isn't even an unloadmovie or anything in the on(release) event.
The only thing I've placed in it is a trace to see if it works.
Please help.
THX
View Replies !
View Related
Button Has To Work According To Mouse_X
hi,
I have a mc with lots of frames.I control it with an invisible button(key press <space>).When we hit space mc goes to frame(a) in itself and stops.
I want to make the button work according to mouse's X position.
İf mouse_X<120 then button must take mc to frame(b)
İf mouse_X>120 then button must take mc to frame(c) etc.
I am sure it is possible but don't have any idea HOw?
Thanks for your time
View Replies !
View Related
Button Will Not Work In Movie
I did a button according to a tutorial...
It works when I activate "simple buttons"
When I publish it does not work at all, it does not recognize that it is a button (ie rollover and click, etc does not work).
Any ideas?
Thank you.
Munkie!
[Edited by munkie on 09-29-2002 at 01:02 PM]
View Replies !
View Related
Button Wont Work
ok i hav a button in a scene named Battle in a MC named Menu, "Battle.Menu" and i assigned this action
on (release) {
gotoAndPlay ("Battle",3)
}
when i hit the button it doesnt go to the 3rd frame? i think its sumthin wrong with the path, but im not sure how to change it!
View Replies !
View Related
Button Don't Work Properly
I have a button that works fine, except that:
My button opens a menu with several options, so far so good (actioScriprt for the button tells it to go to a frame label where this menu MC is found - there is a 'stop' action on this frame).
Problem:
In the movie, click on the button, the menu opens and stays there waiting for the user to click on another button in the menu - that's great -
But:
if you click on the main button again (the one that opened the menu) rather than doing nothing (because the menu is already open) it takes you to another place in the main timeline (in this case the next frame) - how do I stop this happening. I repeat I do have a 'stop' action in the right place?
View Replies !
View Related
|