Nov 8, 2009
Pages: 1, 2

Giving A Flash Button A Link - i get errors

free web hosting

Read Latest Entries..: (Post #15) by iGuest on Oct 23 2009, 11:22 AM.
Linking buttons to external file in flash Giving A Flash Button A Link Hi, I’m new in flash. I linked a button to a Word document from a folder. The folder is called “portfolioimages” located in drive C and the file name is “teaching and learning materials2”. The button’s instance name is “challenge” This is the code I used and it worked perfectly well. challenge.OnRelease = function(){ GetURL("C:\ portfolioimages\ teaching and learning materials2.Doc",self); } The problem now i...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > The Internet > Web Design

Giving A Flash Button A Link - i get errors

crazymind21
oke well i made my button and i addet the actionscript to give the button an url,see the screenshot below


now for some reason it gives me errors,and i don't know what i did wrong to be honest,so can some one help me out with this

p.s i do use flash cs3 so i dunno maybe its another way to put an url on ur button with this version cause with flash pro8 and mx i never had a problem with this

Comment/Reply (w/o sign-up)

puck
on (release) {
getURL("http://trythis.com", "_blank");
}





i hope this helps, if it wont just holler wink.gif

Comment/Reply (w/o sign-up)

crazymind21
well puck ty for even bothering posting something, but there is a screenshot on my post and u obviously didn't look at it,!!!!

but don't be bothered i figured it out myself

Comment/Reply (w/o sign-up)

alex7h3pr0gr4m3r
In the future it would be nice if you posted the fix on trap17 but since I'm so uber pro at flash I'll tell everybody for you. The problem was that you were putting an on event in a frame. Any time you use on(etc...), it needs to be in the actions of that symbol itself. If you just put it in the frame, flash has no idea what the user is supposed to click on for the event to happen.

Comment/Reply (w/o sign-up)

iGuest-Hector
Replying to puck
Thanks... That worked just great!

-reply by Hector

Comment/Reply (w/o sign-up)

(G)ambiga
how to link a flash button to a Dreamviewer frames
Giving A Flash Button A Link

Hi,

I have designed a web page using Dreamviewer8.Which contains 3 frames namely

1.Left frame
2.Middle frame
3.Right frame

Middle frame - flash8 swf file has been imported(which has 8 buttons with the link to a left frame)

When I click the buttons in the flash file,the content of the left frame should change.

I.E., differnt html file will load in the left frame according to the user clicks the btns in the middle frame..

I wrote the code like this in my flash file button,

On(release)

{

GetURL(Lungs.Html","left frame")

}


It works well in Mossila fire fox..But when I run in Internet Explorer I'm getting new window.I.E,. Html file is not loaded in the same page frame..

It opens a page in a new window..I need a page to open a same window left side frame.. Pls help me what's the problem..Why IE opens a page in a new window..

I tried all the possiblities like
_parent,_top,_self ,GET,POST method etc
<param name="allowScriptAccess" value="always" />

Nothing gave me a solution..


-reply by ambiga

 

 

 


Comment/Reply (w/o sign-up)

(G)Ambiga.S
How to give a link from flash button to a frame which is designed in Dreamviewer
Giving A Flash Button A Link

Hi,

I have designed a web page using Dreamviewer8.Which contains 3 frames namely

1.Left frame
2.Middle frame
3.Right frame

Middle frame - flash8 swf file has been imported(which has 8 buttons with the link to a left frame)

When I click the buttons in the flash file,the content of the left frame should change.

I.E., differnt html file will load in the left frame according to the user clicks the btns in the middle frame..

I wrote the code like this in my flash file button,

On(release)
{
GetURL("Lungs.Html","left frame")
}

It works well in Mossila fire fox..But when I run in Internet Explorer I'm getting new window.I.E,. Html file is not loaded in the same page frame..
It opens a page in a new window..I need a page to open a same window left side frame.. Pls help me what's the problem..Why IE opens a page in a new window..

I tried all the possiblities like
_parent,_top,_self ,GET,POST method , etc.,

Nothing gave me a solution..

Comment/Reply (w/o sign-up)

(G)Siddwa
Swf file in new flash window
Giving A Flash Button A Link

Basically I want to open a SWF file to a button but in a completely new Window however I’m not talking web related I.E. Not linking to a web Page
Like...

On (release) {
GetUrl("www.Blah.Com")

}

Whateva it is...Don’t want that... I want it so it simply opens a Completely new window within flash which I can close... The reason for This is I have a SWF file which is protected and I cant create a back Button within it... So I need it to open a completely new window so I Can get back to my main page...


All I seem to find are examples like the one above

Any ideas? Thanks

 

-reply by Siddwa
Keywords: actionscript for flash buttons to open swf files

Comment/Reply (w/o sign-up)

(G)Nichole
flash button link to email?
Giving A Flash Button A Link

I've linked a button in CS4/actionScript 3.0 to my email. Everytime it opens, it also opens a blank browser page. How can I correct this? Below is the code I'm using.

button_btn.AddEventListener(MouseEvent.CLICK, buttonClickHandler);function buttonClickHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("mailto:usdprintshop@gmail.Com"));
    trace("I'm clicked");
}

