How do I create an FLV Preloader?
Hello everyone,
I am an Action Script illiterate or... let's put it this way, I am currently learning it.
I have created a video in After Effects that I exported to an FLV movie. I would like to use it as an intro for my website but I would like to have a preloader for it... I don't need anything complicated, a 'youtube style' little circle thing would be totally fine.
Now I tried an Action-Script-two-frame preloader. It works but when my video finally plays, the sound is not synchronized with the images; which is kind of annoying as I used visual effects that need to be synchronized with the music and sound effects.
Would anyone would have some simple AS that I could use for that.
Thank you,
Eric
Hello,
Thank you for answering my topic.
The FLV plays correctly in the FLV player. I created a preloader with some AS3 I found browsing the web and put it in a scene. Then in a second scene, I imported my FLV.
When I publish the whole thing to a webpage, the audio and visual go out of sync.
Similar Messages
-
How do I create a .flv in FCE4? If I can't without additional software, what would be the best settings to create the file and flash drive it over to a Dell (-I know...) and re-format to a .flv in "Format Factory?"
PS, it for 30 sec to 1-min videos (PSA's)
-
How to create a .flv with only audio?
So what I'm looking to do is have sound play on my landing
page...the problem is, I used .fla file and it won't play until the
entire thing is loaded. I know how to get progressive play with a
flash video file, but I don't know the best way the convert an mp3
file in to video...
What I'm looking to do is simply have sound start playing as
soon as they land on the page, I don't want them to have to wait
for the whole thing to finish loading first...anyone who knows the
simplest way to accomplish this?
Sorry if it's a simple question, I was going to shell out
some money for 'flash for dummies' or something similar, but since
I generally don't work with flash and just want to do this one
thing I'd thought I'd check on here first ;)
ThanksTo do what you want, my approach is to create a small (160 X
120) movie
consisting of a single black frame in AfterEffects or
QuickTime Pro and add
the MP3 file as a sound track. With the movie completed,
import it into the
Flash Video Encoder to create the FLV. Then, in Flash, play
the movie using
the FLVPlayback component. The player can even be placed off
the stage so
that the black frame is never seen. Set the ContentPath of
the player to an
external file, the one you created earlier.
Since the file had only a single black frame, the video track
will
contribute very little to the size of the FLV; it will be
mostly audio. -
Creating a FLV video player with full screen option
> This message is in MIME format. Since your mail reader
does not understand
this format, some or all of this message may not be legible.
--B_3258016930_5977304
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: 8bit
Hi!
I am trying to create a video player that will allow full
screen functions
like what we can see on youtube. I know how to create the
window and the pop
up but the only problem I am having is having the original
video in the
small screen to pause or go silent when the full screen mode
is activated.
How can get it done?
Thank you.
°K.
--B_3258016930_5977304
Content-type: text/html;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Creating a FLV video player with full screen
option</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Arial"><SPAN
STYLE=3D'font-size:12.0px'>Hi!<BR>
<BR>
<BR>
I am trying to create a video player that will allow full
screen functions =
like what we can see on youtube. I know how to create the
window and the pop=
up but the only problem I am having is having the original
video in the sma=
ll screen to pause or go silent when the full screen mode is
activated. How =
can get it done?<BR>
<BR>
Thank you.<BR>
<BR>
<BR>
<B>°K.<BR>
</B> </SPAN></FONT>
</BODY>
</HTML>
--B_3258016930_5977304--Hello,
You should ask in the
Windows Phone forums on the Microsoft Community forums.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Creating a Javascript Preloader for my HTML sites... wont work..
Hey all,
I am creating a Javascript Preloader for my html site (www.rockspire.com), I have scripted all actions and have come away with a bar that does not load. Can someone please direct me as to where the error may be.
Thanks in advance!
Site: www.rockspire.com
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Index</title>
<script type="text/javascript">
<!-- begin hiding
// You may modify the following:
var locationAfterPreload = "index2.html" // URL of the page after preload finishes
var lengthOfPreloadBar = 450 // Length of preload bar (in pixels)
var heightOfPreloadBar = 10 // Height of preload bar (in pixels)
// Put the URLs of images that you want to preload below (as many as you want)
var yourImages = new Array(
"images/lparch1.jpg",
"images/lparch2.jpg",
"images/lparch3.jpg",
"images/lparch4.jpg",
"images/lparch5.jpg",
"images/lparch6.jpg",
"images/lparch7.jpg",
"images/lparch8.jpg",
"images/lparch9.jpg",
"images/lpart1.jpg",
"images/lpart2.jpg",
"images/lpart3.jpg",
"images/lpart4.jpg",
"images/lpart5.jpg",
"images/lpart6.jpg",
"images/lpart7.jpg",
"images/lpbetty1.jpg",
"images/lpbetty2.jpg",
"images/lpbetty3.jpg",
"images/lpbetty4.jpg",
"images/lpbetty5.jpg",
"images/lpnature1.jpg",
"images/lpnature2.jpg",
"images/lpnature3.jpg",
"images/lpnature4.jpg",
"images/lpnature5.jpg",
"images/lpnature6.jpg",
"images/lpnature7.jpg",
"images/lpnature8.jpg",
"images/lpnature9.jpg",
"images/lpnature10.jpg",
"images/lpnature11.jpg",
"images/thumbnail_arch1.jpg",
"images/thumbnail_arch1bw.jpg",
"images/thumbnail_arch10.jpg",
"images/thumbnail_arch10bw.jpg",
"images/thumbnail_arch11.jpg",
"images/thumbnail_arch11bw.jpg",
"images/thumbnail_arch2.jpg",
"images/thumbnail_arch2bw.jpg",
"images/thumbnail_arch3.jpg",
"images/thumbnail_arch3bw.jpg",
"images/thumbnail_arch4.jpg",
"images/thumbnail_arch4bw.jpg",
"images/thumbnail_arch5.jpg",
"images/thumbnail_arch5bw.jpg",
"images/thumbnail_arch6.jpg",
"images/thumbnail_arch6bw.jpg",
"images/thumbnail_arch7.jpg",
"images/thumbnail_arch7bw.jpg",
"images/thumbnail_arch8.jpg",
"images/thumbnail_arch8bw.jpg",
"images/thumbnail_arch9.jpg",
"images/thumbnail_arch9bw.jpg",
"images/thumbnail_art1.jpg",
"images/thumbnail_art1bw.jpg",
"images/thumbnail_art2.jpg",
"images/thumbnail_art2bw.jpg",
"images/thumbnail_art3.jpg",
"images/thumbnail_art3bw.jpg",
"images/thumbnail_art4.jpg",
"images/thumbnail_art4bw.jpg",
"images/thumbnail_art5.jpg",
"images/thumbnail_art5bw.jpg",
"images/thumbnail_art6.jpg",
"images/thumbnail_art6bw.jpg",
"images/thumbnail_art7.jpg",
"images/thumbnail_art7bw.jpg",
"images/thumbnail_b1.jpg",
"images/thumbnail_b1bw.jpg",
"images/thumbnail_b2.jpg",
"images/thumbnail_b2bw.jpg",
"images/thumbnail_b3.jpg",
"images/thumbnail_b3bw.jpg",
"images/thumbnail_b4.jpg",
"images/thumbnail_b4bw.jpg",
"images/thumbnail_b5.jpg",
"images/thumbnail_b5bw.jpg",
"images/thumbnail_nat1.jpg",
"images/thumbnail_nat1bw.jpg",
"images/thumbnail_nat2.jpg",
"images/thumbnail_nat2bw.jpg",
"images/thumbnail_nat3.jpg",
"images/thumbnail_nat3bw.jpg",
"images/thumbnail_nat4.jpg",
"images/thumbnail_nat4bw.jpg",
"images/thumbnail_nat5.jpg",
"images/thumbnail_nat5bw.jpg",
"images/thumbnail_nat6.jpg",
"images/thumbnail_nat6bw.jpg",
"images/thumbnail_nat7.jpg",
"images/thumbnail_nat7bw.jpg",
"images/thumbnail_nat8.jpg",
"images/thumbnail_nat8bw.jpg",
"images/thumbnail_nat9.jpg",
"images/thumbnail_nat9bw.jpg",
"images/thumbnail_nat10.jpg",
"images/thumbnail_nat10bw.jpg",
"images/thumbnail_nat11.jpg",
"images/thumbnail_nat11bw.jpg",
"images/index_01.jpg",
"images/index_02.jpg",
"images/index_04.jpg",
"images/index_05.jpg",
"images/index_06.jpg",
"images/index_13.jpg",
"images/index_14.jpg",
"images/overview.pdf",
"images/Rockspire_Site_Map.pdf",
"images/Rockspire_slideshow.flv",
"images/main_concept_image.jpg",
"images/main_contact_image.jpg",
"images/main_events_image.jpg",
"images/main_inspiration_image.jpg",
"images/main_manifesto_image.jpg",
"images/main_photos_image.jpg",
"images/main_resources_image.jpg"
// Do not modify anything beyond this point!
if (document.images) {
var dots = new Array()
dots[0] = new Image(1,1)
dots[0].src = "images/black.gif" // default preloadbar color (note: You can substitute it with your image, but it has to be 1x1 size)
dots[1] = new Image(1,1)
dots[1].src = "images/red.gif" // color of bar as preloading progresses (same note as above)
var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
var loaded = new Array(),i,covered,timerID
var leftOverWidth = lengthOfPreloadBar%coverage
function loadImages() {
for (i = 0; i < yourImages.length; i++) {
preImages = new Image()
preImages.src = yourImages
for (i = 0; i < preImages.length; i++) {
loaded = false
checkLoad()
function checkLoad() {
if (currCount == preImages.length) {
location.replace(locationAfterPreload)
return
for (i = 0; i <= preImages.length; i++) {
if (loaded == false && preImages.complete) {
loaded = true
eval("document.img" + currCount + ".src=dots[1].src")
currCount++
timerID = setTimeout("checkLoad()",10)
// end hiding -->
</script>
<style type="text/css">
<!--
body p {
color: #333;
-->
</style>
</head>
<body>
<div align="center">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<script type="text/javascript">
<!-- begin hiding
if (document.images) {
var preloadBar = ''
for (i = 0; i < yourImages.length-1; i++) {
preloadBar += '<img src="' + dots[0].src + '" width="' + coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'
preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'
document.write(preloadBar)
loadImages()
// end hiding -->
</script>
</p>
<p><font size="2" face="Helvetica Neue">Welcome to Rockspire...</font></p>
</div>
</body>
</html>
Cheers!I see an pdf and flv file in the image list, remove them.
Rewrite the code of your loading bar into one solid procedure which can be called from image loaded so you end up with three functions:
loadImage
imageLoaded
displayProgressBar
Maybe it's simpler not to display a progressbar but to display a text like XX loaded from XX images.
I can't possibly write all the code for you but to adjust the loading bar use the image object instead of html code....
preloadingImg = new Image();
preloadingImg.src = "img/dot.jpg" //whatever your preloader img is
//To place your loading bar somewhere in the document:
parentElement.addChildNode(preloadingImg); //where parentElement is the container of the preloader image ( a DIV tag or whatever)
//to adjust the width and height
preloadingImg.height = someHeight + 'px';
preloadingImg.width = someWidth + 'px'
Another alternative is indeed use jQuery. -
How do you create a playlist from personal videos?
I download music videos and save each one as a FLV file. I view them by clicking on the file icon and AMP starts automatically.
So my question is how can I create a playlist so that I can have AMP play one FLV file (a music video in this case) and then automatically play the next one and the next and the next...
Similar to what iTunes does.
Can this be done?Plug it into iTunes and create a playlist by dragging and dropping the songs you want into the new playlist
-
How can I create JScrollPane in my swing application with scroll bars movin
Hi,
How can we create scrollpanes moving with scrollbars.I tried many times with custom layout.but it does not work if i set custom layout.I hope that I will get my problem solved.
Thanks and Regards,
Rameh RKThis means it is not possible to create a pure unicode file without the byte order mark?
You wouldn't happen to know how a file with byte order mark should read on a Linux system?
Or if this possible or not?
Regards
Christian -
How do i create 4 different itunes id's in one household?
How can I create 4 different iTunes id's in one household so that when backing up to icloud, we can each have separate back ups?
The same way you create one, but do it four times!
-
How do i creating multiple icloud accounts for one itunes account
how do i creating multiple icloud accounts to access one itunes account?
Perhaps you could explain a bit more what you want to do...
iCloud accounts don't access an iTunes account.
iTunes account is used to make purchases. -
I have been using one apple ID for 4 family members. Up until now it hasn't been a problem but now that we all have our own devices how do I create new apple ID's for each of us and them move the approprioate things from the original apple ID account to the new ones for each of us?
stuartx4 wrote:
Thanks Csound1, wish I have seperated everything from the beginning but when your kids are little and start buying music etc it just didn't seem like an issue.
That has a familiar ring to it -
How can i create a new usb connection (service) on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
but not the usb iPhone i used to have.
And when i try to add a new one i dont get a USB option.
can some one help me please??
this is how it looks (after the bluetooth PAN i used to have USB iPhone option)The question would be more appropriate in the Mac forums as it is not really related to the iPhone.
-
How can I create a new layer that is a gradient?
Hi, i'm very new to photoshop scripting and am having some trouble.
I'm looking for a way to take an image i have and set it to have a gradient opacity as it approaches the middle, my thought on how to do that was to just create a layer that is a gradient from top left to bottom right and then attach that as a vector mask.
Any ideas on how I could create this gradient layer in script, or a better method of doing this opacity gradient?
Thanks in advance,
LevianthYou could try this:
// 2012, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var theLayer = myDocument.activeLayer;
if (theLayer.isBackgroundLayer == true) {theLayer.isBackgroundLayer = false};
// create gradient layer;
// =======================================================
var idMk = charIDToTypeID( "Mk " );
var desc15 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref3 = new ActionReference();
var idcontentLayer = stringIDToTypeID( "contentLayer" );
ref3.putClass( idcontentLayer );
desc15.putReference( idnull, ref3 );
var idUsng = charIDToTypeID( "Usng" );
var desc16 = new ActionDescriptor();
var idType = charIDToTypeID( "Type" );
var desc17 = new ActionDescriptor();
var idType = charIDToTypeID( "Type" );
var idGrdT = charIDToTypeID( "GrdT" );
var idLnr = charIDToTypeID( "Lnr " );
desc17.putEnumerated( idType, idGrdT, idLnr );
var idGrad = charIDToTypeID( "Grad" );
var desc18 = new ActionDescriptor();
var idNm = charIDToTypeID( "Nm " );
desc18.putString( idNm, "Custom" );
var idGrdF = charIDToTypeID( "GrdF" );
var idGrdF = charIDToTypeID( "GrdF" );
var idCstS = charIDToTypeID( "CstS" );
desc18.putEnumerated( idGrdF, idGrdF, idCstS );
var idIntr = charIDToTypeID( "Intr" );
desc18.putDouble( idIntr, 4096.000000 );
var idClrs = charIDToTypeID( "Clrs" );
var list3 = new ActionList();
var desc19 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc20 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc20.putDouble( idRd, 0.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc20.putDouble( idGrn, 0.000000 );
var idBl = charIDToTypeID( "Bl " );
desc20.putDouble( idBl, 0.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc19.putObject( idClr, idRGBC, desc20 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc19.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc19.putInteger( idLctn, 0 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc19.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list3.putObject( idClrt, desc19 );
var desc21 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var desc22 = new ActionDescriptor();
var idRd = charIDToTypeID( "Rd " );
desc22.putDouble( idRd, 0.000000 );
var idGrn = charIDToTypeID( "Grn " );
desc22.putDouble( idGrn, 0.000000 );
var idBl = charIDToTypeID( "Bl " );
desc22.putDouble( idBl, 0.000000 );
var idRGBC = charIDToTypeID( "RGBC" );
desc21.putObject( idClr, idRGBC, desc22 );
var idType = charIDToTypeID( "Type" );
var idClry = charIDToTypeID( "Clry" );
var idUsrS = charIDToTypeID( "UsrS" );
desc21.putEnumerated( idType, idClry, idUsrS );
var idLctn = charIDToTypeID( "Lctn" );
desc21.putInteger( idLctn, 4096 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc21.putInteger( idMdpn, 50 );
var idClrt = charIDToTypeID( "Clrt" );
list3.putObject( idClrt, desc21 );
desc18.putList( idClrs, list3 );
var idTrns = charIDToTypeID( "Trns" );
var list4 = new ActionList();
var desc23 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc23.putUnitDouble( idOpct, idPrc, 0.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc23.putInteger( idLctn, 0 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc23.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list4.putObject( idTrnS, desc23 );
var desc24 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc24.putUnitDouble( idOpct, idPrc, 100.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc24.putInteger( idLctn, 2048 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc24.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list4.putObject( idTrnS, desc24 );
var desc25 = new ActionDescriptor();
var idOpct = charIDToTypeID( "Opct" );
var idPrc = charIDToTypeID( "#Prc" );
desc25.putUnitDouble( idOpct, idPrc, 0.000000 );
var idLctn = charIDToTypeID( "Lctn" );
desc25.putInteger( idLctn, 4096 );
var idMdpn = charIDToTypeID( "Mdpn" );
desc25.putInteger( idMdpn, 50 );
var idTrnS = charIDToTypeID( "TrnS" );
list4.putObject( idTrnS, desc25 );
desc18.putList( idTrns, list4 );
var idGrdn = charIDToTypeID( "Grdn" );
desc17.putObject( idGrad, idGrdn, desc18 );
var idgradientLayer = stringIDToTypeID( "gradientLayer" );
desc16.putObject( idType, idgradientLayer, desc17 );
var idcontentLayer = stringIDToTypeID( "contentLayer" );
desc15.putObject( idUsng, idcontentLayer, desc16 );
executeAction( idMk, desc15, DialogModes.NO );
// move layer below;
var theGradient = myDocument.activeLayer;
theGradient.move(theLayer, ElementPlacement.PLACEAFTER);
// clipping mask;
theLayer.grouped = true -
How do I create a new icloud email address for my apple id?
Hi there
How do I create a new icloud email address for my apple id? My original email address is associated with my previous employers.
When I send email from my Macbook, it seems as if I still work there, which is a problem.
I would like to use the email address that I created for my iPad.
When I login with my appleid (for my macbook) I keep getting the old company one, not the new one.
Is there any way of resolving this? I
Thanks
KelvinWelcome to the Apple Community.
Providing you aren't trying to change you Apple iCloud email address you can make changes at My Apple ID -
How can I create a new ring tone for my iPhone 4?
How can I create a new ring tone for my iPhone 4? I followed the Garage Band process and ended up with the ring tone I want as a AAC audio file. It got stored in my iTunes a a song rather than a ring tone. How do I make it a ring tone vs. a song? I tried dragging it t the Ring Tone category at the bottom of the ITunes list, but it won't alloow me to move it?
There's also an easy to use Applescript over at Doug's Applescripts for iTunes. It automates the whole thing. All you do is set the start and stop time on a file in iTuens and run the script. It will do everything else.
Make Ringable v1.1
http://dougscripts.com/475 -
My daughter has previously had an ipod which was linked to my itunes iphone account.
she now has a new iphone and has linked this to that account and now she receives all my contacts apps etc when she syncs her account.
How do i create a new itunes account for my old iphone so that i can transfer data to my new iphone and keep the two seperate so that when she deletes all my contacts and apps and then syncs her phone again we can still be compatible.iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family
Maybe you are looking for
-
Dreamweaver crashes in Leopard and Snow Leopard
Hey guys, so this issue has been going on for about two weeks now. I am trying to get Dreamweaver running on my computer to start my own site. I went to adobe.com to try the Photoshop and Dreamweaver trial and installed it to my iMac (3.06GHz, 2GB RA
-
Where can I get Microsoft Office for my MacBook Pro?
I need to install Microsoft Office in my MacBookPro.
-
Issue: attributes change run triggers the rebuilt of 0IC_C03 aggregates
Hello Guru, I am facing to a problem that I don't understand. Here is below the detail of the messages of a '3-infoobjects attributes change run' step of a Master Data process chain. 22:06:14 Job started 22:06:14 Step 001 started (program RSP
-
Safari, itunes, skype, system preferences crashing
Hello, almost all of my applications (except firefox tahnkfully, so i can get this post up) seem to be crashing upon launch or freezing, forcing me to force quit them. Any ideas? System preferences: Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception
-
Hi Has anyone had an issue with general settings where by you go into settings and then select 'general' and the phone dumps you back to the main screen. This happens every time and I now can not chnage a large number of settings. I have just updated