dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: how do I load and position a MC from a hyperlink?

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    7
    how do I load and position a MC from a hyperlink within a static text field which is in a scrollpane?

    I'm guessing that I could setup a text hyperlink, or an invis. button that will call a movieclip and load and position it in the scrollpane, but I have no idea how to code it!

    any help?

    thanks, dan.

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Location
    Lebanon
    Posts
    573
    Hi friend..
    in Flash you can invoke (call) a function from inside a text field by using a hyperlink in this format:

    Code:
    //code on a frame:
    myTxtField = "<a href='asfunction:move()'>"+this is the text"+"</a>";
    //move() is the function.. the text field should accept HTML
    that's all.

    have a nice day.

    m.Saleh

  3. #3
    Senior Member
    Join Date
    Feb 2002
    Location
    Lebanon
    Posts
    573
    sorry.. the text link didn't appear as I wanted.. the page has interpreted it as it wishes.. I want in to be like this:

    asfunction:move()

    this will be inside the anchor tag "<a>"..

    that's all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center