all groups > flash actionscript > august 2006 >
You're in the

flash actionscript

group:

I'm sure this is something basic


I'm sure this is something basic indyal
8/13/2006 2:08:44 PM
flash actionscript: I'm New to FLASH. I think I may be misunderstanding something very basic about
using flash.

I have a multimedia web site that I want to put a 15 second intro page on with
an auto-redirect at the end to the main page.

index.php -> index1.php

I can get a movie with a progress bar to load and play on index.php just fine.
The problem is the link to index1.php.

This is where I think my basic misunderstanding come in.

What I have done is to take a wmv file and import it into FLASH.

The movie is at least 458 frames long but the timeline only shows 1 frame for
the imported movie.

The code for calling the movie and the preloader bar is:

var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number,
bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
progressBar.gotoAndStop(loaded);
}

myListener.onLoadInit = function (target_mc:MovieClip) {
progressBar._visible = false;
}


myMCL.loadClip("http://my.web.site/intro.swf", "container");

I have tried inserting a blank keyframe at frame 2 and add the geturl syntax
for this frame.

getURL("http://my.web.site/index1.php","_blank");
//End Behavior
stop();

When I test the movie I get all sorts of wild behavior like hundreds of
instances of the browser opening up.

Pointers?

Re: I'm sure this is something basic kglad
8/13/2006 2:20:19 PM
the code you showed is in a swf with an associated html page, correct? what's
the name of the swf?

the page with wmv file is in a swf, correct? what's the name of that swf?

do you want the swf from the first question to load the swf you mentioned in
the 2nd question? if yes, you should be using that swf's name in your
loadClip() statement.
Re: I'm sure this is something basic indyal
8/13/2006 3:28:40 PM
[q][i]Originally posted by: [b][b]kglad[/b][/b][/i]
the code you showed is in a swf with an associated html page, correct? what's
the name of the swf?

the page with wmv file is in a swf, correct? what's the name of that swf?

do you want the swf from the first question to load the swf you mentioned in
the 2nd question? if yes, you should be using that swf's name in your
loadClip() statement.[/q]


the html file, index.php, calls the swf file named "intro.swf:"

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=8,0,0,0" width="640" height="480" id="intro" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="intro.swf" /><param name="quality" value="high"
/><param name="bgcolor" value="#000000" /><embed src="intro.swf" quality="high"
bgcolor="#000000" width="640" height="480" name="intro" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

After that swf finishes I want to auto-redirect to index1.php on the same
site. The "preloader.swf" work fine on the intro page (index.php).

It is getting to go to the next page (index1.php) I have the hang up.


Re: I'm sure this is something basic kglad
8/13/2006 4:10:37 PM
index.php is not an html file. it's a php file. it executes code that may
then load an html file or intro.swf. if you want intro.swf to then cause
index1.php to execute use loadVariables(), loadVariableNum() or the LoadVars()
class to call index1.php:



lv=new LoadVars();
lv.load("index1.php");
Re: I'm sure this is something basic indyal
8/13/2006 5:52:53 PM
[q][i]Originally posted by: [b][b]kglad[/b][/b][/i]
index.php is not an html file. it's a php file. it executes code that may
then load an html file or intro.swf.

if you want intro.swf to then cause index1.php to execute use loadVariables(),
loadVariableNum() or the LoadVars() class to call index1.php:

[/q]

I have obviously confused this discussion.

I use the php to provide a footer and header. Other than that is is no
different than any html file. I'm going to start this over with a couple of
real on-line sampls of what I/m talking about. I'll be back in a few hours.



Re: I'm sure this is something basic kglad
8/13/2006 8:05:00 PM
Re: I'm sure this is something basic indyal
8/14/2006 7:24:32 PM
I have put up a short (20 sec.) movie at http://209.43.16.3/test/

after the movie in index.html plays I want it to display index1.html

I have included all the fla/flv/swf/html files supporting this.

Thanks for your time and patience!


Re: I'm sure this is something basic kglad
8/15/2006 12:00:00 AM
Re: I'm sure this is something basic indyal
8/15/2006 12:29:05 PM
Re: I'm sure this is something basic kglad
8/15/2006 2:30:24 PM
you're repeatedly executing a getURL() so you're going to repeatedly open new browser windows.

Re: I'm sure this is something basic indyal
8/16/2006 4:11:05 PM
in testmovie.fla, second frame on the actions layers I put:

getURL("http:209.43.16.3/test/index1.html");
stop();

Now it goes directly to the web page without playing the movie.

I hate to take up your time with what must be a very basic FLASH question and
something that I am just confused about.

Is there a web page that you could point me to on how to construct this intro
or splash page?

Thanks again for you help and patience.

AddThis Social Bookmark Button