Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Coding help

New Here ,
Jul 24, 2013 Jul 24, 2013

So I am having 2 issues with trying to do the coding for the buttons on my site and I'm hoping someone can help me. With both issues I'm useing the precoded option for "Click to go to web page"

The first one is when I am trying to link a web page that is in a subfolder from where my pages are I get this message. I know the links are right because I copied them right from the address bar on the browser.

flash issue.JPG

The second is I want the pages to open in the same tab but they are opening in diffrent tabs. I have searched the internet and tried replaceing the "_blank" with "_self". I have tried getting rid of the blank all togeather and I have gone thru the help forms and tried everything on there.

Oh and it would probibly be usefull to know that I am using Flash cs6.

TOPICS
ActionScript
906
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 24, 2013 Jul 24, 2013

What code are you using for the link to the subfolder.

As far as the same window scenario goes, have you tried testing on a server.  You should be using the "_self" value for the window argument... the default is a new window.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2013 Jul 24, 2013

Ok I don't know why the self thing wasn't working earlier but it is working now. Here is an example of the subfolder linking.

Gallery.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_13);

function fl_ClickToGoToWebPage_13(event:MouseEvent):void
{
navigateToURL(new URLRequest("\portfolio\index.html"), "_self");
}
Portraits.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_28);

function fl_ClickToGoToWebPage_28(event:MouseEvent):void
{
navigateToURL(new URLRequest("\portraits\index.html"), "_self");
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 28, 2013 Jul 28, 2013

Try changing the links to exclude the intial backslash, and try changing the remaining backslash to a forward slash

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2013 Jul 30, 2013

Tried that and it didn't work. Any other suggestions?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 03, 2014 Sep 03, 2014
LATEST

try ~/ or the url?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines