Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Using A Picture As The Movie Background



I have a quick question. Can someone tell me how to insert a picture as a movie background? The reason is every time when I insert a picture into the movie, I cannot see the text animated on the movie. The picture that I inserted is on the top of the text. Thanks.

-Alan
For free web access, web hosting, shopping and more.
http://www.USWebcity.com



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 12-18-2003, 07:13 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Using A Picture As The Movie Background
I have a quick question. Can someone tell me how to insert a picture as a movie background? The reason is every time when I insert a picture into the movie, I cannot see the text animated on the movie. The picture that I inserted is on the top of the text. Thanks.

-Alan
For free web access, web hosting, shopping and more.
http://www.USWebcity.com

Background Picture
http://www.minus.dk/ in this website if you decrease resolution like 800x600 then background picture size increased. I mean you can see more picture from down than in higer resolution 1280x720. And in all resolutions picture is not stretched.

Any one know about this or tutorial, source about this.

Since one month i am trying to do this but failded.

Changing Background Picture
How do you change the background picture on mouse event? I want a background picture to be loaded into the flash movie from the library and change to another when a button is clicked.Or is there a better way?

How Can I Set The Background Picture To Change?
if i will to do a site with a menu..
lets say there is 5 pages inside that menu
how can i set the background image to change each time 1 of the page is clicked or when the page changes??
and if possible can i set it to change randomly??
maybe like i put 10 images in a folder and ask the movie to grab any one each time...

another qn is how can i setup something like a blog in flash so that pple can comment??
i dont know how to integrate html with flash movie..
someone please teach me or point me in any direction of help

Background Picture In Flash?
can i place a picture as a background for flash??
or is creating a movie of same size the picture is and placing the picture in a layer only way of doing it??

How Do I Put A Tiled Picture For A Background?
Instead of just a regular color for my background, I want a bitmap to be tiled across the background, how can I do that? If I add it to the background of my website, it's actually smaller than the larger background area, and just covers the back of the website area thats not as big as the whole screen.

Scrollpane With A Picture Background?
I was just wondering if its possible to have a scrollpane to have a picture background so when its time to link the items that is to be scrolled, the items seems to be floating on that background. My items I am talking about is pictures, just incase anyone needed to know. I was just wondering if its possible, and how would I do that? Can someone help, please, and thanks.

Background Picture With No Scrollbars?
I have noticed several flash sites now, that almost have a "stage area" that is centered amongst the screen, with a large background image to cater for different various sized resolutions, and I wondered how its possible to do this.

For example, if you check out the following splash page:

http://www.leventhumps.com/

You will see the background image is quite big, yet it will shrink down even to an 800x600 size window even without scrollbars.

How is this possible ? Anyone shed any light?

Background Picture Morphing[MX]
i am trying to use two picutres morphing back and forth (looping), as the background on a presentation. I left them as images not as symbols and i put the first one in the first frame and the second one in the 10th frame and i did a shape tween. i would like both the pictures to be at a low alpha percentage in order to not distract users/viewers from the point of the presentation, can i do that without a symbol. these two won't morph and the shape tween arrow stays as a broken line.

*External Picture As Background
hi,
I had made a movie that has a main_picture.jpg which is used as background and has its own effects so I wanted to know if I can use a button which imports an external picture as background and replace the pictures with each other and nothing happens to my movie and this new picture has the effect like the main one.
Thanks

Making A Picture Into The Background
I am wondering how I can make a bitmap into the background for my flash movie. I can easily stretch a picture to the right size but then I can't figure out how to make text and other pictures appear over my background picture. The "Send to Back" and "Bring to Front" actions don't seem to do anything.

Please Help!
Aaron

Scrolling Background With Picture
Hey!
Here's the picture I was using with my scrolling background. I hope it helps! Thank you very much!

Natalie

Background Picture Resizing
If you go to THIS site you can see a nice background picture which resizes perfectly without loseing it's quality when you resize browser window. How is that done? I know you can tile your bitmap using BitmapData (where you just tile a bitmap sample accross the stage using onResize listener and Stage.width and Stage.height) but how do you dynamically resize background picture so perfectly without loosing it's quality? Can anyone provide a sample for this?

thanks

I Don't Want A Background Colour Or Picture On My Flash...........help
How do I make a flash with absolutely NO BACKGROUND?.

I want to make one for my site to coincide with my current background, I have tried everything, but I cannot get it to work.

I have even tried using part of my background as the flash's background but it won't resize to the size of the image.

Any help would be appreciated.

Yours

Steven
webmaster & Owner Of Ur IT Mate - Computer & Internet Support Site
http://mjjmystery.blix.com/it

How Do I Import Picture With A Transparent Background?
I am new to flash and have just learned a couple basic ways to animate pictures moving along my screen. my problem is i have two lightning bolts that i want to come together and overlap, but they have automatic white rectangles with them so one makes the other dissappear when they overlap. if anyone can help it would be appreciated.

Inteface Thatīs Over The Background Picture Is Always Centred
I want to have the same function that 2advanced have on the swf in the Browser window. Look at the link below and you can see that the interface thatīs over the background picture is always centred when you make the browser smaller. The background picture and the picture over the background picture is always in tune with each other. How did they do that?


http://www.2advanced.com/#portfolio/.../showall&id=80

Full Browser Background Picture
I am trying to build an AS3.0 flash site with a full browser background image
that scales proportionally like in http://www.kanyon.com.tr/
I found some stuff online but nothing on how to do it with AS3.0
Can anyone help me out please?

AS3: Dynamically Resizing Background-picture
hi everybody.


I'm testing this idea of mine, but so far I've not been awarded succes.
so, here's what's my idea about:

I want to load a big background-picture into my Flash, and then I want it to be resized so it fits the screen-resolution that the user has on his/her browser.
see the example I've made so far, here:http://campjohn.dk/test/test100.html

it loads perfectly, and - from what I can see - keeps it's dimensions.
but it does not resize to the size of the browser as it should.
...if you go to the link, and then manually resize the browser-window, you'll get the resizing of the background-picture going on, though.

here's how it's all build:
I have a test100.fla with a test100.as Document Class

test100.as:

Code:
package {

import CustomBackgroundTest;

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageQuality;
import flash.display.StageScaleMode;
import flash.events.Event;

public class test100 extends Sprite {

private var _customBackgroundTest:CustomBackgroundTest;

public function test100() {
init();
}

private function init():void {
stageInit();
customBackgroundTestInit();
firstResizing();
}

private function stageInit():void {
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.quality = StageQuality.BEST;
stage.frameRate = 30;
stage.showDefaultContextMenu = true;
stage.addEventListener(Event.RESIZE, onResize);
}

private function customBackgroundTestInit():void {
_customBackgroundTest = new CustomBackgroundTest(stage.stageWidth, stage.stageHeight);
addChild(_customBackgroundTest);
}

public function firstResizing():void {
_customBackgroundTest.onResize(stage.stageWidth, stage.stageHeight);
}

public function onResize(event:Event):void {
_customBackgroundTest.onResize(stage.stageWidth, stage.stageHeight);
}

}
}
see.. the init function calls a firstRezing-function which calls the same .onResize function as a manual resizing does.
so why does it only work when manually resizing the browser-window?

here's the customBackgroundTest.as:

