Giving Actionscript To An Actionscript-loaded Movie
How can I (if possible) set actionscript (say, an on-mouse event) to a movie that I load via attachMovie()? I poked around and I couldn't seem to find an answer...
I want the movie that I load via attachMovie() to have an on(RollOver) event...any thoughts?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 06-12-2007, 08:15 AM
View Complete Forum Thread with Replies
Sponsored Links:
Giving A Movie Clip Area With Actionscript... Help
First check out the swf....
http://dac.thefathippo.com/carbeta.swf
Ok. Basically, I'm trying to give the entire car area so that it won't hit the wall at the center of the Movie Clip, but rather hit the sides and stuff.
If you know what I'm talking about, then try and steer me in the right direction. (Get it? Steer... like the car... Yeah...) XD
~Dac
View Replies !
View Related
Giving Up On ActionScript... Pls Help.
Hello everyone..
I did tried, but things are getting a little weird right now.
I created an imaginary madrix 7x7 where this matrix starts from the center, square 25.
The idea is to move the frame around and show in which xy is located, lets say, square 34 if the user moves x times to the right and y times down.
The problem is that at the beginning it DOES work, but when i do start moving around, it kind of swaps the values of the imaginary matrix.
Quite hard to explain, pls download the code and try urself.
How can i solve this mistery?
Any clues, suggestions, hints?
Here is part of the code:
Code:
function right()
{
mc_all_areas._x = mc_all_areas._x -10;
_global.m_click_x--;
m_v_x=mc_all_areas._x / 240 ;
if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function left()
{
mc_all_areas._x = mc_all_areas._x +10;
_global.m_click_x++;
m_v_x=mc_all_areas._x / 240 ;
if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function up()
{
mc_all_areas._y = mc_all_areas._y +10;
_global.m_click_y++;
m_v_y=mc_all_areas._y / 320 ;
if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25+m_v_x- (7*m_v_y))));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}
}
function down()
{
mc_all_areas._y = mc_all_areas._y -10;
_global.m_click_y--;
m_v_y=mc_all_areas._y / 320 ;
if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25-m_v_x- (7*m_v_y))));
_global.m_sq_y_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}
}
View Replies !
View Related
Giving Up On ActionScript... Pls Help.
Hello everyone..
I did tried, but things are getting a little weird right now.
I created an imaginary madrix 7x7 where this matrix starts from the center, square 25.
The idea is to move the frame around and show in which xy is located, lets say, square 34 if the user moves x times to the right and y times down.
The problem is that at the beginning it DOES work, but when i do start moving around, it kind of swaps the values of the imaginary matrix.
Quite hard to explain, pls download the code and try urself.
How can i solve this mistery?
Any clues, suggestions, hints?
Here is part of the code:
Code:
function right()
{
mc_all_areas._x = mc_all_areas._x -10;
_global.m_click_x--;
m_v_x=mc_all_areas._x / 240 ;
if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function left()
{
mc_all_areas._x = mc_all_areas._x +10;
_global.m_click_x++;
m_v_x=mc_all_areas._x / 240 ;
if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function up()
{
mc_all_areas._y = mc_all_areas._y +10;
_global.m_click_y++;
m_v_y=mc_all_areas._y / 320 ;
if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25+m_v_x- (7*m_v_y))));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}
}
function down()
{
mc_all_areas._y = mc_all_areas._y -10;
_global.m_click_y--;
m_v_y=mc_all_areas._y / 320 ;
if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25-m_v_x- (7*m_v_y))));
_global.m_sq_y_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}
}
View Replies !
View Related
[F8] AI In Actionscript Is Giving Me A Rough Time...
Hey, I've always wanted to make a game in actionscript (RPG in particular) but whenever I start I always get stumped when it comes to having enemies do anything. I've spent many-an-hour searching round' the internet finding something that works and I've stumbled upon a few cool concepts and a few tutorials that don't work. And what I request upon flashkit forum members browsing upon the forums stumbling upon this and saying, "Wow! JumboPirate is in trouble! I gotta help him!" is that you might could lead me to a tutorial that works, or (and I prefer this option) one of ya could show me some of the basics, such as:
Suppose there is a red ball that you control. How could you get a blue ball (enemy) to chase after it?
Suppose I were to make a game like street fighter two. How could I get ol' M. Bison to come toward the player? How would I motivate him to through a few punches and trip a few times?
Thanks a ton! (and yes I HAVE heard of the search button! It isn't in a good mood and won't show me crap! So ha that one guy who always posts that in things like these! Jumbo Pirate Prevails!)
-Jumbo Pirate-
View Replies !
View Related
If Conditions Giving Trouble(actionscript) (see Attached .fla). PLEASE Help.
http://cp1.myhostdns.org/~hellfusi/uploads/girly.fla
The attached .fla file is a Flash game I'm working on right now. The problem is that once the life reaches 0 or below, it doesn't move to the next scene.
I've tried putting the code itself into a layer and then pasting it into an object but neither has proven to be effective.
Refer to the 2nd frame to see what I'm talking about at line 27 of the girl.
Some code I put into a layer as well:
cp1.myhostdns.rg/~hellfusi/upload.php
if(_root.b1Score <= 0 and !dead){
dead = true;
_root.b1main.gotoandplay(4);
}
if(_root.b2Score <=0 and !dead){
dead = true;
_root.b2main.gotoandplay(3);
}
Help is very much appreciated. Thanks!
View Replies !
View Related
Actionscript In Loaded Movie...?
Dear Flash User,
I come up with a silly problem. I am not sure what I missed but... I loaded an external movie into my Flash document. I am successful in loading and playing it but the interactivity of the buttons within the loaded movie is lost. It doesn't do what it was suppose to do. I would like to know if we can make the interactivity of the loaded movie work. Please help me in this.
Rabi
View Replies !
View Related
Actionscript In Loaded Movie...?
Dear Flash User,
I come up with a silly problem. I am not sure what I missed but... I loaded an external movie into my Flash document. I am successful in loading and playing it but the interactivity of the buttons within the loaded movie is lost. It doesn't do what it was suppose to do. I would like to know if we can make the interactivity of the loaded movie work. Please help me in this.
Rabi
View Replies !
View Related
Actionscript Of Loaded Movie Does Not Works
I am loading a movie in a movie clip,, now the movie which is being loaded is a scroller , but as it is loaded in a movie clip , the actionscript of the scroller stops working,
just see this:-
scroller.swf
Now i load this scroller in a movie clip of other fla
loadMovie ("Ticker.swf", "_root.mymc";
and now when i publish it, an error is given
Target not found: Target="/scrollleft" Base="_level0.mymc"
View Replies !
View Related
Positioning A Loaded Movie Using Actionscript
Hi! Need a little help on actionscripting...I actually tried to use the flashtyper, but it doesn't seem to work, so i'm trying to do things the long way by downloading the source and loading it as an swf file into the movie that i will be using it in. I was able to load the SWF file into level 1 of my main movie, but not in a target movieclip. It doesn't seem to work right when i load it into a movie clip.
Anyway, i used the load movie script in the first frame to load the movie, and in the second frame, i added a set property script to set the x and y positions of the movie that i loaded. Problem is, the movie loads on the first frame, and plays automatically without following the positions i indicated in the second frame. I tried to move the set propoerty scripts in the first frame, but that doesn't seem to work too. It only follows the set property positions after it played the loaded swf file once.
Is there a way to prevent the loaded movie from playing right away, so that it follows the x and y positions that are indicated on frame 2? I'm just beginning with actionscript and not quite sure if the script i'm doing is right. Maybe i'm lacking a script or something. Any help you can give will be greatly appreciated!Ü Thanks!
By the way, I'm using flash MX
View Replies !
View Related
Loaded Movie Actionscript Question...
Hello. I am fairly new to Actionscript, and I have a problem that I hope all you clever Flash users can help me with.
Basically, I downloaded and figured out how to use The Stickman's tutorial on the Barney's sliding menu, but my problem is that when I load this into a movieclip holder in a different main movie, it does not work.
I'm not quite sure why? Can anybody give me any help?
The Stickman's Tutorial is here:
http://www.the-stickman.com/tutorial...eys_menu.shtml
Irene
View Replies !
View Related
Warning: An ActionScript 1.0/2.0 SWF File Has Loaded An ActionScript 3.0 SWF;
Hi all,
I'm trying to clone an swf (produced in CS3) that has been loaded into my app (built using Actionscript/mxmlc) but keep getting the following message appear in my logs:
Code:
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
I know the CS3 swf has been produced using Actionscript 3 as it's settings and published for FP9. It does nothing more than a motion tween of a graphic.
Here is a really simple example of how to emulate the problem:
ActionScript Code:
package{
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
[SWF(backgroundColor=0x000000)]
public class Test extends Sprite{
private var _mc:MovieClip;
public function Test():void{
var mc:String = "rain.swf";
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loadedSWF);
ldr.load(new URLRequest(mc));
}
private function loadedSWF(e:Event):void{
var mc:MovieClip = MovieClip(e.target.content);
this._mc = MovieClip(new (mc.constructor)());
this.addChild(this._mc);
}
}
}
I'm using the following version of mxmlc: Version 3.0.0 build 1844
I've also tried a slightly more convoluted way:
ActionScript Code:
package{
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.utils.getQualifiedClassName;
import flash.net.URLRequest;
[SWF(backgroundColor=0x000000)]
public class Test extends Sprite{
private var _mc:MovieClip;
public function Test():void{
var mc:String = "rain.swf";
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,loadedSWF);
ldr.load(new URLRequest(mc));
}
private function loadedSWF(e:Event):void{
var c:Class = Class(e.target.applicationDomain.getDefinition(getQualifiedClassName(e.target.content)));
this._mc = new c();
this.addChild(this._mc);
}
}
}
I would like to know what's causing the warning message, am I doing something wrong?
View Replies !
View Related
Mx-04-actionscript In Movie Won't Behave When Loaded Into Empty Mc
I'm trying to load an outside movie (through loadMovie) into an empty movie clip into another movie using a simple button to activate the process. However, after it loads, the outside movie doesn't play how it normally does. The outside movie uses mx.transitions all located on only the first frame. The timing and when each new transition occurs becomes completely off from the original when loaded.
note: This is for a portfolio site (based in flash) and i'm just trying to showcase a banner ad design (the loaded movie). It's not a large file at all.
any input is welcomed!
View Replies !
View Related
External File's Actionscript Not Working While Loaded In Main Movie-?
This movie is an external swf which is a basic sorta game, the user has to drag and drop the blocks into their correct places to complete the task.
Please have a look at this swf, the fla is too big 2 post.
Basically the problem is: this external file works fine by itself, but when viewed via the main movie when its loaded, it doesn't display the Well Done Clip when all the Drag and Drop buttons are placed in their correct places.
View Replies !
View Related
External File's Actionscript Not Working While Loaded In Main Movie-?
This movie is an external swf which is a basic sorta game, the user has to drag and drop the blocks into their correct places to complete the task.
Please have a look at this swf, the fla is too big 2 post.
Basically the problem is: this external file works fine by itself, but when viewed via the main movie when its loaded, it doesn't display the Well Done Clip when all the Drag and Drop buttons are placed in their correct places.
View Replies !
View Related
Actionscript Between Loaded Movie And Parent Movie
i have actionscript in the main movie that loads a new movie into level 3. this script is inside a movieclip which is nested in a few others. i have a button in the loaded movie that i want to control the timeline in the movieclip that originally loaded that movie. this button is also inside a movie clip in the loaded movie.
can anyone help?
thanks!
View Replies !
View Related
[MX04] Loadmovie-- Actionscript Goes Wacky On Loaded Movie If User Reloads
I'm having an issue with loading a .swf into an empty movieclip. It loads when a button is pushed, however the problem occurs if the user hits the load button again. This sends the actionscript on the movie being loaded to act really weird and do some odd things.
simple actionscript for the button:
on (release) {
_root.holder.loadMovie("newimages/swing/swing1.swf");
}
Should I maybe do a loadMovieNum? and resort to levels? Or is there some script that will unload the movie and then reload it when pressed to get a "clean" version?
(I'm unsure if it makes any difference, but the actionscript on the movie being loaded is all on the first frame and uses mx.transitions.)
View Replies !
View Related
Actionscript: End Frame Loaded?
ok, my problem is this: i work with flash 5 and i've been trying and trying to make my first very basic preloader with the help of a tutorial from here, the problem is that according to the tutorial i need to use the: 'End Frame Loaded' command at the end of the actionscript in my first frame, and i can't seem to find it or find a way to type it in manually....am i trying to use an obsolete flash 5 command? or am i just doing something wrong again?
please help!
p.s. (it was the eddie carrol tutorial on basic preloaders and basic bar preloaders, wich if you don't have my problem is a great tutorial!)
View Replies !
View Related
Actionscript: End Frame Loaded?
i'm having a lot of problems because of this command and other "end related" commands, i use flash 5 and i've ben trying to create a basic preloader with the help of a tutorial from here (eddie carroll) but he uses the 'end Frame Loaded' command several times and i can't find it anywhere. also i've been trying to create a sound on and off toggle but again in the tutorial i've been using there are actionscript statements using the term 'end' that i can't find anywhere....
am i doing something completely wrong or what?
somebody help me!
View Replies !
View Related
Actionscript In Loaded Movies
Hi,
Maybe this has been asked for a thousand times, but it's simple answered...:
Do i use loadMovie(...) or loadMovieNum(...) to keep the actionscript activity alive in the loaded swf-file?
I'd like to use loadMovie for better control of the loaded movie, is that possible somehow?
Thanks alot!
Cheers,
va
View Replies !
View Related
[CS3] Keeping The Actionscript In A Loaded SWF
When I try to load a SWF in a movie clip in another file, some of the action script in the external file won't work when loaded. How can I load it so that it still works like it's supposed to? I'm loading it using this code within the movie clip:
Code:
loadMovie("Puzzle.swf", this);
If I load it to the main time line everything works fine. But then I can't get back where i was on the timelime line with a fade.
View Replies !
View Related
Actionscript Problem With Loaded Swf
I have created a small game with many library items and it uses actionscript classes heavily to control movement of particles. Because all of these things need to be loaded on the first frame of the .swf so they can be referenced from the scripts at any time I must use a secondary .swf to load the game into to create my preloader. However I have found that when I do this it seems as if my game can no longer reference the Actionscript classes. I have been working on a fix for this for several days but I am now basically back at square one. Any help would be greatly appreciated as to why this is doing this. If my question isn't clear please let me know.
View Replies !
View Related
Dynamically Loaded Actionscript
What does this mean??
Quote:
Originally posted byMannequin:Load sensitive actionscript dynamically, either through remoting techniques or by using loadVars.
(in this thread:
http://www.kirupaforum.com/forums/sh...5&pagenumber=3 )
I know you cant include .as files at runtime. Does he mean loading external swfs that are all code, or is there something about loadvars that I dont know...
View Replies !
View Related
Dynamically Loaded Actionscript
What does this mean??
Quote:
Originally posted byMannequin:Load sensitive actionscript dynamically, either through remoting techniques or by using loadVars.
(in this thread:
http://www.kirupaforum.com/forums/sh...5&pagenumber=3 )
I know you cant include .as files at runtime. Does he mean loading external swfs that are all code, or is there something about loadvars that I dont know...
View Replies !
View Related
Giving A Freshly Loaded MC A Sequential Id?
Hey guys. Quick question here:
Let's say you have 10 thumbs and those thumbs are referenced from an XML file. You want to load each thumb onto the stage and give it a sequential id variable. So, you first go through a for loop to attach the container MCs to the stage, giving them each an id variable equal to i at the time of the for loop execution. Now, the problem is that when you load something into that container MC it over rides the id that you set using the for loop. I'm using MovieClipLoader so I can assign properties and variables and such once the thumb image has loaded, but how should I do it so that the thumb knows which id it is?
The only way I've done this before is by having the for loop attach movie clips which contain another empty movie clip inside into which I loaded the actual image. Anything cleaner/easier?
Cheers!
View Replies !
View Related
Actionscript Fails When Loaded To A Target
I have a feedback form in a swf loaded to a target in my main movie. It contains a 2 frame MC that acts as a checkbox. The actionscript that controls this 'checkbox MC' is:-
on (release) {
Options = Options add "Interactive solutions" add ", ";
tellTarget ("/MCOption6") {
gotoAndStop (2);
}
}
View Replies !
View Related
Actionscript: Movement Inside Loaded MC
Hey everyone…
I created a “slider” as part of a header for a site I’m building which worked fine until I sectioned off the header, and decided to load that as a separate MC into my main movie. Now the slider doesn’t function, but I’m not exactly sure how to fix it.
The setup: (I’m winging it on the code, because I’m at another computer)
1. A controller MC that does the majority of the work: (Moving from right to left)
Its script:
OnClipEvent (enterFrame) {
If (textMove ==”yes” && Slider._x > 500) {
Slider._x -= 10;
If (textMove ==”no” && Slider._x < 800)
Slider._x +=10;
}
2. The button that triggers rollover
Basically like this, pretty standard:
On (rollover) {
TextMove = “yes”;
}
On (rollout) {
TextMove =”no”;
}
This interacts with the above “Controller MC”
So the point is that basically the whole thing worked when it was set up within my main movie, but now that I’ve made it a separate MC loaded into my man movie, it doesn’t work. My gut tells me that it should be a relatively simple adjustment but I’m not sure where to start. The X and Y coordinates? If so, what do I change them to? What else could the problem be?
Thank you all.
View Replies !
View Related
Actionscript Stops Working When Ext. Swf Is Loaded
I have one of those Blarney's type scrollers (buttons move the images to a location and they slow down as they approach their destination). All of it works in the separate swfs, but once I load them into the 'home' swf all the actionscript stops working. So all of the buttons appear, but nothing happens when I click on them.
I've checked the paths, added the path from the true root (the home page), to the blank MC that holds the external files, but it still will not work.
Am I missing something obvious? Everything works perfectly as separate files.
Any suggestions would be appreciated.
Thanks.
View Replies !
View Related
ActionScript For Loading An Swf Dependant On One Already Loaded
I created a empty container Movie clip that will load a certain .swf file depending on what button is clicked on the main stage.
How can I tell the button to play a certain .swf DEPENDING on what is already loaded in the container from a previous choice the user made?
my ActionScript pseudocode for the button would probably look something like:
if x.swf is loaded
then play y.swf
...
Any suggestion would rock my face off! Thank you all
View Replies !
View Related
Actionscript To Hold On Loadmovie Until Loaded
Hey, I am new to actionscripting and I have a sequence of loadmovies (each has a preloader) which I would like to load one after another in sequence, instead of all at the same time. I am sure that it is very simple, but it is eluding me. Any ideas? Thanks.
This is what I currently have.
loadMovie("people2.swf", holder2);
loadMovie("people3.swf", holder3);
loadMovie("people4.swf", holder4);
loadMovie("people5.swf", holder5);
loadMovie("people6.swf", holder6);
loadMovie("people7.swf", holder7);
loadMovie("people8.swf", holder8);
loadMovie("people9.swf", holder9);
gotoAndStop("i1");
View Replies !
View Related
Actionscript For Holding On Loadmovie Until Loaded
Hey, I am new to actionscripting and I have a sequence of loadmovies (each has a preloader) which I would like to load one after another in sequence, instead of all at the same time. I am sure that it is very simple, but it is eluding me. Any ideas? Thanks.
This is what I currently have.
loadMovie("people2.swf", holder2);
loadMovie("people3.swf", holder3);
loadMovie("people4.swf", holder4);
loadMovie("people5.swf", holder5);
loadMovie("people6.swf", holder6);
loadMovie("people7.swf", holder7);
loadMovie("people8.swf", holder8);
loadMovie("people9.swf", holder9);
gotoAndStop("i1");
(reposted from general questions)
View Replies !
View Related
Actionscript In Externally Loaded SWF Assets
Can anyone explain the model for actionscript in externally loaded SWF assets? For example, suppose the stage owner uses methods from Class1 and that it loads an SWF file with an asset that also uses methods from that class. This means the code for Class1 is included multiple times in the application?
What is the best practice for such a situation?
View Replies !
View Related
F5 Actionscript: Preloading Dinamically Loaded Swf
I've built a flash 5 application that works into director 8.5 project. It's a simple browser that displays a number of images (.swf files) in a sort of Windows' preview style. The user can scroll up and down the array of images. Since there's more than one set of images, I've made it all dinamyc by loading the data (swf name, swf label,...) from an external XML file. Director sends a var to Flash and depending on the value of that variable, the flash movie loades the corresponding xml file and images set. Now, since I came up to a 200 for (10-12 kb each) images set, running the thing from a CD might be really slow. What I do need is a sort of preloader that makes the user quietly wait until all the resources have been loaded into memory.
Has anyone got some helpful suggestions?
View Replies !
View Related
ActionScript 3.0: How To Communicate With Loaded Movies?
Hi,
I have a site I am building in AS3. I have a main SWF, site.swf, that loads the subsections as seperate SWF's only when a user clicks on them (to save on initial load time).
For my subsections, I need to be able to communicate with the SWF that loaded it. In AS2, this was simple enough - just say something like _parent._parent.gotoAndPlay("something"), and step up enough levels to speak to movie clips in the main SWF.
Trying to do this in AS3, however, results in errors such as this when trying to compile my subsection SWF:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
... because it thinks I am trying to communicate with something that doesn't exist. The result is that I can't compile my subsection SWF's.
For example, I am unable to reference a variable in the main SWF using this code in my subsection SWF:
Code:
myText = this.parent.parent.parent.parent.sectionTitle;
Surely there must be a way to do this? Can I at least tell the Flash 9 Alpha compiler not to stop when it runs across this?
Thanks,
Graham
View Replies !
View Related
Giving An Instance Name To A Dynamic Loaded Movieclip
Hi,
i'm loading a seperate mc that contains an animation for the background. I'm using it like circlesbg.loadMovie("3d_circles_bg");
But how do i give that loaded mc an instance name?? I have some nav-buttons that go to another animation in that loaded swf file, like
on(press) {
_root.circlesbg.nextFrame();
_root.circlesbg.play();
}
but it doesn't seem to take it when it's dynamicly loaded.
Can anyone help?? I load the background dynamicly because it's filesize, it's a 3d vector thing.
Thnx,
Spirit Wolf
View Replies !
View Related
Preloading W/o Loaded Swf Playing First Frame's Actionscript
Just what the subject says. I need to update an existing flash app that needs to be backwards compatible with our previous content. The new app includes preloading, but a problem we're having is that the first frame of the preloaded swf (loading just into a hidden mc) automatically plays and therefore, even tho stopped, will execute any script on that frame.
Can anyone think of a workaround? Like being able to negate any command or variable sent to any possible location until a later time?
View Replies !
View Related
Adding Scrollbar Via Actionscript After Text Is Loaded
Okay, I know this has probably been beaten to death, and I used to know it. But for the life of be, I can't remember how.
1. I am adding text from a .txt file straight into a dynamic text box. I would like to add a scrollbar component on via actionscript (so I can do it after the text loads).
2. Also, I would like to do it only when neccesary. How could I do the first part, and if so, the second part?
View Replies !
View Related
Suspending Actionscript From Running On Externally Loaded SWF
I have a new challenge for which I've used Flash version CS3. I haven't touched on AS3 as of yet though (chose to use AS2 with which I am more familiar) but I thought I'd post here incase I should be using AS3 to solve the problem.
I'm creating a "bootstrap" for want of a better description - a flash movie that uses a MovieClipLoader to load an external SWF file into a container clip. This I have working. I then gotoAndStop the loaded movie at frame 1 and present a button to allow the user to play that movie when they're ready. Again, all fine, most of the time. The issue is that some of the movies I'm loading and then pausing have actionscript of their own and they're playing themselves and generally getting into a mess.
So the question ultimately is, is there a statement or command I can use to suspend the actionscript of externally loaded SWFs?
View Replies !
View Related
|