why Break Apart Remove my test in flash cs6? - actionscript-3

I want to convert text to shape in flash cs6 AS3
when I click Break Apart then my text is removing.
Please advice me why?

I think you better enter your text in another software, like word or paint
Capture the screen (using PrtScr or PrintScreen or an utility)
Paste in your stage
Convert to symbol
Enter the symbol and then Break Apart!!
It will then be an Image and you can change it as you like!!
Good Luck!

Related

How to detect the color of an image using AS3 and adobe air?

I'm having a hard time finding any data on how to detect the color of an image taken from a phone's camera using adobe air. The idea is that the user takes an image and then the app (that uses this code) detects the color of the item the user has photographed by placing a cursor on top of it.
So does someone please tell me how is this attainable in adobe air and action script 3.
many thanks in advance!!!!
You can use getPixel or getPixel32 from BitmapData() enter link description here
Than you can convert it to HEX if you wish.

How to change dynamic text in flash as3?

I'm beginner in flash. I created a text from the text_tool in flash. I set the instance name 'mytext' and text type to dynamic. Now I want to change the text on run time. For example: current text is 'hello world' now when I run the flash file I want to change the text to 'any random text'. So I used following code for this. mytext.text = 'any random text'; but on the run time I could see any text. Please help me how to change its text?
Thank you
There could be multiple reasons for that, Please check for the following:
If there are multiple frames on your timeline and your TextField is extended all over those frames then make sure you have provided the instance name to your TextField on all the KeyFrames on the timeline.
If you are using some fancy Fonts, try embedding the fonts, at times non-embedded Fonts create this problem.
for addition, you can use
your textfield.appendText();
good luck for your work :)

Remove text within certain identifiers from html string in AS3

For a project, I'm trying import htmlText into flash, and then remove any items flash will not process. For example, the html I want to import contains custom "[caption][/caption]" code. I essentially want to remove these identifiers and any text from in between them so that flash will not display them in a text field. Does anyone have a good suggestion/example for me? I have been trying to figure out how to use regular expressions to do this, but have been unsuccessful in finding a good guide for it and so have failed.
And example of text I'm trying to filter:
<em>Pushmo</em> is a game filled with questions. How do I solve this puzzle? Is that a 8-bit Mario's face? Why is this old, obese blob making tons of death traps that easily ensnare and encase unsuspecting children?
[caption id="attachment_37414" align="alignleft" width="400" caption="The fat, red sumo goes into the most dangous place imaginable."]<img class="size-medium wp-image-37414" title="Pushmo-title" src="/2011/12/pushmo-3ds-title-screen-400x203.jpg" alt="Pushmo Title Screen" width="400" height="203" />[/caption]
<em>Pushmo</em> is a downloadable puzzle game in the 3DS eShop. In <em>Pushmo</em> you take on the role of Mallo, an amorphic red sumo wrestler with the mind of an Einstienian savant.
I'm looking to be able to detect identifying text and remove anything between them. I'd appreciate any suggestions anyone can give me.
You might be able to use indexOf and lastIndexOf to achieve this without regex.
Also you should have a look at String.replace
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.html
and an as3 regex tutorial:
http://snipplr.com/view/6608/as3-regular-expression-basics/
finally a tutorial for pure regex:
http://www.regular-expressions.info/tutorial.html

Unknown error AS3

Well, it's not an error, actually. I have wrote a game. There is only one keyframe on the main timeline (I don't mean one layer, there are lots of them, just like different MovieClips). Currently, I'm not using TextField anywhere, but I want to, because I need to display score on the screen. When adding TextField through Flash CS5 and naming it, when compiling, unknown window appears, you can see it on the picture. Not quite sure what it means. When clicking OK, window disappears but instead of my program there are three dots on the screen, you can see them also. I have no idea, neither of what is this, or how to fix it. Any hints? Thank you in advance :)
By the way, on one of the pictures, you can see what the game should look like. And as I said, it does, until I add some TextField to it.
it seems that you're using the TLF (text-layout-framework) in your textfield by accident.
this is a RSL (runtime shared library) that the flashplayer has to load before it can show your content. (and i think the dots are some kind of preloader that adobe puts in there ...!?)
but you don't need the TLF, you can just use a simple TextField.
select your score-textfield and choose "classic-text" in the properties window ... think that'll remove the TLF from your project. (if you have more than one TextField, check every one of them for "TLF text" and change it to classic).

Bold and regular font in dynamic text under a mask In Flash with AS3

I have this text "my text is <b>bold</b> and regular".
I want "<b>bold</b>" to be... well, let's say... bold !
I have a mask layer under which there is a text field.
The text field shows htmlText, and i must embed chars. If not embedded, it doesn't display because of the mask. So the solution of importing 2 user fonts ( one bold and one regular) does not work.
I'm thinking this is impossible to do with Flash... Maybe I wrong, am I ?
Thank you !
The problem is that when you embed the characters, it only embeds normal-weight font characters. The Mask is a red-herring; this will happen whether you mask the TextField or not.
You can solve the problem however! Create another TextField in your FLA (off-stage, I imagine) with the same font at the same size, but set the font to bold. Embed characters in that TextField too.
Then, the bold characters in your first TextField will display as bold.
There are other ways to achieve this, especially if you don't use the Flash IDE to compile your swfs (if you use MXML through FDT, FlexBuilder, FlashBuilder or FlashDevelop for example). If you do, then you should lookup how to embed fonts using [Embed] metadata.