This text is replaced by the site logo. If not, try enabling javascript.
Advertise
|
About us
|
Site map
|
Syndicate
|
Search site
|
Mailing list
|
View Authors
|
Become an Author
Home
Tutorials
Forums
Articles
Blogs
Movies
Library
Employment
Press
ActionScript.org Forums
>
Flex
>
Flex 2, 3 & 4
Background Image in mx:VBox
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Page 1 of 2
1
2
>
Thread Tools
Rate Thread
Display Modes
08-18-2011, 09:58 AM
#
1
umesh8965
Registered User
Join Date: Dec 2010
Posts: 47
Background Image in mx:VBox
hi friends
please see following code, i just want to display image in Vbox, what i'm missing on that?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="">
<mx:Style>
mx|VBox {
backgroundImage: Embed("a.png");
backgroundSize: "100%";
}
</mx:Style>
<mx:VBox height="200" width="200" />
</mx:Application>
thnx for adv
umesh8965
View Public Profile
Find More Posts by umesh8965
08-18-2011, 10:01 AM
#
2
Syllogism
capt. Obvious
Join Date: Aug 2006
Location: South Africa
Posts: 826
could it be you are using the incorrect syntax for the embed commend? isn't it like this:
[Embed(source="a.png")]
__________________
S y l l o g i s m, Cptn Obvious
"I think you'll find my argument is flawless [Citation][Citation][Citation]"
Syllogism
View Public Profile
Find More Posts by Syllogism
08-18-2011, 10:02 AM
#
3
Syllogism
capt. Obvious
Join Date: Aug 2006
Location: South Africa
Posts: 826
could it be you are using the incorrect syntax for the embed commend? isn't it like this:
[Embed(source="a.png")]
__________________
S y l l o g i s m, Cptn Obvious
"I think you'll find my argument is flawless [Citation][Citation][Citation]"
Syllogism
View Public Profile
Find More Posts by Syllogism
08-18-2011, 10:08 AM
#
4
umesh8965
Registered User
Join Date: Dec 2010
Posts: 47
thnx ur replay
actually it's complie but givs me a warning
Warning: The style 'backgroundImage' is only
supported by type 'mx.containers.VBox' with the theme(s) 'halo'.
umesh8965
View Public Profile
Find More Posts by umesh8965
08-18-2011, 10:17 AM
#
5
Syllogism
capt. Obvious
Join Date: Aug 2006
Location: South Africa
Posts: 826
is this a flex 3 project? is that why you are using the mx component? you could use a spark component rather? like Hgroup
__________________
S y l l o g i s m, Cptn Obvious
"I think you'll find my argument is flawless [Citation][Citation][Citation]"
Syllogism
View Public Profile
Find More Posts by Syllogism
08-18-2011, 10:26 AM
#
6
umesh8965
Registered User
Join Date: Dec 2010
Posts: 47
i'm using sdk4.0 and only helo controls of flex, i see no of examle which is work with mx:Vbox.
wht's prob in my code
umesh8965
View Public Profile
Find More Posts by umesh8965
08-18-2011, 11:33 AM
#
7
Syllogism
capt. Obvious
Join Date: Aug 2006
Location: South Africa
Posts: 826
try this:
<mx:VBox id="vBox"
backgroundImage="@Embed('image.png')"
width="250"
height="250">
</mx:VBox>
__________________
S y l l o g i s m, Cptn Obvious
"I think you'll find my argument is flawless [Citation][Citation][Citation]"
Syllogism
View Public Profile
Find More Posts by Syllogism
08-18-2011, 12:14 PM
#
8
umesh8965
Registered User
Join Date: Dec 2010
Posts: 47
hi Syllogism
i change code.. but error is coming
error: The style 'backgroundImage' is only
supported by type 'mx.containers.VBox' with the theme(s) 'halo'.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="">
<mx:VBox id="vBox"
backgroundImage="@Embed('fx.png')"
width="250"
height="250">
</mx:VBox>
</mx:Application>
umesh8965
View Public Profile
Find More Posts by umesh8965
08-18-2011, 12:15 PM
#
9
Syllogism
capt. Obvious
Join Date: Aug 2006
Location: South Africa
Posts: 826
did you remove the styling attributes?
__________________
S y l l o g i s m, Cptn Obvious
"I think you'll find my argument is flawless [Citation][Citation][Citation]"
Syllogism
View Public Profile
Find More Posts by Syllogism
08-18-2011, 12:23 PM
#
10
umesh8965
Registered User
Join Date: Dec 2010
Posts: 47
yes!
umesh8965
View Public Profile
Find More Posts by umesh8965
Page 1 of 2
1
2
>
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Rate This Thread
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
ActionScript Forums Group
ActionScript 3.0
ActionScript 2.0
ActionScript 1.0 (and below)
Simple Stuff (Newbies)
Flash General Questions
Flash 10 General Questions
Flash 9 General Questions
Flash 8 General Questions
Other Flash General Questions
Flex
Flex 2, 3 & 4
Flex 1
Extensions and Plugins
Components
JSFL - Extending Flash
Desktop, Mobile and non-browser Environments
AIR (Apollo)
FlashLite / Portable Devices Development
Projectors and CDs
Supporting Technologies
HTML and JavaScript
haXe
Server-Side Scripting
Flash Remoting
Flash Media Server
General
Best Practices
Gaming and Game Development
Animation and Effects
Flashants Support Forum
Community Boards
General Chat
Just for Kicks Challenges
Detention
Flash In Action
Site Check
Cool Sites
Widgets
Decommissioned
Projects and Positions
CMS Forums
Announcements Board
Content Postings / Updates
Product Review Requests
CMS Technical Questions
Process Questions
Collaboration & Suggested Articles
All times are GMT. The time now is
11:25 AM
.
///
Categories
Tutorials
Flash
Flex
Articles
Best Practices
Product Reviews
Third Party
Press Releases
The Community
Featured Jobs
Technical Flash Artist
MADISON, USA
iPhone/iPad Developer - CREATIVE CIRCLE
Philadelphia, USA
UX DESIGNER - CREATIVE CIRCLE
Philadelphia, USA
- More ActionScript, Flash and Flex jobs in the Employment Section.
- Advertise a job for free
Contact Us
-
Home Page
-
Archive
-
Privacy Statement
-
Top
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by
RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our
Privacy Policy and Terms of Use
.