ActionScript 2.0 :: Preloader For Xml / Ext - Jpgs (mx04)

Jul 14, 2005

That was supposed to be my first preloader dealing with an XML file and external jpgs ... searched the forum, found something that looked/sounded like it would work, tried to adapt it to my particular situation and ... (surprise!) ... it doesn't work. Let me add at this point that I'd consider myself a "very casual" ActionScripter (if there is such a thing), meaning that most of the time, I try to learn as I go along, without any *real* background knowledge. Here's my situation - methinks it's rather straightforward: SWF file (project.swf), XML file (config.xml) and a bunch of jpgs all in the same directory - nothing exotic so far. Here's the AS I (try to) use in my SWF file to load the xml and the imgs therein:

[Code]...

View 3 Replies


Similar Posts:


MX04 : Making A Preloader/LoadBar?

May 4, 2009

Im trying to make a preloader. this is my first attempt and from a tutorial and some minor adjustments on my part this is what ive come up with. i was wondering if there was a way to add a percent, and also why this doesnt disapear after its done loading. it remains on the stage throughout the loaded swf.

PHP Code:

siteLoader.loadMovie("Population.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {

[code]....

View 14 Replies

ActionScript 2.0 :: Preloader For Dynamically Loading Jpgs?

Jul 28, 2003

i just need a preloader for my dynamically loading jpgs.

fyi, i don't need buttons or anything for this...it's a very simple slideshow where the images come in every 100 frames...that's it.

does anyone know what code i should put it so that my images will preload at the beginning so the slideshow doesn't stutter?

View 3 Replies

ActionScript 2.0 :: Add Current Preloader To The Array Script So Pull In Jpgs Instead Of Swf Files?

Oct 5, 2007

i am currently using this script to run through an array:

swfArray = new Array("images/indep/1.jpg", "images/indep/2.jpg", "images/indep/3.jpg", "images/indep/4.jpg", "images/indep/5.jpg", "images/indep/6.jpg", "images/indep/7.jpg", "images/indep/8.jpg", "images/indep/9.jpg", "images/indep/10.jpg", "images/indep/11.jpg", "images/indep/12.jpg", "images/indep/13.jpg");
this.createEmptyMovieClip("target1",2);

[code]...

is there a way i can add my current preloader to the array script so i pull in jpgs instead of swf files?

View 1 Replies

IDE :: 3 Jpgs To Fade In And Cycle

Nov 24, 2009

Is there some script or reference to show me how to create an swf with 3 jpg files (I'd like them to fade quickly but calmly between each other and simply cycle around for a web banner.

View 2 Replies

ActionScript 2.0 :: Jpgs Won't Load?

Dec 26, 2003

I followed the instructions in the tutorial "photo gallery" and for some reason my jpgs won't load.I pulled one of the images from the tutorial into the directory that I was telling my pics to be taken from and they work. So it isn't the path.All of the nature photos loa without fail, but my jpgs won't?

View 4 Replies

ActionScript 2.0 :: Loading 2 Jpgs With PHP

Mar 22, 2005

[Code]...

now the instance of image1+2 are 2 deep in the movie, not sure if that matters? but when i preview in flash perfect, when i publish perfect, but once up online nothing? anyone knwowhy

View 3 Replies

MX04 Interactive Map Project

Apr 20, 2009

I am not exactly new to Flash in that I can do several things with it. However, I am not anywhere near expert status. I am working on an interactive map of a college campus for my employer. I am employing buttons that, when moused over, display a large image of each campus building. The question is this: is there a way to also have maybe an actionscript that would center that image automatically?

In other words, if the building I want to show is on the right hand side of an internet explorer window and I mouse over it, is there a way to have the map auto scroll the window to center the image that pops up on mouse over?

View 1 Replies

MX04 Images In An Array?

Sep 19, 2009

Can images be stored in some sort of array and then called to the stage ramdomly?

View 1 Replies

MX04 Loop A Pre-existing FLV?

Jul 22, 2010

I have been asked to loop an existing FLV file that someone else created. I do not know what version of Flash was used to create this file, however I do have an older version 7.2 Flash MX Pro. Currently the FLV starts automatically and stops and the end of the movie. The owner of the site would like the movie to start over with a continuous loop. I'm pretty much of a rookie with Flash and with HTML5 coming out soon, I don't think I'll get a chance to become a pro at this.

View 5 Replies

Flash5 :: JPGs Jumpy While Tweening?

May 1, 2009

I broke apart all JPGs and converted them to symbols.And they all have correct X & Y coordinates.But while tweening... the JPGs shift a tiny bit. how to stop the JPGs doing the jiggle shift error ?

View 2 Replies

ActionScript 2.0 :: Loading The External Jpgs?

Jan 19, 2004

how can you load external Jpgs into a swf instead of loading them and compiling the swf. so that they appear in the cache.

View 1 Replies

ActionScript 2.0 :: Swap Depth Of JPGs?

Aug 9, 2004

We can swap depths of movie clips... ok....what about JPGs? I have an empty MC where I want to load images from an array and then starts swapping thier depths.Here is the script I use for loading them and the script I wans hoping will work for swapping thier depths:

onClipEvent (load){
var image_arr = new Array "1.jpg","2.jpg","3.jpg"....,"7.jpg");
for (var i=0;i<image_arr.length;i++)[code].............

How would I swap the depth of image 6 (image_arr[5].) and have it come to the surface?

View 2 Replies

ActionScript 2.0 :: Preloading All Jpgs In Background?

Sep 9, 2008

I have a gallery that loads external jpg's. I'd like to have the gallery start and while viewing the images, the rest are loading in the background.

View 1 Replies

ActionScript 3.0 :: Load Jpgs Into My Swf At Runtime?

Oct 28, 2009

I'm trying to load jpgs into my swf at runtime but they always come out black and there is no image. Could it be that my files are too big?

View 1 Replies

ActionScript 2.0 :: [FMX] Preload Multiple Jpgs?

Sep 2, 2004

I'm currently making a xml driven photo gallery. The first stage is loading in the thumbnails, each thumbnail will preload individually. I pretty close to acheiving this except my current script only loads in the first jpeg. I have tried everything and I jsut can't find a problem. Anyway my code is below if anyone gets a chance to look. Sorry its a bit hefty. I think the problem is with the ThumbLoadingEnterFrame and LoadNextThumb functions.

PHP Code:

count = 0;
var thumbImage = new Array();
var thumbClip = new Array();
var jpegImage = new Array();

[code]....

View 1 Replies

ActionScript 2.0 :: Load External Jpgs Into A Swf?

Jan 19, 2004

how can you load external Jpgs into a swf instead of loading them and compiling the swf. so that they appear in the cache. Whats the function to do this, or is there a tut?

View 1 Replies

ActionScript 2.0 :: Swap Depth Of JPGs Is It Possible?

Aug 9, 2004

We can swap depths of movie clips... ok....what about JPGs?I have an empty MC where I want to load images from an array and then starts swapping thier depths.Here is the script I use for loading them and the script I wans hoping will work for swapping thier depths:[code]How would I swap the depth of image 6 (image_arr[5].) and have it come to the surface?

View 2 Replies

MX04 Understanding 'for' Loop Iterations

Mar 25, 2009

How come every time I run this script:[code]Where does the Undefined come into things? I have only asked the script to fire 3 times so the first time through the text in position [0] in the script Carp should be printed out?

View 2 Replies

MX04 Basic Countup With Intervals?

May 1, 2009

basically what im trying to do is have a basic countup timer that goes in intervals of three. (3,6,9,12,15,ETC.) but it has to run with a 12 fps and not stop. also this cannot be 1000 frames long .

View 12 Replies

MX04 Moving An Action Frame

Sep 30, 2009

my flash tutor is on vacation and I need to work on a project. How do I move an action from from 246 to 271?? I've tried Copy/Paste and it's not working.

View 1 Replies

MX04 Blur Effect Won't Play?

Jan 16, 2010

I've put a blur effect on the hit state of a button, but the script for the button is On Release Go to and Play the scene I wan't it to skip to. So as soon as the button is clicked it does what it's told and the blur effect (16 frames long) doesn't get to play.

View 5 Replies

MX04 Pressing A Button While Movie Is Going?

Mar 27, 2010

On to the problem: I have a very simple flash, basically just a photo slideshow. The issue I'm having is this: I have a bunch of photos on the timeline, but I have a button on top of everything, just to give viewers the option to skip that particular scene. The button works, but only when the video timeline has reached the very end of the scene. It won't work before the end of the scene. The button actionscript is the most basic of basic:

on (release) {
gotoAndPlay(scene1)
}

View 2 Replies

ActionScript 2.0 :: JMEvevents Calendar In MX04?

Feb 23, 2004

Anyone know a good tut on how to implement the JMEvents calendar component? It comes with MX04 but I am unable to find a tut at the moment (although as I type I am looking and trying to work through it). It can be either an xml, db, or hard coded example. Just need a little push.

View 1 Replies

ActionScript 2.0 :: [MX04] Resizing Mc WITHOUT Xscale

Nov 4, 2004

I'm having a buch of pictures of different height and width, which have to be loaded into different movieclips, and resized to 'bout 100px * 100px (so they're all the same size ~> thumbnails)

The problem width xscale and yscale, is that you have to specify the amount the movieclip/image resizes, in percentages instead of in pixels.

is there ANY way you can resize a dynamically loaded JPEG to EXACTLY 100*100 pixels ?

Here's my code (which doesn't work):

Code:
movieMain.thumbsHolder.createEmptyMovieClip("afbeelding" + j, j);
imageHolder = movieMain.thumbsHolder["afbeelding" + j]; imageHolder.loadMovie(path);
imageHolder._y = j * 200;
imageHolder._height = 100;
imageHolder._width = 100;

View 4 Replies

ActionScript 2.0 :: MX04:Can't Get Out Transition To Play?

May 28, 2005

ok I have 2 buttons, and they load external swfs into containers everything works fine but it seems like my gotoAndPlay("framelabel") isn't working...

here is the code for the buttons... incidentally they are inside a movieclip on the mainstage... everything else seems to work just fine... also I have my intro and out animations inside the external swfs. I've tried _root.contents_mc.gotoAndPlay("out"); I've tried _parent this._parent and _parent._parent and this.contents_mc.

both buttons will load the external swf but when I click on the other button it should play the out and then load the next swf and start playing the intro (which is the beinging of the external swfs timeline) ANY Ideas whats going on here?

[Code]...

View 5 Replies

ActionScript 2.0 :: [mx04] Xml To Access CD Drive?

Feb 27, 2006

I'm having trouble trying to link a .swf using xml to open up an html link that is on the cd that a user will have in their drive when running the swf.home.swf > goes to CD drive> open up about.html

example of xml:
<linktype="sample" display="yes" ref="file:///d:/about.html">

View 5 Replies

ActionScript 2.0 :: (Mx04) Generate Mc's In Rows

Jul 22, 2006

[URL]

I want the clips to be displayed in, for example, 2 rows of 3 clips, 6 in total.

By modding the AS to

total = 6;
for (i=0; i<total; i++) {
t = _root.createEmptyMovieClip("xml"+i, i);
loadMovie("imgBack.jpg", "xml"+i);

[Code].....

I realise that the size of the jpg determines the point at which the second row is displayed so can I do it easily by determining that the third mc has been reached so start a new row?

View 3 Replies

ActionScript 2.0 :: [MX04] Loading From XML Files?

Dec 29, 2006

I am doing up a photo gallery as a pet project using only actionscript. So far I have been successful in achieving the objectives that I want. However, moving forward, I intend to make the flash photo gallery easy to customise and want to add in a XML config file for flashh to reference.Here is where I am facing some problems. I managed to get Flash to read the XML data w/o a problem. The catch is how can I know when the XML file is loaded before I render the other movie objects (which require the settings in the config file)?

eg.

file_xml = new XML();
//Load XML file
XML.prototype.ignoreWhite = true;
//Parse the XML data

[code]....

Is there a way for Flash to listen to when I can start using the config values?

View 3 Replies

F5 :: Stop JPGs Doing Jiggle Shift Error?

May 1, 2009

I broke apart all JPGs and converted them to symbols.And they all have correct X & Y coordinates.But while tweening the JPGs shift a tiny bit. Anyone know how to stop the JPGs doing the jiggle shift error?(I've seen it before, and thought I could fix it by breaking apart the JPGs and making symbols out of them, but the JPGs still have that quiver bug now)

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved