Groups | Blog | Home
all groups > flash actionscript > september 2006 >

flash actionscript : applying var to buttons


rohai
9/3/2006 6:18:04 PM
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
_Chewtoy_
9/3/2006 11:10:24 PM
myIP
9/3/2006 11:32:38 PM
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.ht
m?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.ht
m?context=LiveDocs_Parts&file=00002338.html

rohai
9/4/2006 1:19:49 AM
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.
AddThis Social Bookmark Button