-
ASP integration
I need to find a way to pull an .asp page into flash. I am trying to display a picture gallery that is set up in a list format on the .asp page. Any suggestions? I guess I just need help in finding out how to display this stuff because I think I've successfully had Flash upload the info. right now, this is what I've tried:
clubShots.onRelease = function() {
getGallery();
};
var galleryURL:String = "gallery.asp";
var gallery:LoadVars = new LoadVars();
function galleryLoaded() {
gotoAndStop("clubShots");
}
gallery.onLoad = galleryLoaded;
function getGallery(){
gallery.load(galleryURL);
gotoAndStop("loading");
}
-
You cant format an asp page in flash. You can call an asp page and have it return XML for example, and then get flash to read the XML and format your images from the XML.
-
so my code is all bad then?
-
You will have to find an alternative solution to preview your images.
Do a search for XML and flash and how flash reads XML. You will have to get asp to format the XML with your image entries from your database, return an XML object and get flash to read it.
-
Junior Member
XML is not really necessary, and will actually complicate it a bit.
I'd just get the ASP page to loop through the db, presenting the variables in the form
Code:
'' assuming your list is in an array names aResults
For i=0 to Ubound(aResults)
Response.Write("&image" & i & "=" & aResults(i) & "&")
Next
''
Response.Write("&i=" & i & "&")
You now know how many ( i ) images there are, and each is accessible in the flash using the variable "image2.jpg" etc etc
Hariyemadzisawira nhaka yedu! Down the SCUD and win!
I'm too lazy to read Private Messages.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|