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




CSS And Flash Movie Clips



I've recently begun to explore the wonders of CSS. After experimenting a little, I've begun to wonder. In my site I have a CSS page where all of the formatting is being pulled from.I also have a Flash movie that sets the color of two objects on load. I was wondering how can I set up my Flash and CSS so that I can recolor the two objects simply by changing the CSS page.



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 02-14-2006, 09:45 PM


View Complete Forum Thread with Replies

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

How To Remove All Movie Clips/array: Movie Clips Carry Over To Next Frames/ Scenes
Hi: I am creating a small game. So far so good, but only problem I have come across is when I jump to another frame or scene, previous movieclips (using an array) that are still running carry over to the next frame/scene.

See attached if you have some time- start clicking on answers in the game, and when time runs out some movie clips that are still running will remain on top of my end frame and carry over to the next scene as well.

Is there any sort of remove all movie clips or "clear all" type of actionscript?

thanks in advance!

Maintaining Event Behavior For Movie Clips Nested In Movie Clips
Is there any way to maintain a clip's event callbacks when said clip is nested in a parent clip that has its own definitions for those callbacks?

In other words, if clip B has a definition for .onPress and clip A has a definition for .onPress, is there anyway to maintain clip B's definition if it is nested in clip A?

I have tried doing it by making clips into movie clip subclasses but it doesn't work... but how do components work then?

How Do I Load/stream Individual Movie Clips Within Other Movie Clips
I am using flash 5

I have a movie with a huge movie clip in it and that movie clip has lots of movie clips inside that. how do I load each one individually so when the viewer clicks on abutton it starts to laod the related movie clip.

Please help.. I'm working on borrowed time and borrowed money

Accessing To The X And Y Coordinates Of Movie Clips Inside Of Other Movie Clips
lets say I have a movie clip with an instance name of "char" and another movie clip inside it with an inctance name of "ball" and when I try this I get zero:

_root.char.ball

why?

thanks in advance because you flashkit users know everything about flash in and out.

Movie Clips Within Movie Clips: Text Link Problem
Hello.

I have a Movie Clip that is my main one with another Movie Clip inside of it. In the subordinate Movie Clip, I wish to have text linking frame (13) to frame (14) for instance. The problem that manifests is that while buttons is the subordinate Movie Clip link to frames within it with no complications, the text link from 13 to 14 with its respective code links to the last frame (would be 14) in the main Movie Clip.

Am I doomed to convert all text links to buttons in the subordinate Movie Clip or is there (what I am praying for) a code to work around this and keep frame links confined to the subordinate Movie Clip? I would appreciate any help that anyone can offer regarding this problem. Many Thanks.

Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:

stop();
import flash.filters.GlowFilter;

ar = [A, B, C];

for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}

function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}

function rollout() {
this.filters = null;
}

This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:

I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".

What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!

Text

External Movie Clips With Multiple Menu Movie Clips
It's pretty late and I don't think i have enough time to search this question in the forums but here I go. Sorry If I upset someone for making a topic that already exists.

I have a main timeline that im importing an external movie clip in. This external movie clip is named "members" it has several buttons that load other external movie clips into a window within "members" . What do I need to do to make this work. Do I need to use "this, _parent, _root, level(s) or "whatever.swf". If you can help me out that will be great. I'll make it up to you down the road. No sexual favor please.

I'm using flash mx 2004 btw.

Thanks in advanced

Flash Movie Goes To Next Scene On On Two Movie Clips Touching
I am pretty sure this can be done because my digital imaging teacher showed us a square spinning after touching a triangle that was moving around. I didn't really pay attention at the time because it seemed pretty useless. But anyway, how could I make a movie go to the next scene after one movie clip touched another movie clip, like two boxes or something? What would the code look like at where would I put it? Thanks.

Loading External Movie Clips Into Flash Movie
I was wondering if anyone could help me, I attached the code below to a button in an existing flash movie in hopes that when it is clicked it would create an empty movie clip on level 1 of the movie with the button and then load an external .swf (from the same directory) into or in place of the empty movie clip. However this isn't working for me does anyone have any suggestions?
--Thanks