Code:
package{

import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;

public class CustomBackgroundTest extends Sprite {
private var _loader:Loader;
private var _request:URLRequest;
private var _stageWidth:Number;
private var _stageHeight:Number;

public function CustomBackgroundTest(stageWidth:Number, stageHeight:Number) {
_stageWidth = stageWidth;
_stageHeight = stageHeight;

init();
}

private function init():void {
backgroundInit();
}

private function backgroundInit():void {
_loader = new Loader();
_request = new URLRequest("myBackground.jpg");
_loader.load(_request);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, setSize);

addChild(_loader);
}

private function setSize(e:Event):void {
_loader.width = 1600;
_loader.height = 1200;

_loader.removeEventListener(Event.COMPLETE, setSize);
}

public function onResize(stageWidth:Number, stageHeight:Number):void {
_stageWidth = stageWidth;
_stageHeight = stageHeight;

trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);

var ratio:Number = _loader.width / _loader.height;

if ((_stageWidth / ratio) >= _stageHeight) {
trace("_stageWidth / ratio");
trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);
_loader.width = _stageWidth;
_loader.height = (_stageWidth / ratio);
trace("_loader.width = "+_loader.width+" & _loader.height = "+_loader.height);
}
else {
trace("!_stageWidth / ratio");
trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);
_loader.height = _stageHeight;
_loader.width = (_stageHeight * ratio);
trace("_loader.width = "+_loader.width+" & _loader.height = "+_loader.height);
}

}

}
}
as you can see, there's lots of traces in .onResize function.
these I've used to trace, what is actually going on.

when the backgroundpicture is loaded at first the onResize-function traces this:
_stageWidth = 400 & _stageHeight = 300
_loader.width = 0 & _loader.height = 0

and when the .swf is manually resized this is what is traced out:
_stageWidth = 1087 & _stageHeight = 661
_loader.width = 1087 & _loader.height = 815.25

this might be the problem, but right now I'm too confused from looking at this over and over again... anyway, it seems strange, that the _loader.height which is set to the _stageHeight (which is 300) turns out to be 0!

all the files are downloadable here:http://campjohn.dk/test/resizing.zip
can anyone help me solve my problem?


thanks a lot
felisan

Full Browser Background Picture
I am trying to build an AS3.0 flash site with a full browser background imagethat scales proportionally like in http://www.kanyon.com.tr/ I found some stuff online but nothing on how to do it with AS3.0
Can anyone help me out please?

AS3: Dynamically Resizing Background-picture
hi everybody.


I'm testing this idea of mine, but so far I've not been awarded succes.
so, here's what's my idea about:

I want to load a big background-picture into my Flash, and then I want it to be resized so it fits the screen-resolution that the user has on his/her browser.


see the example I've made so far, here:

it loads perfectly, and - from what I can see - keeps it's dimensions.
but it does not resize to the size of the browser as it should.
...if you go to the link, and then manually resize the browser-window, you'll get the resizing of the background-picture going on, though.

here's how it's all build:
I have a test100.fla with a test100.as Document Class

test100.as:

Code:
package {

import CustomBackgroundTest;

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageQuality;
import flash.display.StageScaleMode;
import flash.events.Event;

public class test100 extends Sprite {

private var _customBackgroundTest:CustomBackgroundTest;

public function test100() {
init();
}

private function init():void {
stageInit();
customBackgroundTestInit();
firstResizing();
}

private function stageInit():void {
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.quality = StageQuality.BEST;
stage.frameRate = 30;
stage.showDefaultContextMenu = true;
stage.addEventListener(Event.RESIZE, onResize);
}

private function customBackgroundTestInit():void {
_customBackgroundTest = new CustomBackgroundTest(stage.stageWidth, stage.stageHeight);
addChild(_customBackgroundTest);
}

public function firstResizing():void {
_customBackgroundTest.onResize(stage.stageWidth, stage.stageHeight);
}

public function onResize(event:Event):void {
_customBackgroundTest.onResize(stage.stageWidth, stage.stageHeight);
}

}
}
see.. the init function calls a firstRezing-function which calls the same .onResize function as a manual resizing does.
so why does it only work when manually resizing the browser-window?

here's the customBackgroundTest.as:

