# Display swf when user presses a button

**URL:** <https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041>\
**Category:** flash\
**Created:** [May 22, 2008, 10:26am UTC](https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041 "2008-05-22T10:26:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhurat](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bhurat](https://forum.kirupa.com/u/bhurat)\
**Post date:** [May 22, 2008, 10:26am UTC](https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041/1 "2008-05-22T10:26:30Z")

</div>

Hi,  
I have an AS2 code and I want it to be “processed” and the corresponding swf file be displayed only when the user clicks a button on my webpage.how do I implement it?

---

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [May 22, 2008, 6:02pm UTC](https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041/2 "2008-05-22T18:02:39Z")

</div>

rephrase you question, its vague

are you trying to make a pop-up?

oh and you know you in the AS3 forum right

---

<div class="post-metadata">

**Author:** ![bhurat](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bhurat](https://forum.kirupa.com/u/bhurat)\
**Post date:** [May 23, 2008, 10:44am UTC](https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041/3 "2008-05-23T10:44:58Z")

</div>

well the user gives the xml file .the actionscript code reads the xml file and performs certain actions.I want the action script code to be processed after the user feeds the xml file on say my webpage.How do I create the corresponding swf file from there?

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [May 23, 2008, 11:59am UTC](https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041/4 "2008-05-23T11:59:39Z")

</div>

this post belongs to the AS2 forum.

I’m not sure of what you’re tryng to accomplish… but it sounds like you want to load an external swf?.. or simply execute some actions when the user presses a button?

---

<div class="post-metadata">

**Author:** ![doridori](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@doridori](https://forum.kirupa.com/u/doridori)\
**Post date:** [May 23, 2008, 12:29pm UTC](https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041/5 "2008-05-23T12:29:53Z")

</div>

I don’t really understand your question either.

Explain it step-by-step if needed.

1. user enters webpage
2. user clicks button X
3. etc…

That might be easier if your question is hard to phrase.

---

<div class="post-metadata">

**Author:** ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)\
**Post date:** [May 23, 2008, 1:22pm UTC](https://forum.kirupa.com/t/display-swf-when-user-presses-a-button/261041/6 "2008-05-23T13:22:39Z")

</div>

Please don’t crosspost, and try to use better thread titles in the future.
