Welcome to WebmasterWorld Guest from 54.221.119.45

Forum Moderators: open

Message Too Old, No Replies

Linking to a html named anchor from flash

     

dainstructor

2:27 am on Apr 14, 2008 (gmt 0)

5+ Year Member



Most of the content on my webpage is inside of a flash frame and I would like to allow my users to be able to jump to another section of the html page by clicking on a link inside the swf file. Has anyone been able to get this to work successfully?

Thanks for the help.

rocknbil

4:08 pm on Apr 15, 2008 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Did you try encoding the pound sign?

http://www.example.com/page.html#my_anchor

dainstructor

12:01 am on Apr 16, 2008 (gmt 0)

5+ Year Member



Thank you for the repley. I've done something similar. The anchor on my html page is called "bottom" so i've used the following code:


on (release) {
getURL("#bottom");
}

In this example the pound sign is encoded but im still not having any success.

rocknbil

3:40 pm on Apr 16, 2008 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You tried with the full URL? Flash doesn't "know" what page it "lives" on. getURL('http://www.example.com/page.html#my_anchor');

Also it requires encoding for special characters. Give it a shot. :-)

 

Featured Threads

Hot Threads This Week

Hot Threads This Month