Load external .swf on new frame after click

This is a discussion on "Load external .swf on new frame after click" within the Flash & Multimedia Forum section. This forum, and the thread "Load external .swf on new frame after click are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 6th, 2005, 03:04
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Load external .swf on new frame after click

I am quite green with Flash so excuse my ignorance.

My situation is as follows:

I am currently attempting to create a 3D Interface type of project for my Multimedia College course.
The way in which I first went about accomplishing this is by importing all my videos (each into it's own Movie Clip Symbol) into my main project and place them on separate key frames on separate layers, and by means of a simple button click the movie on that frame plays, and then by means of a line of action script inside each movie clip symbol the project goes to the next menu with more buttons which then repeat this process.

(Sorry if this sounds confusing, I'll try to be more clear if your can't understand what I’m saying.)

Now this method works wonderfully, the only thing is that my main exported .swf becomes so large (upwards of 200 meg) that I cannot export it any more as Flash gives me a memory error. This is quite understandable and I was kind of expecting this to happen.

Which leads me onto method 2 (my current situation)

Now what I wish to do is to play these movies not directly from my main project but call them from externally created .swf I prepared earlier. This becomes a problem, as with my extremely limited knowledge of Action script I do not know how I would do this properly. However I will explain to you how I tried to do this.

What I have now is a button that with the use of this script placed on a new layer on the same frame:


Code: Select all
b1.onRelease = function() {
    loadMovie("3DInterface01.swf", empty_mc);
};
This does play the swf I want where I want but NOT EXACTLY where I want. Allow me to elaborate.
What I want to happen is to click my button and the frame to go to where I pointed it to go before (with my embedded videos in movie clip symbols) and then to play the called swf on THAT frame. As currently the only way for this to work currently is for me to place this script, the empt_mc Movie Clip Symbol and the button all on the same frame (on separate layers of course). This is problematic as I have no idea how I can forward my project at all from this point.

Note: All the action script I use is from external sources (I.E. teachers, forums etc). I did not write any of it.

Last edited by Superpiccolo; Nov 6th, 2005 at 03:10.
Reply With Quote

  #2 (permalink)  
Old Nov 8th, 2005, 01:41
New Member
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Load external .swf on new frame after click

All good now. I got some help. I was shown this to use on each frame that the empty_mc is on (new layer of course):

Code: Select all
loadMovie("3DInterface01.swf", _root.empty_mc01);
this.onEnterFrame = function() {
    if (_level0.empty_mc01.instance01._currentframe>=124) {
        gotoAndStop(7);
    }
};
stop();
Each value needs to be changed for each individual circumstance of course but it works like a charm.
Reply With Quote
Reply

Tags
load, external, swf, frame, click

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pre-load swf's when restricted to one frame? nikising Flash & Multimedia Forum 1 Apr 10th, 2008 01:19
EASY PEASY Displaying frame address in another frame question molotov JavaScript Forum 3 Nov 20th, 2007 17:29
[SOLVED] Load external swf Rick Flash & Multimedia Forum 4 Oct 25th, 2007 19:47
Load External .JS File Before Anything Else tox0tes JavaScript Forum 1 Jul 10th, 2007 14:03
Load .swf file with External text in Another Flash document ien Flash & Multimedia Forum 3 Aug 31st, 2006 14:29


All times are GMT. The time now is 15:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43