ActionScript 2.0 :: Playing Frames Inside A MC Inside A MC That Is Inside A MC?
Mar 19, 2007much like the title says. how do i put code in the main timelinesuch as gotoAndPlay(x)x refering to a a frame inside a MC inside a MC.
View 5 Repliesmuch like the title says. how do i put code in the main timelinesuch as gotoAndPlay(x)x refering to a a frame inside a MC inside a MC.
View 5 RepliesI have done this same thing in ActionScript 3, but am not familiar with ActionScript 2, which I am forced to use for this project. I am loading products into a SWF via XML and attempting to add a click event to each dynamically-created movieclip. Simply tracing the text from a node in XML will do for now. I'd like to assign a property called "desc" or "description" to each movieclip and have it trace that property's value when clicked. Here is the relevant portion of my code as it stands:
ActionScript Code:
var iXML:XML = new XML();
iXML.ignoreWhite = true;
[Code].....
I have a transparent windows (skinnable). Inside, I'd like to preview some pdf file. BUT, in the only a black screen appear
View 3 RepliesI am trying to create a gallery where each thumb is housed inside of it's own movie clip that will have more data, but it keeps failing because it won't let me refer to the newly created instance of the movie clip. Below is what I am trying to do.
var xml:XML;
var xmlReq:URLRequest = new URLRequest("xml.xml");
var xmlLoader:URLLoader = new URLLoader();
[code]....
I am trying to create a gallery where each thumb is housed inside of it's own movie clip that will have more data, but it keeps failing because it won't let me refer to the newly created instance of the movie clip. Below is what I am trying to do.
var xml:XML;
var xmlReq:URLRequest = new URLRequest("xml.xml");
var xmlLoader:URLLoader = new URLLoader();
[Code]....
It dies every time on that last line. How do I refer to that vidThumbn instance so I can add the imageLoader? I don't know what I'm missing. It feels like it should work.
I have a flash code where i am loading an AS 2 SWF inside AS 3. The thing is if i put the AS 2 SWF on same domain its working fine but if i put AS 2 SWF on different domain it loads the SWF properly but the "stop()" written inside the AS 2 frame doesnt work... and it keeps on playing all the frames continuously...
[Code]...
i am trying to run frames inside my MC (it needs to be in here) but I get an error telling me to abort it
*please click 'login' button to find the yellow pile of balls this is the MC that is slowing down my program*
The file is too large to attach so I put it here [URL]
I have a MovieClip symbol created with flash in a fla file library. There is a textfield in frame one of this movieclip's timeline . There is another frame in the movieclip timeline. There is a custon class definition for this symbol. It is a flipping card in a memory game.
I access the textfield by going to frame 2 (gotoAndStop(2)) and setting the textfield's text property ( this.field.text = "hello" ). However if I go to frame 1 and then return to frame 2, the text becomes the original one in the library's symbol. I have to modify the text propery again in a showFace method I've written.
Besides, I cannot pass parameters in the constructor because it is a symbol in the library and that would give errors.Is there a way I can set properties inside frames permanently?
I'm just trying to nest buttons one on each of two frames inside a mc. I've tried everything. Here's basically the script I used.
[Code]...
I've tried adding _root infront of screen name and even tried just having the button go to the second frame in the same scene. I'm just trying to get this first button to work and then I will add the other button.
I have a flash code where i am loading an AS 2 SWF inside AS 3. The thing is if i put the AS 2 SWF on same domain its working fine but if i put AS 2 SWF on different domain it loads the SWF properly but the "stop()" written inside the AS 2 frame doesnt work... and it keeps on playing all the frames continuously...
Here is the loading code..
var context:LoaderContext = new LoaderContext();
if(Security.sandboxType == Security.REMOTE){ context.securityDomain = SecurityDomain.currentDomain };
var objLoader:Loader = new Loader();var mRequest:URLRequest = new URLRequest("SomeURL.swf");objLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, onSWFLoadComplete);objLoader.load(mRequest, context);
[Code]...
I have a Button that is inside MovieClip1 which is inside MovieClip2; yet when i click the Button it doesn't dispatch Event.
View 5 RepliesI usually use the following code to play a MC forward and backward using two different button clicks:
ActionScript Code:
var rewindMe:Boolean=false;
vid_mc.addEventListener(Event.ENTER_FRAME, everyFrame);
[code]....
The problem I'm running into is that, this time, the movieclip has an embedded FLV inside of it. When I click the backward_btn, it is slow - really slow. Is there any other way to look at this?
is it possible for the same actionscript 2 script to be working if its inside the frames frame frame when you get down to the point where it says LEFT RIGHT UPP DOWN?
View 0 RepliesSay i have a UI with check boxes, text fields etc on 1 frame, and again a different layout on another. If i type values into boxes and click radio and check boxes. is there a way to keep these values on there when i flick to another frame then back again?
View 1 Repliesis there any way I can link a button inside a MC on frame1 to a frame inside another MC that is located on another frame.Ive got 2 frames in total. On the first frame Ive got an Mc and inside this one Ive got a button that needs to be linked to frame number 50 which is inside a MC located on frame number 2.
View 1 RepliesIm making a scrolling image gallery basically i have 2 movieclips inside a main movieclip, MC_a and MC_b. MC_a animates the scrolling effect of the thumb panel. within which there are 15 buttons. MC_b has 15 large photos arranged in 15 frames. (1 photo per frame).
what i want to do is when i press a button in MC_a it will gotoAndStop at the frame in MC_b displaying the large photo.
I've tried placing script in MC_b in a layer called "action" and extending it to 15 frames:
import flash.events.MouseEvent;
stop();
Object(root).MainMC.MC_a.button1.addEventListener(MouseEvent.CLICK,pla y1);
function play1(event:MouseEvent):void
[Code]....
I did this for all 15 buttons but none of them works. btw, i am using actionscript 3, Flash CS5
I've created six movie clips of cursive text effect using masking for the animation. Each clip is approximately 160 frames long. I need to play these sequentially, one after the other, when the page loads. structure multiple clips to play after each other?
View 3 RepliesI have embedded an swf file (a parallax scrolling swf) inside an html page which I made in Dreamweaver. I would like for the swf to automatically be loaded in full screen view and take up the whole page - currently it sits in the middle of the page. I am linking to this from a previous html page.
View 1 RepliesI have a movie clip on a scene with a button inside. How can I make this button to go to play frames on the scene but not inside the movie clip in AS3.0?
View 7 Replies[URL] On the left you will see a menu, it will be flash (actionscript MX 2004) and for the effect I want it will have to be flash. Now, heres the tricky part for me: I want those links to open up different pages inside the black center box either using frames or php. How could this be done? On the menu part, also, with the buttons, I need to make them movie clips for the effect I need for the rollover, but I want the movieclip to have a hitspace, how do I assign a movie clip a hit space.
View 1 Repliesis there anyway to have a button play frames 5-10 on a movie clip inside the current frame, as well as skipping to...lets say...frame 10 of the scene?
i want to create a site where buttons go to different pages, but those pages have animations in and out.so if someone is in one page, and clicks a button to go to another, that page plays the "out" animation while the other page plays the "in" animation.
I am currently working to a Role-Playing Game in Adobe Flash CS3 with ActionScript 2. I must include doors inside rooms, but when I do that, my player dissapears. I use this code:
Code:
...
for (var i = 0; i<mapHeight; ++i) {
for (var j = 0; j<mapWidth; ++j) {
this.attachMovie("tile","t_"+i+"_"+j,++d);[code].....
I have a button inside another button which is inside a movieclip. *whew*I have it so that when you click on the movieclip, a dialog box pops up. I have two buttons on the dialog box, but for some reason you can't click on them and when you do, the dialog box just disappears. Here's a picture of what I'm talking about, so how do i get the "YES/NO" buttons to work? Oh, the buttons are not included in that Graphic
View 6 RepliesmHook -> mBottom -> hItemButton -> itemButton[a] -> itemButtonExp[a]
so i press another butoon, and retrieve a number 2, how do i access itemButton[2].itemButtonExp[2]? Coz i need to change the text field in there?
in AS2 i can access it directly by changing itemButtonExp[a].text, but how do i do it in AS3?
Im able to link to a movieclip inside a movieclipUnfortunately one of the movieclips now are a scrollbar and scroll. Now the actionscript isnt working?cal.onPress = function() {gotoAndPlay(2);message1.contentMain.message.total = unit1;
View 17 RepliesOne of my .SWFs is 95Mb, I have the animation in .MOV form and have been trying to play it inside the .SWF, but it would not play on Newgrounds, for example. I know you might have to make the .MOV play from a server to play on the web, but Im not sure how to go about doing that. Ive just never had to put my animation in .MOV form then back into a separate .SWF due to being such a large .SWF to begin with.
View 21 Replieshow to do this and there are several answers but none worked for me. I have a swf which I wish to insert inside the flash stage. This swf is the airtight postcard viewer. The stage is basically a picture of a table top table with the left side having some objects. I want to be able to tween the postcard viewer onto the right side of the table so the pictures scatter out on the right 2/3 and not interfere with the objects or "fall off " the table...once the viewer is done looking at the gallery and click on another link, then all the pics move/tween out (onRelease) as a group out of the way and new contents tween in. I've tried creating a new object, movie clip, while inside this instance I import onto stage the swf file and back out to scene 1 and place this object onto the stage but it doesnt work. I can see the swf on the stage but it wont play! I get ghis error which said "statement must appear within on/onClip Event handler..."
View 1 RepliesI am loading one swf into another using the following code:
var ldr:Loader = new Loader();
ldr.load(new URLRequest("folio.swf"));
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);
[code]...
Visually, it loads OK, and appears where I want it to, but it throws an error on the actionscript in the loaded swf (this swf functions perfectly on its own).This is the line that caused the porblem:
stage.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
I have tried avoiding the reference to stage by substituting this. This eliminates the error, but none of the interactivity of the loaded swf functions.
You have a movie (M) and it has elements (sub movies) Buttons (B) and Content (C)So If B has the following:Link buttonAbout buttonetcAnd I want to click on Link button and want it to go to the Link section in Content (C) movie.Traditionally, in flash to go back to the root directory, you have to tell the button something like this
on (release) {
_parent.gotoAndStop("about");
}
My question is, how would I tell it to go to root then go inside another movie (which is also on root) and go to a certain frame within that movie?
is it possible to get the src inside the img tag? i am loading an rss feed and i need to get the src so that i can trow it inside a MC
View 5 Replies