-reply by Nichole

 


Comment/Reply (w/o sign-up)

(G)Rachel
Linking Flash button to Dreamweaver page
Giving A Flash Button A Link

Okay I'm making a website for my class and I'm having some trouble I want to make my button in Flash CS3 open up a DreamWeaver page I did get it to open up, but it does it automatically, where I need it to open up when you push the button. Here's the code I'm using right now {getUrl ("file_name.Html");} I've also tried this one but I keep getting errors Button_name.AddEventListener(MouseEvent.CLICK,clickHandler);function clickHandler(event:MouseEvent);void{navigatetoURL(newURLRequest("file_name.Html"));} Any help would be much appreciated

-reply by Rachel


Comment/Reply (w/o sign-up)

Latest Entries

iGuest
Linking buttons to external file in flash
Giving A Flash Button A Link

Hi,
I’m new in flash. I linked a button to a Word document from a folder. The folder is called “portfolioimages” located in drive C and the file name is “teaching and learning materials2”. The button’s instance name is “challenge”

This is the code I used and it worked perfectly well.

challenge.OnRelease = function(){
GetURL("C:\ portfolioimages\ teaching and learning materials2.Doc",self);
}

The problem now is after I have copied the folder and the project onto a CD the link did not work again.
Can anyone help me use a code that will allow the link to work when copied onto a CD?

Thank you.
Daniel Konin

-question by Daniel Konin

Comment/Reply (w/o sign-up)

iGuest
Linking buttons to external file in flash
Giving A Flash Button A Link

Hi, I’m new in flash. I linked a button to a Word document from a folder. The folder is called “portfolioimages” located in drive C and the file name is “teaching and learning materials2”. The button’s instance name is “challenge” This is the code I used and it worked perfectly well. Challenge.OnRelease = function(){ GetURL("C:\ portfolioimages\ teaching and learning materials2.Doc",self); } The problem now is after I have copied the folder and the project onto a CD the link did not work again. Can anyone help me use a code that will allow the link to work when copied onto a CD? Thank you. Daniel Konin -question by Daniel Konin

Comment/Reply (w/o sign-up)

iGuest
multiple buttons and URLs in CS4
Giving A Flash Button A Link

Hello...

in CS4 I got one of the 5 buttons I've created and animated to work using action script:

 

bandpage.AddEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
Function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.Lc_band.Html"));
}

works great...But when I try to duplicate that code and change the instance name to the next button...And change the URL I want to navigate to, I get an error and neither of the buttons work...

So the question...How do I assign a unique URL to each of my 5 buttons? Very perplexed!! Any help would be hugely appreciated!

Thanks!

Steven

-reply by Steven


Comment/Reply (w/o sign-up)

iGuest

I used the code to link my flash buttons, it works great on my computer that I'm working on, but when I tried it on another computer the links don't work, wonder why that could be? 

-reply by Bryant

Comment/Reply (w/o sign-up)

iGuest
a flash button link to a swf file.
Giving A Flash Button A Link

can I have the code for a flash button link to a swf file.

I got this code but there is an error. This the code tat I use :

myBtn6.OnRelease.Function()

{
      Loader.LoadMovie("Quiz.Swf",1);
}

PLS HELP!! thank you veri much...:)

-reply by wenzi

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : giving, flash, button, link, errors

  1. Displaying Html In Flash
    Using ActionScript (9)
  2. Help Me Flash My Website.
    web designing (7)
    Hey...guys ...I have a website ...which is sort of a personal website.. But now I want to change it
    to a blog site for my college... I want the site to be cool...and awesome Its an engineering
    college....so I want the site to look...techie...sci-fi...you know what I mean... I know that I can
    make it look that way if I use..flash ... I want the site to look just a little bit like the
    www.2advanced.com...u will what I mean if u visit that site.. I have no experience in flash so
    what I want is -how to include flash in my website -what softwares do i need -where can i g....
  3. How To Add The Flash In Our Website ?
    Animated image in website make the site atractive, but take more time (4)
    Animation in this world: We see in most of the website that company icon, logos, memorandom,
    Advertisement, smily,even todat Button etc. in the website are animated in a sequencial manner so
    any body who see this get impressed, even so many time i also get impressed and want to give thanks
    that one who creates this logic a fantastic idea, adobe website we read some articles, i want a
    proper process or command from starting to end till image(how many types of image) animated in my
    website. what software, hardware, required to do complete this task. any idea, tutorial, not....
  4. Flash Navbar: Populate From Center
    Looking for advice or a tutorial (0)
    I'm working with Flash CS3, ActionScript 3, and items in an XML document. I'm looking for
    advice or a tutorial on making a navigation bar that loads items dynamically and populates from the
    center of the bar rather than the left side. I know there'll be some coordinate math to be done,
    but I'm unsure where to begin. Can you suggest a site like gotoandlearn, or is there something
    already there that I'm missing? Thanks in advance.....
  5. Transfering A Joomla Site
    How do I make sure I don't get errors? (0)
    I was designing my Joomla powered site on a laptop and the XAMPP folder was on drive D. I zipped
    this folder and stored it somewhere before unistalling XAMPP and deleting everything. I installed
    Joomla on another machine but this time XAMPP is in C:\ . After replacing the contents of the
    \htdocs\ with the saved ones I can't access any page. All I'm getting now is: QUOTE
    Warning : require_once(D:/xampp/htdocs/site/includes/joomla.php) : failed to open stream: No such
    file or directory in C:\xampp\htdocs\site\administrator\index2.php on line 31 Fat....
  6. Flash And Transparency
    (7)
    Hi folks. I want to know if its possible to modify the transparency of an image in flash to give a
    gradual transparent gradient? EG like the T17 banner where the text "Trap17" reflects. I know i
    can do this in the GIMP but i need the background of the image/text to be transparent, and GIF is
    the onyl format i can do that reliably and of course GIF is indexed and so i cant have a gradual
    fade effect. Im really stuck on this one and im no Flash expert so any ideas? Ive attached a
    screenie. Thats the effect i want (the black background is there so the effect is easy....
  7. Destination Address For "submit" Button
    Adding a destination email address to a "Submit" button (6)
    I discovered this site while searching for an answer on what HTML code to use to print a web page.
    "Skymonkey" provided the answer to a similar question posed back in 2005. I now have another
    question about submitting a web page with fill in blanks. Is there an easy HTML code that can
    include a destination address to a "Submit" button without having to use Javascript? I have created
    a form with fill in blanks and now want to have people simply hit the Submit button to send their
    information to a particular email address. Thanks for any help. Tom T.....
  8. Flash Header Edit?
    flash header edit (2)
    Can someone help me edit a flash header from a template. I can figure out MX 2004. I am a novice web
    designer at best and need some help editing this header. Thanks so much ....
  9. Need Help With My Database [resolved]
    retrive data as a link (6)
    This is the situation: I have a database where you can add bands ( theire albums, genre other
    info) For the album part they can add for each album the songs. So what do i want: When i show
    the results there only shoul display the bandname which should be a link to the more detailed info
    like albums biography etc. How do I do that. Is there a name for this and are there any
    tutorials. thx in advance....
  10. Cms For Video, Embedding Flash
    (4)
    Hello, I was wondering if anyone knew of a good open source CMS that allows dynamically embedding
    flash videos such as those from youtube (needs to be able to embed flash with parameters), and also
    allows uploading any type of file to the main server. Thanks! =)....
  11. Dreamweaver Cs3: How To Link Content To Layers/apdivs
    (7)
    Hi all! I've been searching the internet like crazy but just can't find any answers to my
    problem. I want to make it so that my navigation buttons links content to be loaded inside a
    smaller layer/apDiv or perhaps something i've yet to discover. I just can't for my life
    understand how to do this nor what tools and options to use. I am using Dreamweaver CS3 in design
    mode and have no clue how to hard code in html, CSS etc.. Here's a picture of what i want to
    do. I really hope someone can help me or perhaps atleast point me in the right direction. ....
  12. Scroll And Pan The Screen Via Mouse In Flash
    does anyone know how to pan across the screen using the mouse in flash (2)
    Hi Need help for a project , hope u guys could help out and teach me a little something. I saw some
    flash that if you click on a icon or if u point ur mouse to the left of the screen it will keep
    going left, and if right it'll keep scrolling right, as if ur checking out a room Or something
    like this website.. www.mcdonalds.com.au , and choose broadband if you see on that site, when user
    clicks on the icon to the right. the rest of the icons would kinda shift.. does anyone know how to
    do that or know if there is anywhere out there a tutorial to do that? if u do.. it&....
  13. Flash Media Into Html/css Website
    does anyone know how to import a flash into a webpage with transparenc (3)
    Hi I need some help , Im designing this website for school studies However, I made a flash drop down
    menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
    For example my flash is width= 800, and height = 200 but my div box on my html page for my
    navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
    animations i want to insert it into my navigation div box but i want to set the flash background to
    transparent so that when the drop down menu comes down it overlaps the text or whateva....
  14. Flash Newbie Question
    question (6)
    hello i'm new to flash. i have a .swf movie which i decompiled with Sothink SWF Decompiler in
    .fla and I also exported the resources. so far so good, i entered the resources directory,i changed
    the names and texts with my own and now I am wondering how do i rebuild the whole "resources"
    directory as a .swf ? can someone help ? thanks.....
  15. I Need Some Help With Flash And Div Overlay
    using wmode in IE problems (6)
    Hi guys, I have a problem with one of my designs at the moment. Here's the problem: I have a
    flash game in the middle of a page. However, the site navigation has dropdown menus that go on top
    of the flash. Now, the navigation works if I use "wmode = transparent" or "wmode = opaque" in the
    flash code. Yet, there is another problem: In Internet Explorer (I'm running version 7) the
    arrow keys "up" and "down" in most flash games will not work properly. Instead, they will make the
    page scroll up and down, even if the flash file has focus. This situation does not exi....
  16. Delaying The Time Until A Flash Button Can Be Pressed
    using actionscript (3)
    Can anyone tell me how can i make in flash a button that can not be pressed until an amount of time
    has past? let's say... about 5 mins i need this because i want to hold my visitors looking at
    the content on the page before they can advance further.....
  17. Myspace Css And Flash Profiles
    Who's got one? (0)
    Just out of curiosity, who's got a MySpace and a CSS or Flash profile? I know only a handful of
    people who have tackled the limitations and the frustrations of coding a nice profile around
    MySpace's crappy filters. I also like looking at other people's profiles just to see how
    they did them up, what code they used, and even get inspirations for my next profile. I have a
    Flash profile. I started doing them about a couple of months after having a regular layout... I
    actually learned CSS, Flash, and ActionScript because of MySpace. It actually evolved from u....
  18. Target Links To A Div Layer
    Is there such code that allows you to change ur link target so that it (22)
    Hey i need help I was wondering if there is a code that allows you to target ur link to a div
    layer.. lets say eg.. i got CODE Example i want that page to show in the div layer below
    on the same page. Is there a way i can do that? . im tryin to avoid using frames. thanks....
  19. Flash Actionscript Help
    i need help on some actionscript for flash galleries and such (10)
    Hi guys i was hoping if anyone that is good at coding could pretty please help me out im rather
    good at designing compared to coding for flash.. so here goes.. Im trying to make a flash gallery..
    ive started. and i know how to make buttons to go nxt and back and so forth... but i want to know if
    anyone knows the actionscript to make a thumbnail .. so that you click on it .and it will load the
    larger version on a little flash popup screen or just somewhere on the page.. its hard to explain
    but ill try to find an example to show u /smile.gif" style="vertical-align:middl....
  20. How Do I Add A Paypal Link On My Page?
    (2)
    For people to join my website (just friends at the mo) it is $10. I'd like to be able to create
    a paypal link on my page so that they have the option to pay via that? Thanks, std....
  21. Geturl In Flash
    (0)
    I posted this in the wrong place the first time: I searched the internet for about 2 hours on the
    topic of using relative links in flash movies. I created my entire portfolio website in flash and at
    the time I made it, i created all absolute links which turned out to be aweful. I couldn't find
    anywhere to to use relative links and every time I tried nothing worked. I finally figured it out
    yesterday. In order to get relative links to work you need to have the flash movie file in a
    directory beyond all of your other content for the site. In my case my flash .swf fil....
  22. Macromedia Flash 8
    (5)
    Hey there.I wanna help from someone to tell me where can i find really good and usefull tutorials
    for creating website in Macromedia Flash 8....
  23. How Do I Put A Flash Image In My Website
    (10)
    oke i got flash now and i made this button http://www.crazydesign.trap17.com/coolflashthingy.swf
    this button i wanne use for my website now my question is, what do i need to put it online do i need
    a special code or something,i'm not experienced with this,i heard something about a special code
    u need for it,but i dunno wichi'm just used to using tis QUOTE ....
  24. Getting Flash Images On A Site
    (1)
    well, i don' t have a site yet, but about 6 months ago i made a template, with flash buttons and
    all, with sound and everything i was so proud so i tryed to put em on there with a special code u
    needet or something ,so i did, but i got blank images,, i even tryed uploading it on the site it
    didn't work, so i asked around they said u can' t install them on a cpanel, u need ftp, so i
    downloadet the program needet and i got stuck there, so basicly how do u do that,and could some1
    help me out how to get it working on a cpanel....
  25. I'm In Need Of A Good Flash Tutorial For Web Design And Creation.
    (5)
    does anyone know where i can find a good flash tutorial on web design and building websites with
    flash 8? i searched google and couldnt find any i understood.....
  26. Making A Scroll Bar In Flash
    with an image and words on it (7)
    does anybody know how to make a scrollbar for my game page I am making on my site. This whole site
    is completely in flash. I know how to make a scrollbar for just words but not when there is an
    image on there also. Does anybody know?....
  27. Flash Photo Album
    (20)
    I'm building a website for my home school group for my final project in a web design class
    I'm taking. I would like to add a flash scrapbook/photo album, but I'm not quite sure where
    to start. Does anyone know how to do this? I tried googling for a tutorial of some sort, but I
    didn't have any luck. Thanks!....
  28. Link To New Page?!
    (1)
    Ok.i have a link to this: http://hostjunkies.trap17.com/forums in an .html iframe.. and it goes up
    in there...i want to know how to make an HTML link so this http://hostjunkies.trap17.com/forums
    pops up in a new page.....
  29. Macromedia Flash
    type in farsi language (1)
    hi for type the language farsi in flash you need a ipt 5 this is a symble font for farsi language
    you can downlado it from : www.ipt5.com....
  30. Best Free Flash Editor
    (12)
    Anyone know where I can find the best free Flash editor?....

    1. Looking for giving, flash, button, link, errors
Similar
Displaying Html In Flash - Using ActionScript
Help Me Flash My Website. - web designing
How To Add The Flash In Our Website ? - Animated image in website make the site atractive, but take more time
Flash Navbar: Populate From Center - Looking for advice or a tutorial
Transfering A Joomla Site - How do I make sure I don't get errors?
Flash And Transparency
Destination Address For "submit" Button - Adding a destination email address to a "Submit" button
Flash Header Edit? - flash header edit
Need Help With My Database [resolved] - retrive data as a link
Cms For Video, Embedding Flash
Dreamweaver Cs3: How To Link Content To Layers/apdivs
Scroll And Pan The Screen Via Mouse In Flash - does anyone know how to pan across the screen using the mouse in flash
Flash Media Into Html/css Website - does anyone know how to import a flash into a webpage with transparenc
Flash Newbie Question - question
I Need Some Help With Flash And Div Overlay - using wmode in IE problems
Delaying The Time Until A Flash Button Can Be Pressed - using actionscript
Myspace Css And Flash Profiles - Who's got one?
Target Links To A Div Layer - Is there such code that allows you to change ur link target so that it
Flash Actionscript Help - i need help on some actionscript for flash galleries and such
How Do I Add A Paypal Link On My Page?
Geturl In Flash
Macromedia Flash 8
How Do I Put A Flash Image In My Website
Getting Flash Images On A Site
I'm In Need Of A Good Flash Tutorial For Web Design And Creation.
Making A Scroll Bar In Flash - with an image and words on it
Flash Photo Album
Link To New Page?!
Macromedia Flash - type in farsi language
Best Free Flash Editor

Searching Video's for giving, flash, button, link, errors
See Also,
advertisement


Giving A Flash Button A Link - i get errors

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com