PDA

View Full Version : Two Questions


TonyL
05-13-2002, 11:00 AM
1. I need to pass the value from a dynamic textbox to a loadmovie command, I've tried everything I know but nothing works. Can anyone help?

2. I am using asp to display content from an access db. I have decided that rather than looping the recordset I will display one item per page and use a next button. I have the link in asp to page through the recordset but I need to bring this into flash, the link consists of a constant value and a variable:

<a href=" & chr(34) & "news2.asp?id=" & RS("Id") & chr(34) & ">Next</a>

news2.asp?id= being the constant
RS("Id") being the variable...

how can I re-create this in flash?? I have tried passing through the whole link to flash from the asp, but it just links out of the flash movie to the next record.

hope someone can help. Thanks in advance.

Jesse
05-14-2002, 09:23 AM
1. The text field has a variable name (and path). It's as simple as referencing the variable:
loadMovieNum(_root.myTextFieldVar,0);
2. Sorry don't know ASP. You should just be able to use:
loadVariablesNum("news2.asp?id=" + _root.yourVarName,0);
Note that you may need to add an additional noCache var:
loadVariablesNum("news2.asp??noCache=" + random(1000000) + "&id=" + _root.yourVarName,0);

TonyL
05-14-2002, 10:17 AM
Thanks, They both work. But, the loadmovie does not display unless I click back into the scene? Any ideas?

Jesse
05-14-2002, 11:14 AM
Back into the scene? I don't get you...

TonyL
05-14-2002, 12:20 PM
Go to

www.dance101.co.uk (http://www.dance101.co.uk)

and click News, this is the scene where I want to display my dynamic images. When you go there for the first time the image does not display, If you click news again the image now displays.

Jesse
05-14-2002, 01:07 PM
I can't explain that one... What's the exact load code you're using?

TonyL
05-14-2002, 01:31 PM
NewsText = "Loading News Articles...";
loadVariablesNum ("news2.asp", 0);
loadMovie (_root.imgname, "NewsPic");

Jesse
05-15-2002, 04:51 AM
I can't see any faults with that. I'm stumped.

TonyL
05-15-2002, 08:48 AM
Ok, thanks for helping me out with the other stuff