It's me again, struggling away............
I know this looks long to you and you probably will want to just skip it but.........I have put everything down from A........Z
So if anyone has some patience for me....please read ahead.
Thank you in advance.
I've been working on this all morning and still haven't succeeded.
Let me start from the beginning:
1. I have company profile that I did entirely on Flash (called) laceco.swf which contains approx. 75 scenes. Each scene represents a page layout with buttons taking you from one page to the other.
2. On some pages I am supposed to have another button which should link you to another movie (s) called photogallery.swf
3. I am not using any html pages just pure Flash so in the end when I publish it, it will be a .swf file and not an .html file. The end result is an autorun file on a cd.
My Aim
1. Is to put my photogallery on a separate pop up menu.
My Problem:
1. First attempt: I put in the actions menu the name of movie (photogallery.swf) in the Get URL and put _blank in the window. What I got was my movie in a browser window with all the buttons and menus.
2. Second attempt: I was advised to try this from actionscript.org but obviously I did something wrong first because I only got to the first java script.....the second and third......you can forget it.....got lost along the way.
Tutorial details:
Written by: Strok
Difficulty Level: Beginner
Requirements: Flash 4 or above
Download the source for this tutorial.
The code for this tutorial is divided into 2 parts HTML code and FLASH code
Part 1 -- FLASH code
In actions choose the GET URL function and paste in following code:
Where somePage.html is the filename or URL of the page or site you wish to pop up.
Note: The above code is spread over two lines for tutorial neatness only. In Flash it need be on only one line.
Part 2 ---HTML code
Paste this code exactly as it appears below, between the HEAD tags in the HTML source.
Add the following parameter inside the <EMBED> tag in your HTML page which houses the SWF file:
swLiveConnect=true NAME=yourmovie.swf
Replace "yourmovie" with the name of flash movie. You can put it anywhere inside the <EMBED> tag, but perhaps the best place would be after the WIDTH and HEIGHT parameters
Note: This is important as it allows the Flash movie to communicate with the JavaScript code.
That loads it to the main movie, on top of it, since all levels are above any layer in the main movie timeline. It'll look like a popup, but without the browser. You can position it or resize it or even make it draggable.
Yes. Just put that on a button and see what happens. The photogallery.swf should be in the same folder. It will load on top of the content in the main movie, with it's top left corner at the top left corner of the main movie. You can control that with a couple lines in the photogallery.swf.
But try it first, the affect may not be what your looking for.
To position it, inside the photogallery.fla, first frame, actions layer, at the top:
this._x = 50;
this._y = 50;
Positions it's top left corner at 50, 50 on the main stage.
To close it, add a little close button in one of the movies with this on it:
on(release){
_root.unloadMovieNum(1);
}
Add this under the position lines above to resize. Not sure about this, since your going to be on a CD, but try it:
this._xscale = 100;
this._yscale = 100;
The 100 is a percent of the original size.
To drag it, make a little drag movie clip and put it in the photogalery movie on a layer. Just a little box with the word drag, but it has to be a movie clip, then add:
Ok .....I managed to make the close button work by just clicking on release and then the unload movie and I put one in the level.
Is that ok......without the _root?