Aubanis
Aubanis

Reputation: 23

Flex Label not showing up

I opened up flash builder, made a new Flex project, and then inserted that label into the mxml file.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

    <s:Label id="label" text="myLabel"/>

</s:Application>

Now I run this (Using either Internet Explorer or Google Chrome) and I see a simple white screen with nothing on it (http://i101.photobucket.com/albums/m59/plinios/Untitled-4_zps1ef1127d.png).

Is it just me being silly? I've looked everywhere and I could not find a solution. This seems to be a very very simple problem. Why is the label not showing up?

EDIT:

I restarted my PC and re-installed Flash builder. I then tried the simple code above and it still displayed a white screen for Chrome and IE. Interestingly enough, I put a panel for the label to rest on and it displayed in IE, but not in Chrome.

<s:Panel x="41" y="36" width="250" height="200">
    <s:Label id="label" x="10" y="-20" text="myLabel"/>
</s:Panel>

EDIT:

When right-clicking the screen, I get a flash menu, not an HTML menu.

Would using the Windows 8 operating system affect this in anyway? I don't see any other reason as to why it wouldn't be showing up normally.

Upvotes: 1

Views: 560

Answers (1)

Aubanis
Aubanis

Reputation: 23

I have solved this issue. The first thing to realize is that only IE will display this correctly. When you start coding, you need to wrap everything in a Spark Group. That's it!

Upvotes: 1

Related Questions