ActionScript Code:
on (release) {
_root.createEmptyMovieClip("dummyclip", 1);
dummyclip.loadMovie( "Untitled-1.swf");
}

Loading Movie Clips In Flash Movie?
Hi all, im new here. As i am still new to flash i need to know one thing:

How can i (or is it even possible?) load a movie clip inside a flash movie? I need to make this work:

im making a site with flash. I have buttons which will lead to different areas of the site (profile, works, contact...).

i need to do this: when im at eg. at works section, and i press profile button, i wanna make a preloader to profile section and i also want a "cool" transition between different sections of the page. Possible?

Is there somekind of LOAD MOVIE thing in MX?

my Last site looked like crap, because there was no transitions between sections...

pls help

Appa

[MX04]Movie That Works Fine When Clips Apart Acts Strange When Clips Are Together.
Hi,

I have a pretty basic movie in which a ball moves along a track.

The track is made up of 3 sections & all I want the movie to do is trace an ID number (num) that is an individual property of that clip when it goes over it.

In the first movie attached below “trackOne” the whole thing works great! However in the other movie “trackTwo” I have moved the clips closer together & the whole thing has gone crazy with the following issues.

1.)The “trace” command fires on every “onEnterClip” event

2.)A text field that is used to show the ID number only changes when the ball is fully over the clip not as it first touches it, as it does in the first movie

3.)Although the ball is full off a clip it keeps tracing it’s ID number together with the new clips number?

Anybody able to help me on this?

How To Add Flash Movie Clips?
Like if I want a button to bring up a Flash Movie Clip, how do I do it?

Movie Clips In Flash 5 - Please Help
aloha...


http://www.daredevilmovie.com/index2.html - I'm trying to duplicate
this site, I really like how it's put together but I'm stumped.

The concept of having all information load in one page. a member from this board informed me that the whole thing is made in one movie clip. I can't figure out how the large Daredevil image disappears when the surfer clicks on the link on the left and it's replaed with another image (see website)

this what I have done so far...

I placed a movie clip in "up" state in my button but when you remove your mouse the clip dissapears,
I want the clip to stay on screen until the surfer clicks on another button and that clip is replaced with another clip in that button.

do place a action script somewhere?

I appreciate any asistance given..

thank you

Movie Clips In Flash 5
Ok heres my problem - I made a movie clip where text makes a glint effect and named it symbol 3 - i dragged it from the library over to my main stage, but i just see the picture of the words and when i play the movie it doesnt do the glint effect just sits there and does nothing

Help With Flash Movie Clips?
Hi

I want to make a flash movie where it shows 1 image, fades out, text appears, next image, fade. *repeat*

I know how to make that stuf. I just want to know what would go better. Should I make every set aof pix and text a seperate movie clip or all in one large timeline?

How can I tell flash to play the clips in sequence?

Movie Clips In Flash Mx
hi!

my boyfriend is a big fan of this board...but alas he is out of town and i need help with my flash site.

i am new to flash mx....i used to be on flash 4 eons ago.

i was used to changing my alpha channels within the "modify instance" command...and now it's all changed.

the boyfriend told me that i need to not tween anymore with alpha channels...that i should do all that inside movie clips. is that correct?

i have successfully made my movie clip, now how do i get that to play in the movie? aak.

help.

devonf

Help With Movie Clips In Flash
Hi
I am trying to access a movie clip in another frame where I keep some clips but want to use them in diffrent frames
How can I get hold of them??

Flash Movie Clips
I have a movie clip that I'm using as a link to another page in my website.
When released, I need it to go to another page and not to reload the home page.
I know using levels will not work, but this is all I can figure out for now. Any help please?


on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}

on (release) {
loadMovieNum("main.swf", 1);
}
on (release) {
_level1._visible = false;
}

Movie Clips - Flash Mx
Can 2 movie clips function at the same time in a scene?

