Flash CS3 Button question
Is there any way that I can set up buttons that can be controlled outside of flash? I'm developing a flash header for a friend's website. The header has buttons which link to pages on the site. My friend, who does not have flash, would like to be able to control the pages that the buttons direct to. Is there actionscript that could direct the button to get a url extension stored outside of the swf?
Now that I have my movieclip buttons all set, I have a problem.
This is setup like a "jeopardy looking" game of a series of buttons, where when one clicks on a button, the answer appears and remains on the screen. Now I have to add another button "for more info click here" on that answer screen (which is in the down state.)
When I add another frame label inside that mc button, and point the new button to "go to and stop" there, it doesn't. I see it appear for a second and then goes back to the "over" state.
I hope this makes sense. Thank you for any suggestions.
Similar Messages
-
Adobe Flash CS3 Rollover Question
This should be a relatively simple question. I am using Adobe
Flash CS3. I created an image in photoshop with layers and imported
it in to flash. Basically the image I have is a map with a bunch of
different states and my goal if when a user rolls over a state I
want to state to display a color. As many of you know states are
not in perfect rectangles, so when I do this click on a layer,
convert to a symbol, then change the rollover state to the way I
want it, the active rollover "hotspot" overlaps with other states
because the layer outline overlaps with the other layers. Therefore
I can not produce the ability to click or rollover neighboring
states. Basically I need to use some type of hotspot function or
tool to get rid of the default rectangle that revolves around the
state.
Please give me specific directions on how to change the layer
shape to conform more with the actual layer rather than a rectangle
surrounding the layer.
Please let me know if you have any questions,
NeilBookmark and download Flash from here, DO NOT trust any website telling you to install anything or follow their links.
Flash update
http://get.adobe.com/flashplayer/
Silverlight update
http://www.microsoft.com/silverlight/get-started/install/default.aspx
There is a FlashBack trojan making the rounds which tries to con people into installing it by looking like it's the real thing.
Make sure your Flash (and Silverlight) is current by running these checks
http://flashbuilder.eu/flash-player-version.html
https://www.mozilla.org/en-US/plugincheck/
You Mac likely will come across sites and content that won't play in Quicktime or in your web browser unless you install additonal codecs
You can get them here
Perian
http://perian.org/
VLC
http://www.videolan.org/vlc/download-macosx.html
Flip4Mac $29
http://www.telestream.net/flip4mac-wmv/overview.htm
How to install
When you click a link, a download of the installer file occurs to your Downloads Folder usually located next to your Trash Can or in your Users Folder.
Open the folder and double click (or File: Open) the download and icon can appear on your desktop which you open and inside is a installer package which you double click on to launch the installer.
OS X will check the download to make sure you intended to start it and that it's not malware it knows about.
Follow the installer instructions to install the software onto your computer and quit when finished.
Some require the browsers to be closed first, others require the machine to be restarted to enable the software.
Once the install is completed, remove any and all downloads from your Download folder, it's safer to keep this folder empty so you can keep track of what appears in there.
Drive by downloads of malware can occur and reside in the Downloads folder, mixing in with files residing there and await your click to install. -
Flash CS3: Buttons and Button issues
Hello,
I am currently using flash CS3, and going at my 1st attempt at making a flash website for my screenprinting business. I am using action script 2. I created the buttons (Button Symbols) in flash and am having difficulty with them. When I go to test the movie I get this error message "Mouse events are permitted only for button instances". Once again, I have created these buttons as button sumbols in flash and they are all not working properly as I have a error message for each button symbol. What might be going on, and what can I do to resolve it?
5 button instances
Location is scene 1
Sourse is On Press
This is how I am coding the buttons
on (press) {
gotoAndStop(1);
6 page flash siteWhat you should do is take a different approach and not use code that gets attached to objects--it's an old practice that unfortunately couldn't be dropped due to the need to support old designs.
Give each button on the stage a unqiue instance name and assign code for them using their names. So if you have a button that you assign the instance name "btn1", then you can assign its code in the timeline using...
btn1.onRelease = function(){ // recommend using onRelease over onPress
gotoAndStop(1); -
Ok, so i'm very new to Flash.
I have a web page & it has 9 buttons. I want the user to
be able to click on anyone of these buttons & be taken to that
page.
I don't know how to do this in CS3?
I have each button set up on it's own layer & set as a
symbol. That is it, now what?
If anyone can give me step-by-step instructions that would be
great!
I need this for a class project for tomorrow & I have
spent a week trying to make it work but nothing!
I'm very frustrated & confussed!
Please, help if you can.
thanks!!If you're doing this .fla in AS2.0 there are at least two
popular ways of doing this. (I'm not sure of the AS3.0 syntax.)
1) Click on a button, open the Actions panel and have
ScriptAssist open. In the toolbox on the left you should see a list
of functions, with headings Global Functions / Movie Clip Control.
See the word 'on'? The basic functions you want begin with
'on'...so click it, and you'll get a choice of onPress, onRelease,
etc. Pick what you want the button to do and you're done. You
should end up with code that looks something like this
on (release) {
gotoAndStop("Scene5", 16);
(My above example would take you to frame 16 in Scene 5. If
you have just one scene, leave out the Scene name.)
You have to do this to each button, individually.
2) If you'd rather stick all the code in one place, do it
this way instead. First make sure each button has an instance name.
In other words, select each button and in the Properties panel give
it a name like: startButton_btn, stopButton_btn, etc. Open a new
layer, call it Actions. Click on the first frame, open the Actions
panel, and enter code like this for each button instance name you
have:
startButton_btn.onRelease = function() {
play();
If you have nine buttons, you should have nine functions set
up like the above. Now save and test. If it doesn't work at first,
you probably just typed something wrong. -
Flash CS3 button not working inside HTML
or some reason, my SWF "About Us" button will link properly when activated through the SWF
itself, but inside the HTML file it does not seem to want to work.
My HTML is at:
http://www.sirbgb.com/sample/home.html
And my SWF is at:
http://www.sirbgb.com/sample/Home_F9.swf
The target is:
http://www.sirbgb.com/sample/about.html
Please note that none of the other buttons/links have code yet.
Here is my AS3 code for the button if it helps:
aboutus.addEventListener(MouseEvent.CLICK,jumpAbout);
function jumpAbout(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.sirbgb.com/sample/about.html"));
Can someone please point out what I am doing wrong, this is driving me crazy.
Thanks!Thanks for the advice, but I still have one more questions. I downloaded swfobject.js
and now it appears that my link is working! However, now my transparency is gone in
Firefox (but still works on IE and Safari). Can you please show me how to get it back?
Here is my new HTML code for the animation:
/// In <HEAD>
<script type="text/javascript" src="swfobject.js"></script>
/// In <BODY>
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="960" height="768">
<param name="movie" value="Home_F9.swf" />
<param name="wmode" value="transparent">
<param name="allowScriptAccess" value="always">
<param name="allowNetworking" value="all">
<object type="application/x-shockwave-flash" data="Home_F9.swf" width="960" height="768"></object>
</object>
I thought having <param name="wmode" value="transparent"> would give me the transparency I need,
but it appears that it does not cover Firefox.
Other than that, everything works great, thanks! -
Rookie CS3 Button Question,
Hello all,
I'm fairly new to encore and got a project dropped in my lap today a work. I'm sure this is simple ,but I don't know exactly what to search for. so here we go:
I have a complete .PSD file that the client wants to use as a menu. The buttons have three versions: 1. Original state, as you would see it on the screen. 2. Highlighted, what you would see if you move the cursor over the button and 3. Selected, the button will highlight when you push play/enter.
My question is how do I set these layers in the menu to react with the cursor properly?
I only have two buttons on the menu (play and Scene select) and three versions of each button (mentioned above) built in as layers in the PSD. and i have no idea how to set the links/hierarchy.
any help/guidance/tut links would be appreciated. they seemed to have misplaced the manuals, so I've gotta rule that out for now.....The beauty to using Stanley's suggestion of starting with one of the Templates, is that the Button Layer Sets and the necessary naming conventions will be there for you, already. Saves a lot of mistakes and extra work.
Make special note of the Button Layer and Layer Sets' naming. Those initial characters are VERY important, as the take a regular, Layered PSD and turn it into a functioning Menu in Encore.
I will Rename those Layers & Layer Sets, AFTER the space (leaving those necessary characters in place), to match up with my Timelines, or other Assets. Then, rather than trying to remember that "Button 1" one Scene Selection Menu 3 links to "Liz's Birthday," I will see the name, "Liz's Birthday."
I also name my Timelines, usually from" 01 Intro," to "0x Whatever," so I can easily see the order, and then use those names (after the space). I find that a little extra work initially, saves me a lot of extra work and confusion, later on.
Good luck,
Hunt
PS - I also highly recommend Jeff Bellune's book, The Focal Easy Guide to Adobe EncoreDVD 2.0, Focal Press. Though written for EncoreDVD 2.0, 100% of the book translates directly to CS3 & CS4. -
I know this is a very simple question, but i just dont know
what im doing wrong
Im trying to add a script on a movie clip, but everytime i
click on the movie clip then click on the actions i get a message
"Current selection cannot have actions applied to it"
I have done everything i can think of to add script to the
movie clip."old way of programming buttons will work!"
However, this is not the preferred way to add actions to
symbols.. You should get into the habit of doing it correctly. You
code will be more organized, and can make performance increase. If
you want to use AS2, I strongly suggest attaching your actions to
the frame. It is very simple, and a much better practice.. give
your symbol an instance name and attach this to a frame.
instancename.onRelease = function(){
trace("I've been clicked");
using on(release) and such, is outdated and not good practice
for you for the future. Why revert to the old bad habits, when you
can learn the new, and future of programming in AS -
Adobe Flash as3 Button question...
Hi,
I just wonder that how can i write this code that means if the "specific" button is clicked(i mean if the homebutton is clicked=true) like this..
and how can i refer a button that in main stage while in an another clip's substage..
ty allPlease don't crosspost in these forums. A response is offered in the AS3 forum.
-
PLEASE HELP ASAP! Button in Flash CS3 not working
I need help desperately. As soon as possible. I only know the
VERY basic's of flash, so I need it to be simple!! I am using Flash
CS3, but the only coding I know is from Flash 8.
1.I simply want to just be able to type out text that will be
my button. (I clearly know how to do this)
2.Convert that text to a button. (I know how to do this as
well)
3. Apply an action to the button. (I keep getting the error
"actions cannot be applied to the current selection")
4. Have that button go to a specific place in the timeline
that I have named (It has the red flag next so I know where to send
the button to)
5. This is the ONLY code I know is even close to what I need
to have it be at:
on (release) {
//Movieclip GotoAndStop Behavior
this.gotoAndStop("graphic");
//End Behavior
Is there a way to upload the flash files? If so I will
upload, because I know this sounds simple enough, but it wont work.
Thanks
AshleeYou are trying to use AS1 in your movie, and the movie's
Publish settings are set to use AS3. You can use your current code
by opening the Publish Settings, going to the Flash tab and then
selecting AS1-AS2 in the Actionscript option.
A better, long term solution, would be to read through the
tutorials that come with Flash CS3 to learn the proper coding
techniques to use with AS3. -
Flash CS3 - Odd button problem
Hello, Ive upgraded to Flash CS3 and I'm having a problem
with buttons.
When I open up my site, the old buttons work fine to navigate
the site and open up URL links. I have the actions on their own
layer instead of having an onRelease on each button.
However, when I create new buttons, they don't work.
I've even tried copying the existing working buttons,
applying the exact same actionscript to figure out what's going on,
but that also doesn't work, those buttons won't open up the URLs.
Am I perhaps using the wrong publish settings/flash player
choice?
ThanksThe answer is "skins" just search under "Creating skins for
some instances" in the Flash CS3 help file. -
Flash CS3, Having Problems Creating Button Animation
I am relatively new to Flash CS3, and don't use action script... I am creating an animation with sound using the button graphic option so it is a clickable button. I have the animation finished, and the sound embeded, and everything is working great, except when I publish it, I have to click and hold over the graphic for the animation to happen... If I click and release, the animation and sound clips stop... What am I doing wrong and how on Earth can I fix it??? Thank you in advance for any suggestions!!
Yup, that is how it works. You can't control which state a button is in. So when you click on it, it will go to the down state and when you let go it will go back to over (or up if you release outside).
Not sure exactly what the "fix" is. It depends upon what you are trying to do. Generally you would need to use MovieClips instead of buttons with event handlers to tell you "button" what to do. Very few people I know actually use buttons. -
How to make email link with a button with AC2 in flash cs3?
How to make email link with a button with AC2 in flash cs3?
I wrote this, but it does not work:
btn_emailinfo.on (release) {
getURL("mailto:"[email protected]");
}I am guessing you put that on a frame?
If so, the syntax is as follows:
btn_emailinfo.onRelease = function(){
getURL("mailto:[email protected]");
Though, if you are placing it directly on the button itself,
the syntax is:
on(release){
getURL("mailto:[email protected]");
} -
I know a user can revert to actionscript 2.0 in Flash CS3,
but Is there anyway to revert back to the old way of entering the
action script of a button by clicking on it, on the stage?Unfortunately you cannot add scripts to symbols in AS3. It
has always been considered bad practice to do this, even is
AS1/2. -
Flash Movie Buttons Do Not Work (DW & FL CS3)
Hello,
I'm fairly confident in DW but still getting to grips with
Flash, however...
I created a flash movie from a small .wmv sample clip went
through the DW import and convert steps, chose the standard buttons
and published it!
The video worked fine in the flash preview (and in the HTML
preview) and the video controls works just fine, I even have all
the files saved into a single folder.
I then embed then embedded the .swf file into my page on DW
and still got the grey box which shows there is a flash file I then
previewed it in a browser and the controls do not show, I even
uploaded it to my server to try it live on the net and still the
same problem.
I'm much more of a designer than a coder and I looked over
the coding and it 'appeared' to be fine.
What simple idiotic thing am I not doing...?
I'm using Dreamweaver & Flash CS3
Many thanks, Jack :)Actually, I got it working now...
It seems that I have to have all the files in the same folder
as the page it displays on!
Historically I would dump a standard flash clip (not a
converted movie with buttons) into the /images folder.
I tested this intitally in a /video folder (just to keep all
the files in one place) which would display the clip but not the
buttons but as soon as I moved the files in the same directory as
the page itself (which is the main index.html) it worked fine!
So if anyone does read this is there a reason for that as I
would like to keep everything in separate folders!
Cheers, J -
Why can't a button have 'actions applied to it' in Flash CS3?
Why can't a button have 'actions applied to it' in Flash CS3?
I'm used to working with buttons in Flash MX and Flash 8 but
after creating a button in Flash CS3, I'm getting text that reads
'Current Selection Cannot Have Actions Applied To It' and so the
actions menus are greyed out.
What's the problem?There is nothing stopping you from producing files in the old
ways. Go to the publish settings and select to publish as AS2. You
can then use the techniques you are familiar with.
However as dzedward points out, Actionscript has come a long
way. The technique of putting the code directly on instances really
went out with Flash MX in 2001 and for a long time now that wasn't
the best way to do it. See this article by the very excellent David
Stiller about it:
http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent
So even if you aren't ready to take the plunge into AS3, I
would recommend learning this style for all your AS2/1
needs.
Maybe you are looking for
-
Setting different pages widths in different sections - Pages 5.2
In Pages 5.2, how does one set different page widths (margins) in different sections?
-
Multiple iMac users and iTunes
I have setup our iMac with multiple users. I migrated all our digital music to one user and found all the cover art, etc to make it work well. Now I want to allow all the other users to access that music library. I have tried everything from adding t
-
Hello, Rather a question then а problem. When agent try to logon he gets this message: An extension on the agent phone is shared with one or more other devices. This configuration is not supported Which is normal if the line is shared, but the CUCM d
-
How to display paragraph marks in a JEditorPane?
Hi guys I'm looking for a way to to display contol chars such as paragraph marks or witespaces in a JEditorPane. I'm thinking about the way word processing software does it. You know, these inverted "P"s or dots for whitespaces. I didn't stumble acro
-
Inactive sessions increasing in database
Hi Recently i migrated Oracle9i database to oracle10g database 64 bit on windows 2008 server. After Migration.Inactive sessions are not automatically flushing from database,and these inactive sessions are reaching maximum sessions limits that leads t