Help with flash buttons actionscript 2.0
Help please, I am not sure what I am doing wrong here. Each button has this script
on (release) {
getURL("http://www.mysite.com/index.html");
Once they work I want to import them to dreamweaver.
Do you happen to have any kind of rollover code tied to anything that is containing the buttons? I don't see the sense in having Flash buttons unless you have some form of animation associated with them, possibly triggered by rollover interactions. If so, the rollover may be blocking access to the on(release) interaction.
Similar Messages
-
Need some help with Flash + Captivate (ActionScript in Flash)
I have what I think is a fairly simple question.... I have an SWF File embedded in a Captivate 4 Presentation. The SWF requires the user to click on a variety of items, after they have gone through all the required items a "FINISH" button appears... I want the finish button to "close" the SWF file.
I'll add this info to in case it helps with the "right" answer....
The reason I am doing this is because Captivate automatically rolls from one "slide" to the next. The only way to stop this is to add a "pause" button to the slide, I want the user to have to finish the SWF before they can see the "next" button in the captivate file...So I was thinking, put the "swf" over the "next" button... then have the "complete" button close the swf revealing the covered "next" button in captivate....
The short version of what I need is information on closing an SWF file via a button click. Is there a "swf.visible=false" or anything like that?Need some help with putting a folder in users directoryI recomend using System.getProperty( "user.home" ) not a hard-coded value.
This will use the users home folder ( C:\My Documents ) on Win9X (I guess), C:\Documents and Settings\<current user> on Win2K +, and ~ on Unix-a-likes. -
Help with flash buttons please
hi i wondered if anyone could take a look at this for me
please?
http://beechhouse.yorkwebsites.co.uk
why is it in explorer you have to click the button to
activate it and then click it again to go to the page? and how can
i fix this please?It's IE-only behaviour as a result of changes Microsoft made
earlier this
year to their browser, regarding how Active Content (Flash,
Quicktime etc)
is handled, after losing a high profile court case.
http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes-and-the-flash-plugin/
Background:
http://en.wikipedia.org/wiki/Eolas
See also
http://www.adobe.com/devnet/activecontent/
If you're running Dreamweaver 8.0.2, the fix is already built
into DW's
interface.
If not, try
http://blog.deconcept.com/swfobject/
Using Flash buttons for navigation can negatively affect your
site's
usability - you know that, right?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"BumStuckOut" <[email protected]> wrote in
message
news:ejshnv$dpm$[email protected]..
> hi i wondered if anyone could take a look at this for me
please?
>
>
http://beechhouse.yorkwebsites.co.uk
>
> why is it in explorer you have to click the button to
activate it and then
> click it again to go to the page? and how can i fix this
please?
> -
Dear Readers
I am puzzled! lol. I was looking at the Radio 1 homepage
today (www.bbc.co.uk/radio1)
Click Here for Link
On the homepage there is a Flash menu with a series of
buttons titled "300 exclusive" and "Groove-y Mix" etc etc.
These buttons finish their loop cycle even though the
mous-out event has occurred.
Does anyone know hoe to make such buttons? If so it would be
greatly helpful.
Well...I hope I haven't lost too many people.
Yours Sincerely
www.skytemedia.com
Send Me An E-MailOK.... make a movie clip. Call it Button or something.
drag it onto your main movie. Select it and add this action:
on (rollOver) {
this.gotoAndPlay("up");
on (rollOut) {
this.gotoAndPlay("down");
on (release) {
getURL("website.html", "_self");
Now, double-click on the movie clip to open it.
Make three layers ("shape", "actions" and "labels" )
Draw a colored box on the "shape" layer (this will be your
button)
on frame 1 put a Stop action on the "actions" layer
on frame 5 put a Frame Label called "up" (no quotation marks)
on the "labels" layer
on Frame 15 put a Stop Action on the "actions" layer
on frame 20 put a Frame Label called "down" on the "labels"
layer
on frame 30 put a Stop action on the "actions" layer
Now select your "shape" layer, click on frame 5 and hit F6,
click on frame 15 and hit F6, click on frame 20 and hit F6, click
on frame 30 and hit F6.
OK...now you need to make some sort of animation happen with
your boxes. From frame 5 to frame 15. and the reverse, from frame
20 to frame 30.
So when the user rolls over the movie clip (that you called
"button"), THIS (the movie clip) will gotoAndPlay the frame called
"up"
and then it will stop playing at Frame 15 where you put a
Stop Action. When the cursor rolls off, THIS will gotoAndPlay
"down" ...
get it? If you don't understand what Frame Labels and Actions
are, then you first need to do the Flash Tutorial. -
Need help with Flash CS4 buttons/can't get buttons to control anything
Hello,
I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.Thank you.
Regards,
Michael J. Sheehan allelois
Date: Mon, 17 Aug 2009 18:48:09 -0600
From: [email protected]
To: [email protected]
Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
Hi there
I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
Cheers... Rick
> -
Can anyone help me with flash buttons? I am trying to build
my first website, and my five flash buttons (inside a 5 col. table)
for page navigation work fine in testing all 5 web pages with
mozilla firefox, and they look the same on the index page when
testing with IE-7. However when I begin navigating to other pages
in IE-7, the flash buttons disappear, and the 5 cols in the table
where each flash button was placed now are not equal sizes anymore
like they are on the index page. In my files area on the right, I
notice 3 out of the five buttons I created have about 15 to 20
"generations" shown there, with numbers 1 through 15 or even more
to qualify them tacked on to the end of the names. Where do these
come from, and why are 2 out of the five only have 1 "generation"
each? I never expected this, and I think it has something to do
with the problem, but maybe not. Please help me if you can!If you want to use Flash for navigation, consider this -
1. Some people don't have Flash installed - what do they do?
2. Search engines don't parse Flash links - your site will
not be spidered
3. Screen assistive devices don't parse Flash links - what
will those users
do?
4. DW cannot maintain links within a Flash movie, so if you
move or rename
a linked file, your navigation will break - what will you do?
It's usually a very bad idea for these reasons...
Your problem is caused by navigating away from the previewed
page. In
general, this is not a good thing to do, since root relative
links will not
work as expected when you do that (locally).
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"dreamnovice" <[email protected]> wrote in
message
news:[email protected]...
> Can anyone help me with flash buttons? I am trying to
build my first
> website,
> and my five flash buttons (inside a 5 col. table) for
page navigation work
> fine
> in testing all 5 web pages with mozilla firefox, and
they look the same on
> the
> index page when testing with IE-7. However when I begin
navigating to
> other
> pages in IE-7, the flash buttons disappear, and the 5
cols in the table
> where
> each flash button was placed now are not equal sizes
anymore like they are
> on
> the index page. In my files area on the right, I notice
3 out of the five
> buttons I created have about 15 to 20 "generations"
shown there, with
> numbers 1
> through 15 or even more to qualify them tacked on to the
end of the names.
> Where do these come from, and why are 2 out of the five
only have 1
> "generation" each? I never expected this, and I think it
has something to
> do
> with the problem, but maybe not. Please help me if you
can!
> -
Hey everyone I am haveing problems with Flash Button
Hello everyone I am new here so I am haveing problems with
Flash Button because of the html address it wont go to the address
that i put into it it keep going to
http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesigner.net
why does it do that? this is a link problem issue with flash
button in macromedia dreamweaver 8?
someone please help me?
Jeremy>
http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesig
> ne
> r.net
In the dialog box for the Flash Button, in the link box, put
the full
absolute path if an external page. Including the
http:// part.
http://www.example.com/page.html
for pages inside your site- use the browse to file icon, and
use a relative
path.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Help with linking buttons to Scenes
Hey,
Rookie to Flash and AS3. Just needed some help with my buttons. Im making a flash program about pancakes (random I know). I have a "Mainmenu" scene and then a "Recipe" scene. I have a button on my mainmenu which takes me to the recipe page when I click it, the code behind the button is
"stop();btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
Then when I arrive at my recipe page I have a button which will take me back to my MainMenu, the code behind that button is:
"stop();btn_home.addEventListener(MouseEvent.MOUSE_DOWN, mouse5DownHandler);function mouse5DownHandler(event:MouseEvent):void {
gotoAndPlay(1, "MainMenu");
So I run my program and the first button works and takes me to recipe page but the button to get to the main menu does nothing, click it and no response or anything
Please helpFirst, hopefully having all your code mushed onto the same line is a copy/paste error, otherwise it should look like...
stop();
btn_recipe.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "Recipe");
If the intention is to click the buttons to make them work, then you should use CLICK instead of MOUSE_DOWN. MOUSE_DOWN can be a persistent state whereas CLICK involves releasing it afterwards.
As for the code to get you back home, where is it located on the timeline? Are you getting any error messages when you try to use it?
One thing you should learn to use is the trace() function. It is useful for troubleshooting. You can use it now to see if your second button is talking to the function at all...
stop();
btn_home.addEventListener(MouseEvent.CLICK, mouse5DownHandler);
function mouse5DownHandler(event:MouseEvent):void {
trace("the button works okay");
gotoAndPlay(1, "MainMenu");
If you don't get that message in the output panel, you'll know the button is not properly coded to work.
Most folks here will recommend you get away from using scenes in a design that includes navigation--they have a history of being problematic. Instead of using scenes, divide the one main timeline up into sections or use movieclips for the sections and manage their visibility... or do a bit of both. -
Hello,
I need help with a button. I created a button and set it up
so that when you click and hold it, the button becomes lighter in
color (I used Alpha). I want the button to stay this light color
after i release the click. Right now it goes back to the normal
color when I release the click. Can somone help we this?
Thanks!rpofclt wrote:
> Hello,
>
> I need help with a button. I created a button and set it
up so that when you
> click and hold it, the button becomes lighter in color
(I used Alpha). I want
> the button to stay this light color after i release the
click. Right now it
> goes back to the normal color when I release the click.
Can somone help we
> this?
you can't use the button itself if you want to maintain the
DOWN state after
release as button automatically resets itself once the mouse
lives the HIT zone.
Use movie clip instead and on press simply send it to a frame
where there
is DOWN state like image.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Still need help with flash player download
I'm still having a problem with the flash player, please read my last post below:
"I've tried everything here & still can't download the flash player. Anytime I try to download it asks me to install ADM add-on and then when I click on that, my computer freezes. How do I enable this add-on without my computer freezing? Can anyone help pls?"Thanks a lot for your help, it is truly appreciated.
Date: Thu, 29 Oct 2009 18:52:38 -0600
From: [email protected]
To: [email protected]
Subject: Still need help with flash player download
You can set Flash Player to check for updates on the Global Settings Manager panel:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.htm l
> -
Help with flash video buffering
I need help with flash video buffering. I've created a
buffering graphic to show up when the clip is loading. The problem
that I'm having is that when the video finishs playing, the buffer
is empty and the graphic pops back on. The following is the code
that I'm using to call and buffer the video. Any help would be
great!
stop();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(10);
ns.onStatus = function(info){
if(info.code == "NetStream.Buffer.Full"){
bufferClip._visible = false;
if(info.code == "NetStream.Buffer.Empty"){
bufferClip._visible = true;
if (info.code == "NetStream.Stop") {
bufferClip._visible = false;
theVideo.attachVideo (ns);
ns.play("my_clip.flv");
rewindButton.onRelease= function(){
ns.seek(0);
playButton.onRelease= function(){
ns.pause();
}Again thank you for your help in advance...
I put the script folder into the root. As far as the .flv
file it is showing up as being "put" to my web server. when i
checked the root folder it is there. again i am having the same
problem.. the local view works but when i check it on the web it
just shows that there should be a flash video there but it does not
show up.
i created a new root for this test page the new link is..
http://www.wfwa.org/TESTindexfolder/TESTindex.asp
here are the files that are showing up in it...
flashprojectwebvid.fla
flashprojectwebvid.html
flashprojectwebvid.swf
PBSpromo.flv
SteelExternalPlaySeekMute.swf
TESTindex.asp
and the Scripts folder
thanks again for any help.. -
Problem with Flash Buttons Help me
Sir
i design some Flash buttons but it is save as .swf extension
if i save as jpg or gif then animation not working as well as
effects.
sir
how can i call the flash buttons in java plz guide me
JButton mybutton=new JButton(how can i pass swf extension button);kglad
what I did was place the code with the trace evt into the action script under the label on the timeline I have for album1. With AS3 I guess that's the new way of doing it.
I then saved the file and output it for preview in flash as well as html, and I got no response on pressing the button apart from the normal animation and sound I have associated with my buttons. I also looked in the output window and no information came up, which in response to Ned's help, means my buttons are not connecting.
Damn, I have tried everything and retraced my steps from scratch, but I am missing something.
Nonetheless I also opened up dreamweaver cs4, and made a test HTML like you mentioned yesterday, and I inserted my flash file(banner) onto the webpage. Went to preview it, through dreamweaver cs4, but everything else but my buttons work. I have graphics, sound and animation but no damn links work.
Thanks for your help
Regards
Charlie -
Help with Flash AS 2.0 Buttons
Hi,
I really need some help with this file, I m fairly inexperience in action script and have great difficulty getting this to work.
what happens is when you click on the Performance button on the left, the Learn more buttons below the gloves on the perform frame of movie clip mButtons will not work. These buttons are movie clips on a separate frame of the same time line of the movie clip mButtons which contains the Lifestyle Learn more buttons on the life frame.
Ideally the buttons would have been in the rollover on the gloves, which are buttons rather than movie clips, but I was unable to get that to work either.
If you can help with the 2.0 code it might be most helpful as I am even less familiar with AS 3.0
Thanks for any help.
DaveYour perfomance buttons need to be on the first frame of your mButtons movie clip. I attached two different ways of doing this.
-
I am totally new with flash. I am using the following
tutorial which I believe I followed correctly.
http://www.flash-game-design.com/flash-tutorials/advWebsite-flash-tutorial.html
I have edited the site just a bit adding my own graphics and
colors. The problem is that when you first view the site all the
buttons stay in the up position. Once you click each one once, they
function properly. Here is the script that I have.
stop()
content.gotoAndStop("home")
current = menu.home_button
setMove = true;
yMove = -10
menu.home_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("home")
current = this
menu.league_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("league")
current = this
menu.photos_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("photos")
current = this
menu.downloads_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("downloads")
current = this
menu.forum_button.onPress = function(){
if(this != current){
current._y = 0
setMove = true
content.gotoAndStop("forum")
current = this
this.onEnterFrame = function(){
if(setMove){
if(yMove < current._y){
current._y --
}else{
setMove = false
Also here is a link to the actual site that I have published.
http://67.175.252.196/New%20Site/Test%20Website.html
Any help would be greatly appreciated.I just figured it out. The buttons just needed to be moved
down below the bar. It had nothing to do with the
actionscript. -
Basic help with Flash v10 (creating a simple calculator)
I have Adobe CS4 Pro with Flash v10. I'm trying to create a simple, basic calculator that adds 2 numbers. I followed the tutorial at http://layersmagazine.com/flash-design-calculator.html. At first, I was unable to assign variables to any objects, but got that cleared up by selecting ActionScript 2.0 (was set to 3.0). At this point, the calculator accepts the two numbers, but when I select the "add" button with the associated code as shown in the tutorial, nothing happens. Does anyone have a suggestion as to what I might be doing wrong? Thanks.
This is all the code there is:
on(release) {
total = Number(firstnumber)+Number(secondnumber);
There's really not an error--I just don't get any output. I've created two 'Input Text' boxes, and on the properties tab for each I have defined the "Variable:" field as either 'Number(firstnumber)' or 'Number(secondnumber)'. I've also created a 'Dynamic Text' box and defined the "Variable:" field as 'Number(total)'.
Note: the example I was following did not specify to include the 'Number()' function in the "Variable:" fields. However, when I don't, and I run 'Test Movie', the 3 boxes are automatically filled with "_level0.firstnumber", "_level0.secondnumber" and "_level0.total". When I type 2 numbers in to the 2 'Input Text' boxes, and then select my button that has the above code associated with it, I get "NaN" in the output ('Dynamic Text') box.
Thanks again for your help!
Maybe you are looking for
-
Creating a link to make a pdf download
Can anyone tell me how to make a link so that a pdf file will download? I currently have a button with a link to a pdf. I can get the pdf to open in a new window, but I really just want it to download automatically to the viewers' desktop, or at leas
-
ODBC configuration on Windows 7 Enterprise N
Dear Friends I will be deploying Windows 7 client Enterprise N across the company. I have to test ODBC connection on the machine with connection to an Access 2003 database or Access 2010 database (32-bit). I am not able to connect..Any idea... Regard
-
Can I buy iPhoto Books in China?
I am in Beijing and I would like to buy the iPhoto book I created. Is that possible?
-
Cracking strange sound when comming from sleep
When comming from a sleep (not always, but when beeing longer in sleep) I hear (next to the superdrive sound that is normal) a sort of cracking 'strange' sound out of my left/center area just around where the fan is. It's a sound like you plugin a ra
-
Unable to create a wireless network with my airport express. Please help!
I am trying to setup a wireless network with an airport express, and connect to it with my Macbook. I just bought both of these and haven't been able to get wireless to work. I initially plugged the ethernet cable from my cable modem into the airport