I have 1 movie clip which is a navigation bar and appears in all scenes. The other movie clip appears only in scene 1 and I want it to disappear when moving on to scene 2 but it keeps on playing and the transition to scene 2 is not made.

How do I do it?

Thanks your help.
Kleb

How To End All Movie Clips In Flash MX
I am a novice to Flash Mx. I am currently working on an interactive project using flash mx and some action script. I have several questions:

How to add a timer in to a movie?

How to control (change content of input boxes)?

How to design a button which would exit the program (movie all together)?

HELP
Gosia

Movie Clips - Flash Mx
Can 2 movie clips function at the same time in a scene?

I have 1 movie clip which is a navigation bar and appears in all scenes. The other movie clip appears only in scene 1 and I want it to disappear when moving on to scene 2 but it keeps on playing and the transition to scene 2 is not made.

How do I do it?

Thanks your help.
Kleb

How To End All Movie Clips In Flash MX
I am a novice to Flash Mx. I am currently working on an interactive project using flash mx and some action script. I have several questions:

How to add a timer in to a movie?

How to control (change content of input boxes)?

How to design a button which would exit the program (movie all together)?

HELP
Gosia

Help Any One Knows Abt Flash Movie Clips?
hi guys and gals
i trying to do a site with a drop down menu, ive created a drop down menu and put it into a movie clip so that it can me used thru out the site, HOW do i call a frame number which is out side the movie clip when the button is within the movie clip?
please help

Need Flash MX Movie Clips Help
5 movieclips. Each assigned to a frame. Using the "goto" action assignment to graphic buttons on the stage to play the clips. I need help in getting the movie clips to stay and not go away when another is chosen. Is there a scripty thing that will keep the last frame of the previous clip visible while the next chosen one plays?

Movie Clips In Flash Mx
Im tryin to get an internal movie clip to play when called with a button inside my movie but i can't find any code that'll allow me to do this.
i can only find code that will let me call an external .swf movie.

Can anyone help me please?

Screwy Stuff With Movie Clips Within Movie Clips
This is kind of difficult to explain but here it goes...
I have created a Barney's like slide site and have gotten it to work fine. the problem I'm having is when I take scroll text box and try to place it on the movie clip that is going to be the part of the site that is going to slide out.

The whole thing slides fine and the scroll box is visible. However, the text is not visible therefore I'm not sure if the up/down buttons are actually working.

The scroll box is a movie clip itself with "on(release)" commands on the buttons. The "onClipEvent" commands are added to the textbox when the scroller movie clip is brought into the slider movie clip.

Is this something that just isn't supposed to work or I am doing some thing dreadfully wrong?

Thanks in advance,
Fakeout

Is It Ok To Duplicate Movie Clips Inside Movie Clips?
is it ok to duplicate movie clips inside movie clips? Seems to be a problem here...

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

Intersecting Movie Clips/ Dividing Movie Clips
I've bee trying all day to find out how to find the intersection point on two moive clips with non linear lines in them.
If I use the Hit Test method it seems to recognise only the hit point when the imaginary rectangle arounf the two clips collide. Is there any way of determining the point where the lines themselves cross over.

If not I think I've got another method but I can't figure it all out.

