Skip navigation
known_child22
Currently Being Moderated

Question? How to make one swf initialize another swf?

Mar 2, 2013 7:08 AM

Tags: #swf #loading

On my website i would like to have my main swf which has a button that links to a contact form. This main swf is in its own div and i want to have another div with a contact form swf file that i created.

 

So i want the first swf's contact button to load the contact swf in the other div.

 

question is how would i change the current contact button from loading a link to a html page into a button that loads the swf in the other div?

 
Replies
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 2, 2013 7:53 AM   in reply to known_child22

    you can use javascript and flash'es externalinterface class to do that.

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 2, 2013 1:44 PM   in reply to known_child22

    not even close.

     

    you need to know some javascript.  at least, enough to assign innerHTML to your div or learn some jquery.

     

    then you need to look-up the external interface class.

     

    neither of these are easy if you're just starting with flash and/or just starting with javascript.

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 3, 2013 9:12 AM   in reply to known_child22

    here's link to an article i wrote for adobe about swf to swf communication:  http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

     

    but you were asking for something else - how one swf can initialize another swf.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2013 11:41 PM   in reply to known_child22

    Since you are using AS2 I would suggest you move this thread to that specific subforum. Your chance of getting help there are better.

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 7, 2013 6:04 AM   in reply to known_child22

    again,

    you need to know some javascript.  at least, enough to assign innerHTML to your div or learn some jquery.

     

    then you need to look-up the external interface class.

     

    neither of these are easy if you're just starting with flash and/or just starting with javascript.

     

    i don't think anyone will do this work for you unless you hire someone or find a friend that will do it for you.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points