Ex. .swf Preloader Using "data" Clip Event.
well, i have this movie which loads another one unto it. my problem is , i am trying to use the DATA clip event in order to get a nice preloader. the data sits on the host MC upon which the movie is loaded. the thing is in the beggining of the External .swf i have a stop action to prevent it from keeping on playing before all the movie hasn't loaded... it simply doesn't do what i want. cause when i made sure that all the bytes are loaded and i give the order to play the next scene in the ex. file nothing happens. this is not a problem of refferences. please... help. thX!
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-10-2002, 08:42 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Data Event Not Working Ok
hi,
I have been stuck on this for a week now.
Here is my problem... I am making an apleet that sends short messages to mobile phones. users have inbox and outbox
I am using a loadVariables to load the variables into the movie. I am getting a standart http string.
The inbox is a MC that duplicates itself as many times as it should.
When the user presses the inbox button the following thing happens
---------------------------------------------------------------------------------------------------------------
on (release) {
_root.loading._visible = true;
_root.bo._x = Number(getProperty(_root.title, _x));
for (t=0; t<=_root.inget.numofmess; t++) {
removeMovieClip (eval("_root.inget"+t));
}
ACT = "get.inbox";
loadVariables ("http://server/cgi-bin/script", "inbox", "GET");
}
---------------------------------------------------------------------------------------------------------------
whict deletes all, if any, enties generatet if the user has checked the inbox already and load the vars in the "inbox"
MC which has the following code attached:
---------------------------------------------------------------------------------------------------------------
onClipEvent (data) {
_root.loading._visible = false;
_root.gotoAndPlay (15);
}
---------------------------------------------------------------------------------------------------------------
on frame 15 i have the following code:
---------------------------------------------------------------------------------------------------------------
for (i=0; i<=_root.inget.numofmess; i++)
{
bn = "inget"+i;
duplicateMovieClip ("inget", bn, i);
setProperty (bn, _y, Number(getProperty (inget, _y ))+inget._height*i);
eval("_root.inget"+i+".inbosubject") = eval("_root.inbox.inbosubjest")
}
---------------------------------------------------------------------------------------------------------------
which duplicates my mc as many times as the number of the messages that i have in the database for the user.
the problem is that sometimes it duplicates the entries, but sometime it does not. Which, I thing means that the onclipevent data
is not working ok. How can I solve this problem.
any help would be appriciated thatnx in advance.
Event Handling And Dynamic Data
I have a movie clip that has to respond to an event triggered from dynamic data. (json) It is a scoreboard, when a goal is registered, a small animation has to start in my movie. How do I make this happen?
Event That Fires After Data Is Loaded?
Hi all,
I am now on my way with databound flash pages! Pretty neat!
In frame 1 of my movie I have all the data connections set up.
For this test I am using some perl to send back an array of values.
Once I get the array back I am using a function like this:
function getCompInfo (rvalue)
{
_global.var1 = rvalue[0];
_global.var2 = rvalue[1];
_global.var3 = rvalue[2];
etc. . .
}
This works okay i guess. But I am noticing that onLoad events for movie clips i have (specifically one that loads a .jpg) seem to be running before all these global variables are set. So on first run my loadMovie code shows nothing because the value its getting (_global.var3) is empty when it tries to load. I was wondering if there was an event I could use that fires after all the data is loaded from this getCompInfo function? Or if I should just take the code i need and actually put it in the getCompInfo function?
Also, is there any good reference on where to place your code in your application. Say I wanted to create a class to implement OOP. Would i make that in an external .as file? or would i just create a layer for my classes and use them there?
THANKS FOR ANY HELP!!!
MCM
How To Disable The Clip Event Of A Movie Clip
I have clip events within a movie clip, what i need to do now is to only execute the clip events on a specific frame, any suggestions as to how to disable the clip events on a particular frame and able it on another frame?
Detecting A Mouse Event On A Clip Within A Clip
Hello,
I am trying to detect a mouse click on a clip within a clip, but it's not working. I have read that it's not possible to detect a child_mc.onMouseOver is 'child_mc' is within 'parent.mc'.
But there must be a ways around it, right?
Thank you.
OnRelease Event Does Nothing For Clip Inside Clip
I have a "menu" movie clip. Inside that is an instance of another "button" movie clip named "myButton". The menu clip is exported for actionscript. In my main timeline I have an empty clip with the instance name of "empty". The code is:
_root.empty.attachMovie("menu", "myMenu", 1);
//menu clip is attached
_root.empty.myMenu.myButton.onRelease = function () {
trace("this never shows");
}
why does the onRelease event not do anything? If i put this code directly on the myButton instance inside the menu clip I don't see the trace either. However, the following code DOES work:
_root.empty.attachMovie("menu", "myMenu", 1);
//menu clip is attached
_root.empty.myMenu.onRelease = function () {
trace("this shows");
}
but i need the code to execute when the button inside the menu is clicked not the whole menu itself. Any help is appreciated!
Sending Data Between Movies AND Using Event Handlers
Hi out there,
imagine to build a flash portal, imagine you sometimes need a socket connection and sometimes a http-connection.
Imagine you build a flah communication control wich will handle the two types of connections and send and receive the data to/from the server.
So a movie within this portal wont send data directly to the server, but to the communication control... which then will decide if it should use http or socket based connection and then send XML to the Server.
This is NOT the problem.
The problem is, if the communation control receives data from the Server it should send it to a specified Movie, AND NOW the movie should work with event handlers to receive the data. This normally just possible using a direct server connection.
So here my question: Is it possible to use event handlers if movies exchange data ?
And please, dont tell me to use something like a "enterFrame " to check something out....
I am looking forward to receive some suggestions :-)
Clemens :-)))))
Pass Data In Custom Event Dispatch
I have a custom event I made and it works great.
my listener knows exactly when my custom even is dispatched,
but I need to know some other data, how can I pass some data to the eventHandler??
for instance:
ActionScript Code:
chose = "optionA";
dispatchEvent(new ChooseEvent(ChooseEvent.CHOOSE)); // here I know which one was chose
//different class
chooseStone.addEventListener(ChooseEvent.CHOOSE,onStoneChoose);
function onStoneChoose(e) {
trace("CHOOSE!!!!!"+e);
// I know one was chose but I dont know which??
}
THANKS!
Reloading XML Data Afert Event - Not Working
Hi, this is a Slide show AS. XML data is being parsed to an Array, and slideshow starts, and keeps going in loop.
So far it's working fine, but I wan't to reload XML data (to check if there are newer images, [cause this is Standalone file]) after last element of the Array (picture) has been viewed. I spent two nights trying to solve this, but nothing happens. I mean, even after the XML file is updated, SWF keeps showing an old images. This must work without restarting the SWF player.
Any ideas?
Attach Code
// parent container
var container_mc = this.createEmptyMovieClip("container",0);
// movie clip containers
container_mc.createEmptyMovieClip("loader1_mc",2);
container_mc.createEmptyMovieClip("loader2_mc",1);
// preload watcher
this.createEmptyMovieClip("watcher_mc",100);
// load xml
images_xml = new XML();
images_xml.ignoreWhite=true;
images_xml.onLoad = parse;
images_xml.load("images.xml");
function parse(success) {
if (success) {
imageArray = new Array();
var root = this.firstChild;
_global.numPause = Number(this.firstChild.attributes.timer * 1000);
_global.looping = this.firstChild.attributes.looping;
_global.fadetime = Number(this.firstChild.attributes.fadetime);
_global.xpos = Number(this.firstChild.attributes.xpos);
_global.ypos = Number(this.firstChild.attributes.ypos);
var imageNode = root.lastChild;
var s=0;
while (imageNode.nodeName != null) {
imageData = new Object;
imageData.path = imageNode.attributes.path;
imageArray[s]=imageData;
imageNode = imageNode.previousSibling;
s++;
}
// position
container_mc._x = _global.xpos;
container_mc._y = _global.ypos;
// parse array
imageArray.reverse();
imageGen(imageArray);
} else {
trace('problem');
}
}
// depth swapping
function swapPlace(clip,num) {
eval(clip).swapDepths(eval("container_mc.loader"+num+"_mc"));
}
function loadImages(data,num) {
if (i==undefined || i == 2) {
i=2;
createLoader(i,data,num);
i=1;
} else if (i==1) {
createLoader(i,data,num);
i=2;
}
}
function createLoader(i,data,num) {
thisLoader=eval("container_mc.loader"+i+"_mc");
thisLoader._alpha=0;
thisLoader.loadMovie(data[num].path);
watcher_mc.onEnterFrame=function () {
var picLoaded = thisLoader.getBytesLoaded();
var picBytes = thisLoader.getBytesTotal();
if (isNaN(picBytes) || picBytes < 4) {
return;
}
if (picLoaded / picBytes >= 1) {
swapPlace("container_mc.loader2_mc",1);
alphaTween = new mx.transitions.Tween(thisLoader, "_alpha", mx.transitions.easing.Regular.easeOut,0,100,_global.fadetime,true);
timerInterval = setInterval(imageGen,_global.numPause,data);
delete this.onEnterFrame;
}
}
}
function imageGen(data) {
// start at 0, increment to total number of images, then drop back to zero when done
if (p==undefined) { p=0;} else { break; }
if (p==data.length && _global.looping=="yes") {p=0;} else { break; }
loadImages(data,p);
p++;
clearInterval(timerInterval);
}
stop();
XML DATA GRID Double Click Event
Hi alll
I've XML DATA GRID... please give me any guidence for
How to get Double Click Event for that
When double clicked i need to capture the data..
Thanks and regards
sarma
Xmlconnector Data Loaded Event MX2004 Pro?
Anybody know a way to determine when an xmlconnector has completed the load of its data from the server?
I am using PHP to build the xml. Problem is processing occurs in Flash before the results are back from the server. I have been unable to find any examples of doing this using the built in XML UI Component.
TIA!
J
Custom Event With Multiple EventTypes And Data
I'm really banging my head on this one.
For some reason I can't see how to do what I want. I have a custom Event Class
Code:
package {
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.EventPhase;
public class RemotingEvent extends Event {
// constants for the different event types
public static const LOGIN_RESULT:String = "login_result";
public static const IMAGE_UPLOAD:String = "image_upload";
public static const USER_SIGNUP:String = "user_signup";
public var dataObj:Object;
public function RemotingEvent(type:String, data:Object, bubbles:Boolean=true, cancelable:Boolean=false) {
// Pass constructor values to superClass constructor
super(type, bubbles, cancelable);
dataObj = data;
}
// override clone()
public override function clone():Event {
return new RemotingEvent(type, dataObj, bubbles, cancelable);
}
// override toString()
public override function toString():String {
return formatToString("RemotingEvent", "type", "dataObj", "bubbles", "cancelable", "eventPhase");
}
}
}
When I try to dispatch an event I get the error
Code:
1180: Call to a possibly undefined method dispatchEvent.
Here's the code for handling the dispatching of events. This is just one of the methods
from a large remoting class I have written. I have made sure all of my classes are imported.
Here's a list of classes:
import flash.net.NetConnection;
import flash.net.Responder;
import flash.events.*;
import RemotingEvent;
There are others but these are the relevant ones.
Code:
private static function handleLogin_Result(isValid:Array):void {
// param @ isValid:Array -- Contains 2 items. [0]=="success or error", [1]=="The error string"
var responseObj:Object = {isAllowed:false, errMsg:""};
var errStr:String = isValid[0].toLowerCase();
var evt:RemotingEvent;
// check to see if the user has passed in a proper username and password
if (errStr == "error") {
// Error has occurred.
// Username / Password is incorrect.
evt = new RemotingEvent(RemotingEvent.LOGIN_RESULT, {err:errStr});
} else if (errStr == "success") {
// Allow the user to login.
evt = new RemotingEvent(RemotingEvent.LOGIN_RESULT, {err:errStr});
}
dispatchEvent(evt);
}
Can someone point out what exactly I'm doing wrong?
I just don't see it. Any help would be greatly appreciated.
Thanks.
How Fire Event When User Clicks On Dynamic Data?
This is a big question, I realize. But any leads to get me started would be greatly appreciated.
I have a Flash document that dynamically loads events (it's currently being displayed in the lobby of the NY Hilton). For another application, I'm wishing to allow a user to click on an event and fire an event.
Given that the controls for a given event row are txtEvent1ID (hidden), txtEvent1Name, txtEvent1Date, etc., how do I begin to do this?
Thanks for anything to get me started.
Ron Cook
Boulder, CO
Event Listener List Component & Remoting Data
Although this uses components, it's a remoting based problem. As the code works fine on the component out of a remoting environment.
i have a list component sitting inside an accordion which has been created in this manner:
Code:
my_acc.createChild(View, "publications", {label: "Publications"});
var firstNameChild_obj:Object = my_acc.publications.createChild("List", "publication_list");
i then make a remoting call getting the data to populate the list:
Code:
function initialQuery_publications() {
var pc:PendingCall = printFolio.getPublications();
pc.responder = new RelayResponder (this, "publications_Result", "publications_Fault");
}
assign the recordSet to the list:
Code:
function publications_Result(re:ResultEvent):Void {
my_acc.publications.publication_list.labelField = "projectName";
myRecordSet = re.result;
my_acc.publications.publication_list.dataProvider = myRecordSet;
}
Now what i am wanting to do is trace the value of what is selected in the list when a user clicks on each item. This is my listener:
Code:
// Create listener object.
var listListener:Object = new Object();
listListener.change = function(evt_obj:Object) {
trace("Value changed to: " + evt_obj.target.value);
}
// Add listener.
my_acc.publications.publication_list.addEventListener("change", listListener);
It responds, making me assume the targeting is correct - otherwise i wouldn't get anything would i ? How do i assign the value ( either data or label ) from the list component into the trace ?
Any help greatly appreciated!
How To Return Data That Isnt Back Until An Event Fires?
Hey guys,
I have a function like this, and I want to use this function somewhere that needs data returned from this call. Is it possible to get data from a url another way that doesnt require waiting for the event to fire so I can return the data?:
ActionScript Code:
public function convertToLongLat(location:String):String{
var myRequest:URLRequest = new URLRequest("http://local.yahooapis.com/MapsService/V1/geocode");
myLoader = new URLLoader();
var myVariables:URLVariables = new URLVariables();
myVariables.location = location;
myVariables.appid = "fsadfds--";
myRequest.method = URLRequestMethod.GET;
myRequest.data = myVariables;
myLoader.addEventListener(Event.COMPLETE, onGetLongLatForSearch);
myLoader.load(myRequest);
return dataIWantToReturn;
}
Clip Event
has anybody noticed that n some cases on clipevent(load) will work on duplicated movieclips and not in other cases
On Clip Event
simple question. I am trying to put an on clip event on a movie clip, but the option is grayed out in the actionscript window. Any ideas why and what is the way to do it? I want to be able to click on the movie clip and jump to another frame.
Thanks a lot.
Clip Event
Hello, I am doing a drag and drop and here is my code:
onClipEvent (enterFrame)
if (this.hitTest(_root.two)==true
_parent.right=_parent.right+1
Basically if the droptarget for the movie is true then increment the variable right by 1. The problem is that once it is equal to true, the variable keeps increasing by 1. It's almost like a counter and it keeps going. How do I get it to just increment it by 1 and then stop?
Thanks
Clip Event
ok this is a dumb question, but how exactly do you use clip event enterframe?
when i put a mc in a frame with a stop command on it, does the mc still enterframe continuosly? or does it enterframe once? what other tricks are there with using enterframe?
On Clip Event?
i'm creating a drop down menu using the code in this tutorial.
http://www.flashkit.com/tutorials/In...-951/index.php
except i cant get it to work.
firstly: it will not play the menu movie clip to reveal the menu items. ( i know i havent got the correct paths for the dynamic text box yet)
secondly: it works differently if i take out the follow curser MC. (but still not right)
please help as i'm not clued up with the onclip event code.
rat
On Clip Event, Is There Another Way?
onClipEvent (load) {
num = 3;
}
on (release) {
if (_root.link<>num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
_parent["item"+_root.link].gotoAndPlay("s2");
_root.link = num;
_root.play();
_root.scroller.scroller.gotoAndStop(3);
_root.category_num = 4;
_root.pic_category_num = 46;
}
}
All I want to do is, on release go to page number "X" instead of the number listed in the "onclip event". It won't let me because of **Error** Symbol=shortcut buttons, layer=Layer 1, frame=1:Line 21: Clip events are permitted only for movie clip instances
}onClipEvent (load) {
Can anyone help??
On Clip Event
Hello!
I have a question about priority, If I put "onClipEvent (mouseUp)" and then for example there's a button on the stage with on (release) blah blah,wich script will run first or both of them ... The problem is that i made drop down menu and there's on clip event so that the menu rolls back when the mouse is clicked anywhere on the screen , but the problem is that the submenu buttons wont work if i put on mouse event on one of those buttons....
On Clip Event?
I have these animated menus that kick in when you roll over them. See www.stephanieerdel.com/headermov.swf . The only problem is that I don't know the command to turn the movies off when you roll off them. If I do a rollOut event handler on the child button, it stops the movie before it's done playing.
I basically want it to play the movie while your mouse is over the link and the sublinks but when you roll off the sublinks or the main link then the movie stops playing. Is this an OnClipEvent? If so, then what is the command? And what level do I write the actionscript on?
On Clip Event
Hi
What is the right action script for this on clip event to put it in its own layer in the timeline?
onClipEvent (load) {
_x = 22;
_y =113;
div = 5;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_y += (endY-_y)/div;
_root.pic1.onRelease = function() {
endX = 22;
endY = 113;
};
_root.pic2.onRelease = function() {
endX = -282;
endY = 113;
};
_root.pic3.onRelease = function() {
endX = -582 ;
endY = 113;
};
}
Thanks in Advanced
Attach Code
onClipEvent (load) {
_x = 22;
_y =113;
div = 5;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_y += (endY-_y)/div;
_root.pic1.onRelease = function() {
endX = 22;
endY = 113;
};
_root.pic2.onRelease = function() {
endX = -282;
endY = 113;
};
_root.pic3.onRelease = function() {
endX = -582 ;
endY = 113;
};
}
ON Clip Event How 2
I have an on Clip looks loke this:
onClipEvent (load) {
//assuming you have a personal web server and PHP installed locally
loadVariables("
Getting Out Of A Clip Event
I have this programme with I put together from a few tutorials and bits and pieces. It does a simple dot to dot game.
I have it all working -except when you have clicked around all the dots and back to the start I cannot get it to go to the congratulations scene.
Any ideas - .fla attached
Getting Out Of A Clip Event
I have this programme with I put together from a few tutorials and bits and pieces. It does a simple dot to dot game.
I have it all working -except when you have clicked around all the dots and back to the start I cannot get it to go to the congratulations scene.
Any ideas - .fla attached
Jpg Preloader And Fade Event
Hi there,
This my first time posting a question on the Flashkit forum, and i hope you can help me out.
My problem is that i can't get my flash file to do what i want it to do.
I have af moviclip called "container" where i want to load a jpg picture in, just like an swf file. That much i can do. The problem is, that i want to show af preloader while it is loading in and when the picture is fully loaded, i want it to fade in. (Form 0% to 100%)
and after that, i want to be able to click a button and load in another jpg in the same "container", so the other one will disapear and the new one will fade in.
I have looked through alot of posts, and have been trying alot og them out. But i cant seem to get it to work, proberly.
Can anyone show me a working example (in code) or just som guidelines, as to how i should do this the best way.
I know flash pretty well, but this one makes me feel years behind!
Jpg Preloader And Fade Event
Hi there,
This my first time posting a question on the Ultrashock forum, and i hope you can help me out.
My problem is that i can't get my flash file to do what i want it to do.
I have af moviclip called "container" where i want to load a jpg picture in, just like an swf file. That much i can do. The problem is, that i want to show af preloader while it is loading in and when the picture is fully loaded, i want it to fade in. (Form 0% to 100%)
and after that, i want to be able to click a button and load in another jpg in the same "container", so the other one will disapear and the new one will fade in.
I have looked through alot of posts, and have been trying alot og them out. But i cant seem to get it to work, proberly.
Can anyone show me a working example (in code) or just som guidelines, as to how i should do this the best way.
I know flash pretty well, but this one makes me feel years behind!
On Clip Event Problem
Hi all,
I have a movie, parentmovie, and inside it is a movie clip called my text clip and a movie clip called biplane. Both have been given instance names of the same. In my text clip I have:
onClipEvent(mouseMove){
startDrag("biplane", true);
}
but I get the error clip events are permitted only for movie clipinstances....
I expected that when the mouse moved over the text clip movie that the plane would start to drag....????
Has anyone any ideas I think I'm misunderstanding the OnClipEvent command....
regards, kieran
On Clip Event Quetion
is the data in onClipEvent(data) a boolean which I need to reset every time I wish to reload information?
regards,
Kieran
Clip Event Problem
Can anyone tell me how to assign clipEvent actions to movie clips which are put into the stage area by attachMovie? and provide exactly the same functions?
Clip Event Problems
onClipEvent (load) {friction=4;
this._x=100;
this._y=70;
}
onClipEvent (enterFrame) {if (this._y<244){this._x+=(this._x-this._x)/friction;
this._y+=(this._y-this._y)/friction;
} else {_root.draggableClip.dragButton.onRelease = function() {_root.draggableClip._x+=(100-_root.draggableClip._x)/friction;
_root.draggableClip._y+=(70-_root.draggableClip._y)/friction;
}
}
}
So basically I have a draggable clip and when It's released below a certain area I want it to ease back to it's original area. But since it's on clip event enter I'm assuming it keeps hitting the first if statement, and it only tweens a little bit and then stops.
I know my code is really sloppy, but if someone could help me I'd appreciate it.
For Loop And Clip Event
Hello,
onClipEvent (load) {
for (var i = 3; i<=3; i++) {
this+".ball"+i.gotoAndPlay("off");
trace(this+".ball"+i);
}
//_root.ballCounter.ballDisplay.ball1.gotoAndPlay("o ff");
}
I've got a group of MC clips of balls in a MC that are numbered ball1, ball2, ball3 etc
I've placed the above script on the MC that should target the ball MCs...but it doesn't work can any one tell me why? I've also tried using absolute targets.
The commented line in the script does work correctly...it also works using:
this.ball1.gotoAndPlay("off");
Thanks again,
SS
Clip Event Detection
how can i tell whether a on(release) has been used on a movie clip. i'm writing a script and i don't know how to detect this.
Clip Event On Dynamic Mc
I got this script off of flash kit.
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop("over");
} else {
this.gotoAndStop("off");
}
}
My question is I'm using attach movie to dynamically put ,ovieclips on to the stage.. so where do I put the script for a clip event such as the one above??
Targeting On Clip Event
i have this code
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.menu.drop.nextFrame ();
} else {
_root.menu.drop.gotoAndStop (1);
}
it is on a MC in 'sub.swf'
Q. what targeting information do i have to change, cos when i import it into my main movie the event doesn't work. Obviously it works on its own.
its a simple drop down menu
rat
On Clip Event Problems
Ive just got flash mx 2004 and I cant find the menu were you select on release/ on press state. Have macromedia scrapped this menu for MX 2004 so you have to write the code out manually.
Can someone help. Thankyou
[F8] On Clip Event And MX Transitions
I have this code on my empty MC:
onClipEvent (load) {
import mx.transitions.TweenExtended;
easingType2 = mx.transitions.easing.Strong.easeOut;
this._alpha=0;
extendTween = new TweenExtended(this,["_alpha"],
easingType2,[this._alpha],[100],2,true);
}
onClipEvent (enterFrame) {
import mx.transitions.TweenExtended;
easingType = mx.transitions.easing.Back.easeOut;
this.swapDepths(_root.etbox1)
extendTween = new TweenExtended(etbox2,["_xscale","_yscale"],
easingType,[etbox2._xscale,etbox2._yscale],[120,120],1.3,true);
}
firstly i get this error message which i do not understand:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 13: The class 'mx.transitions.TweenExtended' cannot be imported because its leaf name is already being resolved to imported class 'mx.transitions.TweenExtended'.
import mx.transitions.TweenExtended;
Total ActionScript Errors: 1 Reported Errors: 1
secondly my code doesn't work!!!! What i want to do is fade the imported MC when it loads and then scale it up when i rollover.
any idaes where it's going wrong
cheers
Rat
Clip Event Question
Okay I hope everyone understands what I'm asking is a syntax question...
In my movie I use this code a lot which is attached to a movie clip..
onClipEvent(load)
{
//my commands
}
But I want to do it on frame one.
---------------------------------------------------
As a side note... I also use..
on(release)
{
//my code
}
and on frame one I use instead....
movieclip.onRelease = function()
{
// my code
}
-------------------------------
So my final question is... is there a way to write the first set of code as a function on the first frame? Such as...
movieclip.onClipEventLoad = function(){ }
Or something?
Thanks!
-Joey Avino
On Clip Event Help Me Understand
onClipEvent(load) {
this.useHandCursor=false;
}
this is the script on my template for the main buttons. I am hoping to add more pages and normally would have just copied the script, but I cannot decipher how this works... can you break it down for me.
On Clip Event Question
Hey all.
Ive got a movie clip with some animation in it, what i would like to happen is that when the timeline reaches the end frame , i would like to play the 2nd frame of the MC or go to the frame label "bottom"
iam using
Code:
onClipEvent (enterFrame) {
_root.sound.gotoAndPlay("bottom");
}
check ou the fla to see what i mean.
thanx
Clip Event Trouble
Man its been a long day... I seem to be having another problem with a simple code - here is the code I am using:
onClipEvent (load) {
_root.BG.logo.onRollOver = function() {
tellTarget ("_root.BG.logo.iii") {
gotoAndPlay(2);
}
};
}
This code is placed in "logo" MC actions in BG.
Logo is a MC in the MC BG on the main stage and iii is a clip within logo.
When the mouse rolls over the logo clip I want iii to start playing at frame 2. I know I am missing something stupid... please point it out! : ( Thanks a lot.
Peace
Onload Event Not Working With Preloader
Three files are included below, a data txt file and two flash files.
LoadVarsProblem.zip
In the one without the preloader the .onload event of an object works but in the one with the preloader it doesn't.
I really need that onload event so i can pause the movie before creating objects dynamically from the variables in the data file.
Does anyone have any ideas how to fix this, because i'm really stumped and running out of time
Addind A Sound Event On A Preloader
Hi all
I am thinking of adding a sound onto a preloader.
When I have done this the result as always been that my sound keeps on looping, which is something i do not want to happen.
i was wondering how would it be possible just to play the sound once when my preloader appears if at all possible
kind regards all and thanks
w9914420
Addind A Sound Event On A Preloader
Hi all
I am thinking of adding a sound onto a preloader.
When I have done this the result as always been that my sound keeps on looping, which is something i do not want to happen.
i was wondering how would it be possible just to play the sound once when my preloader appears if at all possible
kind regards all and thanks
w9914420
Addind A Sound Event On A Preloader
Hi all
I am thinking of adding a sound onto a preloader.
When I have done this the result as always been that my sound keeps on looping, which is something i do not want to happen.
i was wondering how would it be possible just to play the sound once when my preloader appears if at all possible
kind regards all and thanks
w9914420
Addind A Sound Event On A Preloader
Hi all
I am thinking of adding a sound onto a preloader.
When I have done this the result as always been that my sound keeps on looping, which is something i do not want to happen.
i was wondering how would it be possible just to play the sound once when my preloader appears if at all possible
kind regards all and thanks
w9914420
Preloader & Load Event Not Processed Until..
Hi,
I'm trying to write a preloader for my site and the preloader itself works fine, however it doesn't play until the movie has been completely downloaded! In other words the onClipEvent(load) function on the preloader movie (which I have in a seperate scene) does not get called until total bytes have been downloaded - which makes it quite useless as a preloader !
Anyone have any thoughts on why this is happening ? please take me out of preloader hell !!
Thanks,
Tyson
|