Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-13-2002, 10:00 AM   #1
TonyL
Registered User
 
Join Date: Apr 2002
Posts: 42
Default Two Questions

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.
TonyL is offline   Reply With Quote
Old 05-14-2002, 08:23 AM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 05-14-2002, 09:17 AM   #3
TonyL
Registered User
 
Join Date: Apr 2002
Posts: 42
Default

Thanks, They both work. But, the loadmovie does not display unless I click back into the scene? Any ideas?
TonyL is offline   Reply With Quote
Old 05-14-2002, 10:14 AM   #4
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

Back into the scene? I don't get you...
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 05-14-2002, 11:20 AM   #5
TonyL
Registered User
 
Join Date: Apr 2002
Posts: 42
Default

Go to

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.
TonyL is offline   Reply With Quote
Old 05-14-2002, 12:07 PM   #6
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

I can't explain that one... What's the exact load code you're using?
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 05-14-2002, 12:31 PM   #7
TonyL
Registered User
 
Join Date: Apr 2002
Posts: 42
Default

NewsText = "Loading News Articles...";
loadVariablesNum ("news2.asp", 0);
loadMovie (_root.imgname, "NewsPic");
TonyL is offline   Reply With Quote
Old 05-15-2002, 03:51 AM   #8
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

I can't see any faults with that. I'm stumped.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 05-15-2002, 07:48 AM   #9
TonyL
Registered User
 
Join Date: Apr 2002
Posts: 42
Default

Ok, thanks for helping me out with the other stuff
TonyL is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get answers to your scripting questions pixelwit General Chat 150 10-12-2005 05:12 AM
how questions should be answered smoothhabitat General Chat 15 08-03-2004 01:46 PM
[Q] Do we need those forums??? CyanBlue General Chat 59 07-27-2004 11:13 AM
questions question questions :) jimmysomebob ActionScript 1.0 (and below) 16 05-21-2004 01:39 AM
Quiz questions not for public kreso2 Server-Side Scripting 10 02-23-2003 01:46 AM


All times are GMT. The time now is 12:20 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.