Alright, how would I go about using the LoadVars approach.
I am trying to create a flash document that displays a user name in the middle. I currently have it set up using simple ASP person logs in and gets brought to the page with the flash the asp calls te login info using a standard request.form and validates the login. What I want to have happen is a flash movie that appears in the login validation page that displays the user name.
Simple code for this page is:
<%
dim uid
uid = "Panhead"
%>
</head>
<body>
<%= uid %><br><br><br><hr>
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="left"></p>
-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="get_var_test.swf?ui
</object>
So I want the variable uid to show up in the swf.
Waht is the easiest way to have this happen?
Main Topics
Browse All Topics





by: najhPosted on 2007-09-07 at 06:41:08ID: 19847554
There are a couple of solutions:
1. You can look into using the LoadVars class in flash. This can be used for reading the data in an asp page. This would be useful for having a background asp page (that you don't actually see) loading your data into flash.
2. You can look into using the PARAM tag when embedding your flash object within your web page. The param object can be used for reading in some specific data - and of course can be changed to what ever you want using ASP when you dynamically write the page.