ActionScript 3.0 :: Combining 2 Variables - Background Image And Value Of I
Feb 26, 2011
Let's say I have
var i:Number = 6;
And I need that the 6 would go in place of (i) down below.
this.bg_img(i).visible=true;
So everytime variable "i" would change different background images would change their visibility at the same time.
View 2 Replies
Similar Posts:
Mar 14, 2010
1. I'm wondering if there is a way to use the loader to load in a series of pictures from disk rather than URL. If so what is the code for this?2. Is there a way to combine variables to create one single variable. Again if so how can I do this?I have included the code I am working on to give some clarity on what I'm trying to do.
Code:
var h:String = "http://img163.imageshack.us/img163/5961/pngjoust";
var p:String = ".png"
[code]......
View 1 Replies
May 21, 2010
I don't know if I named thread technically correct.
I'm new to flash, and my current challenge is to access object.[code]...
View 3 Replies
Mar 2, 2012
I have an embedded image and the class name to be userd in source tag is a combination of 2 variables, how to do this, below is an iadea of what i am trying to do:
[Embed (source="assets/image11_a.jpg")] public static const 11_a:Class;
var first_part:String="11";
var second_part:String="a";
and in mxml
<s:Image width="100" height="100" source="{first_part+second_part}"/>
above is just a small simplified example of what i am trying to do, actually the variables are getting populated from list.Basically i want to combine variable names to form the embedded image class name to be used in source of spark image.
View 1 Replies
Aug 7, 2008
I have completely hit a wall. Here's what I'm after. I have two sets of radio buttons, each of which controls what loaded swf appears on stage. Then, depending on which button is clicked in group one and which button is clicked in group two, a third swf appears. I can access the value of each radio button, and I'm passing it into a variable (I think - the trace command works) but when I drop it all together into an if/else statement, no data is passed.
Here's the code:
//printArea is a movie clip on stage, which has dynamic mc's attached via code
var thisFront;
//function for what happens when fronts radio buttons clicked
frontListener = new Object();
frontListener.click = function(evt) {
[Code] .....
View 3 Replies
Feb 3, 2010
I have a XML banner slide show component that displays images and can also display .swf files. Each image displays for 3 seconds. It works like a charm with the images. But if I put a .swf file in the XML the .swf file will only display for 3 seconds as well. Which I understand why. The problem is if I want my .swf file to have a .flv that plays for 30 seconds it will only show for 3 seconds.
QUESTION:how to pull the length from a .swf file that contains a flv file so I can use that duration time to replace the 3 seconds variable? I just need the duration time of the .swf file. I know what else to do to replace the variables.
View 15 Replies
May 2, 2010
I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?
View 1 Replies
Jul 24, 2009
I am relatively new to Flash CS3 and i have been learning Action-script 3 over the past week. I have come quite a long way and i have made a site in flash but i just have a question.I have been using an image as my background and i am happy with the way flash automatically scales all the objects in my file but the background image does not scale. Is there a way to do this? I have found out things online which show me how to add auto-resizing to the background but this knocks off the flash auto scaling/resizing for everything else.
View 4 Replies
Dec 12, 2009
I am developing a website in flex. And in that, i am trying to set the background image of my application. like this: parentApplication.setStyle("backgroundImage", data.image_src);
From a different location.
My issue is that, the images that i have are small and hence they are being stretched when used as background images. I want to avoid that from happening. How can i do it?
View 1 Replies
Mar 7, 2011
was wondering if anyone could assist me with some actionscript. I am working on a project similar to this (thehideout.org.uk/refuge/) and making the background image move around as if it the scene is a POV.
View 1 Replies
Aug 4, 2009
Iv got a background image 3 times the length of my stage.. what im trying to do is create a scroller so when you press a right button or a left button, it scrolls to the left third or the right third of the image.
[Code]...
View 0 Replies
Jan 12, 2010
I am using this following code to display images using xml.Everything is working fine for me but i have to add background image or border to the displayed image using function BitmapFileMaterial.
using BitmapData or Bitmap Class but same functionality.
[Code]....
View 0 Replies
Jul 10, 2011
I am making a new flash website and i stack on the as3 part.My site have a menu like all the site do.Now on the site load there is a background picture.When you press one of the menu buttons, the background image will change to this button specified image.But all that in an animation of fade in and out.My problem that i have everything but i cant know which image was before it changes to the buttons specified one. It maybe require as3 which i dont know.I cant upload here my work. its personal.But i ask you the professionals, please make a short fla file which will have the code and animations i need.(if you cant understand me)Please, make a fla file, which contains random 3 images.At the start it will have main background and a menu on it(just text-for fast and short work)The menu is 3 text ine(main,about,contact)now, make that when you press about(for example) it will change the main image(background) to the image of the about page.
View 2 Replies
Dec 10, 2004
im trying to send variables from flash to php in the background without reloading
here is my code
Code:
on(release) {
if(_root.main.right.news_sign.newsletter.text.indexOf("@") != -1 && _root.main.right.news_sign.newsletter.text.indexOf(".") != -1) {
[Code]....
it shouldnt pop up a window and tahts why im usng sendAndLoad and not send
View 2 Replies
Dec 10, 2004
im trying to send variables from flash to php in the background without reloading
here is my code
Code:
on(release) {
if(_root.main.right.news_sign.newsletter.text.indexOf("@") != -1 && _root.main.right.news_sign.newsletter.text.indexOf(".") != -1) {
[Code]....
it shouldnt pop up a window and tahts why im usng sendAndLoad and not send
View 1 Replies
May 14, 2009
I'm told that the following chunk of script will center the stage on resize, but not knowing much of anything about actionscript,
myListener = new Object(); myListener .onResize = function () { ... } Stage.addListener( myListener ); // later ... Stage.removeListener( myListener );
View 5 Replies
May 28, 2009
Set a .swf as a background image. I want it to still move.
View 3 Replies
Nov 17, 2009
I want to convert a .avi into a flash movie and import it into Dreamweaver as a background image so that it will expand in all different resolutions 1. what do I need to consider when building this in Flash (using MX 04)?2. What should my html look like in order to call this file as a background swf (and poss css file)?
View 7 Replies
Jul 9, 2010
I'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 Replies
Apr 8, 2011
I have looked around for about two hours now and I can't seem to find the command to convert this little piece of code to change the ball colour to a bitmap:
on(release){
myColor = new Color(_root.ball_mc);
myColor.setRGB(0xFF0000);
}
View 2 Replies
Jul 10, 2011
I 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 Replies
Sep 16, 2005
I have come to a solution where I use an invisible button (covering the whole movie) where the action takes place in. Problem is, I can't put buttons on it because the invisible button blockes them.Does anyone know an other solution of making my background image scroll like the example site?
View 4 Replies
Aug 4, 2008
Is it possible to target and style the div that swfobject (2.1) creates to display flash content?
Basically I want to be able to set a background image to appear in a header div, and then load a tranparent swf file over the top using swfobject. But swfobject doesnt seem to have any reference to the div that it creates when displaying flash content.. only the alternate content div.
View 3 Replies
Sep 28, 2010
i am creating a website for a personal trainer and i am having problems with the white background behind the flash website. how do i change the background colour/image?
View 2 Replies
Apr 7, 2010
I'm trying to create a website with full screen background images (or possibly, a video) but don't know the best way to approach it. The Die Antwoord site does pretty much what I'm trying to accomplish. I'd also like to know how they can use such high resolution images. If I try to use a high res image, the file size is enormous.I also want to do is to be able to change the background image when a button is clicked. What is the best way to do that with large images? Another site that uses similar technology only with a video is the TV on the Radio site.
View 3 Replies
Jul 20, 2010
I've got a 800x600 document that has a panoramic picture scrolling horizontally and buttons in the image.
i've got this piece of code for AS2.0
[Code]...
Otherwise it is working all good, but I'd like it to stay put at the start. Right now it immidiately starts scrolling to right unless I move the mouse on top to stop it. So ye, i need to have it sitting still and only scroll when the mouse is at the edges of the document.
View 3 Replies
May 25, 2011
I have this site[url]... and i want to make a random image background.so it is not always the same image. and at this point i dont need the radio buttons.
View 18 Replies
Jan 29, 2010
I wonder how you can put a fullsize background image to a website using Flash, similar to how www.zugspitze.de does.I can copy the HTML code but what does the flash document looks like?
View 1 Replies
Feb 10, 2011
I need to set up a website with a video as the background.
Will I be able to use z-index to position other elements on top of the video? Is there a better alternative?
View 4 Replies
Feb 18, 2011
It seems that this should be a simple thing but I can't figure it out. I would just like my visitors to see a beautiful, still, jpg image in the space where my flash movie is loading...until it is fully loaded. I tried putting a background image in the cell (using Dreamweaver MX) but once I import the swf file, I can no longer see what's in the background.
When I select the flash movie in MX it only allows me to select a background color, not an image. I know that I can use a preloader of some sort to let people know there is flash content loading but I would rather use the opportunity to show a professional photo. Do I have to set this up the same way a preloader is set up but with a single frame maybe or is there an easier way.
View 2 Replies