FORUMS: list search recent posts

Go to new URL at end of intro animation

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
ellen Osborne
Go to new URL at end of intro animation
on May 23, 2010 at 6:14:41 pm

I would like to have an intro animation that jumps to my home page upon completion. I am working in Flash CS5 and Dreamweaver CS5

This what I've done so far.
I imported a .f4v (my animation) into Flash. I did not embed it. When I import the file, Flash shows it as a SWF in the property inspector. It's on the stage and is layer one. The imported file .f4v file is 3 seconds long @30fps

I put a keyframe in at 90 frames and put the following code on that frame.
navigateToURL(new URLRequest("http://www.jimdultz.com/home.html"), "_self");

When I use Flash's "test movie" tool it works perfectly. Animation plays and browser open the home page after 3 seconds.

I export the file to Dreamweaver from Flash as a .swf to load on to the site.

When I upload this to my server. The movie doesn't play (there is only a white box) then after 3 seconds it jumps to the new URL request. You can see what it's doing here http://www.jimdultz.com .

I hope someone can help. Thank you
Ellen




Return to posts index

demetri tashie
Re: Go to new URL at end of intro animation
on May 23, 2010 at 8:25:38 pm

i don't think this is a flash problem, but server directory issue.

are you sure that you have your swf file uploaded to your server, in the correct directory as pointed to from the html ? are all the correct files in the directory in the correct pathways?


Return to posts index

ellen Osborne
Re: Go to new URL at end of intro animation
on May 23, 2010 at 9:39:52 pm

Hmmmm. I know the paths are correct, and the swf file is there as well as FLV_Player. But should there also be a FLV or F4V file of the movie on the site? Just for the heck of it I tried embedding the movie in Flash and uploading it to the site and it worked, but the animation was too big and too slow.



Return to posts index


demetri tashie
Re: Go to new URL at end of intro animation
on May 23, 2010 at 9:59:37 pm

what's totally confusing me is you saying you IMPORTED the f4v.

embedding a video is usually never the way to go, unl;ess you have specific reasons to do it ( animating over it etc)

most often, flvs and f4v are not imported, they are just linked to in the file - setting the source of a flvpayback component for instance.

if you ended up with a 90 frame swf/clip, then it seems like it was embedded.

with a flvvideo component, you must have the video file - as well as the skin, if you used one, uploaded to your site also, with the correct pathways to the files, obviously.

do yourself a test. create a blank new document. drag a flvplayback component to the stage. give it an instance name of 'flvPlayer' . no skin, nothing else. place this code inthe actions panel:

flvPlayer.source="hypnotic-wheel.flv" but of course use your correct video file.

export the swf as 'videoFile.swf'. upload the swf and the video file to the same directory on your site. then if you go to in your browser " http://www.yourSite.com/videoFIle.swf" and you see your video , then you know you uploaded correctly and you can backtrack from there for your largert files.

not sure what else to say to help. maybe someone else has more info for you

let me know if you try it and what happens


Return to posts index

ellen Osborne
Re: Go to new URL at end of intro animation
on May 23, 2010 at 11:00:09 pm

Success!!!!! The reason the movie didn't play is because I didn't have this as an action in the flash file
flvPlayer.source="hypnotic-wheel.flv
and I hadn't actually ever uploaded the movie to the site, I had only uploaded the .swf file

Thanks so much for your patience!

Long live Greece.
does this mean thank you?
σας ευχαριστώ



Return to posts index

demetri tashie
Re: Go to new URL at end of intro animation
on May 23, 2010 at 11:07:42 pm

great !

glad you finally got it!

and your welcome ( you wrote it in greek just fime ! )


Return to posts index


Adam Ashby
Re: Go to new URL at end of intro animation
on May 24, 2010 at 3:26:42 pm

Depending on the users connection, the timeline could reach the keyframe before the video is actually done. You might want to use a video Event to trigger the url request instead of a timeline keyframe for more accuracy.

import fl.video.VideoEvent;
flvPlayer.addEventListener(VideoEvent.COMPLETE,goPage);

function goPage(evt:VideoEvent):void{
navigateToURL(new URLRequest("http://www.jimdultz.com/home.html"), "_self");
}



Adam Ashby
mutli-media artist
http://www.adamashby.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]