# Creating scrolling text with external database

**URL:** <https://forum.kirupa.com/t/creating-scrolling-text-with-external-database/277859>\
**Category:** Uncategorized\
**Created:** [December 18, 2008, 8:48am UTC](https://forum.kirupa.com/t/creating-scrolling-text-with-external-database/277859 "2008-12-18T08:48:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svibuk](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@svibuk](https://forum.kirupa.com/u/svibuk)\
**Post date:** [December 18, 2008, 8:48am UTC](https://forum.kirupa.com/t/creating-scrolling-text-with-external-database/277859/1 "2008-12-18T08:48:59Z")

</div>

at present i have coded for database in my web page  
i want the text scrolling in flash textbox with data frm database. this flash file will be called in the web page using \<object\> and \<embed\> tags

i have written code in my webpage fr retriving data frm database and stored the value in a variable and used it in flash object

i have created a movieclip with a textbox in flash and given tween motion fr scrolling effect.  
assigned a instance name to textbox and in actionscript assigned the textbox to a variable  
in my webpage using [asp.net](http://asp.net) i have connected to the database and taken the values frm database and stored it in a variable  
and then using the \<object\> and \<embed\> in web page tried to dispaly the data  
on my webpage i do get the scrolling effect with data  
but in flash in movieclip as i have made the textbox scroll in my webpage before all the data gets displayed the textbox scroll away and hence all data is not visible

how do i make all the data scroll one after another ?  
is there a way fr keeping the textbox fixed and make only data scrolling?  
is there any other method  
in flash file ie dt.fla  
i have taken a movieclip with a textbox in one layer and in the layer above written the script  
var var1:String;  
myTextField\_txt.text = var1;  
where myTextField\_txt is the textbox name  
then taken this movieclip on stage and created tween motion for this clip to have scroll effect

this is the code on webpage for dispalying flash  
\<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“[http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0](http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0)” width=“400” id=“Object1” align=“middle” style=“height: 219px”\>\<param name=“allowScriptAccess” value=“sameDomain” /\>\<param name=“movie” value=“dt.swf?var1=\<%#varvalue %\>” /\>\<param name=“quality” value=“high” /\>\<param name=“bgcolor” value="#ffffff" /\>  
\<embed src=“dt.swf?var1=\<%#varvalue %\>” quality=“high” bgcolor="#ffffff" width=“800”  
name=“URLVariablesDynamic” align=“middle” allowscriptaccess=“sameDomain” type=“application/x-shockwave-flash”  
pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” /\>\</object\>  
in this dt.swf is the flash file name  
var1 is the variable used in flash & assigned to the textbox  
\<%#varvalue %\> is the variable used to store data frm database

let me knw how can i get the desired results