Code:
package{

import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;

public class CustomBackgroundTest extends Sprite {
private var _loader:Loader;
private var _request:URLRequest;
private var _stageWidth:Number;
private var _stageHeight:Number;

public function CustomBackgroundTest(stageWidth:Number, stageHeight:Number) {
_stageWidth = stageWidth;
_stageHeight = stageHeight;

init();
}

private function init():void {
backgroundInit();
}

private function backgroundInit():void {
_loader = new Loader();
_request = new URLRequest("myBackground.jpg");
_loader.load(_request);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, setSize);

addChild(_loader);
}

private function setSize(e:Event):void {
_loader.width = 1600;
_loader.height = 1200;

_loader.removeEventListener(Event.COMPLETE, setSize);
}

public function onResize(stageWidth:Number, stageHeight:Number):void {
_stageWidth = stageWidth;
_stageHeight = stageHeight;

trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);

var ratio:Number = _loader.width / _loader.height;

if ((_stageWidth / ratio) >= _stageHeight) {
trace("_stageWidth / ratio");
trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);
_loader.width = _stageWidth;
_loader.height = (_stageWidth / ratio);
trace("_loader.width = "+_loader.width+" & _loader.height = "+_loader.height);
}
else {
trace("!_stageWidth / ratio");
trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);
_loader.height = _stageHeight;
_loader.width = (_stageHeight * ratio);
trace("_loader.width = "+_loader.width+" & _loader.height = "+_loader.height);
}

}

}
}
as you can see, there's lots of traces in .onResize function.
these I've used to trace, what is actually going on.

when the backgroundpicture is loaded at first the onResize-function traces this:
_stageWidth = 400 & _stageHeight = 300
_loader.width = 0 & _loader.height = 0

and when the .swf is manually resized the is what is traced out:
_stageWidth = 1087 & _stageHeight = 661
_loader.width = 1087 & _loader.height = 815.25

this might be the problem, but right now I'm too confused from looking at this over and over again... anyway, it seems strange, that the _loader.height which is set to the _stageHeight (which is 300) turns out to be 0!



can anyone help me solve my problem?

all the files are downloadable here:


thanks a lot
felisan

AS3: Dynamically Resizing Background-picture
hi everybody.


I'm testing this idea of mine, but so far I've not been awarded succes.
so, here's what's my idea about:

I want to load a big background-picture into my Flash, and then I want it to be resized so it fits the screen-resolution that the user has on his/her browser.
see the example I've made so far, here:http://campjohn.dk/test/test100.html

it loads perfectly, and - from what I can see - keeps it's dimensions.
but it does not resize to the size of the browser as it should.
...if you go to the link, and then manually resize the browser-window, you'll get the resizing of the background-picture going on, though.

here's how it's all build:
I have a test100.fla with a test100.as Document Class

test100.as:
Code:

package {   

   import CustomBackgroundTest;

   import flash.display.Sprite;
   import flash.display.StageAlign;
   import flash.display.StageQuality;
   import flash.display.StageScaleMode;
   import flash.events.Event;

   public class test100 extends Sprite {   

      private var _customBackgroundTest:CustomBackgroundTest;

      public function test100() {      
         init();
      }

      private function init():void {         
         stageInit();
         customBackgroundTestInit();
         firstResizing();
      }      

      private function stageInit():void {
         stage.scaleMode = StageScaleMode.NO_SCALE;
         stage.align = StageAlign.TOP_LEFT;
         stage.quality = StageQuality.BEST;
         stage.frameRate = 30;
         stage.showDefaultContextMenu = true;
         stage.addEventListener(Event.RESIZE, onResize);
      }

      private function customBackgroundTestInit():void {
         _customBackgroundTest = new CustomBackgroundTest(stage.stageWidth, stage.stageHeight);
         addChild(_customBackgroundTest);
      }

      public function firstResizing():void {
         _customBackgroundTest.onResize(stage.stageWidth, stage.stageHeight);
      }      
      
      public function onResize(event:Event):void {
         _customBackgroundTest.onResize(stage.stageWidth, stage.stageHeight);
      }
      
   }
}


see.. the init function calls a firstRezing-function which calls the same .onResize function as a manual resizing does.
so why does it only work when manually resizing the browser-window?

here's the customBackgroundTest.as:
Code:

