Actionscript :: Control The Depth (layer Position) Of A Flash Video?
Jun 4, 2009
I would like to place a video object above one movieClip instance ("mc"), but below another movieClip instance ("mc_top").
I instantiated the _root.flashVid object by dragging a "New Video..." from the Library to the stage, and giving it the instance name "flashVid".
I create mc, then paint a blue box, then I create mc_top, and paint a yellow box. The flashVid instance is on the Stage (_root) from the beginning. Now how do I get the flashVid above "mc" but below "mc_top"?
// Create movieclips and paint boxes.
var mc:MovieClip = _root.createEmptyMovieClip("test",
_root.getNextHighestDepth());
mc.beginFill(0x0000ff, 50);
[Code].....
View 3 Replies
Similar Posts:
Feb 23, 2011
I have about 85 movie clips on stage and they all have startDrag with MOUSE_DOWN.here is the thing I need the active one to come forward to the top of all others.I tried using:
setChildIndex(e.currentTarget, 85)
on the mouse over function but its not working its giving me an error 1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.displayisplayObject.
View 2 Replies
Aug 22, 2009
I've got a spiral
-----------------
function spiral(centerX, centerY, radius, sides, coils, rotation){ with(this){ moveTo(centerX, centerY); var awayStep = radius/sides; var aroundStep = coils/sides;// 0 to 1 based. var aroundRadians = aroundStep * 2 * Math.PI; rotation *= 2 * Math.PI; for(var i=1; i<=sides; i++){ var away = i * awayStep; var around = i *
[code]....
and I want some movie clips to appear infront as well as behind it, but right now it always appears on the bottom layer. Is there a way to attach the drawing to a movie clip or something so I can change it's depth?
View 4 Replies
Jul 5, 2008
I used tiles for my platform game and they are placed on different depths. I wanted to have my HUD (like score and lives) on a different layer so I could move them around with mouse and dont mess with AttachTextField's properties like x and y when I can't actually see them.
But even if I drag the layer over my script layer, its still overrides it and shows the depths.
So I wanted to someway access that Layer that I make with Flash's Interface New Layer icon (not programitacally, just by clicking on new layer in timeline) and then move them to like depth of 13000 so it will be over everything.
View 8 Replies
Apr 11, 2009
I recently downloaded an example of a xml slideshow from here
However I am having the hardest time trying to put another layer with an image, like a border over the slideshow. I have scoured google for solutions however anything actionscript i throw in to try and get the added layer to have the highest depth just does'nt work.
View 6 Replies
Aug 26, 2011
Don't know if the flash layer on the view stack contain only the compiled flash swf file
View 1 Replies
Feb 17, 2009
I'm wondering what codes I should use to get some movieclips get their depths swapped depending on their y position. The one with highest y is on top and etc.I have 3 movieclips named:
character1
character2
and character3
I've tried with some codes but they doesn't work.
View 0 Replies
Nov 1, 2005
i'm trying to control the depth of some buttons which are all pretty close, and on mouse over, each buttons gets bigger (150% more or less), the problem comes when i want to control the depth in order to place the rollovered button above it's neighbours.... guess it could be done by actionscript...here is a link i found that explains how to do that, i'm quite beginner in flash and it is too much level for me, eventhought i've reatten it carefully.
View 1 Replies
Jan 31, 2011
I'm having a huge problem trying to place movie clip under other stuff. Here is the thing I have three layers and I need to place vid_mc on the midle one i've tried creating a movie clip and intancing it as vid_mc and removing de addChild (vid_mc) from the code but ir didn't work.
[Code]...
View 4 Replies
May 7, 2010
does that make sense at all? here's what i'm trying to do, the code is below. i'm building a touchscreen interface for a tradeshow, which mainly is a slideshow, with three buttons, one of which, when clicked, needs to load the company's webpage. i need to keep the webpage "inside" my environment and keep the navigation buttons on screen, so the user can touch the other two buttons for the rest of the content. so far, i've got an image on the stage, then call a button with addchild. i've got that loading a movieclip via addchild, also, which then calls the url, then i lose my nav button. is it possible to somehow load a url, and control it's depth index? or, accomplish the desired result in a different way?
var button_1:btn1 = new btn1();
button_1.x = 196;
button_1.y = 860;
[code].....
View 2 Replies
Dec 30, 2007
I need to know how to control a MovieClip based on it's depth.MovieClip at n depth .gotoAndStop(2);
View 1 Replies
Feb 1, 2006
Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).
View 2 Replies
Mar 6, 2010
With the Flash Player that comes with CS3 and on my PC XP Pro laptop.I want the player controls to appear at the _bottom_ of the video not on top of the video and not under (behind) the video.
- my video is 640 x 480
- so I modified the "properties" tab at the bottom of the screen to 640x480... (it was 550x400)
- but that just makes everything larger when I click File > Publish
- and then look at the video in Internet Explorer... the Player Controls are still _On Top_ of the video.
I guess I need to learn how to
- Make the stage bigger
- Position the Player controls below the actual video
View 1 Replies
Mar 3, 2012
i'm desperately trying to set my border container the highest z-index so it will always appear on top.
how can I know how many objects are in my flex stage, so i'll be able to set the bordercontainer the highest depth? what shell i write in the depth property in order the border container would always be on top? (it's important to mention that i created dynamic objects)
<s:BorderContainer includeIn="state2" width="200" height="200" backgroundColor="#992F2F"
horizontalCenter="-61" verticalCenter="23" depth.state2=currentState.num>
</s:BorderContainer>
View 1 Replies
Nov 22, 2010
by following a tutorial on [URL], I was able to display a youtube video in flash, but the problem is that the video doesn't have a control menu. Just wondering if there is a way to make one, either it is customized or some default menu provided by youtube or flash.
View 0 Replies
Mar 29, 2011
i am creating a isometric game looks something like farm ville and city ville..i almost done everything. but but problem is only with sorting depth. find the attached .fla. this code is working in certain situations but not every time.
View 1 Replies
Dec 18, 2010
I want to build a web page with a button that when clicked opens up a javascript layer and loads a flash player inside that layer. And that layer would need a close button.
View 4 Replies
Nov 22, 2011
I'd like to play load/play one movie and show text at a specific times. In the Movie there is a scene where a board is shown. I'd like to show some text on the board when it appears. That's why I'd like to how to know when you reached a certain point.
Also about loading the video. I read there a several ways of loading a movie. What would be the best way in your opinion to load it in this situation.
1)Can this be done with the FLVPlayer component or through another way?
2) How to show a text at a specific time. Is there a function that I can use.
View 1 Replies
Apr 9, 2011
Is it able to control everything in a layer? Like if i have 2 boxes in a layer, and then i want to write some code like this:
"if(player.hitTestObject(buttom)) {
MYLAYER.x -=1;
}
What im trying so say is.. Can I do a hitTestObject that moves everything in a layer?
EDIT: What im trying to say is... Can I control a layer like if it was a object?
View 1 Replies
May 24, 2011
I would like to RUN/LOAD my loaded SWF or Movie Clips BEHIND some existing Masks already designed in a scene or simply arrange theirvisibility position in ActionScript 3 while loading them with CODING only
View 1 Replies
Jun 28, 2011
How can I drag the key frames back within each of the layers below so that they all end on the final scene. Currently when I hit play, the clip runs till the last key frame and the other layers that don't run that length disappear. How can I best fix this?
View 2 Replies
Feb 15, 2007
I am trying to control an entire Layer through AS .. Is this possible?
E.g....
From an onRelease .. Cause Layer 1 to _alpha = 0; .. Then _visible = false;
View 3 Replies
Feb 23, 2011
I have about 85 movie clips on stage and they all have startDrag with MOUSE_DOWN.
here is the thing I need the active one to come forward to the top of all others.
I tried using:
setChildIndex(e.currentTarget, 85)
on the mouse over function but its not working its giving me an error
1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:DisplayObject.
View 2 Replies
Sep 26, 2009
I am trying to use HTML to embed a flash video, however I encounter the following errors:
Error #2044: Unhandled skinError:. text=[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text=" Error #2035: URL Not Found. URL: SkinOverPlaySeekStop.swf"] Here is my HTML code:
[Code]...
Whenever I open the page I'll get a popup window with the above errors and once I click "continue" it will go ahead and play the video, but without the control skin. how to get the skin to show up?
View 2 Replies
Sep 9, 2010
Creating a simple video for embedding by importing a video into flash creates a separate swf for the controls. Is there a way to have the controls embedded in the main SWF, so you don't have to worry about paths to the control swf?
View 1 Replies
Jan 28, 2012
I have a HTML5 video with jquery hooking into the player like so: video.currentTime += 1; But when IE comes along and insists on using Flash plugins, none of my JQ will work - How am i supposed to control the video when Flash takes over from HTML5?
The player im falling back to is JQplayer as "player.swf"
View 2 Replies
Jan 12, 2005
I am making buttons to control a video in flash and all is working fine except I would like the fast forward button to continue going forward as you hold it. At the moment I have this code:
[Code]...
View 5 Replies
Jul 18, 2011
The stop button plays as expected. The play/pause button plays as expected. The issue is when you press pause which will cause the play button to appear, then press stop. the video automatically plays and it shouldn't. I have bolded the control button script for convenience.
[Code]...
View 1 Replies
Nov 10, 2009
Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements?
View 2 Replies
Oct 11, 2011
Here is the issue. I'm making a web browser for my 3 year old so that I can specify which sites he can go to and make it easy for him to get to those sites. One of the sites that I have specified is the Disney Junior site. However, when I load up that site in the WebBrowser control the flash is kinda wonky. This is the only flash site that does this. The top and side nav are like twice the size they should be. This has happened on multiple machines, so it's not just my dev box. Also, the site looks just fine in IE9. I've been pulling my hair out trying to figure out what is happening, but I'm running dry on ideas.
At first I though it had something to do with zoom in IE, so I created a new control inherited from the WebBrowser control and added a zoom property, but that didn't fix it. Then I thought maybe the User Agent string might be an issue so I tried modifying it to no avail ... plus it turns out that the WebBrowser control identifies itself as IE9 anyway ... so that's not it. I've thought about using GeckoFX or Webkit.NET, but those projects are both way out of date, so I would rather use something more modern like the built in IE control (ironic, I know)
View 1 Replies