Home > Default > How to make relative links

How to make relative links

November 30Hits:0
Advertisement
Hello.
I need your help.
Inside the public_html folder I have two files one index.dir and part1.dir The file (index.dir) I wanted to do html and I do the Regulating through public settings
My problem is that it will link files? I do not know how to do it and I want your help please.
How to make relative links?
Information my project test:
Script from index to part1
-- DESCRIPTION --
on getBehaviorDescription me
  return \
    "GO NEXT BUTTON" & RETURN & RETURN & \
    "Moves the playback head to the next marker when the user clicks on the sprite." & RETURN & RETURN & \
    "PERMITTED MEMBER TYPES:" & RETURN & \
    "Graphic members" & RETURN & RETURN & \
    "PARAMETERS: None"
end getBehaviorDescription
on getBehaviorTooltip me
  return \
    "Use with graphic members. " & \
    "Moves the playback head to the next marker on mouseUp."
end getBehaviorTooltip
-- HISTORY --
-- 3 November 1998, written for the D7 Behaviors Palette by James Newton
--  5 January   2000: updated to D8 <km>
on mouseUp me
  go frame "test1" of movie "pat1" -- test1 is Maker and the file is part1.dir
end mouseUp
on isOKToAttach (me, aSpriteType, aSpriteNum)
  tIsOk = 0
  if aSpriteType = #graphic then
    tIsOK = 1
  end if
  return(tIsOK)
end on
script from part1 to index
-- DESCRIPTION --
on getBehaviorDescription me
  return \
    "GO PREVIOUS BUTTON" & RETURN & RETURN & \
    "Moves the playback head to the previous marker when the user clicks on the sprite." & RETURN & RETURN & \
    "PERMITTED MEMBER TYPES:" & RETURN & \
    "Graphic members" & RETURN & RETURN & \
    "PARAMETERS: None"
end getBehaviorDescription
on getBehaviorTooltip me
  return \
    "Use with graphic members. " & \
    "Moves the playback head to the previous marker on mouseUp."
end getBehaviorTooltip
-- HISTORY --
-- 3 November 1998, written for the D7 Behaviors Palette by James Newton
--  5 January   2000: updated to D8 <km>
on mouseUp me
  go frame "Intro" of movie "index" -- Intro is Maker and the file is index.dir
end mouseUp
on isOKToAttach (me, aSpriteType, aSpriteNum)
  tIsOk = 0
  if aSpriteType = #graphic then
    tIsOK = 1
  end if
  return(tIsOK)
end on
Please help
Look my page for you to understand my problem www.ionio.gr/~aleksgeor

Answers

It looks like you have taken a behavior from the Library Palette and hard coded it to suit your needs. This was unnecessary. Instead try the following behaviors attached to buttons that take you between movies - assuming they are in the same directory:
on mouseUp me
  gotoNetMovie("@/part1.dcr#test1")
end
on mouseUp me
  gotoNetMovie("@/test.dcr#Intro")
end
Also, you should Shockwave-compress your files to DCR (see the Publish Settings) in order to make your movies as small as possible so they download quickly

Read other 5 answers

Tags:

Related Articles

  • Remote and testing server don't see root relative links the sameOctober 11

    My site works fine on my testing server (Apache, MYSQL, PHP). I use root relative links in a library file (include file) so that it will work with all pages. For the testing server these links look like this: /my_sites_root_folder/aaa/bbb/ccc etc. If

  • Root-relative links & local testing serverOctober 11

    Yesterday I figured out that I'd have to use root-relative links in an included SSI file so that it would work from both templates and pages in my main directory (or other directories, for that matter), e.g., 'src=/image/picture.jpg'. However, since

  • Site-relative links fail on local testing serverOctober 11

    Using CS4/WAMP/XP, I have a testing server set up. All works well except that when I specify site-relative links, on the testing server they go back to localhost, not localhost/Frances. They work fine on the live site, but not on my testing server. T

  • Issues with using relative links in Captivate 8October 11

    Is anyone else having issues with using relative links in Captivate 8?  These links all used to work in the previous version of Captivate. And I could have sworn this was fixed already once in Captivate 8 but it's popping up again for us. Here is the

  • How to make site root-relative links work in DW and Server both?October 11

    See details on buggy DW image link behavior, below. My question is: 1) how to make site root-relative links work in DW and Server both? Or… 2) how to reliably automate the change of several hundred legacy root-relative links of the form /images/image

  • How do I code relative links as function parameters within Templates?October 11

    I am a newcomer looking for best practices for a "How Do I?" properly code relative links as function parameters within an Adobe template (DWT) which accomodates page creation at 2 different level of folders. Dreamweaver doesn't appear to handle

  • How to remove bullets and spacing for url links in the Related Links iview?October 11

    I tried to look for a property that I can edit the look-n-feel of the url links in the Related Link iView using "Theme Editor". All I need is to remove the bullets and increase some vertical spacing between the links. Currently, it looks like th

  • Moving a SWF containing relative Links no longer workOctober 11

    Hi I've come to the experts. I created a Flash Catalyst Project that contains external URL links. I actual want them to be internal relative links. I've followed the process of using to Flash Builder to edit the Main.mxml file to change to a relative

  • My Relative links no longer work in Captivate 7October 11

    My Relative links no longer work in Captivate 7. They worked in the 5.5 versions of the exact same lessons. But they do not work after saving and re-publishing in Captivate 7. What's up with that? Any suggestions? Just found out from Adobe it's a rep

  • Opening a pdf file in a relative link / localOctober 11

    Maybe this sounds simple. But I get used to AS2 code to open  a pdf file like the code below: getURL("pdfDocuments/pdfname.pdf","_blank") As I search uncle Google I'm stuck to this as equivalent to getURL in AS2. btn.addEventListener(M

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.605 s.