Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Giving A Flash Button A Link


21 replies to this topic

#1 crazymind21

    Member [Level 3]

  • Kontributors
  • PipPipPipPipPipPip
  • 93 posts
  • Gender:Male
  • Location:holland
  • myCENT:66.08

Posted 27 June 2007 - 02:22 AM

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

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

#2 crazymind21

    Member [Level 3]

  • Kontributors
  • PipPipPipPipPipPip
  • 93 posts
  • Gender:Male
  • Location:holland
  • myCENT:66.08

Posted 04 July 2007 - 12:18 PM

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

#3 galexcd

    Trap Grand Marshal Member

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,331 posts
  • Gender:Not Telling
  • myCENT:39.82

Posted 07 July 2007 - 04:56 PM

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.

#4 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 20 September 2008 - 09:19 AM

Replying to puck
Thanks... That worked just great!

-reply by Hector

#5 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 25 November 2008 - 08:19 AM

How to give a link from flash button to a frame which is designed in Dreamviewer Giving A Flash Button A Link[font=" 'Courier New'; font-size: 13px; line-height: 18px; white-space: nowrap"]Hi,I have designed a web page using Dreamviewer8.Which contains 3 frames namely1.Left frame2.Middle frame3.Right frameMiddle 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("[/font]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..

#6 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 26 November 2008 - 05:36 AM

how to link a flash button to a Dreamviewer framesGiving A Flash Button A LinkHi, I have designed a web page using Dreamviewer8.Which contains 3 frames namely1.Left frame2.Middle frame3.Right frameMiddle 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")

}

Itworks well in Mossila fire fox..But when I run in Internet Explorer I'mgetting new window.I.E,. Html file is not loaded in the same pageframe..It opens a page in a new window..I need a page to open asame window left side frame.. Pls help me what's the problem..Why IEopens 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

#7 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 15 March 2009 - 11:01 AM

Swf file in new flash windowGiving A Flash Button A LinkBasically I want to open a SWF file to a button but in a completely newWindow however I’m not talking web related I.E. Not linking to a webPageLike...On (release) {GetUrl("www.Blah.Com")}Whateva it is...Don’t want that... I want it so it simply opens aCompletely new window within flash which I can close... The reason forThis is I have a SWF file which is protected and I cant create a backButton within it... So I need it to open a completely new window so ICan get back to my main page...All I seem to find are examples like the one aboveAny ideas? Thanks

 

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

#8 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 02 April 2009 - 06:46 PM

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

 



#9 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 17 April 2009 - 10:51 AM

Linking Flash button to Dreamweaver pageGiving A Flash Button A Link

Okay I'm making a website for my class and I'm having some troubleI want to make my button in Flash CS3 open up a DreamWeaver pageI 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 errorsButton_name.AddEventListener(MouseEvent.CLICK,clickHandler);function clickHandler(event:MouseEvent);void{navigatetoURL(newURLRequest("file_name.Html"));}Any help would be much appreciated

-reply by Rachel



#10 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 18 April 2009 - 09:32 PM

Problem using the given codeGiving A Flash Button A Link

hey there,

I got this problem that I've been dealing with the whole entire day.You see when I type your given code (b1.AddEventListener(MouseEvent.CLICK, b1ClickHandler);function b1ClickHandler(event:MouseEvent):void {   navigateToURL(new URLRequest("file:///C:/Documents%20and%20Settings/User/My%20Documents/Foivos%20web%20site/Josef%20web%20site/House%201/House%201.Htm"));   trace("I'm clicked");} 

on a freshly document by creating a button it works fine. However, when I try to use it on the page that I'm working on when I try to complile it it says The class or interface 'Mouse Event' could not be loaded. Can you please, please help me on this one. I'm working on this client is easter holidays now and imtroubling myself with itThank you so much in advance

George






Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users