ActionScript 2.0 :: OnClipEvent (data) { _root.goin.gotoAndPlay}?

Dec 12, 2005

The probem is I have an external swf file that loads a mailer. everything works fine apart from the fact that when the data is sent to the php file this command wont respond. It works on my local but once on the server it dont go.I think that the problem might be that MC (goin) is the MC that this code is located in?

onClipEvent (data) {
_root.goin.gotoAndPlay(12);
}

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Goto And Play Scene - _root.gotoandplay And Even Scene1.gotoandplay Won't Work?

Nov 9, 2007

For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;

[Code]...

View 1 Replies

ActionScript 2.0 :: OnClipEvent + _root = Sliding Pages Not Working

Feb 2, 2009

I'm having a tough time with a page sliding clip, and not sure what to do.

I've got a movieClip with a page sliding effect that I found here at Flash Kit. It's perfect for what I need, however the effect will only work in that movieClip. Once you try to load that movieClip from anywhere else, the sliding no longer works.

Here's the code that's on the image clip:

Code:
onClipEvent (load) {
_x = 0;
_y = 0;
spd = 5;

[Code]....

View 1 Replies

ActionScript 2.0 :: _root.gotoAndPlay(4) Won't Go To The Frame After The Score Counter Hits

May 4, 2009

my name is fabo i made a flash game and i need help with this script:

score = 0;
var Seconds = 10;
function timer():Void {
_root.Seconds -= 1;
}
setInterval(timer,1000);
if (_root.time == 0) {
_root.gotoAndPlay(4);
}
stop();

where it say: _root.gotoAndPlay(4) it won't go to the frame after the score counter hits

View 12 Replies

ActionScript 2.0 :: OnClipEvent Loading XML Data Into A MC?

Sep 19, 2007

I have a Movie Clip on my time line that has an empty movieclip inside it which I whish to load a random external SWF file into. There is to be an unknown number of SWF's to load in and these are to be played one after the other. So when the first random SWF is finished playing the next random SWF is to start playing.

Here is the hierarchy of my file

Code:

|_ Timeline
|_ plasmaScreen_mc
|_ emptyMovieClip (instance name advert)

So on my empty movie clip I have an onClipEvent which loads in the file path of the External SWF from an XML file and tries to load the extrernal file. Here is my code

Code:
onClipEvent(enterFrame)
{
if(this._currentframe == this._totalframes)
{

[code].....

Unfortunately because the code for getting data from the XML file is included in the onClipEvent "this" now refers to the XML data and not the movieclip. Can anyone tell me how I can proceed. I need to pass the filename to movieclip.

View 1 Replies

ActionScript 2.0 :: Loading XML Data After OnClipEvent

Mar 1, 2010

I'm trying to load XML data after an hitTest but doesn't work the way I'm programming. Here is the source code:

onClipEvent (enterFrame) {
if (_root.ster1_mc.hitTest(_root.rocket)) {
trace("raak");
function loadXML(loaded) {
[Code] .....

When I use the XML code simple on a button it works perfect but after my hitTest it's doing nothing... When I remove the function it say's undivined in the textarea.

View 1 Replies

ActionScript 2.0 :: OnClipEvent(data) Not Working In Form?

Apr 2, 2010

It's a very basic comments form with only 3 fields, the information gets sent directly to a email address through PHP.

The form works perfectly, sends all the information to my email, but my problem comes in when I try to run a onClipEvent(data) handler to go to a "Thank you" page when the information's been sent.

The onClipEvent(data) handler runs on the form movie clip and works fine when I run it on my local drive, but when I run it through the website it never executes. The form just get sent and it stays on the same frame.

I'm getting headaches from this because it looks like all the codes are working fine, it just doesn't want to run the damn handler!

View 0 Replies

ActionScript 2.0 :: [MX] OnClipEvent(data): Opiate Of The Masses?

Dec 18, 2003

I'm having an odd issue with this onClipEvent friend... In the main timeline, I set a variable like so:

[Code]...

And when it occurs, I get back LOADING FLAG IS: true, and that's fine too. Then, on the object I have the image loading into, I have the following:

[Code]...

And indeed, when the image loads, I get the trace statements, BUT though it traces, it does not redefine loadingFlag! also, the second trace statement comes up as IMAGE LOADING FLAG IS: with no value afterwards... Is there something with onClipEvent(data) where even though it's attached to a nested movieclip, it doesn't refer to the _root?

View 1 Replies

ActionScript 2.0 :: Adding OnClipEvent (Data) To Function On Frame 1

Aug 26, 2004

How would you write this into a function that lies on frame 1:
onClipEvent(data){
this.sendSent.text = "MESSAGE WAS SENT";
this.textEmail.text = "EMAIL";
this.textSubject.text = "SUBJECT";
this.textName.text = "NAME";
this.textMessage.text = "MESSAGE";
}

View 1 Replies

ActionScript 2.0 :: OnClipEvent(load) And OnClipEvent(enterFrame)?

Jan 6, 2005

I'm using the code contains onClipEvent(load) and onClipEvent(enterFrame) and duplicateMovieClip() to make the snowing effect in the 2 first movie-clips but then, i cannot stop them in the next movie-clips. (All of my movie-clips in 1 scene only.)

View 1 Replies

ActionScript 2.0 :: Mc Moved From _root - Loads Xml Data Into A Scroller

Apr 16, 2008

I am moving a mc that loads xml data into a scroller. The scripting that loads it is looking for it in _root, and I am getting:

Target not found: Target="_root.btn_projectsundefined" Base="_level0"
Target not found: Target="undefined" Base="_level0"

View 3 Replies

ActionScript 2.0 :: Create A Search Function And Show The Results By Goin To That Particular Frame Within A Flash File ?

Sep 28, 2003

Is it possible to create a search function and show the results by goin to that particular frame within a flash file ?

The data is not dynamic....and it is not server/web based....

View 11 Replies

ActionScript 2.0 :: Change The _root.broj And _root.logo Variables Inside The Function?

Jan 14, 2010

In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.

var result_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
var broj:Number=0;
var logo = new Array();

[Code].....

View 1 Replies

ActionScript 2.0 :: Get _root Array Data From Inside A Deep MC Hierarchy?

Aug 8, 2002

I have some global Arrays defined and loaded with data at the _root level. Data is OK cause I checked it with the List Variables option. I cannot address any of my arrays from within my MC hierarchy (not from MC2, MC1 or Component MC), BUT I can address variables defined at the root level correctly?

MC Hierarchy: ComponentMC-->MC1-->MC2-->Various MCs

I placed trace(_root.MyArray[0]); at MC2 level, then at MC1 level and finally at ComponentMC level but the sentence still reads "undefined". Is there a way to actually get my Arrays data from _root ?

View 3 Replies

ActionScript 2.0 :: _root.cargo Are Multipled By 10 And Added To _root.totalscore?

Feb 27, 2003

im lookin to make this so that the points taken from the _root.cargo are multipled by 10 and added to _root.totalscore

[Code]...

View 2 Replies

ActionScript 2.0 :: _root._root[eelmine].nextFrame()?

Sep 14, 2004

if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();

View 16 Replies

ActionScript 3.0 :: Using Array Data And Append It To A GotoAndPlay Command?

Mar 4, 2010

I have loaded content into an array and have displayed that data in a dynamic text field. What I need to do now is take that same array data and append it to a gotoAndPlay command.

example:
var myArray:Array = new Array(); // lets pretend a button has been clicked and loaded (event.target.name) into the array

//I can then display the contents of the array in a text box

myTextBox.text = myArray[0]; //this works well

but I need to also do this

myMovieClip.myArray[0].gotoAndPlay("start"); in which will actually end up being myMovieClip.home.gotoAndPlay("start")

How do I write this the correct way

----actual code-----

var myMenuArray = [home, about]; //1 button duplicated with instance names to reflectfor each (var btn in myMenuArray)[code]....

View 2 Replies

ActionScript 3.0 :: No Longer Move The "_root" By Changing The _x And _y Positions Of The _root?

Jan 26, 2009

I just recently began migrating from AS2 to AS3, and I have of course realized that I can no longer move the "_root" by changing the _x and _y positions of the _root (which no longer exists in AS3). How can I do this in AS3 (specifying _x, _y, _z possibly of the "_root")?

View 2 Replies

ActionScript 2.0 :: Load XML After OnClipEvent?

Mar 1, 2010

I'm trying to load XML data after an hitTest but doesn't work the way I'm programming. Here is the source [code]...

View 2 Replies

ActionScript 2.0 :: SwapDepths Without Using An OnClipEvent?

Jan 6, 2006

I have 2 images that I want to swap places on a certain frame in my animation. I've been messing with it for quite sometime now and I can accomplish one of two things. Either the animation goes smoothly and the images don't swap depths or the images swap depths and the animation hangs.

View 6 Replies

ActionScript 2.0 :: DuplicateMovieClip Under OnClipEvent?

Mar 17, 2006

I need to have an mc duplicate itself under its own onClipEvent(load) handler. To put it perhaps more clear, something like:

onClipEvent(load) {
//clips duplicate itself
}

I have tried all sorts of combinations of _root.clip.dMC, this.dMC,

View 4 Replies

ActionScript 2.0 :: OnClipEvent - Rotation Followed By Cursor

Aug 28, 2009

I've put together some code to allow the user to rotate a clock hand around the clock by dragging it round. My code isn't working.

Code:
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
arrowDrag = true;
}}
onClipEvent(mouseMove) {
if (arrowDrag == true) {
[Code] .....

View 3 Replies

ActionScript 2.0 :: Clear OnClipEvent Once Triggered?

Feb 20, 2012

I have a file where user chooses xy cordinates which display in text box.... which is workin, but I want to have it only appear inside a box area? ie choose once only inside box area - once outside i want the mouse to behave as normal (no new pointer no xy tracking) not sure what if statement would work ?

onClipEvent (mouseDown) {
duplicateMovieClip("../cue", "cue" add n, n);
setProperty("../cue" add n, _x, getProperty("_level0",_xmouse));

[Code]....

View 3 Replies

ActionScript 1/2 :: Rollover Command For An OnClipEvent?

Oct 23, 2009

I've this script that works fine:

onClipEvent(mouseDown ){
_root.orange1anm.orange1.play();
}

I've been trying to change it to a rollover instead of a click and nothing seems to work.

View 2 Replies

OnClipEvent - How To Stop Action After 10 Seconds

Jun 16, 2010

This is my AS code:
onClipEvent (enterFrame) {
this._x = Math.random()*2+90;
this._y = Math.random()*2+60;
this._alpha = Math.random()*30+50;
}
It is applied to the movie clip. I am having trouble figuring out how to STOP to action. I want it to stop after 10 seconds. How do I do this?

View 2 Replies

OnClipEvent And Loading External Images?

Sep 1, 2010

I am trying to change the images the following calls up. (Using CS4 and AS 2.0)

onClipEvent (load)
{
imageProperties = _root.getCurrentImageName(0);
loadMovie(_root.url + imageProperties.name, this.cont.pic);

[code]....

I get that I could find the image in the directory and just change it out with the same name/pixel size, but I'd also like to add more images to this particular project with the same conditions.

View 1 Replies

ActionScript 2.0 :: Statement Must Appear Within On/onClipEvent Handler?

Jan 4, 2009

I am just learning Flash. I'm using Flash CS4, However I am using Actionscript 1.0/2.0. I have a main page with just simple buttons, and such. My question is, I need to load a swf within my main page. I have a sqaure in the center of my page that I want to load a swf in. I made a rectangle using the rectangle tool, and converted the rectangle into a symbol so that actions may be placed within it. I want to load a file called News.swf within the rectangle. I can't find any code to do this that doesnt have compiler errors.

I found one code: News.loadMovie("News.swf"); when I put just that in the Actions field, and I export the movie I get the error: Statement must appear within on/onClipEvent handler

I just want to load News.swf in the actions tab within a symbol.

View 9 Replies

ActionScript 2.0 :: OnClipEvent (enterFrame) Is Not Working

May 28, 2010

I have two movieclips that determine their frame number by a variable. The problem I'm having, though, is that the frame doesn't change when the variable changes. The original variables are determined in the main timeline (_root.item_slot1= 0;).The following code is contained in the item_slot1 movieClip:[code]So it starts off in frame 1. If I change the original variable to 1, then it will go to frame 2. However, the frame doesn't change when the variable changes, and I have a text box that shows the value of the variable, and it changes to 1 exactly when it's supposed to.I can't zip files, but I have the .fla at URL... if you can get it to download from there.

View 7 Replies

ActionScript 2.0 :: Use Onclipevent () To Preload The Movie?

Aug 6, 2002

I am using loadmovie to load a separate .swf file into a movie clip which is on my main file time line. Is there anyway I can use Onclipevent () to preload the movie I am loading in?

View 15 Replies

ActionScript 2.0 :: Delete / Remove An OnClipEvent?

Jun 10, 2005

Is there a way to remove an onClipEvent? I'm using onClipEvent(mouseDown) but this has to stop after an other event in the swf...

View 6 Replies







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