package{   
   
   import flash.display.Loader;
   import flash.display.Sprite;
   import flash.events.Event;
   import flash.net.URLRequest;

   public class CustomBackgroundTest extends Sprite {
      private var _loader:Loader;
      private var _request:URLRequest;
      private var _stageWidth:Number;
      private var _stageHeight:Number;      

      public function CustomBackgroundTest(stageWidth:Number, stageHeight:Number) {
         _stageWidth = stageWidth;
         _stageHeight = stageHeight;

         init();      
      }

      private function init():void {
         backgroundInit();
      }

      private function backgroundInit():void {   
         _loader = new Loader();
         _request = new URLRequest("myBackground.jpg");
         _loader.load(_request);
         _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, setSize);

         addChild(_loader);
      }

      private function setSize(e:Event):void {
         _loader.width = 1600;
         _loader.height = 1200;
         
         _loader.removeEventListener(Event.COMPLETE, setSize);
      }

      public function onResize(stageWidth:Number, stageHeight:Number):void {
         _stageWidth = stageWidth;
         _stageHeight = stageHeight;
         
         trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);

         var ratio:Number = _loader.width / _loader.height;
         
         if  ((_stageWidth / ratio) >= _stageHeight) {
            trace("_stageWidth / ratio");
            trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);
            _loader.width = _stageWidth;
            _loader.height = (_stageWidth / ratio);
            trace("_loader.width = "+_loader.width+" & _loader.height = "+_loader.height); 
         }
         else {
            trace("!_stageWidth / ratio");
            trace("_stageWidth = "+_stageWidth+" & _stageHeight = "+_stageHeight);
            _loader.height = _stageHeight;
            _loader.width = (_stageHeight * ratio);
            trace("_loader.width = "+_loader.width+" & _loader.height = "+_loader.height); 
         }
         
      }
      
   }
}


as you can see, there's lots of traces in .onResize function.
these I've used to trace, what is actually going on.

when the backgroundpicture is loaded at first the onResize-function traces this:
_stageWidth = 400 & _stageHeight = 300
_loader.width = 0 & _loader.height = 0

and when the .swf is manually resized this is what is traced out:
_stageWidth = 1087 & _stageHeight = 661
_loader.width = 1087 & _loader.height = 815.25

this might be the problem, but right now I'm too confused from looking at this over and over again... anyway, it seems strange, that the _loader.height which is set to the _stageHeight (which is 300) turns out to be 0!

all the files are downloadable here:http://campjohn.dk/test/resizing.zip
can anyone help me solve my problem?


thanks a lot
felisan

I Want A Picture To Appear In My Flash Movie.. But.. I Want The Picture Loaded From..
I want a picture to appear in my flash movie.. but.. I want the picture loaded from the internet.. so..

In other words..

I have a button. When i press the button, I want this image:

http://www.era-morrison.com/westford/media/topper.gif

to show up.. Im also going to apply a variable, so I cant just copy and paste the image into the flash file.. Is this possible? thanks!

Drop Down Menu Change Background Picture
ok what im trying to do is have a drop down menu sort of thing that changes the background picture when u click on a thumbnail. that also rolls back up and keeps the background picture .please help thanks

[MX] How To Creating Picture Fading Of Peoples In A Background
Hi, i need to create a splash page, whereby the pictures of 12 persons are suppose to fade in and out of the back on a background.
Any one has any idea or samples? Thanks alot.

Repetitive Pattern Vector Picture As Background
Hello all,

I would like to use an Illistrator file as a repetitive pattern for the background of my flash web site.
I couldn't find any pointer in the documentation.
How could I do this?

Thanks a lot,

David

Background Picture Show The Upper Left Corner
Does anybody know how Tronic Studio did the fullscreen opening.
The picture in the background is 1280 x1024 and when i use resolution 800x600, the buttons, text and everything that is importent to see is visible.

When i try to do it the background picture shows in the upper left corner. And i see only a litle bit of the content that includes buttons and text.

http://www.tronicstudio.com/

[MX04] Please Help, About Adding Background Picture To Dynamic Thumbnail
I found this great tutorial at

http://www.kirupa.com/developer/mx2004/thumbnails.htm and I have attached the source files.

What I am trying to achieve for days is to add a background image to thumbnails. Actually if someone can help me to put the thumbnails inside an MC which is in the library, I can do the rest.

Best Regards

