Professional :: _self Does Not Work On Flash Button?

Mar 8, 2011

Im using this code on a nav menu i have created.

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

[code].....

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Can't Get _self To Work On URLRequest

Aug 20, 2010

I've cobbled together a website for the family business using Flash CS4, but I'm having real trouble getting two interlinked .swf's to open in the same window. By the time you go from the homepage to the gallery and back to the homepage, you've got 3 tabs in the browser. How can I fix this? Here is my code.

ActionScript Code:
button4.addEventListener (MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void
{

[Code]....

The code is the same (different URL, obviously) for both links, but they open new tabs every time.

EDIT: It seems to have fixed itself. Maybe it didn't upload right when I put it on the FTP. So all is well now!

View 0 Replies

ActionScript 3.0 :: URLRequest _self Property Won't Work, Because Of AllowScriptAccess?

Mar 24, 2011

Here I create a button that when pressed opens specifies web site:

Code:var adresas:URLRequest = new URLRequest("some web site adress", _self);
var item:Sprite = new Sprite();
item.graphics.beginFill(0x000000);
item.graphics.drawCircle(30, 30, 20);
item.graphics.endFill();

[Code]...

View 0 Replies

ActionScript 3.0 :: Hyperlink Text Will Not Work With _self, Only As Self And Then Creates Window?

Jan 14, 2011

I understand that the code below should work but it doesn't, I have to take the underline before self out, for the hyperlink to work at all, and then it creates another window for the file. There may some sort of glitch that I am not aware of. But the code below does not work as is in my app. 
 
var t:TextField = new TextField();
t.htmlText = "hello world"+ "<a href='weeTestPage.html' target='_self'><u>click here</u></a>";
t.autoSize=TextFieldAutoSize.LEFT;
addChild(t);

View 1 Replies

Professional :: Flash Button Just Does Not Work

May 31, 2010

I have been trying to work out my flash button. But it just doesn't work.. In flash, I made a button symbol. I did the four stage.up, over, down and hit. And I set the actionscript
on(release) {
getURL("[URL]","_blank");
}
When I tested the movie, it said 1087: Syntax error: extra characters found after end of program.

View 1 Replies

Professional :: Cannot Get A Simple Flash Button To Work?

Jul 20, 2011

I do not know action script, and, have created a button in flash that pops up information when you rollover the button.The button works fine, but, the entire area - where the information pops - is also poping up when I rollover that area.

View 4 Replies

ActionScript 3.0 :: Navigate To _self : When I Click On The Button, It Does Nothing?

Jul 16, 2009

This is the code I am using:
 
main_btn.addEventListener(MouseEvent.CLICK, onMouseClick);

function onMouseClick(e:MouseEvent):[code]...

When I click on the button, it does nothing but sit there with a blank stare like I did in physics class. It works fine if I switch it to _blank, but that is totally not what I want. Why is this not working?

View 3 Replies

ActionScript 3.0 :: Made A Button That Navigates To A URL With A _self Target?

Mar 1, 2010

I made a button that navigates to a URL with a _self target. Well, in the script, i have it like this:

Code:
clickhere2Btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
function myHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("https://app.playmakercrm.com/register/eNortjK0UjJWsgZcMAkeAcs!"), "_self");
}

the "_self" isn't working on the page, but when i take out the target, it works just find, it opens in a new page which i don't want.You can check it out here

Code:
dev.myhomecaresalescoach.com

and watch that flash header for about 30 seconds, theres a button at the end that reads "Click Here" try clicking on that and it wont take you to the URL.

View 1 Replies

Professional :: Flash Player 11.3 - Button Cursors Do Not Work Server Side

Oct 13, 2011

I have Flash CS5.5 I just uploaded an swf with a few button instances I got the msg that I needed to update my Flash player so I did. After that when I went to test the swf I get no button cursors on any buttons in the swf. The buttons work when I press on them but there is no cursor. If I publish the file locally the cursors are there, I made a few different fla's with test buttons to make sure and they all do the same thing. The publishing settings are set for 10.2 , this seems to have happened once I got the new Flash player 11.3.

View 2 Replies

ActionScript 3.0 :: NavigateToURL "_self" Parameter Doesn't Work?

Apr 12, 2010

I'm trying to use navigateToURL with the "_self" parameter for a website navagation menu, but all I ever get is the url opening in a new window or new tab (depending on what browser you are using). What I would like is if it opens in the same window within the browser. For html validation purposes; I'm using a javascript ufo 3.22 (unobtrusive flash objects) method of embed. Here is my AS3 code which is in a standalone file (hope I got all necessary import packages included).

[Code]...

I know it's something real simple and I've read many a posts that scream "allowscriptaccess" issues, but even when I set that I still can't get it working properly.

View 1 Replies

ActionScript 3.0 :: Open Links In Same Window ("_self" Does Not Work)

Apr 29, 2010

I was given the following code to have my button open a link.

testbtn.addEventListener(MouseEvent.MOUSE_DOWN, gotest);
function gotest(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.bing.com/"));
}

