Skip to main content
September 3, 2006
Question

applying var to buttons

  • September 3, 2006
  • 2 replies
  • 264 views
ok, here's my question

I want to create a news system. I don't want the URL to change. All I want is to load and unload SWFs. I have two SWFs. Let's name them ListOfArticles and ShowArticle. When the user clicks the link in the main swf, the ListOfArticles is loaded. It shows the list of all articles with titles and short descriptions. When the user clicks the title/link, the ShowArticle is loaded with full article.I'm using asp and xml. So the asp must send via XML the ID of the articles. With this ID I'll be able to tell/create a link (title of the article), which will tell the asp after the user's click, which article was selected and must be loaded.What I'm asking is how do I do this? How do I create this kind of communication?Can you point me to a good tutorial, article, case? I'm new to flash. So far I was using VBS and ASP, but I want to include flash. THX for any help
This topic has been closed for replies.

2 replies

Inspiring
September 3, 2006
I am guessing that you need info on how to have the ASP communicate with the SWF. If so, you would want to use the LoadVars class;

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002323.html

Or if you need info for communication between 2 SWFs then look into the LocalConnection class;

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002338.html
September 4, 2006
Hi,
thx for your reply. I'm trying to communicate between 2 swf via asp (XML). The first swf sends vars to asp, which then gets data from DB and creates XML, which is used by second swf to show the result (article). I was thinking to make select cases in asp (as I understand, asp gets VAR from flash as querystring), so the asp takes the asked actions and creates xml.
Participating Frequently
September 3, 2006
I'm not sure I undedrstand what you're asking.. are you trying to communicate between 2 swf movies or between asp and a swf?