Help With A Picture Movie
I'm trying to get it to where when the mouse is over this picture area, it will fade out. When I do so, it quickly changes to the fill color I used for the paint bucket. What do I do?

User Uploads Picture > Can Move And Edit Picture With Tools In Flash File
Hello,

I am looking for some help with this. It seems like something that can easily be done.

http://www.sonypictures.com/movies/t...customization/

I am looking for the user to be able to upload their picture, and then the picture loads into the flash file. once in the flash file, they can move their picture up, down, left or right, rotates in a circle, and also click a button that makes their picture smaller or larger.

I am working on a project for my family, so they can put their picture with an actor and I wanted to know if anyone could point me in the right direction for this?

Thanks so much in advance.

URL Picture Movie Clip
Okay, I have this picture that I want to fade out to black when the mouse rolls over it. Well, I have an example of it, but I just can't get it right. When I test the movie, the black is already there. How do I make it to where the rollever instance occurs to make this happen?

Old Movie Effect On Picture
Hi

I posted on here a long time ago with a project I was working on and got great advice from you guys, so heres another question

I have a black and white still image and want to have like an old movie effect on it, you know the crackling and lines thing, just to make it seem old and add some motion to the whole thing

If anyone knows any tutorials or can explain how this is done I will be thankfull

Cheers

Load Picture In Movie?
I'm trying to fix this for such a long time. I've used the scotty gallery but want to open the clicked thumnail in a new movie.
Not the container already on te stage.

I completely lost it. I have no idea how to do this.

anyone?

this is the part where needs to be done I guess:

function makeMenu() {
clearInterval(delay);

var item = sub_menu.createEmptyMovieClip("pic"+q, q);
item.loadMovie(pictArray[p]);

var temp = _parent.createEmptyMovieClip("tmp", 9999+q, 1000);
temp.onEnterFrame = function() {

var tot = item.getBytesTotal();
var loa = item.getBytesLoaded();
var per = Math.round(((loa/tot)*100)/(pictArray.length*2));

loadBar._xscale = loadper+per;
if (tot == loa && tot>4) {
item.id = p;
loadper += per;
if (q>0) {
item._x = sub_menu["pic"+(q-1)]._x+sub_menu["pic"+(q-1)]._width;
} else {
item._x = 0;
}

item.onRelease = function() {

containerMC.loadPic(this.id);



};



here is the code that i've been using:

spacing = 10;
containerMC._alpha = 0;
pArray = new Array();
pictArray = new Array();
MovieClip.prototype.loadPic = function(pic) {
this._alpha = 0;


this.loadMovie(pArray[pic]);

this._parent.onEnterFrame = function() {
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
bar._visible = 1;
per = Math.round((l/t)*100);
if (t != 0 && Math.round(l/t) == 1 && containerMC._width != 0) {
var w = containerMC._width+spacing, h = containerMC._height+spacing;
border.resizeMe(w, h);
bar._visible = 0;
delete this.onEnterFrame;
} else {
bar._width = per;
}
};
};
MovieClip.prototype.resizeMe = function(w, h, pic) {
var speed = 3;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
containerMC._x = this._x-this._width/2+spacing/2;
containerMC._y = this._y-this._height/2+spacing/2;
containerMC._alpha = 100;
delete this.onEnterFrame;
}
};
};


my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
if (success) {
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
pictArray.push(this.firstChild.childNodes[i].attributes.thumb);
pArray.push(this.firstChild.childNodes[i].attributes.image);
}
}
delay = setInterval(makeMenu, 0);
};


my_xml.load("gallery.xml");



