How to place a movieclip on top of external swf
Hi there.
I have a main.swf in which i load a xml flash slideshow (.swf).
I want to place a menu which will be shown in front of the slideshow gallery.
I place the menu at an upper layer but the menu appears behind the slideshow.
Can anyone help with this and generally(i.e. in case i want to place something else on top or behind something else)
Thanks in advance
If you were to replace that dynamically created empty movieclip with a manually created one placed in the timeline that would take care of the first suggestion I offered.
As for the the swapDepths usage and what you showed, you should be able to use something to the effect of... myGalleryContainer.swapDepths(myMenu);
If you want to see what depth am object resides at, you can use the getDepth() metod, as in... myMenu.getDepth();
Similar Messages
-
How to load and unload more than one external swf files in different frames?
I do not have much experience on Adobe Flash or Action Script 3, but I know the basics.
I am Arabic language teacher, and I design an application to teach Arabic, I just would like to learn how to load and unload more than one external swf files in different frames.
ThanksLook into using the Loader class to load the swf files. If you want to have it happen in different frames then you can put the code into the different frames.
-
Is it possible to place an object on top of a SWF file in Dreamweaver?
I have a slideshow that I would like to float on top of the bottom half of a SWF file that I have created. Is this possible in Dreamweaver CS6? Can anything be floated on top of a SWF file (JPG,PNG, etc.)?
Yes you can do this by using css with z-index and position.
For example:
<div id="bg" style="width:100px; height:100px">
<div class="swf" style="width:100%; height:100%;"> swf file here </div>
<div class="slide1" style="z-index:1; position: absolute; height:20px; top:0"> object slide1 here </div>
<div class="slide2" style="z-index:1; position: absolute; height:20px; bottom:0"> object slide2 here </div>
</div>
Hope this help you.
Visit my site: nuoc hoa, mua ban oto -
Place button rollover image on top of external swf
I have a menu that when you click on a button, an external swf is called up. However I would like for the buttons in the Over and Down state to show an image on top of the external swf with a description of what the video is about (Basically when they rollover the button).
The problem is that the image shows behind the external swf. I cannot get it to appear on top of the external swf. I have tried putting the buttons layer on top of the actions layer but that doesn't work.
I have not been using Flash for very long but I need to know if there is ActionScipt that can solve my problem or any other way to solve this issue. Please help. Thank you.This is what appeared now in my Output panel.
Core_K12_Menu CS5.swf Movie Report
Metadata
Bytes Value
387 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <xmp:CreatorTool>Adobe Flash Professional CS5</xmp:CreatorTool> <xmp:CreateDate>2010-07-25T19:31:59-07:00</xmp:CreateDate> <xmp:MetadataDate>2010-08-01T18:42:52-07:00</xmp:MetadataDate> <xmp:ModifyDate>2010-08-01T18:42:52-07:00</xmp:ModifyDate> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"> <xmpMM:InstanceID>xmp.iid:2136C7DCCB9DDF11B1ACFFBB5C2D711F</xmpMM:InstanceID> <xmpMM:DocumentID>xmp.did:2136C7DCCB9DDF11B1ACFFBB5C2D711F</xmpMM:DocumentID> <xmpMM:OriginalDocumentID>xmp.did:423EF45B6198DF1180E5FB9309482BDA</xmpMM:OriginalDocumentID> <xmpMM:DerivedFrom rdf:parseType="Resource"> <stRef:instanceID>xmp.iid:992BC7CBB29DDF11B1ACFFBB5C2D711F</stRef:instanceID> <stRef:documentID>xmp.did:F34D8816A19DDF11ADEA81F4369F4B15</stRef:documentID> <stRef:originalDocumentID>xmp.did:423EF45B6198DF1180E5FB9309482BDA</stRef:originalDocumentID> </xmpMM:DerivedFrom> </rdf:Description> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:format>application/x-shockwave-flash</dc:format> </rdf:Description> </rdf:RDF>
Frame # Frame Bytes Total Bytes Scene
1 295119 295119 Scene 1 (AS 3.0 Classes Export Frame)
Scene Shape Bytes Text Bytes ActionScript Bytes
Scene 1 0 0 1133
Symbol Shape Bytes Text Bytes ActionScript Bytes
ActiveMC 40 0 0
IntroModule 0 0 0
Module 1 Rollover 0 0 0
Module1 0 0 0
Module2 0 0 0
Module3 0 0 0
Module4 0 0 0
Module5 0 0 0
Module6 0 0 0
Module7 0 0 0
Module8 0 0 0
Module9 0 0 0
Module10 0 0 0
Module11 0 0 0
Module12 0 0 0
Module13 0 0 0
Module14 0 0 0
Module15 0 0 0
Module16 0 0 0
Module17 0 0 0
Module19 0 0 0
Module20 0 0 0
Module21 0 0 0
next_btn 0 0 0
replay_btn 0 0 0
Rollover 0 0 0
Rollover Image.psd 0 0 0
Symbol 18 0 0 0
Title.psd 0 0 0
ActionScript Bytes Location
1133 Scene 1:Frame 1
Bitmap Compressed Original Compression
Layer 1 3675 88264 JPEG Quality=80
Layer 1 3287 63936 JPEG Quality=80
Layer 1 1205 19668 JPEG Quality=80
Introduction-Up.jpg 6357 23200 Imported JPEG=102
Introduction-Down.jpg 5862 23200 Imported JPEG=102
Module 1-Up.jpg 5957 23200 Imported JPEG=102
Module 1-Down.jpg 5548 23200 Imported JPEG=102
Login Page and Tech Check Topics Covered - Introduction to A 4791 288576 JPEG Quality=80
Module 2-Up.jpg 6030 23200 Imported JPEG=102
Module 2-Down.jpg 5607 23200 Imported JPEG=102
Module 3-Up.jpg 6035 23200 Imported JPEG=102
Module 3-Down.jpg 5556 23200 Imported JPEG=102
Module 4-Up.jpg 5997 23200 Imported JPEG=102
Module 4-Down.jpg 5584 23200 Imported JPEG=102
Module 5-Up.jpg 6031 23200 Imported JPEG=102
Module 5-Down.jpg 5607 23200 Imported JPEG=102
Module 6-Up.jpg 6030 23200 Imported JPEG=102
Module 6-Down.jpg 5610 23200 Imported JPEG=102
Module 7-Up.jpg 5986 23200 Imported JPEG=102
Module 7-Down.jpg 5575 23200 Imported JPEG=102
Module 8-Up.jpg 6035 23200 Imported JPEG=102
Module 8-Down.jpg 5615 23200 Imported JPEG=102
Module 9-Up.jpg 6031 23200 Imported JPEG=102
Module 9-Down.jpg 5611 23200 Imported JPEG=102
Module 10-Up.jpg 6192 23200 Imported JPEG=102
Module 10-Down.jpg 5707 23200 Imported JPEG=102
Module 11-Up.jpg 6119 23200 Imported JPEG=102
Module 11-Down.jpg 5662 23200 Imported JPEG=102
Module 12-Up.jpg 6189 23200 Imported JPEG=102
Module 12-Down.jpg 5709 23200 Imported JPEG=102
Module 13-Up.jpg 6194 23200 Imported JPEG=102
Module 13-Down.jpg 5710 23200 Imported JPEG=102
Module 14-Up.jpg 6193 23200 Imported JPEG=102
Module 14-Down.jpg 5705 23200 Imported JPEG=102
Module 15-Up.jpg 6197 23200 Imported JPEG=102
Module 15-Down.jpg 5713 23200 Imported JPEG=102
Module 16-Up.jpg 6202 23200 Imported JPEG=102
Module 16-Down.jpg 5716 23200 Imported JPEG=102
Module 17-Up.jpg 6155 23200 Imported JPEG=102
Module 17-Down.jpg 5684 23200 Imported JPEG=102
Module 18-Up.jpg 6204 23200 Imported JPEG=102
Module 18-Down.jpg 5719 23200 Imported JPEG=102
Module 19-Up.jpg 6198 23200 Imported JPEG=102
Module 19-Down.jpg 5713 23200 Imported JPEG=102
Module 20-Up.jpg 6205 23200 Imported JPEG=102
Module 20-Down.jpg 5723 23200 Imported JPEG=102
Module 21-Up.jpg 6150 23200 Imported JPEG=102
Module 21-Down.jpg 5685 23200 Imported JPEG=102
Replay Button.jpg 5365 18240 Imported JPEG=102
Replay Button Down.jpg 4803 18240 Imported JPEG=102
Next Button.jpg 4965 18240 Imported JPEG=102
Next Button Down.jpg 4684 18240 Imported JPEG=102 -
How do I find the width of an external swf file that I am loading in
I have loaded in an external swf file and it works fine.
However, when I get the width dimensions of the movieclip that is housing the external swf file it gives me a '0' for the width.
Thanks for your time.you must wait until loading is complete before trying to access the loaded objects width. at that point you can determine the width,height of the onstage/backstage objects in frame 1 of the loaded swf.
-
How do I control the location of an external swf?
Hey again,
Sorry this probably seems rudimentary, but how do I control
the location of a swf I load into my main movie? I'm trying to load
in a slideshow and am having a hard time getting it where I want it
to be. Thank you so much in advance. Again sorry for the ignorant
posts.
Davetyrione wrote:
> Hey again,
>
> Sorry this probably seems rudimentary, but how do I
control the location of a
> swf I load into my main movie? I'm trying to load in a
slideshow and am having
> a hard time getting it where I want it to be. Thank you
so much in advance.
> Again sorry for the ignorant posts.
>
> Dave
>
the only way to control it is to define the right path to
your loaded files.
There really isn't any other way. If the file is in a folder,
it has to be in
your path folder/name.swf
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
How to load and unload Multiple External SWF
hello there,
i need help to figuring out how to load and also unload(removing) multiple external SWF.
so here is what i;m trying to do,
i want to load multiple external SWF and play it on my main SWF now i hove no problem with just loading multiple SWF and placing it in the display list .The problem came up when i tried removing those loaded SWF from the display list ,The problem exist because i have no way to refer to what i have loaded and placed on the display list,
i used a single loader instance to load all that external swf,
i do know that we have to remove all the event listener related to the external SWF that we want to remove and for this purpose i have crated a function called destroy which the main objective for this function is to remove all event listener inside the swf and also isolating all variable so it would be eligible for garbage collecting, here is what the code look like:
// Create this in every object you use
public function destroy():void
// Remove event listeners
// Remove anything in the display list
// Clear the references to other objects, so it gets totally isolated
sorry it just a kind of pseudocode cause this function will customize with it's own property i did this just for the purpose of simplicity and easy understanding..,
so now back to main problem how should i solve this problem??
i tried used an arraf to save all the loaded swf
the array is just used to save the what the loader is loading but the adding to display method is using
movieClipActAsContainer.addChild(e.target.content); //the event is from the Event.COMPLETE
but i have a hard time using that arrya back and matching it to the one i got from the display list.
please do help me,
any suggestion would be greatly appreciated,
and if can pleas show me a source code or pseudocode of what you're suggesting to me cause my english is not so fluent yet,
thanks before.Hey EI,
I had done this kind of project recently and for loading and unloading different swfs. I had used loaders specific to that filename and for removing I had used a single movieclip instance name and on clicking that specific loader request name that needs to be removed will be requested from the specific function. As mentioned below
Loading SWF:
===============================
swfLoaderIndia.load(swfRequestIndia);//This will load the request
If you are inside a movieclip while requesting use below code
MovieClip(this.root).addChild(swfLoaderIndia);//This will load swf on stage
or else
Stage.addChild(swfLoaderIndia);
Unloading SWF
=====================================
If you are inside a movieclip while requesting use below code
MovieClip(this.root).removeChild(swfLoaderIndia);//This will unload swf on stage
or else
Stage.removeChild(swfLoaderIndia);
Above code will be in specific function which will be requested when the loading and unloading is required.
I hope this helps you in your project.
With Regards,
Sagar S. Ranpise -
How can I place photo icons on top of folders?
I put 4 folders in my dock. I need to ID them with photo - icons.
1) How can I place photo icons on top of 3 folders, so that they also retain
their folder shape?
2) And, to make one of them look like a folder that has text?
Intel Mac - Dual - Tiger 10.4.9
Thank you.It sounds like what you actually need to do is amend the icon itself - something like Iconographer will help you with that. Open the icon of any standard folder, copy in your photo image, amend the result to your satisfaction, and save it as a new icon. Then apply that icon to your folder.
Matt -
How to place a JPanel at the center of another JPanel?
Can anyone tell me how to place a JPanel inside another JPanel? The first JPanel consists of three JPanels each consisting of a label&textfield and are placed using BoxLayout. The second JPanel is a big blank screen. So, i would like to put the first JPanel at the center of second JPanel(horizontally & vertically). The problem is that i don't have any other component. So,if i try to use FlowLayout, i am able to put it at the center(horizontally, not vertically) only on the top edge. I tried to use BoxLayout. But, i couldn't(as i don't have any other elements). I tried to create some blank elements. But, they are messing up the elements of my JPanel. Any cluesssssssss??????????
import java.awt.*;
import javax.swing.*;
public class CenteredLayout
private JPanel getPanel()
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(2,2,2,2);
JPanel p = new JPanel(gridbag);
addComponents(new JLabel("label 1"), new JTextField(8), p, gbc);
addComponents(new JLabel("label 2"), new JTextField(8), p, gbc);
addComponents(new JLabel("label 3"), new JTextField(8), p, gbc);
JPanel panel = new JPanel(gridbag);
panel.setBackground(Color.pink);
gbc.anchor = GridBagConstraints.CENTER;
gbc.insets = new Insets(0,0,0,0);
panel.add(p, gbc);
return panel;
private void addComponents(Component c1, Component c2, Container c,
GridBagConstraints gbc)
gbc.anchor = GridBagConstraints.EAST;
gbc.gridwidth = GridBagConstraints.RELATIVE;
c.add(c1, gbc);
gbc.anchor = GridBagConstraints.WEST;
gbc.gridwidth = GridBagConstraints.REMAINDER;
c.add(c2, gbc);
public static void main(String[] args)
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new CenteredLayout().getPanel());
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
} -
Hi,
I would like to know as to how can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?
Kindly advice.
Thanks
PriyaSpecial > Hypertext > Command "open document" will do its best to open the target document inside FrameMaker, which may not be much help; Special > Hypertext > Command "message …" will use the application you specify. The user guide for 7.0 says this about absolute links, and I don't think anything has changed since:
For example, to start PaintBrush and open the Ship.pcx file on drive C you would use the command message system pbrush.exe C:/Ship.pcx
I've not often used a relative link, and not recently: the same source says
folder levels are separated by a slash / even in Windows and Mac
[relative links] FrameMaker searches for a relative pathname beginning in the folder that contains the current document
[absolute links] FrameMaker searches for an absolute pathname beginning at the top of the file system. In Windows, the absolute pathname begins with the drive specifier, a colon and a slash. -
How to place content between header and tabs?????
i have header part which has to be constant through out the portal but below that i have 3 links
like I AM employee,employer,broker..
which has to be shown only in home page above tabs..
how can i achieve this..
how to place content between header and tabs..:(kindly help..Hi Samiran
Try these approaches and see if that works.
1. In the Header Section, you header footer shell and add a Header Portlet. This Header Portlet associated JSP file will have all static content in the top section. In the bottom section, add these 3 links say to right hand corner. Show these links only based on some request property like isHome. Now for the main book having Home and other page associate a BackingFile. Within this backing file in the lifecycle methods like preRender or handlePostBack, get instance of BookManager and all the pages and see which page is Active. For that active page check its page definition label which will be always unique. IF the page def label is like home_page_def (this is page def label you give for home page), then set the key value in the request property like isHome=true. By only doubt is after Book backingfile is triggered, the header has to be reloaded, because only then it can pick up the request attributes.
2. Create a brand new portlet like HomePageLinks portlet. Make its Title Property Not Visible, and other user interface properties like NoBorder, NoTheme etc. The associated JSP will have the 3 links you mentioned right aligned. You can use css styles to make it right etc. Now drop this portlet in the Header Shell area. You already have HeaderPortlet in the top, below that you will have this HomePageLinks portlet. Now associate a backing file for this Portlet to show, only if the Books current active page is Home page by comparing the def label etc as mentioned above.
In both scenarios, only concern is when we click on different Pages, the entire portal has to be rendered right from the Top Header. Only then the backing file will set the key, and the HomePageLinks portlet can show or hide accordingly.
Try firing an Event when the Home page is clicked. This listener for this Event can be the HomePageLinks Portlet. I guess Event mechanism should work irrespective of where the portlet is placed. In the event listner, see if you can show/hide this portlet.
The only challenge is Header section needs to reloaded everytime you click on a Tab.
Start putting some backing files and System.out.printlns to see if the Header section gets reloaded on click on any Tabs.
These are just my thoughts over the top of my head. Other forum users can have better alternatives or a different version of above approaches.
Thanks
Ravi Jegga -
How to place image and crop to fit inside vector shape
I'm trying to place an image on top of a vector shape and then i want to trim the edges of the image so it takes on that shape (essentially filling the shape with the image)
I'm also trying to do this with two layers of vector shapes, i want to fit one within the other and not have any over hang.. the top or "filling shape" is an array of hexagons (making a honeycomb like structure) i want it to fit within the underlying oval (lime green one) shape. here's a link if you want to see what i'm doing.. its the one on the right
www.oregonstate.edu/~pearsoan/images/achieve3.ai
How do you do this?Blue,
Put the shaping (vector) path on top of the image, select both, and Object>Clipping Mask>Make.
I cannot open the file to see what there is to see, and I have to leave in a moment.
If you upload an image, using the Camera icon, all helpers can see it here in the thread. -
Need to know how to place a tiling image in the div tags
Let me see if I can explain what I want to do in a way that makes sense.
I have created a box using the <div> I want a background image I made in photoshop that has rounded corners. I need this image to stretch or tile the length and width of the box without duplicating the image in the tile. I don't want multiple rounded corner corner boxes appearing. Just the one stretched.
I am guessing I need to crop the rounded corner top, bottom and take a 1 px tall crop from from the center of the image for tiling and the top and bottom remain fixed in their position.
I don't know how to place these in the box if my assumptions about cropping are right.
I don't know how to stretch the width of the image to fit the width of the box either. Do I need to create a fixed width image the width of the box or can it stretch to fill the width?
Using DW CS6
ThanksTiling would mean duplicating itself horizontally and vertically to appear as though it were tiled (envision a shower wall).
You do not want it to tile it sounds like, but you want the background image to cover the entire background by resizing to whatever size the containing <div> is.
That can be done relatively easily with the css3 background-size property.
The css would look like this...
#container_id {
background-image:url(your_image.jpg);
background-size:100% 100%;
background-repeat:no-repeat;
Then the html would look like this...
<div id="container_id>
your content
</div> -
How to change a MovieClips colour?
When you place a MovieClip on the stage in the properties
window you can set it's tint to a new colour. How do you do this
via ActionScript? I can not find any property in the MovieClip
class for this.
TIA
Kevintweak css styles
Application
selectionColor: #8ABDE4;
themeColor: #84BFE5;
borderColor: #82B5D2; -
AS3 how to put the buttons always on top of the external swf in the code below?
how to put the buttons always on top of the external swf in the code below? I am beginner use to as3, can someone help me?
thanks, for all!!
var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
loader.load(defaultSWF);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
// Btns Universal function
function btnClick(event:MouseEvent):void {
removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
// Btn listeners
eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
stingray.addEventListener(MouseEvent.CLICK, btnClick);
demon.addEventListener(MouseEvent.CLICK, btnClick);
strongman.addEventListener(MouseEvent.CLICK, btnClick);use:
var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
loader.load(defaultSWF);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
// Btns Universal function
function btnClick(event:MouseEvent):void {
removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
addChildAt(loader,0);
// Btn listeners
eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
stingray.addEventListener(MouseEvent.CLICK, btnClick);
demon.addEventListener(MouseEvent.CLICK, btnClick);
strongman.addEventListener(MouseEvent.CLICK, btnClick);
Maybe you are looking for
-
How to Supress the Second Page in Smart form
Hi, I have First page where there is no Main Window and on the Second page is with Main Window.Now lets say if there is item detais then vlaue will be printed on second page but in case there is no Item details so..the second page should not come o
-
I got one of the brand new 21.5 models last month, and in my respects am very happy with it - pleasingly zippy and with no stuck pixels at all, which makes for quite a nice change. But I'm getting a little worried by the monitor hinge - it seems noti
-
I can't transfer my apps to my computer and this is a problem because when you update your iPod you have to transfer your apps to your itunes I didn't have this problem with the computer that I synced the iPod to when I bought it, maybe that might be
-
Enlarging on a legal sheet of paper - LaserJet M1217
I am unable to get the printer to use the full page when enlarging on legal size paper on the LaserJet 1217nfw. The bottom 3 inches of the paper is not used. If I try to change the enlargement setting to force the use of this space, the printer jus
-
Hello i have somehow lost the red yellow and green indicators are the top of safari
Hello I have somehow lost the red,yellow & green indicators in the top right screen in safari and also have lost the "goole glass" search in the top right hand corner of safar. Help?