I know at what x point the lines will cross over (the more horizontal of the two lines will be crossed every by one of the verticle lines every 1/108th of it's width) but I can't determine exactly where the Y co-ordinate of this line will be at the time.

I could sort this out if I was able to delete all of the more horizontal move clip except the point of intersection I'm looking for, I'd then then be able to determine the y co-ordinate at this point. But I havn't been able to determine how to delete a move clip for example from x=0 to x=51 but leave the rest of the movie clip on the screen.



Any help with this would be much appreciated.

Cheers

Scifo

Creating Movie Clips Inside Movie Clips
Hello,

I am having difficulties creating movie clips within other movie clips. The following works to create a movie clip on stage with no problems...


Code:
//Create movie clip and load image into it
_level0.createEmptyMovieClip("tn1",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"tn1");
However, I want these movie clips inside another movie clip (mcPics1). For this I attempt...


Code:
mcPics1.createEmptyMovieClip("tn2",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"myPics1.tn2");
Can anyone tell me where I have went wrong?

Thanks!

Targeting Movie Clips Inside Of Movie Clips
I am a AS3 newbie and am working on an animated cell phone text demo for my company's web site. I have three phones, each are a movie clip with a time line animation. The three phones are all inside of another movie clip where I animate their intro. I have a stop on the first frame of each of the three cell phones so that their screens are static as they fall into place. Their animations begin on the second frame of each of their respective time lines, and I would like the animations to begin when the phones are clicked. I'm not sure if these clips should be targeted from the main time line with the rest of the global script or if it should be on the time line of the nested MC. Even if I knew where to put it, I'm not really sure exactly what the script should be. Please help! My boss wanted this done last week!!!

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

How To Make Movie Clips React To Other Movie Clips?
I'm designing this menu system that has four square buttons in a horizontal line. The premise of the menu system is when one button is clicked that button expands horizontally and the other buttons shrink horizontally and slide to the right. How would I go about doing this with actionscript? I'm using Flash 8 and Actionscript 2.0.

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

Problems Creating Movie Clips Within Movie Clips
Okay, I'm creating yet another game and need to create a vehicle. So I wanted to create one movie clip for the vehicle and within that movie clip create multiple movie clips for all of the parts.

So I created a new symbol, let's call it vehicle and then within that area I created all of the vehicle parts as symbols within that symbol. At least I think I did. Anyway, when you look at the library, sure enough you see all of parts for the vehicle and the vehicle itself. Within actionscript, however, I can create an instance of the vehicle. I can create instances of all of the parts, but not the vehicle.

The reason why I was going this route is that I wanted more realistic movement. I wanted certain parts of the vehicle to move depending on what the user did, but not other parts. Can anybody shed some light on this subject? Thanks in advance.

Exporting Flash With Movie Clips As AVI
Hi,

Simple problem. Don't know if there is a solution.
If i have "Movie Clips" as symbols, in a Flash Movie, and i export it as .avi file, the movie clips don't run. The AVI file just contains the animations that are on the base timeline. How can i do this? That is, export movie as .AVI with the Movie Clips still running inside. Is it possible?
What is a better option if it isn't?

Basically if i make a animated clips in Flax or Swish and import it in here in Flash file as "Movie Clips", i use them in the animation. They have large number of frames and placeing them on the base timeline is extremely tedious & time-consuming, and thus, putting them in as Movie Clips is fine. BUt i need to export as AVI. That;s the problem.

Hope somebody helps!
2shy

Loading Swf Into Movie Clips - Flash MX
Hi, hopefully somebody can help me out with this. I'm sure it's a fairly simple problem.

I'm trying to load various swf's into a larger movie. The project I'm working on is functioning like 'frames' in HTML'; we're using a 'nav.swf' loaded into the movie clip called 'nav', and the various media clips it's controlling are loaded into a movie clip called 'clips'.

But, when we try to load the movies only parts of each are visible or functioning.

In one, all we get is the audio for the swf. In another some of the images are visible, others are invisble, but functioning. In another none of the 'tell target' commands work, and so on.

I was wondering if anyone had had a problem like this before?


-Eoin

Flash Mx Is Switching My Movie Clips
For some reason, flash is switching my movie clips on output, I tried deleting the clip and reinserting it, but it doesn't help ? anyone came across this before ?

XML, Flash And Dynamic Movie Clips
I am using MX. I have a movie which, through Actionscript loads XML and creates multiple movie clips based on the XML passed in.
Everything loads fine. The movie clip is dynamic text with a button beneath it. The text is loaded from the XML and the URL for the button is also loaded. This works perfectly fine.
These clips load successively on different levels on the main stage.

The only problem I am having is that the button does not have any of the mouseover, mouseout functionality - highlight etc.

Below is the actionscript I am using...

menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
menuItem = this.firstChild.childNodes;
for (var i = 0; i<menuItem.length; i++) {
item = _root.attachMovie("itemClip", "itemClip"+i, i);
item._x = 0;
item._y = 21*i;
item.itemLabel.text = menuItem[i].attributes.name;
item.myUrl = menuItem[i].attributes.url;
item.onRollOver = function() {
gotoAndStop(2);
};
item.onRollOut = function() {
gotoAndStop(1);
};
item.onRelease = function() {
getURL(this.myUrl, "_blank");
};
}
}
};
menuXml.load("myMenu.xml");

