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


Similar Posts:


ActionScript 2.0 :: Dynamically Generate Image Rows?

Mar 11, 2008

I am trying to write a script that dynamically lays out images in rows of 3. I've written the following script to test out my idea, but it isn't working. in this script, the height is being determined too. I've attached the .fla too,

[Code]...

View 1 Replies

Generate Serial Number For Datagrid According To The Number Of Rows?

May 4, 2011

how to genrate serial number for datagrid according to the number of rows?

View 1 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

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 : 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

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 :: 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

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] 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

ActionScript 2.0 :: [MX04] Setting Frame Within A Symbol?

Jan 23, 2009

In my Flash, when you push a button, a symbol goes from having an alpha of 0 to an alpha of 100. When this symbol appears, I want it to begin animating on its first frame. However, I'm not quite sure how to do this. D: gotoAndPlay doesn't seem to be doin' the trick.

View 2 Replies

ActionScript 2.0 :: [MX04] Disabling Right Click Menu

Jan 31, 2009

I've got an idea for a game I'm making that makes use of both mouse buttons, but the pesky right click menu always gets in the way. I've been doing some research, and I've heard tell of some "authorware" programs that disable the menu? I've also heard that disabling the right click menu voids some kind of warranty.

View 1 Replies

ActionScript 2.0 :: [MX04] Store A Mc's X-position Between Scenes?

Feb 13, 2009

I make making a basic animation / game. Basically I need to have a movieclip named "ground" stay in the same position between scenes. It will be moving around and at certain moments, the movie goes to other scenes and it needs to place the ground at the x-postion where it was last at. So I had:

I set a variable (xpos) to be 0 earlier and then i have:

if(blah blah happens){
gotoAndStop(nextScene()){
_root.xpos = _root.ground._x;
}

and then in the next scene I have

_root.ground._x = _root.xpos;

But it only works randomly. Some time it will work for certain scenes and certain actions and other's it doesn't work.

View 1 Replies

ActionScript 2.0 :: MX04 Falling Items Game?

Apr 27, 2009

Ok I want to create a falling items game, but how do you code the falling movie clips? sorta like catch the money, or something like that.

View 6 Replies

MX04 Bouncing The Ball For Brick Breaker?

May 15, 2009

I am currently making a brick breaker game, so I want to make the ball bounce from the paddle. My paddle's name is pwn and the ball's name is ball.

My code for ball is currently:

onClipEvent (enterFrame) {
this._y += 5;
this._x += 4;
}

[Code]....

I just want the ball to bounce somewhere else other than stopping the ball at the place. I already made sure the paddle can move and the boundaries block the paddle from leaving the stage. So can someone give me the codes (please simple for me to copy-paste) for having me to bounce the ball some opposite direction or whatsoever. Like once the ball touches the paddle, it reflects somewhere else at the same speed and a different direction without any errors.

View 1 Replies

ActionScript 2.0 :: MX04 Set Size Of Swf Loaded Into Target MC?

May 30, 2009

Can someone help me out and tell me how i can set the size of an external swf i have loaded into a target movieclip.ive got the external swf loading into the target ok but its too big.

View 3 Replies

ActionScript 2.0 :: MX04 Score Doesn't Work

Jun 12, 2009

I have a hitTest that is supposed to update the variable so the text of the score will go up one every time. But unfortunately, it works but it doesn't. It passes the number to the variable but the change doesn't appear until you enter the frame again. For example the money sign hits the piggy bank twice. the score will stay 0 but if you go back to the frame it will have a score of 2. How can I make it update live?Here is the code I have on the frame

Code:
if (_root.money.hitTest(_root.pig)) {
_global.score += 1;
}

[code]...

View 7 Replies

ActionScript 2.0 :: MX04 Geturl Not Changing In Xml Code

Jul 12, 2009

I have spent hours on this and it must be something simple I have missed. I ma trying to populate movie clips with xml data all is working well except the geturl bit at the end which does put a url in but just the url of the last xml code (link) loaded. I think I am just overiding my currentThumb_mc.link variable every time but am a little out of my depth.

[Code]....

View 2 Replies

ActionScript 2.0 :: MX04 - X_mouse And Browser Windows

Aug 27, 2009

I have this code on a mc PHP Code:

onClipEvent (enterFrame) {
this._rotation = (_xmouse / -100);
this._x = (_xmouse / -150);
}

This moves and turns mc on mouse position. This works fine but when I publish in a browser window something odd happens. If I open a blank second window and click between the 2 windows the mc will turn and move out of the window . I traced the _ymouse and _xmouse positions and found it jumps into -numbers. Does anyone known how to stop this from happening. I was thinking about using drag empty mc so it has something to focus on at all times. But their must be a better way of doing this.

View 3 Replies

MX04 Creating Simple Flash Game

Sep 8, 2009

I'm sort of new to Flash, have been using it for ages but just to animate, i haven't done any programming or interactive stuff for years, so i feel new to it again!Creating a very simple platform.Movie clip of the character (instance name z_1)- runs button - when pressed makes z_1 invisible and loads another movieclip of him firing a weapon (z_fire). (also makes ground stop moving- basically game is a static running animation, over a moving ground, if that makes sense)This all works fine, i even figured how to make the score increase!After the firing animation is finished (there is a stop on the movieclip) i want the original running animation to be visible again and for the ground etc to play again. The firing animation is only 12 frames long so i imagine i need to tell the button to resume normal service on the stage after that time period![code]It's probably completely wrong but it works, i just need to know the extra code to make the original animations start back again after z_fire has played.

View 2 Replies

MX04 Ancient Site Now 25% Of Size In IE8 + Vista?

Sep 24, 2009

I generated a Flash site for a friend years ago & to the best of my knowledge it has been up & running ever since. However I happened to check it out today & for some reason the whole thing has shrunk down to about 25% of the size that it should be!!I have included a link to the site should anyone be able to replicate this in their browser

View 4 Replies

ActionScript 2.0 :: MX04 : Getting Flash To Wait For Variables?

Sep 25, 2009

i have a flash app that comunicates to an external payment gateway, what i am having a problem with is making flash wait indenfinatley for a response from my confirmation page that the payment gateway communicates to when the order is complete. below is the loader i have to test if there are any messages, unfortunatley this only runs once, im not sure how to have if permanently check for responses.

loader.onLoad = function(success:Boolean)
{
if(success)
{

[code]...

View 1 Replies







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