News:

If you need instructions on how to get through the hotels, check out the enclosed instruction book.

Main Menu

Video publishing and linking in Flash

Farted by INoodleClock, October 26, 2009, 09:42:43 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

INoodleClock

Ok what I'm after doing is throwing a few video projects onto a host site (NOT YouTube, the player is really ugly) and then putting them into a Flash.

This is for a portfolio site, so by using a remote server for the videos hopefully the main sites loading time won't be affected.

I'm working in AS1, everything else on the site is already scripted in this so changing AS type isn't really an option.

Is someone able to recommend a website good for hosting and what I'd need to do to get each of the videos onto a different frame.

For example blip.tv uses the following html:

<embed src=&quot;http://blip.tv/play/AaDEFIWACw&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;320&quot; height=&quot;270&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot;></embed>

How would I put this into Flash so the player loads inside a frame?

Loki Clock

You would just make the frame URL the swf it's self, or just drop that code into an HTML file. Unless I misread something;

INoodleClock

The frame URL? I don't understand what you mean. I just want to embed a similar code into a Flash page.

The site's like mine, just think a page like on there but with an embedded YouTube movie inside it.

http://incdesign.site90.com/

Loki Clock

Quote from: INoodle;1684686The frame URL? I don't understand what you mean. I just want to embed a similar code into a Flash page.

The site's like mine, just think a page like on there but with an embedded YouTube movie inside it.

http://incdesign.site90.com/

Oooohkay. I thought you meant frames like HTML frames. Well I haven't done this before, and I'm not sure if it's AS1, but you could try this:

on(release){
unloadMovie(&quot;empty_mc&quot;);
empty_mc.loadMovie(&quot;http://www.fsklf.com/content.swf&quot;);
}


Where empty_mc is a blank movieclip in your library, a container for the external swf.

SpongeClock SquarePants

yes, try and load the swf (including the parameters/vars it needs to be playing something!) into a blank "holder" movieclip on your stage. There will be some issues with actually controlling what happens inside the loaded swf, since its probably AVM2 plus you dont know its methods in the first place. It should just look like an html embedded player though.

else extract the feedurl from the string and parse out the flv locations, to play them in your own player.

INoodleClock

Sorry, Flash frames. Your code's missing the dimensions, guess I just resize the area?

So does this code go on the frame and how do I make the movie clip a holder? Thanks for the help so far.

Loki Clock

Quote from: INoodle;1684725[…] how do I make the movie clip a holder?

I assume the holder MC's linkage identifier is the "empty_mc" in the code I posted.

INoodleClock

Website live, feedback appreciated. Is the email link working ok for everyone?

//www.loisjones.co.uk