Flash MX - Classes, Movie Clips
I'm not entirely clear how to use classes in Flash MX. Previously I've used only movie clips. Anyway, can I use a movie clip as a member of a class? That would involve the symbol's linkage property? What I have in mind is using a class to control a series of movie clips. I want to dynamically generate the movie clips that are needed.( from the library )

thanks
John

Flash Five Loading Movie Clips
I have 3 movie clips in my project. I want one move to play completly before the next movie starts, etc. How do I do this?

Question Regarding Movie Clips In Flash
Hello all,

First of all, for those of you who saw my first Flash site and gave me good feedback on it, I want to say thank you. I worked really hard on that project for a week and a half. If you did not see it yet, I have a link to it in my signature.


Anyways, on to my question:

I was curious about using multiple photos in one movie clip. Can this be done and will the size of the Flash movie be impacted by this? I was thinking of doing another Flash website for a Madison-based drumming group which I am a part of and I'd like to maybe use multiple photos inside one movie clip if it's at all possible.

Also, if I delete all of the JPG photos out of the library, will the movie clip still retain the photos?

Thanks in advance,

Loading Movie Clips (Flash MX)
Hello

I'm creating an interactive portfolio, for a cd-rom. I mostly use the load movie function to load up different pages within the main page.

When i load up a movie on another level the buttons on the movie below, although not visible can still be clicked, and change the cursor to the pointing finger.

Is there a way to make these buttons in-active when there is another movie above them.

Flash, Movie Clips And Info.
Hey peeps,

i've been studying flash for OoOoOo two days now, reading alot of books and taking tips from this forum.

I've made my very first, yet basic flash movie clip for a new project... www.jason-brock.com

My question is, i would like to create something along the lines of the puzzle-like image on www.impactcasting.co.uk - any advice on how to achieve this would really, really be appriciated!

Thanks

Robbie

Flash 8 : Removing Movie Clips?
Im using the 8 pro trial, and for some reason this code isnt working:
removeMovieClip(_parent);
removeMovieClip(this);
And the mc.removeMovieClip() doesnt work any more.
what happens is, the movie clip just gets moved to the opposite side of the screen. Can anyone tell me how to properly remove a movie clip in flash 8 ?

Flash 8 Help With Arrays And Movie Clips
i am in dire need of help right now. I have a flash file which shows 4 names next to four radio buttons. When you click the radio button, text will show up next to the person's name. Right now, as soon as you play the movie, all the text automatically shows up. I only want it to come in when you click the radio button. Everything is contained inside a movie clip. This is the actionscript I have on the first frame of the timeline inside the movie clip.

Code:
for (i=1; i<5; i++) {
letterArray = new Array(0, "A", "B", "C", "D", "E", "F");
for (j=1; j<7; j++) {
this["text"+letterArray[j]+i].onEnterFrame = function() {
if (this._alpha<100 && this.fadeReady == true) {
this._alpha += 5;
} else if (this._alpha>=100 && this.foo != true) {
//nextMC = "text"+letterArray[nextMCnum]+i;
//_root.maincontent.contentloader.anim[this.nextMC].fadeReady = true;
trace(":::::nextMC= "+this.nextMC);
this.foo = true;
}
};
this["text"+letterArray[j]+i].nextMC = "text"+letterArray[parseInt(j+1)]+i;
this["text"+letterArray[j]+i]._alpha = 0;
if(j<7){
this["text"+letterArray[j]+i].fadeReady = true;
}
}
}
there are 6 columns of text next to each person's name, which is what the array and the letters are for. Each piece of text is it's own movie clip with an instance name of textA1, textB1, etc until it gets to textF1.

