# How do I change all static text to uppercase?

**URL:** <https://forum.kirupa.com/t/how-do-i-change-all-static-text-to-uppercase/401110>\
**Category:** Uncategorized\
**Created:** [December 2, 2014, 7:39pm UTC](https://forum.kirupa.com/t/how-do-i-change-all-static-text-to-uppercase/401110 "2014-12-02T19:39:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![3dron](https://avatars.discourse-cdn.com/v4/letter/3/2acd7d/32.png) [@3dron](https://forum.kirupa.com/u/3dron)\
**Post date:** [December 2, 2014, 7:39pm UTC](https://forum.kirupa.com/t/how-do-i-change-all-static-text-to-uppercase/401110/1 "2014-12-02T19:39:05Z")

</div>

I am looking for a feature like in CorelDraw where I can select a bunch of text items and change to all UPPERCASE in Flash CS6.

Is there a fast way to do this?

3dron

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [December 2, 2014, 8:07pm UTC](https://forum.kirupa.com/t/how-do-i-change-all-static-text-to-uppercase/401110/2 "2014-12-02T20:07:22Z")

</div>

JSFL! This should do it:

```javascript
var sel = fl.getDocumentDOM().selection;
for (var i = 0, n = sel.length; i<n; i++) {
	if (sel[i] instanceof Text) {
		var runs = sel[i].textRuns;
		for (var j = 0, m = runs.length; j<m; j++) {
			runs[j].characters = runs[j].characters.toUpperCase();
		}
	}
}

```

Save this as `Convert to Uppercase.jsfl` and open it from Commands \> Run Command… in Flash. It should convert selected text fields into uppercase.

This I just did off the top of my head; there might be more capable solutions online that account for other complications I’m not thinking of. This should do the trick for most cases… probably 😉

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [September 2, 2015, 8:05pm UTC](https://forum.kirupa.com/t/how-do-i-change-all-static-text-to-uppercase/401110/4 "2015-09-02T20:05:55Z")

</div>

I think you misread the situation. OP had a bunch of existing, already placed static text, which isn’t really addressable via ActionScript. It being static also means that there won’t be any change events.
