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


Similar Posts:


ActionScript 2.0 :: _root - Load Swf Into Another With "loadmovie" With An Empty MC The Pages Stop Working

Nov 14, 2004

Im new in actionsript and I have a problem with _root. I have a swf. with two MC en the main stage: Mc_menu and Mc_pages. The Mc_menu has several buttons with the code "_root.pages=2" which moves the different pages that are in the Mc_pages. If I publish the fla. it works perfectly. Now, when I wanted to load this swf into another with "loadmovie" with an empty MC the pages stop working... I guess is because of the rutes, but i don�t know how to refer them correctly. What I have right now is: in the main stage an empty MC and a button with the code:

[Code]...

View 2 Replies

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

ActionScript 3.0 :: Tweening Menu - Sliding MovieClips Instead Of Separate Pages

Dec 8, 2010

I'm making a menu system that uses sliding movie clips instead of separate pages - [URL]. But when you click on the 'study at UWS' button, the nested slider kind of goes nuts, until you press on of the side buttons.

View 1 Replies

ActionScript 3.0 :: Making A Menu System That Uses Sliding Movie Clips Instead Of Separate Pages?

Dec 8, 2010

I've been trying to find a solution to this for a while, but I haven't had any luck.I'm making a menu system that uses sliding movie clips instead of separate pagesbut when you click on the 'study at UWS' button, the nested slider kind of goes nuts, until you press on of the side buttons.

View 3 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 :: OnClipEvent (load) Does Not Working?

Sep 8, 2006

why it isn't working, or what I'm doing wrong to fix it. maybe I have the right script, but the wrong location. I'm also on Flash 8, by the way.example. I have the movie clip labeled "characters" on the main timeline. in that movie clip I have one movie clip titled "boy" and another one titled "girl". the "boy" movie clip is lip-synced and talking up a storm with some audio, and somewhere down the line, "girl" movie clip is introduced and is also supposed to speak on the frame I labeled by the same name, "speak". I'm trying to specifically target a certain frame in her movie clip timeline to play, but I just can't get it right.what I do have is:

onClipEvent (load){
_root.characters.girl.gotoAndPlay("speak");
}

now I know I could also have:

this.gotoAndPlay("speak");

I've tried placing the script directly on the "girl" movieclip when I want the event to happen, and then also placed the script on its own actionscript layer, but somehow, it just isn't working correctly.like I said, "boy" is chatting up a storm, and let's say something like frame 200 is when I want "girl" to come in with her line, that specific audio frame within her movieclip timeline labeled, "speak". she also has about 6 other speaking cues that I'm trying to call up to coincide with movieclip "boy" while he talks.

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 :: 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 :: If(_root.currentframe Not Working?

Feb 10, 2009

I can't seem to get... if(_root.currentframe to work. It just doesn't seem to recongnise what the _root frame is and won't goto the desired frame.I've attached a simple flash example which is very basic with a button inside a mc that asks the _root for the frame and if it's on frame 1 then should goto frame 5 - but it doesn't work. I've added a trace and that's returning the correct frame so it knows what the frame is.The actionscript on the button is..

on(release){
trace(_root._currentframe);
if(_root.currentframe == 1){

[code]...

View 3 Replies

ActionScript 3.0 :: _root.MyVar Not Working ?

Feb 1, 2010

if i have embeded swf like myswf.swf?myVar=test.txt ,i get by _root.myVar (test.txt)how can i get this parameter in AS3? I have searched google but no success

View 3 Replies

ActionScript 2.0 :: If (_root._currentframe != 6){ Is Not Working?

Jan 8, 2007

this code should work, but doesn't. Am I missing something? I'm simply trying to disable the button "cardSearchBtn" when the root timeline enters frame 6 (along with two other play actions).

Code:
if (_root._currentframe != 6){
cardSearchBtn.enabled = true;[code].........

View 2 Replies

ActionScript 2.0 :: Referencing Something In _root Not Working

Nov 13, 2007

I have a class 'resizingObject', with a method 'addFunction()', which is instantiated in _root as 'resizer' (im certain of this - ive checked in the debug - variables list)

I then have another class, 'layerObject', that i want to be able to call the 'addFunction()' method - so inside the layerObject i tried _root.resizer.addFunction(), _level0.resizer.addFunction() and all manner of other business but to no avail...even an attempt to trace _root.resizer returns undefined.

why cant i acces the resizer instance of the resizingObject?

View 1 Replies

ActionScript 2.0 :: _root.onLoad Not Working In Firefox?

Mar 4, 2005

I have a very, very simple thing in Flash that just will NOT work in Firefox and it's driving me nuts. On the very first frame of the root, I have the following code:

Code:
this.onLoad = function() {
_root.createTextField("test1_txt", 10000, 0, 0, 300, 100);
test1_txt.text = "WORK!!!";

[Code]....

This works all right but again, it's a hack, and I'd rather avoid using a hack like this.

View 1 Replies

ActionScript 3.0 :: _root, _level... Not Working In Loaded File?

Feb 5, 2009

I have loaded as2 swf in as3 using Loader object. Loading is done fine, but the problem is that the as2 swf uses stuff like _root, _level1.. etc. that doesn't work in as3. So is there any way by which I can make as2 swf work properly inside as2? I have bought some readymade as2 swf and need to use them here. I dont have the as2 fla so can't make any changes in them...

View 9 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 :: _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 1/2 :: OnLoad Working At _root Level But Not At Mc_target Level?

Aug 26, 2010

I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF.  Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1.  When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1.  However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not.  Here's my AS2 code:
 
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{    trace("loaded"); //This works    removeMovieClip(mc_Empty1.mc_FadedBg); //This works}

[code]....
 
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not. 

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

Flash :: Tutorial - Make Individual Pages Into Swf Pages So We Can Add Links In A Flip Book

Apr 28, 2009

Looking for a tutorial to make individual pages (jpg or gif) into swf pages so we can add links in an on-line flip book. I have flash, but have not learned as of yet.

View 2 Replies

Professional :: Track Pages With Google Analytics To See Which Pages Are Getting The Most Clicks?

Jan 25, 2011

I would like to know how to track my pages with google analytics to see which pages are getting the most clicks. My site is XML / Flash the menu is xml. Could I put the tracking code on each of the menu items in the xml file?

View 7 Replies

ActionScript 3.0 :: Count PDF Pages - Number Of Pages Within The PDF Using Either Flash Or PHP?

Oct 3, 2011

I'm using FileReference to upload PDFs and PHP to email it.Is there any way to find out the number of pages within the PDF using either Flash or PHP?

View 5 Replies

Professional :: Create The Pages As Jpegs Within A Folder Named "pages" In The Library

Feb 5, 2010

I'm trying out a page-flip program that tells me to create the pages as jpegs within a folder named "pages" in the Library. When I try to run it, it tells me it can't find the jpegs. I can get it to work locally by including the full URL (i.e., "...My Documentsedinnerpartiesimagesp3-large.jpg), but I know this isn't embedded in the swf file.

View 1 Replies

ActionScript 2.0 :: Load Different Html Pages From A Swf File With Out Refreshing Html Pages

Oct 6, 2009

I have created a website with one flash animation banner.The banner .swf has 5 menus. Each menu goes to different movieclips inside the .swf file. and at the same time i want to load the corresponding html file when i click the menu button and place the html content into the bottom area of the main html page without refreshing the html page.

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







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