Both F4V and MP4 files have "video/mp4" as their MIME type. However, I'm working on a Wordpress blog where I want uploaded F4V files to be shown using a Flash video Player, and MP4 files using the HTML5 [video] tag. Obviously, I can't tell them apart using their MIME type. Is there any other way I could do it, aside of the file extension?
I was thinking the other week - wouldn't it be great to have a flash clock that not only tells a classy analogue time but also, like a church clock, gives out bell noises when the hour is reached, an also chimes the number of hours the time corresponds too. So at 1pm/am it will chime once, and at midnight you get 12 chimes and so on, I'm sure you get my meaning. I'm not great when it comes to working with sound, infact I've never added much more than a custom click noise on a button. How to go about this? I've attached a nice church bell noise for y'all just incase.
The flash player has a little window that can be opened (similar to flash->settings) telling the user to update the player if the movie loaded is for a more recent version. How can you instruct the player to do this? ITV have managed it with their catchup-tv player.
Context: I am allowing users to copy flash into their PowerPoint presentations and would like to tell them to update their flash player if necessary. I am not embedding a web page in the power point so no JS can be run for checking etc (because I know this is not necessary).
i have a movieclip within a movieclip within a movieclip... i want to simply tell flash to play that movieclip once i click on it.. however, i get an error saying "1120: Access of undefined property tl_character" when i try to publish the file..[code]i know there might be a solution by using a custom class for "police1" but i'd like to know how i could play that movieclip using a function thats written on the main timeline..
I have a problem where I have declared an onRollOver event handler on frame 5. I also have a button on frame 4 telling flash to go to frame 5.But, if the mouse is already over the movieclip on frame 5, the rollover event will not play.Is there a way to force this onRollOver or another workaround for this?
In a game, how would I go about keeping records if a user is online or offline? I know when they logged in it could set something in the database that would indicate that they are online, however how would I know when they logout in any other method than pressing the "logout" button? Say if they just closed their browser..
tell if a user is online, once they log in I set something in the database that say's they're online, when they log out change that. And set something up so they will d/c after 5-10 minutes of inactivity in case they log off any other way besides hitting "log out" However, I'm not exactly sure how I would do this, because the only way that I can think of wouldn't work, because say if they just closed their browser, then it would stop running my application, and thus stop running my check to check for inactivity..
how I can make sure if a user is already logged in accurately?
Is there a way to tell a movie clip to way a number of frames from a specific action being executed (say a button being pushed) before it starts playing?
I am trying to make a little application to allow to record actions within a Flash and Silverlight application. In such manner that you can compile your interactive application in test-mode and then be able to click on elements which then passed the action to Selenium IDE which then adds this command to the testcase.I am curious if this even possible and how I can achieve this in Firefox?
From my main timeline actions, how can I tell a dynamic text box inside a movieclip to update? I have a movie clip with the dynamic text box called catalog. The instance name for the text box is catalogtext. On the main time line, I am using a loop to repeatedly attach the catalog movie clip. I want the dynamic text to show the value of i, and each time the movie clip is reproduced, increase by 1 each time.
Here is my current attempt:
for (i=1; i<=9; i++) { container.attachMovie("catalog","catalog"+i+"_mc", i+200); mycatalog_mc = container["catalog"+i+"_mc"];
[code]....
Everything works fine, but the text box won't show the value of i. I must not be calling it correctly?
I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?
I have a parent movie that loads a swf(events.swf) file into a movie clip with an instance name of container. (container.loadMovie("events.swf");) It loads fine and seems to work great.
events.swf has a movie clip inside of it called design_mc that contains the content. In that movie clip I have a button that needs to target the parent movie and tell it to gotoAndPlay("eventsout"); which is on the _root of the parent movie. However, anything I try will not target the parent movie. I've tried _parent, _parent._parent, _root, and even assigning the parent movie this._lockroot = true; . Nothing seems to target the parent movie.
I have a main movie(main.swf). I've loaded a movie into it(loaded.swf). I need the loaded movie to finish playing once a button is clicked in the main.swf. So basically i need something like
when a button in the main.swf is pressed, finish playing "loaded.swf"
Is there a way of telling a null value in the _droptarget property?
Basically I've got 9 draggable objects, and what I want them to do is if there is no _droptarget when you release the drag, flick back to it's riginal position.
I'm moving a movie clip using actionscript (as2) instead of a motion tween (because I want to save file size) and I have this code on the first frame of the main timeline ("stone" is the movieclip instance name) and it tells the movie clip how many pixels to move in the x direction: Code: xTargetstone = 600;
I have this code on the movie clip itself ("stone" is the mc instance name) to handle the actual moving of the movie clip: Code: onClipEvent (enterFrame) { xstone = getProperty(_root.stone, _x); movestone = _root.xTargetstone - xstone; setProperty(_root.stone, _x, xstone + (movestone/5)); }
The movement works fine, but the issue is that it starts out fast and then slows down over time (even though that amount of time is small). The result is that the movie clip seems to wiggle and vibrate before it stops. Is there a way for me to change the code so that it doesn't wiggle and vibrate? perhaps something with the math I'm just not totally understanding? I would like a nice consistent motion from start to finish, while being able to set the time it takes to move etc.
I am making a game and need to know how much a particular mc is covered by other mc's placed randomly on the screen. Is there a way to tell how much is left seen of the mc as it's slowly being covered by other mc's?
I have a parent movie that loads a swf(events.swf) file into a movie clip with an instance name of container.
(container.loadMovie("events.swf");) It loads fine and seems to work great.events.swf has a movie clip inside of it called design_mc that contains the content. In that movie clip I have a button that needs to target the parent movie and tell it to gotoAndPlay("eventsout"); which is on the _root of the parent movie. However, anything I try will not target the parent movie. I've tried _parent, _parent._parent, _root, and even assigning the parent movie this._lockroot = true; . Nothing seems to target the parent movie.
I'm trying to keep my code succinct by naming my section labels the same as the buttons that navigate to them. I've also put the contents of each page in a movie clip of the same name with suffix _mc. The following code successfully traces the name of the movie clip, but how do I tell the compiler that I want to reference the movie clip whose name is held in the string, rather than the string itself.
I'm writing a Flex video player with a "slow advance" button, and my first approach is to simply toggle between play() and pause() on a timer. I'd like to say something like
if (video.isPlaying) { video.pause(); } else { video.play(); }
But I can't find anything like an 'isPlaying' property.
I have a movie called book_mc that is on scene1 the movie has several labels (red, green, blue, and yellow) in it's timeline. Also, on scene1 I have a button called book_but. If book_mc is on the label green of it's timeline. I want the button press of book_but to make it goto and play yellow. If book_mc is not on the green label of it' timeline I want the button press of book_but to make the timeline goto and play red.
I have 2 swf's one loaded in level0 and another loaded in level1 (called from the first one). I want to put a button on the second swf that would control the first one by telling him to go to an exact scene and frame just like the gotoAndPlay action.
I have a movieclip on its own layer, with the intention of using it as a background to all the other layers. It is simply a black square with the alpha at 60%. There must be a relatively simple way of telling this movieclip to either tile or stretch to cover the whole of any page it loads into.
I am trying to tell flash from within a movieclip to start playing a specific frame within the main timeline only after it has finished playing the movieclip backwards. I can get the movieclip to play backwards fine but it's getting the main timeline to start from frame 1 which doesn't work. I have the following code on the first frame of the movieclip (which is called video) but it doesn't seem to do anything.[code]
I'm in the process of making a web page that'll successfully checked as XHTML 1.0 Transitional ([URL]), but as soon as I place in the fixit.js script under the flash object and view the page in IE, all the flash elements turn white. Quote:
[Code]...
Anyone knows how to place in flash files in xhtml files on IE without manually controls by clicking on the flash file.
I installed Flash CS4 Professional trial version for school use. It wouldn't install successfully. I deleted the font files the troubleshooting guide said to, tried again, but gave up. (I'm afraid to run regedit and mess up everything else I have loaded.) (I previously had the Fireworks CS4 trial version loaded, then uninstalled it.) My problem is this- I have it running, but it saves files and then they can't be opened, even if I use the save function often- it's worse when I create the file, test the movie and then save.If I try to open it again, it says "cannot open file." Once it opened a copy I had saved, and it appeared blank, even though it was 544 kb file size. I only need it for a few more days, one more assignment and I'm afraid my previous files are corrupt. I have Windows Vista Home Edition.
1) i have palced 2 flash file on my web page.if i stop the sound on this file then the sound on another flash movie placed on my web page also stops.i want both the files to be independent to each other and controlled separately
2)if i click on play it shows loading.even after it loads the file it doesnt change itz status. if i click again on play then itz status changes to play.my codes for flash.....
soundUrl = "test.mp3";
// create sound object, assign properties and events function createSoundObject(){[code].....
I am constructing a Flash animation and I was hoping to build it by scenes. These scenes would be individual SWF movies that I could import into my final Flash file in consequential order and when finished I would have a completed Flash Movie. There would be no interaction beyond Play/and replay. Where can I get information on how to construct this and is this a recomended way to do it?