Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2005, 11:31 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default Layers driving me up the wall

I have a movie that uses as its background a movie clip into which is loaded a swf file. I'm using Flash MX 2004.

This background movie clip is sat on its own layer, which appears as the last layer in the list in the layers tab.

Everything works ok apart from a movieclip on a higher layer, which is hidden behind this background. I've moved this movieclip to other layers, but no matter where I place it, it still appears at the back. I've also tried right clicking on the clip and doing 'bring to front', as well as right clicking on the background and doing 'send to back'.

Furthermore, I've done a load of messing about with the 'swapDepths()' function, because both movieClips are populated with images at runtime (the one that disappears has a jpg loaded into it, the one that's always on top has the swf). Clip1, the swf, has a depth of -16383, Clip2, the jpg, has a depth of -16381. When I do Clip2.swapDepths("Clip1"), nothing happens.

Could someone help me with why this is happening, because as far as I can see there is no logical reason for this (AARRRGGGHHH!)

Thanks
 
Old January 10th, 2005, 04:44 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

I've had a problem with this same thing before. What works for me is moving the layer itself so that what I want to be visible during the animation is. With that said, only move the layer itself. Not what's on it.

Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
 
Old January 12th, 2005, 10:20 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Thanks for the response, I got around it by renaming the object. I must have had some action script somewhere that was messing it up, but I'll be damned if I can find it!






Similar Threads
Thread Thread Starter Forum Replies Last Post
This is driving me nuts... Klesk C# 3 January 27th, 2006 06:51 PM
Driving me mad - getting a div to display in IE elfranko HTML Code Clinic 0 December 21st, 2005 10:49 AM
Off the wall question UNCLEBENZ Excel VBA 0 October 9th, 2005 08:01 AM
Driving me nuts! bhd8ball Classic ASP Professional 2 January 7th, 2005 12:55 AM
This is driving me nuts!!! (datagrid in .ascx) dragonoodle General .NET 2 December 13th, 2004 03:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.