This function works fine except that it opens all my links in new windows or tabs. I added the "_self" parameter to the function and created the following:

[Code]...

View 3 Replies

Professional :: Button Cursors Do Not Work Server Side After Flash Player Upgrade

Oct 13, 2011

I have Flash CS5.5 I just uploaded an swf with a few button instances I got the msg that I needed to update my Flash player so I did. After that when I went to test the swf I get no button cursors on any buttons in the swf. The buttons work when I press on them but there is no cursor. If I publish the file locally the cursors are there, I made a few different fla's with test buttons to make sure and they all do the same thing. The publishing settings are set for 10.2 , this seems to have happened once I got the new Flash player 11.3.

View 1 Replies

AS3 :: Professional :: Getting Button Mc / 'this' To Work?

Apr 5, 2011

Im trying some AS3 for the first time. I have a mc without a instance name, sitting inside _root.first_mc.2nd_mc and its timeline I have a frame label at frame ten called "on" and at frame twenty called "off". in the first frame of its actions I found a peice of code that is meant to replace the old onRollover etc.

[Code]...

I run the code and I get no errors, the code isnt actually functioning. Do I have to do full mc naming instead of .this? Or am I doing something else wrong?

View 6 Replies

Professional :: Can't Get ONE Button To Work?

Sep 22, 2011

I am loading 4 external SWF's inside a Master Movie file. I've got 3 of the 4 working. The last one is giving be fits and I can't see the problem. I am housing the external SWF's inside a manually created container (AS2). This last button is being a rebel and it's driving me nuts. I've checked and double-checked to ensure the instance name matches the button name in the code....as well as the name of the external swf. It's all correct, to me. The .swf is in the same folder as the .fla, by the way.AS2 code:

stop ();
jukebtn.onPress = function ()
{

[code]....

View 6 Replies

Professional :: Button Lnks Don't Work?

Feb 25, 2010

For some reason I can't get my buttons to link to a URL. The file was created in Flash CS3 and I'm working in CS4.  I'm still a newbee. Seems by the time I finally figure Flash out, it's time to learn it all over again. Getting familiar with AS, but still have along way to go. Anyway when I apply either these scripts to a button the url launches without ceremony or not at all when I preivew it. Probably something brain dead, I'm sure.
 
AS2.onRelease = function() {    getURL("http://www.http://www.linkedin.com/connections?trk=hb_tab_cnts.com");};
AS3linkedBtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {navigateToURL(new URLRequest("http://www.http://www.linkedin.com/connections?trk=hb_tab_cnts.com));}
 
Errors: Line 2 - The class or interface 'MouseEvent' could not be loaded. Line 1 - Statement must appear within on handler

View 8 Replies

Professional :: Can't Get Any Button To Work On Some Frames?

May 6, 2010

I have a movie that I have been working on.There is a simple animation/intro and then a main frame with several buttons set up to jump ahead to other frames.There are 4 buttons and they all work just fine and go to the respective frame with no problems.
 
My problem is in trying to add a button to one of those frames.  I can't get any button to work on any of those frames at all.  I tried to add a "home" button that jumps back to the main frame, but that wouldn't work.  So, I tried to copy the main frame and move it ahead on the time line but that didn't work either.  I tried to add buttons for the other frames as well and no button would work (regardless of where it was referenced) on those other frames.Here is the error message I keep getting:
 
Cannot access a property or method of a null object reference.

View 9 Replies

Professional :: Can't Get Close Button To Work

Dec 9, 2011

am using flash cs5.5, action script 3 and can't get my close button to work. the code is below. if you are able to help me that would be wonderful.
 
tried this:
 
// add an EventListener to the button
Vid.addEventListener(MouseEvent.CLICK, buttonClick);
// the function that runs when after button was clicked

[Code].....

View 3 Replies

Professional :: Making A Back Button Work?

May 18, 2011

Flash CS5 on Windows 7 I have a problem with a project I am creating. I have created 3 buttons which when clicked open other movieclips for each button. On each of the movieclips that the buttons send them to, all have a back button to return them back to the original view.
 
This back button works fine apart from once they are back at the original view, the 3 buttons stop working.

View 4 Replies

Professional :: Button Does Not Work Inside Movie Clip?

Oct 6, 2010

On the about page of my Flash website, I wanted 7 buttons to navigate to various labels. I just finished the first button. I made it while I was inside the about_mc. It worked well but would NOT navigate. I took the button OUT of the Movie clip and made a separate layer on the about page for buttons and pasted it there and it worked perfect. When I made it inside the mc, is there some different code I should have used other than the standard code for making a button navigate to a frame. I built an addeventlistener and a function. BUT they only worked when the button was "ON TOP" of the mc NOT when it was INSIDE the mc. I have a transition tween on the about_mc and therefore the button does not tween when it is on TOP of the mc only when it is inside the mc.

var aboutTween:Tween = new Tween(about_mc, "y", Elastic.easeOut, -200, 146, 3, true);
laborLaw1_btn.addEventListener(MouseEvent.CLICK, laborLaw1);
function laborLaw1(evtObj:MouseEvent):void{ gotoAndStop("laborLaw1_fl"); }

[code].....

View 2 Replies

Professional :: Can't Make Music On / Off Button Work For Movie Built In CS5

Aug 10, 2010

This Message Used To Be Entitled:"Can't make music on/off button work for my movie built in CS5..."But after literally WEEKS of being on this forum (& desperately seeking the answer in numerous ways) do you mean to tell me there is ABSOLUTELY NO ONE ON THIS FORUM that knows how to make a music/sound button work correctly? [code]Perhaps it's a simple adjustment,.

View 11 Replies

Professional :: Make Drag And Drop Work On A Check Answers Button?

Feb 20, 2012

I ve got a drag and drop code working, but what I really want to do is have a check answers button that tells the user, you have none correct, or two correct or all wrong... I have one target area, and 3 correct answers (out of 7) so I would like to let the user put as many ansers on the target as they want and then check if they have any correct, also a reset code would be nice to put everything back where it started... I tried to break my code up but the events then went mad, Here is what i have so far, it works instantly and lets crrect answers stay and incorrect bounce back..
 
stop();
yes1.visible=false;
allcorrect.visible=false;
doit.text="drag over the words that mean Vision";

[Code].....

View 1 Replies

Professional :: If Install The Home Buton The Main Page The List Button Does Not Work

Feb 2, 2012

I am working on an iMAC running 10.6, and Flash CS5. I created a flash file with a list button ( with 10 inner sellections) on the main page. Each sellection within the list button loads a separate movie file from the library. Everything works great unitl Iinsert the Home button. If I install the home buton the main page, the list button does not work. If I install the home button in a movie, I don't know how to write the action script to go back to the main page, and I woul have to install a home button into each movie.

View 2 Replies

Getting Flash To Work With Html Button?

Oct 2, 2009

I have a swf file which needs to be activated on a page by an html link. i.e. when the link is clicked at the bottom of the page, the swf file should start playing elsewhere on the page.

View 4 Replies

Flash :: If Inside Button Does Not Work?

Mar 9, 2011

var menu_open:Boolean = true;

MenuContainer1.MenuContainer2.logo.nav_button.addEventListener(MouseEvent.CLICK,onNav2);
function onNav2(event:MouseEvent):void{
if (menu_open) {

[Code]....

why this does not work it does not trace else when i click, but if before i compile i swap "var menu_open:Boolean = true;" to "var menu_open:Boolean = false;" it does trace else!

View 1 Replies

IDE :: Flash Button Dosnt Work

Feb 27, 2009

I was trying to test the totreal on this site for creating a button. When I put the button in a web page and try to test it in IE I get the following messag.

Adobe Flash Player has stoped a potentially unsafe operation: C:UserKevinDesktopWebSitehtperlink[1].swf is trying to comunicate with this Internet enabled Location: [URL]

View 1 Replies

Professional :: Can't Get Flash Videos To Work

Jan 31, 2011

I created a photo gallery using flash and I can't get it to work on my web page.I am using Flash CS5 and Dreamweaver CS3.If I just open the html file (the one Flash created when I published it) it works just fine but, when I put the Flash video on the page I created in Dreamweaver, it plays, but without the images.

View 12 Replies

Flash :: Professional Won't Work Outside The Application

Jul 16, 2011

i have created my first flash file at home and i have published it and imported it into dreamweaver, i try to preview it into a browesr and i get the error massage Adobe® Flash® Player has stopped a potentially unsafe operation. The following local application on your computer or network: /Users/greenjacket1985/Desktop/Cerberus Web Design/Scripts/expressInstall.swf

is trying to communicate with this Internet-enabled location: [URL] To let this application communicate with the Internet, click Settings. You must restart this application after changing your settings. now i ave tried everything, every button in the settings.

View 3 Replies

Flash :: Button Doesn't Work When Used With Dreamweaver CS4

May 3, 2009

I am a student trying to learn how to take multimedia elements from one class and put them on a webpage using Dreamweaver CS4. From an online tutorial, I created start/stop buttons with ActionScript3 URLRequest to reference a sound file. The swf works fine when played; it plays from the html generated by flash but when I use Dreamweaver CS4 > insert > media > swf and then preview page in browser (firefox), the button doesn't do anything. When I compare the html page generated by flash to the html created by Dreamweaver, they look completely different. I don't have a clue what to do next.

[Code]...

View 2 Replies

ActionScript 3.0 :: Make Flash CS3 Button Work

Jul 1, 2009

I am trying to make the button to work. My button is located on the main timeline, but my action is placed inside the movie clip. So when the button on the main timeline is pressed I want flash to play frame labeled "enq" inside the movieclip. Makes any sense? The code i am using is:

[Code]...

View 4 Replies

IDE :: GetURL _self Not Working?

Apr 28, 2008

I have a flash banner that is a simple animation and some text, and at the top layer an invisible hit area button that has the following AS on it...

Code:
on (release) {
getURL(url, "_self");

[code]....

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved