Actionscript 3 :: Set Background Of Row Dynamic Using Flex?
Jan 18, 2010Look my source:Template:
[code]
<mx:Script source="ListStatus.as" />
<!-- Template -->
[code].....
Look my source:Template:
[code]
<mx:Script source="ListStatus.as" />
<!-- Template -->
[code].....
create an effect that loads a fullscreen background image that changes according to the navigation selection. The background will be replaced everytime the navigation is activated
View 1 RepliesAs the title already states i have a (big) problem importing a PNG in a Flex 4 application.Created a PNG file in Photoshop with transparent background. Loaded in Flex application using this code:[code]So when the complete event fires the data has been loaded and it is possible to assign the data loaded to the image component named Thumbnail:[code]Unitls now everything works as expected!But when i try to send the Thumbnail component's data to a WCF service i receive a photo with white background:[code]
View 2 Repliesbut i want, when resizing the swf window, to change the width and height dynamically.i have a problem when erasing my childs in the for, because i want to erase/create the childs everytime the user resize the window.this is my code until now:
ActionScript Code:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
[code].....
All the nav links are correct but i am having problems with the background color and placing the submenu nav links.For the background color i am have created a function drawBG. At the moment i have set the name static, but i realise that sometimes i have 3 submenu.So i can't use the same name over and over again. How do i create the names dynamicly for say 3 submenu'sso i have something, likemainMenuBG - submainMenuBG - subsubmainMenuBG - subsubsubmainMenuBG
Code:
function generateMenuNew(container, name, xPos, yPos, depth, node_xml, bgMenuDepth, bgName) {
[code].....
I have a main FLA which is a flip book (the one like you click or drag the corner and will flip the page to the next one). And I have a swf background (a dynamic swf with floating bubbles which will move following your cursors).
I tried to embed the swf background in a container and then put it to my main Flash file (the flip book). It works fine but once I click the Full Screen button, the main contain (i.e. the flip book) is still aligned to the Top Left corner.
I tried many times by changing the codes such as removing the line "stage.align = "TL"" but it still doesn't work.I am trying to complete 4 tasks:
1) To align the main content (flip book) to the center of the screen no matter in "Normal" or "Full Screen" modes
2) To add the swf dynamic background to the back but still the flipbook will be aligned in the center without any changes (no matter "Normal" or "Full Screen" modes)
3) Add a button to toggle Full Screen mode but the flip book will be kept in the absolute center of the screen
4) Right click the flash and will show a pop-up menu. If I click "designed by:", the whole screen will turn black (both "Normal" and "Full Screen" modes)
I try to list out the codes I have:
Toggle Full Screen
Code:
Stage.scaleMode="noScale";
bg_mc.loadMovie("background.swf");
[code]....
My dynamically loaded background is overlapping my buttons for audio on the stage.
My .fla is located at www.saleck.net/TEMP/U0863279.7z
There are 4 buttons and a Text box on Frame 1, but the background that is loaded in the code overlaps.
I would like to know if its possible to create a background flash that is dynamic while keeping the bars static?for an example checkI would like someone to build a home page for me to be exactly like the samsung site above except using my images. Is this possible?
View 1 RepliesI have a method that takes a few paramerters and dynamicly adds three images to the stage it also adds a background image to the three images.I am trying to figure out the following: How can I tween in the background movieclip and on complete tween in the three dynamic movieClips? Can I have a function within a function that shares the same variables?
Something like the following:
public function addImages(BackGround:String,Image1:String,Image2:String,Image3:String):void
{
var symbol_class:Class = getDefinitionByName(BackGround);
var image1_class:Class = getDefinitionByName(Image1);
var image2_class:Class = getDefinitionByName(Image2);
[Code]...
I'm doing this in an effort to make viewing a product catalogue better to view on dial-up, basically the next image should load in the background while the current one is being loaded.
I was thinking of making an object for each clip, although I'm getting a little lost on this, its late and I need to get to bed, so I thought I'd throw it up on here and see if anyone has any ideas!
Basically, right now the previous/next buttons aren't dissapearing when they should be and the previous image doesn't appear to be cached (needs to be tested in a browser to see this)
i'm doing a dynamic background stripes effect like this URL...but i want, when resizing the swf window, to change the width and height dynamically.i have a problem when erasing my childs in the for, because i want to erase/create the childs everytime the user resize the window.[code]
View 4 Replies- From my XML file an array is created with several background images
- The first image gets randomly loaded into a BitmapData and is attached to the first movieclip for smoothing. After that the movieclip gets proportionally scaled to fit the Stage.
- After an interval (set in the XML) the second image gets randomly loaded into a BitmapData and is attached to the second movieclip with a nice fade-in effect. After that the movieclip gets proportionally scaled to fit the Stage and the movieclips swap their depths.
- The third image gets loaded into a BitmapData and is attached to the first movieclip again.
etc etc etc.
[Code]...
I'm trying to have a dynamic text field with a black background. I want the text to be of fixed width, but expandable height, and for the background to grow with the text field depending on the input. I looked at the "autoSize" property for TextField, but it looks like that only adjusts the width.
Some "pseudocode" for your consideration:
rolloverInfoBox.infoTextTitle.text="Title";
rolloverInfoBox.infoTextBody.text="Text body...";
rolloverInfoBox.infoTextBody.autoSize=true; // doesn't work; just for reference
rolloverInfoBox.expandableBackground.height=rollov erInfoBox.infoTextBody.height;
I am trying to style text in a dynamic text field with a background color (not the whole textfield background, but just of the text - like the effect when you select it). My textfield is on top of a photo, which might explain why I'm trying to do this.
View 1 RepliesBasically I want to make the background of the Dynamic Text box have a color. How do I do this using AS3?
View 3 RepliesIs it possible to make a dynamic textfield's background color alpha set to .5 and not affect the alpha of the text?
View 3 RepliesI have a dynamic text field being fed html formatted text from an external text file, and is set to autosize vertically (left), works no problem. I have an animated movie clip behind the text field for a background, so the text looks like it's inside a (animated) colored box. How do I make the background movie clip autosize (vertically) along with the text box above it?
View 2 RepliesI've got two files A and B. A generates a random number in a dynamic text box and loads an image as the background:
[Code]...
I'm trying to avoid useing a button to send the number from A to B, and instead am trying to use an event listener that sends the number when A loads background.jpg; but the number never gets sent (I start with B open already, and then open A). I've gotten this to work with an onRelease event for a button , so i know the LocalConnection coding works, but as I said I want to avoid using a button to send the number. I'm sure it's right in front of me but i've got no clue why it isn't working, so I defer to wiser minds.
I have a Flex Tree component in my app. I set the icons for open and close.
BUT I can't find something about changing the default background-color from white to something different.
obviously there is no background-color setable in css...
I want to give the users the ability to set the background color or choose image to make it background (Tile, Center and Strentch). I tried couple of things with no luck such as trying to chaing a Skin object and assign it.and tried something like:
FlexGlobals.topLevelApplication.setStyle("backgroundColor",uint(chosenColor));
I'm trying to change the background color on a textinput component in flex 4. I've been able to change some of the appearance by messing with the canned code flash builder generates for the sparkskin but for some reason, background does nothing.I'm just trying to make the background black. I changed the background color but it's not working:[code]
View 1 Repliesi have a question while reading Flex 4 Cookbook i came across the method to dynamically adding control to the container controls but nowhere i came across with how to provide them with the dynamic properties and events like they have created a button dynamically inside a group control but what good a button be if i cannot give it an event dynamically. in the same way i want to add a tree view inside a vbox but what good that be if cannot provide a data provider to it dynamically.actually i am creating an web application where i add the tree view to a vbox and i want to the data provider should also be dynamic depending upon the option i have selected in the combo box.
View 1 RepliesHow would I make a dynamic text boxes border a certain color, along with background color.
View 1 RepliesI'm using Flash Builder 4 to create an application. I need to set an background image for the app. I've pulled through the data from XML. I am using an <mx:Image> for the background-image. But I need elements to then be added inside it. How do I achieve this? I considered using Layers, but dont know how you achieve this.
View 3 RepliesI am trying to provide my users with the option to have my application launch automatically and complete a task at a certain time every week. I can make my application launch at log in using NativeApplication.nativeApplication.startAtLogin=true but I then want to detect if the time is the time they selected and if it isn't then run the application in the background until the time does match or the user shuts down their computer. On Adobe's webpage comparing Flex web apps and desktop apps it implied to me that applications could be run in the background.
View 2 RepliesI have written a custom skin in Flex 4.5, which shows a custom image. I want this to my background image, so how can I set this skin to the application container?
View 3 RepliesI am Creating one application in which I want to set one swf as my application background.
I am able to set background but it is only coming with some area only.
It is not coming in the whole application.
It is not scaled in the whole application background.
I am using 9-slice scaling with that background SWF.
I have tried setting the background image this way, but it doesn't work. how to set the background image of a rich text control in flex as easy as possible?
.rte{
...
backgroundImage: "assets/globe.jpg";
}
[Code].....
I created an application with Flex and it open large PDF file, so when show PDF file it is too slow. Anybody, who know a solution which open PDF in background with HTMLLoader?
View 1 RepliesCan a Flex Air Android app have transparent background, like the Android Theme.Transluscent? I've tried adding:
<systemChrome>none</systemChrome>
<transparent>true</transparent>
to the -app file but that just makes the background white.