Solved

Components not showing in Flash Builder

Posted on 2011-03-24
5
429 Views
Last Modified: 2012-05-11
Hey all,

So I have not used Adobe Flex/Flash Builder in a couple of years and cannot l seem to understand why, when I Run the app, none of my components or text or really anything show up.

Any help on this would be very helpful.
0
Comment
Question by:ModifyMe
  • 3
5 Comments
 
LVL 17

Expert Comment

by:deepanjandas
ID: 35207505
It will be difficult to suggest as no details is provided on the code you are using.

There may be various reasons, and reading your thread makes me feel that it is a version incompatibility issue from Adobe Flex to Adobe Flash builder.

If that is the case, try using a lower version of the SDK (below 4) to compile. You can edit this from the project properties dialog.

Warm Regards
Deepanjan Das

0
 

Author Comment

by:ModifyMe
ID: 35207606
I've coded nothing yet...only placed labels and a few buttons into Flash Builder 4.  I am not bringing in anything into FB4.  I merely opened it, started a new Project, Created and MXML application, placed a few things on the screen, and hit Run.

The only thing that changes is the background color when I change that, but again, nothing else displays.
0
 

Author Comment

by:ModifyMe
ID: 35207921
Here is the code in the application...I have now only added the s:Group tag:

<?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="1015" minHeight="750" backgroundColor="#ADADAD" pageTitle="The Pinnacle Schools" width="1029" height="712">
	<fx:Declarations>
		<!-- Place non-visual elements (e.g., services, value objects) here -->
	</fx:Declarations>
	<s:Group>
		<s:Label x="441" y="726" width="257" text="Copyright 2011, The XXXX Business " height="14"/>
		<mx:SWFLoader x="8" y="111" width="378" height="547"/>
	</s:Group>

	<mx:Image source="../background-images/map.png" scaleContent="true" autoLoad="true" left="0" right="0" verticalCenter="15"/>
</s:Application>

Open in new window


This is my first time to use FB4 and it seems that I need to place stuff in s.Group in order to have access to some sort of z-depth...but I still cannot see anything when I Run it.
0
 
LVL 1

Accepted Solution

by:
LMorenoJR earned 500 total points
ID: 35208624
Hi there Modify Me, you are probably used to the previous way of working with flex 3 and below MX, flex 4 introduced spark which is more a "Pay as you go" where the new controls you use do not load all functionalities as before in order to make it more light weight. So in practice the issue you were having above  was that you did not specify a layout for the application which is something that was assumed and taked for granted before in MX (absolute being the default, horizontal and vertical being other options.
Here's a quick fix to your code I modified the layout and some coordinates to make sure it was displayed:
<?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">
	
	<fx:Declarations>
		<!-- Place non-visual elements (e.g., services, value objects) here -->
	</fx:Declarations>
	
	<s:layout> 
		<s:VerticalLayout />
	</s:layout>
	
	<s:Group>
		<s:Label x="5" y="5" width="257" text="Copyright 2011, The XXXX Business " height="14"/>
		<mx:SWFLoader x="5" y="10" width="378" height="547"/>
	</s:Group>
	<mx:Image source="../background-images/map.png" scaleContent="true" autoLoad="true" left="0" right="0" verticalCenter="15"/>
</s:Application>

Open in new window

update code view
0
 

Author Closing Comment

by:ModifyMe
ID: 35208834
Thank you!

If you don't mind, do you know why it does show up in IE, but not Chrome?

Also, does FB4 allow z-depth?  I have an image that I want shown, but I want radio buttons on top of it.

Again, thanks for the explanation and fix!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now