# Scroll for dynamic text \*urgent - pays\*

**URL:** <https://forum.kirupa.com/t/scroll-for-dynamic-text-urgent-pays/261509>\
**Category:** flash\
**Created:** [May 28, 2008, 10:32am UTC](https://forum.kirupa.com/t/scroll-for-dynamic-text-urgent-pays/261509 "2008-05-28T10:32:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbarreto](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@fbarreto](https://forum.kirupa.com/u/fbarreto)\
**Post date:** [May 28, 2008, 10:32am UTC](https://forum.kirupa.com/t/scroll-for-dynamic-text-urgent-pays/261509/1 "2008-05-28T10:32:49Z")

</div>

Ok,

Hello everyone…! i have this problem :

I have this site [www.selgec.pt](http://www.selgec.pt/) and in “Ofertas de Emprego” i have a dynamic text thingy which is basically a graphic with text from a data base in it, multiplied by the number of fields in it too. So far so good, everything works but as you can see… it need a scroll ! Stupid problem… but i don’t know how to resolve it ! I use Flash CS3 in a iMac G5.

Can anyone help me with this ? It is _extremely_ urgent, and i can pay to whoever helps me today. I need this _that_bad\* ! eheh

Cheers

---

<div class="post-metadata">

**Author:** ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)\
**Post date:** [May 28, 2008, 10:44am UTC](https://forum.kirupa.com/t/scroll-for-dynamic-text-urgent-pays/261509/2 "2008-05-28T10:44:24Z")

</div>

[http://www.knowflash.com/content/view/135/27/](http://www.knowflash.com/content/view/135/27/)

---

<div class="post-metadata">

**Author:** ![fbarreto](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@fbarreto](https://forum.kirupa.com/u/fbarreto)\
**Post date:** [May 28, 2008, 10:49am UTC](https://forum.kirupa.com/t/scroll-for-dynamic-text-urgent-pays/261509/3 "2008-05-28T10:49:41Z")

</div>

well that is for text, what about for a flash generated graphic ? i mean… the graphic and it’s content is generated by the flash with the text in the database, it’s not just text.

I used this in Flash to generate those graphics,

var jsonFetcher:LoadVars = new LoadVars();

jsonFetcher.onLoad = function(success:Boolean) {  
if (!success) {  
trace(“Error connecting to server.”);  
ofertasLoaded = true;  
}  
};  
jsonFetcher.onData = function(thedata) {  
try {  
var json:JSON = new JSON();  
var o:Object = json.parse(thedata);  
lastY = 0;

```
	for(i = 0; i &lt; o.length; i++) {

		_root.ofertasHolder.attachMovie("ofertaTemplate", "oferta" + i,
			_root.ofertasHolder.getNextHighestDepth(), {_x: 0, _y: lastY});
		
		lastY = lastY + _root.ofertasHolder["oferta"+i]._height + 5;
		_root.ofertasHolder["oferta"+i].referencia.text	= o*["reference"];
		_root.ofertasHolder["oferta"+i].titulo.text = o*["title"];
		_root.ofertasHolder["oferta"+i].urgencia.text = o*["urgency_title"];		
		_root.ofertasHolder["oferta"+i].descricao.text = o*["body"];		
	}
} catch (ex) {
	trace(ex.name+":"+ex.message+":"+ex.at+":"+ex.text);
}

```

};  
jsonFetcher.load(“offersjson.php”);

stop();

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [May 28, 2008, 5:09pm UTC](https://forum.kirupa.com/t/scroll-for-dynamic-text-urgent-pays/261509/4 "2008-05-28T17:09:22Z")

</div>

I could help you in AS3, and this should be in AS2 forum
