Linking flash buttons
I am new to this. I have followed several tutorials with no
luck. I am using action code 3. I want to link an invisible button
to an url. I placed the code in the layer with the button. The
following code I have used, but then follows the error message. I
can't figure it out. Thanks.
1180: Call to a possibly undefined method on.
1120: Access of undefined property release.
1180: Call to a possibly undefined method getURL.
How are you making the invisible button? I'm assuming it's
not a button component, but rather one you authored in Flash. Your
options then would be to use a simple button or a MovieClip as a
button.
In either case you are going to have to do this:
1. Give your button an instance name. For this example I'll
use my_btn
2. On a frame on the main timeline where your button is
created, add this:
import flash.events.Event
my_btn.addEventListener(Event.CLICK, handleClick)
function handleClick(e:Event):void
// code you want to execute once the button is clicked
getURL("
http://www.google.com");
That should do it.
Don't put code in the button, put it on the main timeline
(the best thing would be to use a document class or some other code
outside Flash, but that would take to long to explain and this way
will work).
Similar Messages
-
Linking flash buttons to website using div sections
Ok, I am a total Newbie at Flash and Dreamweaver and I am
having serious issues linking flash the flash buttons from my
navigation bar to the main frame on my webpage. I have the buttons
working, and they do link to a page, just they do not link to the
frame, instead they load the page as a full page itself.
I am using Dreamweaver and a website template I found online.
I believe the problem to why it is not working is because this
template doesn't seem to be using frames, and I can not find the
name of the frame to reference in the flash button actions. This
template is using a lot of <div> tags to separate the
sections in the index file.
Does anyone out there know how to link flash button actions
to open a page in a specific div section? Also, how can I make sure
that it is these div tags that are creating the frames, and how to
find out what each section is called? (I'm new to dreamweaver as
well)
This is my first post and last resort, forums don't fail me
now! Thanks to anyone out there who helps me.
Darianuse a javascript function to change the div content and the
flash externalinterface class to call the javascript
function. -
Can not link flash buttons to other pages
i cant get my flash buttons to link to any pages. i keep
getting warning messages. please can some one helpYou have to do this when you create the buttons in DW, or
when you make them
in Flash.
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...
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"TEEJAY123" <[email protected]> wrote in
message
news:fo4scm$1oa$[email protected]..
>i cant get my flash buttons to link to any pages. i keep
getting warning
>messages. please can some one help -
Can you link flash buttons to a embedded cue point
I have a video that I exported to flv with 10 embedded
navigation cue points. I also have 10 buttons in a flash file that
I would like to link to those cue points. I can't find any info on
how to do that. I see info on making a cue point make a event
happen, but nothing on linking a button to a cue point. Basically
I'm looking for the same interaction as a DVD were the user clicks
on a chapter they want and the video goes to it.There are players that will play a swf with volume mute stop start that sort of thing I downloaded one a couple of years ago I don't recall where I got it.
-
hi
I have a problem. I want to link my flash menu with typo3 and
I don't know what i should do.
Please help he, I'm very desperate.
Sincerely Miatypo3?
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Linking flash buttons? not working need help:)
Hey guys,
Got a site here - www.fatalwisdom.com - as you can see i want
the top swf file - with the links in there to work like eg. audio
button when clicked going to; audio.htm.
The file won't seem to work though - here is the file :
www.mastacraft.com/fatalwisdom/top1.fla .
Thanks to anyone who can help.
Regards, Patrickto use a button you need to use:
on (release) {
getURL(www.mastacraft.com/fatalwisdom/audio.htm);
so the getURL ws good but for a button you need to use the on
(release) {
} -
Flash button link will not work in CS4
Can anyone walk me through step by step to get a flash button link to work in CS4? I tries action scripts 2 and 3... I cut and pasted a bunch of code on line, watched tutorials, and no matter what i do, the link won't work in CS4. The button looks and works fine, but won't go to the web site ot web page after clicking on it.
At this point, I am so confused, i think it would be better if someone walked me through step by step. My email is [email protected] I can email the button is that would help. Thanks.
Steve.Hi,
This issue is fixed in Encore CS5.
Thanks,
Pankaj Gauba -
Flash menu in DW, how do I link the buttons?
Hi there!
I have a problem, i'm creating a site in dreamweaver with a
lot of flash objects. For examlpe I'm making a flash menu, wich is
the hole problem! I'm importing the flash file to the left frame in
dreamweaver and i'm trying to link the buttons (on the menu) to ex.
"home" or "about me", though it doesn't work! I can't link the
buttons because they're in this flash object. I know i'm doing it
wrong with trying to link the buttons on the flash object but I
don't know what else to do. And the thing is that i don't wanna use
the buttons already existing in DW, i've made my own ones. The
buttons are moving so there is one more problem, they're coming in
from the right side (in the left frame) and bounces once, and then
they stop. And that's when I wan't them clickable. So how do I make
the buttons linking to the pages??
Would really appreciate an awnser!
Thanks !Flash links are made in Flash, not DW.
I trust these links are not important, as search engines
can't see them
"Sabyonei" <[email protected]> wrote in
message
news:f1ktus$ct9$[email protected]..
> Hi there!
> I have a problem, i'm creating a site in dreamweaver
with a lot of flash
> objects. For examlpe I'm making a flash menu, wich is
the hole problem!
> I'm
> importing the flash file to the left frame in
dreamweaver and i'm trying
> to
> link the buttons (on the menu) to ex. "home" or "about
me", though it
> doesn't
> work! I can't link the buttons because they're in this
flash object. I
> know i'm
> doing it wrong with trying to link the buttons on the
flash object but I
> don't
> know what else to do. And the thing is that i don't
wanna use the buttons
> already existing in DW, i've made my own ones. The
buttons are moving so
> there
> is one more problem, they're coming in from the right
side (in the left
> frame)
> and bounces once, and then they stop. And that's when I
wan't them
> clickable.
> So how do I make the buttons linking to the pages??
> Would really appreciate an awnser!
>
> Thanks !
> -
i have a flash website template where i have done all the editing for my website but now on profile page i create a button and i want when i click on that button that button will take me on another page which is already in that template, but i can't create that. Please assit me asap.
I have create that button on "symbol 25 copy 2" and i want that button take me on "symbol 25 copy 4"What will people who do not have Flash installed do when they
come to your
page? How about the search engines?
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
==================
"Andy" <[email protected]> wrote in message
news:e50thk$hjd$[email protected]..
> In DW if I hit the "Play" button in Properties and then
click the Flash
> button, the link works but will not work in IE6!!!???
>
>
> "Andy" <[email protected]> wrote in message
> news:e50rde$fde$[email protected]..
>> Thanks for your reply, Alan.
>>
>> That is what I did put in the link box but for some
reason the link will
>> not work.
>> I put
http://www.netspace.net.au in
the link box, then saved my work and
>> viewed it in IE6, but it will not connect me to the
site when I click on
>> the button. If I create a hyperlink using a word, eg
Netspace, it works
>> OK.
>> I'm using Dreamweaver 8.
>>
>> Andy
>>
>> "Alan" <[email protected]>
wrote in message
>>
news:C0995965.28F809%[email protected]..
>>> In the Flash Button dialog box, in the url or
link box, type the full
>>> url
>>> address including the
http://
>>>
>>>
http://www.example.com
>>> instead of
>>> www.example.com
>>>
>>> You have to do this for all external links,
whether using flash buttons
>>> or
>>> regular links.
>>>
>>>
>>
>>
>
> -
Flash button link AS 3.0
I have a flash button link using actionscript 3.0. The animation is a fade in of a logo. The problem is that the button is only a link during the animation, ie. when the logo has fully faded in it stops becoming a link. Here is the actionscript code i am using, does anyone know where i am wrong? Thank you so much.
import flash.events.MouseEvent;
myButton.addEventListener(
MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event:MouseEvent):void {
var request:URLRequest = new URLRequest("http://flightswitch.com/home.html");
navigateToURL(request, "_self");Hi,
If the logo animation is completely fade then the link is not enabled?
Is it?
Disable the logo button after it fade.
Saransoft -
Flash link(button) problem via xml link (Flash popup error)
hi...
I'm getting a problem when i run a swf file from HTML/Outside(i mean to say from folder) and click on the button (button calling xml file which has link in it), i get a adobe flash popup error/msg. As shown below....
my codes are as follows
XML CODE:
<?xml version="1.0" encoding="utf-8"?>
<tree>
<link>
<port>http://www.marcomanie.com</port>
<news>http://www.asdfmanie.com</news>
<gallery>http://www.wesdmanie.com</gallery>
</link>
</tree>
My flash codes are as follows
LOADING AS
function loadXML(loaded) {
if (loaded) {
_root.port = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.news = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
_root.gallery = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
port.text = _root.port;
news.text = _root.news;
gallery.text = _root.gallery;
} else {
trace("file not loaded!");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("linker.xml");
BUTTON AS
on (release) {
getURL(_root.port, "_self");
Pls let me know what i have to do, to get away with that error
im very much new to these kind of errors, any fast help will be appreciated.
thank u
sunderfix your security settings to trust that swf:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l -
I hope someone can help me with this weird problem. I've been
using Flash for button links for a while but for some reason
lately, I've been having this strange problem. When you type in the
url for the site, the Flash buttons will work as far as the roll
overs and such, but the links do not work. Yet, if you click on an
html link, it will take you to that page and from then on, the
Flash buttons will work just fine. I can't understand why this
would be happening. Basically, the Flash links work fine unless you
type in the url. What's happening? Here is the link to what I'm
talking about. Try typing in the url first. You will see that the
Flash buttons don't take you to the linked webpage. Then try
clicking on an html link, and then a Flash link from there. Thanks
for the help!
http://www.surecarehomehealth.comOkay, I've discovered that this only seems to happen if you
type surecarehomehealth.com without the "
http://www.". But why wouldn't it work with
just typing "surecarehomehealth.com"? -
Frames and flash buttons forwarding links to targets
hi , i'm making a website with frames sow the flash
buttons are all set for 1 target .
butt if you test this when 1 button pressed it shows nicely
in frame butt on the second 1 it opens an new window with the
forwarded page from the button
how to fix ???
thank youXtremedesigner wrote:
> anyone ? how can i fix this thank you .
Best to post a link to the page that is not working for you.
Bonnie
in California
8 ^ ) -
I am also new to Flash. I made a Flash button (in Flash 8u)
that I put on my Dreamweaver created web page. I can export it to
Dreamweaver, but I am definitely missing something. It is probably
quite simple, but I can't get the button to link to another file in
my folder. The best I can do is to have the button get a url, but
it does that automatically upon opening the web page that has the
Flash button on it. I want the Flash button to go to the web page
(or file folder would be better) only when the button is clicked
on. I have tried various versions of the action script to get it to
work, but obviously I am not doing something correctly. I do not
understand writing code very well. Any help is very much
appreciated. Thanks.This method is the preferred method: Give your button an
instance name of
myButton. Then, add the following in the actions panel to the
main timeline
on frame one:
myButton.onRelease=function(){
getURL("yourURL");
Dan Mode
->Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
*Must Read*
http://www.smithmediafusion.com/blog
"lifelonglearner" <[email protected]> wrote
in message
news:eb6omn$oo0$[email protected]..
> How exactly to I add the code on the button? When I
think I am accessing
> the
> button symbol directly and try to do that in the action
panel, I get a
> message
> that says "current selection cannot have actions applied
to it." Thanks
> for
> your help.
> -
Linking a flash button to a html page
Hi, I was wondering if anyone knew the best way to link a
flash button to a page in DW?
ThanksPlace this actionscript into the hit area of your flash
button, then export the flash as a .swf and place onto the
dreamweaver page...
on(release){
getURL("YOUR_DESIRED_PAGE.html","_self");
This will open the new html page in the same window. Hope
that helps.
You can get a cheap but awesome tutorial on Flash buttons
here...
http://www.cartoonsmart.com/smooth_buttons.html
No, I don't know the guy and I don't get a commission. The
tutorials really helped me, that's all.
Maybe you are looking for
-
Adobe Form NOT getting displayed in WebDynpro Modal Window (Pop Up)
Hi, I am trying to display the table data in a Interactive Form. I have used TABLE UI element in Interactive Form. When the user clicks on a EXPORT button this form is displayed in a pop up window (Modal Window). This form is not getting displayed fo
-
All attachments sent from work now only appear as winmail.dat
This didn't happen in the past and now if I send any type of attachment from work (png or zip for instance), the attachment only appears as a winmail.dat file on both my MacBook Pro running 10.7.3 and my iPhone running iOS5.1 The important thing here
-
How to import a richly formatted html text to textflow with importer?
hey all i am trying this: open google docs, new document, and type in: hello world (world bolded) then download it as html(zipped) i unzip the html file, and save it to the assets folder in src folder of my Flex app i have a Spark:TextArea instance a
-
Wondering if I can use my white dual ABS as a router and an ABS? I now have a NDAS drive that will not operate with two things running DHCP (ABS and LINKSYS Router) So I would like to use my ABS as a router and airport. I thought at one time I read s
-
hi what is the difference between a driver program written for a script, and a normal report.