Now the radio buttons are buttons inside their own movie clips and this script is on each button

Code:
on(release){
btn._visible = false;
_parent[movID].fadeReady = true;
_parent[movID2].fadeReady = true;
}
How can i made the text in the array textA1, etc show up only when I click the button? I have been picking apart this code since yesterday and I can't seem to figure it out. Any help will be greatly appreciated.

Flash Duplicate Movie Clips.
I am trying to create a game where an image appears at random on screen and moves across. Similar to Jetman and Helicopter. I am using the tutorial found here (http://www.actionscript.org/resource...ts/Page1.html). I am able to get the image to appear and move across the screen, once a button is pressed. However, i have realized that if the button is not pressed within a few seconds of the movie loading, the movie clip does not duplicate, which makes my game have a major flaw, ha.
I'd really appreciate any help i could get.
Thanks.

XML, Flash 8 And Scrolling Movie Clips.
Ok, where do I start here... I have a scroller that is currently working by parsing an external XML doc and loading them into duplicate movie clips. I also have text loading into the .fla from XML. All this is working fine. I need to attach a separate URL link to each separate movie clip. The problem is, this works when I take out an onRelease function - but loads all poster URLs at the same time opening 10 browser windows. When the onRelease function is put in (as the links must be user initiated) it will only load the first URL. Gah. Any help would be appreciated.

Here's the actionscript in Scene 1, frame 1:



//---------------------------loadXML-------------------------------------------\
//create the XML object
var myXML:XML = new XML();
myXML.ignoreWhite = true;
//create the event for when it loads content
myXML.onLoad = function(success) {
if (success) {
populateNav(myXML);
} else {
trace("xml did not load");
}
};
//now load the content
myXML.load("splash.xml");
//---------------------------/loadXML-------------------------------------------\
function populateNav(myXML) {
var featuresXML = myXML.firstChild.childNodes[1];
var totalXML:Number = featuresXML.childNodes.length;
var totalPosters = totalXML;
postersMC.itemsMC.button._visible = false;
var spacing:Number = postersMC.itemsMC.button._width+5;
var numberOfPosters:Number = totalPosters;
var i:Number = -1;
while (++i<numberOfPosters) {
var name:String = "button_"+i;
var image_path = featuresXML.childNodes[i].childNodes[1].firstChild;
var place = featuresXML.childNodes[i].childNodes[2].firstChild;
var date_call = featuresXML.childNodes[i].childNodes[3].firstChild;
var link_to = featuresXML.childNodes[i].childNodes[4].firstChild;
var trailer_link = featuresXML.childNodes[i].childNodes[5].firstChild;
//trace(link_to);
postersMC.itemsMC.button.duplicateMovieClip(name, i);
postersMC.itemsMC[name]._x = i*spacing;
postersMC.itemsMC[name]._y = 0;
for (var j = -1; j<i; j++) {
loadMovie(image_path, postersMC.itemsMC[name].mc_buttonPicture.posterHolder);
postersMC.itemsMC[name].mc_buttonPicture.dateHolder.htmlText = date_call;
postersMC.itemsMC[name].mc_buttonPicture.placeHolder.htmlText = place;
postersMC.itemsMC[name].mc_buttonPicture.onRelease = function() {
getURL(link_to);
};
}
}
var scrollWidth:Number = postersMC.itemsMC._width-680;
postersMC.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && this.itemsMC._width>740) {
this.targetx = (-scrollWidth/740*_root._xmouse)+30;
}


};
}

..and the only other code on the MC:

onClipEvent (load) {
_x = 30;
_y = 501;
_alpha = 100;
speed = 7;
}
onClipEvent (enterFrame) {
_x += (targetx-_x)/speed;
_y += (targety-_y)/speed;
_alpha += (targeta-_alpha)/speed;
}

Playing Flash Movie Clips
Hello,

I got a third of the way through building a flash animation and realized it was the wrong size. So I made a movie clip of it and scaled it to the new size. I went ahead a second sequence this way. Now I would like to be able to play each movie clip one after the other. How??

Thanks!
Eric

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