var menu = this.createEmptyMovieClip("menu_tot", 100);
menu.setMask(mask);
var sub_menu = menu.createEmptyMovieClip("menu", 99);
var p = 0;
var q = 0;
var loadper = 0;
function makeMenu() {
clearInterval(delay);

var item = sub_menu.createEmptyMovieClip("pic"+q, q);
item.loadMovie(pictArray[p]);

var temp = _parent.createEmptyMovieClip("tmp", 9999+q, 1000);
temp.onEnterFrame = function() {

var tot = item.getBytesTotal();
var loa = item.getBytesLoaded();
var per = Math.round(((loa/tot)*100)/(pictArray.length*2));

loadBar._xscale = loadper+per;
if (tot == loa && tot>4) {
item.id = p;
loadper += per;
if (q>0) {
item._x = sub_menu["pic"+(q-1)]._x+sub_menu["pic"+(q-1)]._width;
} else {
item._x = 0;
}

item.onRelease = function() {

containerMC.loadPic(this.id);



};
nextItem();
delete this.onEnterFrame;
}
};
}
var amount = pictArray.length-1;
function nextItem() {

if (q<((pictArray.length*2)-1)) {
q++;
if (p<(pictArray.length-1)) {
p++;
makeMenu();
} else {
p = 0;
makeMenu();
}
} else {
activateMenu();
}
}
var center = Stage.width/2;
var speed = .05;
function activateMenu() {
menu.onEnterFrame = function() {
var distance = _root._xmouse-center;
if (mask.hitTest(_root._xmouse, _root._ymouse)) {
this._x += (distance*speed);
if (this._x<-sub_menu._width/2) {
this._x = 0;
}
if (this._x>0) {
this._x = -sub_menu._width/2;
}
}
};
}

Why Only One Picture Appear When Use Movie Clip
I drag the movie clip into flash mx, and set the movie clip method to play, why only one picture appeared? I was expected a gif movie clip playing.

Enlarging A Thumbnail Picture On A Separate Window The Same Size Of Picture
Hi,
I feel like a dumb, but I still need to ask this question:
When you are using thumbnail size pictures acting like buttons, how can you create a link to a new window page the size of the new enlarged picture only?...I don't want a new window showing the picture with a white background covering 100% my Flash site..
You see, I told you it was a dumb question...
Any help?

Should I Use Load Movie Or Should I Have All The Picture In One Movie
iīm doing a selfgoing flashmovie for the web , no buttons just 20 picture that go from the first to the last picture. The file, i think going to be 1,5mb . My question is what is the best way to do this? Should i use load movie (one for every picture) or should i have all the picture in one movie? And if you suggest that i use load movie How do i use the actionscript to make it work. To make the different swf:files load without any clicking on a button.

Scrolling Picture Movie Needing Help
I have a scrolling picture box that scrolls left or right when clicked on the relevant buttons, I am wanting to start it in the middle of the line of all the images in the scrolling picture box movie, so that I can scroll half way left and half way right to see the images as apposed to one long scroll left.

How would I do this considering the scrolling picture box movie starts at the very first image on the left.

Thanks for any help

Flash Movie / Picture Question
I am new to flash, and trying very hard to learn how to harness its power, but there is a project that I want to get started on immediately.

What I want to do is create a flash file that contains a list of peoples names, and when a user rolls over the names, a picture of that person and a bio appears in separate frames. Is there a flash component that serves as a frame for the picture to be displayed? How should I create the list of names? As buttons, or is there someting more efficient?

Any kind of help is appreciated

thanks
--ryan

Loading Picture To Movie Clip
hi there

this is my problem:

I have a clip that is on a continouse scroll I want ot load a picture in the clip and have the movie clip keep it's initial values. I am having a doosy of a time tring to figure this out.

do I use
mc_name.loadClip();
or
loadMovie();

so far I got it to load but then it looses all the properties of the clip it is loading on to. it is supposed to keep on moving mytarget is _root.bob.bob.bob_img.

I think it is working but I am just not seeing it.

any and all help will be welcome.

here is the the function.

Code:
_global.loadnext = function(mc_name){
//trace("loading next ==" + mc_name);
//trace("arrname"+picArr1[MAIN_PIC_COUNT]);
//trace(targetPath(_root.bob.bob.bob_img));
mc_name.loadClip(picArr1[MAIN_PIC_COUNT],_level0.bob.bob.bob_img);
}

Connecting A Movie With A Picture/button
Hello, I bought a flash web template and now I am trying to modify it. I need to know how to import a video clip into flash and then connect it with a picture/button using actionscript in CS3. I want to keep everything within the same flash project so being able to do that would be ideal. Thanks for any help you can give me.

Adding Picture To Beginning Of Movie
I have imported a movie, selected a player and everything works. I would like to add a picture to the beginning so it doesn't come up a blank player on the website. I have tried putting a pic on another layer and at best it covers the movie. How do I do this? I have tried several script commands but I'm a noobie at flash and I couldn't get it to work. There must be a simple way as I see it on other sites.

How To Put Picture In Front Of Flash Movie
Basically I need a way that you can embed a flash video with a specified picture showing before the person presses play, is that possible?

Thanks

Upload Picture From Database, Transform Picture In FLash
Hi, all.
I just want to do a test: I made an swf file that is to be embedded in an html web page. Inside swf I want a picture to be upload from database ( for customized purpose ), say ASP, or XML. And new picture will replace that old one inside swf. Further more, e.g. I upload just a picture that is a piece of tile. When it appears in swf, it should be tiled 5 by 5 and transformed for perspective. Is that possible with AS? if yes, could anyone offer help? And how to write interface code -- ASP or xml communicates with FLASH, to upload picture from database? Thanks.

-percy

Picture Turn Fuzzy When Load Movie
Hi i do this weird problem

I have this animated ecard, it look okie when run alone as a individual swf. but then when i try to load in using loadMovie, the animation turn fuzzy. What when wrong actually?

Any idea?

Opening A Picture Larger Than Flash Movie?
Hi.

So I want to open up a picture larger than the size of my flash movie. Were it just 1 picture Id just resize it but i wanna use a section of the movie (site, whatever) for my portfolio.

Im curious as to whether or not I can open up the picture in some sort of seperate window that I can specify the size for, that way its not too big for some smaller pictures. The flash movie itself is only 640x480. Im also wondering if, in this seperate window, I can add a previous/next button to change pictures from that movie, resizing the window as needed. Scripting for changing the size of something to fit a picture isnt an issue, as ive done that before.

Im open to suggestions, but Id like to try and keep everything in flash. Opening up the picture in an external html browser window thinger wouldnt be "gallery" friendly, i think.

Thanks for any help you can offer!

How Can I Preload Or Buffer A Picture To Use In Several Movie Clips
I have several pictures I need to load and use over and over again in a number of movie clips. How can I preload or buffer the picture one time and then display it in another movie clip or clips?

I do not want flash to have to reload the pictures from the server each time I use the picture in various movie clips..

How Do I Connect Movie Clip With Picture/button
Hello, I bought a flash web template and now I am trying to modify it. I need to know how to import a video clip into flash and then connect it with a picture/button using actionscript in CS3. I want to keep everything within the same flash project so being able to do that would be ideal. Thanks for any help you can give me.

Flash Movie Lags Badly If I Add 1 More Picture.
I have flash gallery which doesn't load pictures dynamically, just has them placed on stage. I have 12 pictures. It lags badly like this, but if I delete ANY of the 12 the movie plays smooth as silk. Is there anyone who has experienced this problem and can help me figure out how to solve it?

Picture Turn Fuzzy When Load Movie
Hi i do this weird problem

I have this animated ecard, it look okie when run alone as a individual swf. but then when i try to load in using loadMovie, the animation turn fuzzy. What when wrong actually?

Any idea?

Animate Movie On Movie - Update Background Without Updating Whole Screen
This has got to be a newbie question, because I remeber this being an issue when I once animated in Flash 3.

I have an animation on top of a big ol jpg background. Each time the animation moves , right now the way things are set up, the entire jpg refreshes (I think, since the animation is so jittery). Is there a way to setup the layers, or movie clips so that only the pixels that are changing replace, while the rest of unchanging background remains stable.

This must be possible in some form because there are many rapidly changing animations I see around that are completely smooth on my screen while my animation is jittery.

You can see my example
HERE: http://www.wjamesphoto.com/suesflipb...sflipbook.html

Thanks for any help
AB

Copyright Đ 2005-08 www.BigResource.com, All rights reserved