Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Window Component And Masking



My objective:1) load a blankMC from the library in to a custom component. The custom component is made up of a window component.2) from the blankMC, create a maskMC and a containerMC3) load an external swf in to the containerMC4) use maskMC as containerMC's maskI have completed all of this inside Flash authoring environmentIf i run my swf as a stand alone, the masking no longer works for certain swfs.



Adobe > ActionScript 1 and 2
Posted on: 01/16/2007 05:21:43 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Masking Component
Hi all,

I'm trying to use the newsblock component from flashcomponents.net (http://www.flashcomponents.net/compo...iew.php?id=376)
with a mask. However this does not work. As soon as I put the component on a masked layer it won't work anymore. Got it up and running fine without the mask.
Thanks for any help

Masking Component
Hi all,

I'm trying to use the newsblock component from flashcomponents.net (http://www.flashcomponents.net/compo...iew.php?id=376)
with a mask. However this does not work. As soon as I put the component on a masked layer it won't work anymore. Got it up and running fine without the mask.
Thanks for any help

Masking A Dynamic Component
I created a dynamic table that shows countries and values for each country (from a text file).

That table was created with attachMovie

I want to display on the stage only a small portion of the table, so I want to mask it.

I tried using a mask in the upper layer but then it didnt display the data.

Note: The move hierarchy is: _root > component Table > Movie Clip Table > (Script which create the table).

¿Is there any way to do it by Actionscript or with scrollpane component? (or other way).

Ive tried with scrollpane but it dindnt show the dynamic data, only the graphics.

Thanks in advance,

Asterix.

NO Masking In Scrollpane Component
i followed one of the tutorials that uses the scrollpane... I thought i followed directions perfectly, but the movie clip is not being masked while inside the scrollpane. The text comes out either end. I don't understand what's going on.

Window Content Management (using Window Component)
Hello,

I usually preffer clean code, so this is my problem:

I'm writing the following code in the .fla file:
var main:SmthMain = new SmthMain();

And the rest of the code is in .as files only.

I can't seem to find a way to control the content of a window (mx 2004 component). That is asigning handlers on buttons, retrieving values from textinputs and so on.

onLoad and onComplete does not have the content fully loaded.
only onEnterFrame seems to work but this is bad coding.

I could use a sample code. Maybe from someone that really has it with AS2.0 and MX 2004 components.

Window Content Management (using Window Component)
Hello,

I usually preffer clean code, so this is my problem:

I'm writing the following code in the .fla file:
var main:SmthMain = new SmthMain();

And the rest of the code is in .as files only.

I can't seem to find a way to control the content of a window (mx 2004 component). That is asigning handlers on buttons, retrieving values from textinputs and so on.

onLoad and onComplete does not have the content fully loaded.
only onEnterFrame seems to work but this is bad coding.

I could use a sample code. Maybe from someone that really has it with AS2.0 and MX 2004 components.

Question About Masking Component Items
I have scrollable text in one of my scenes. Before it apperars i want it to fade in using a mask. Therefore my question is can you use masks with componet items such as text with scroll bars?

Masking A Component In Flash MX 2004
Hey guys I have a problem:

I have this movie which has a component (combo box inside).
The problem is that the movie is masked and when I preview it I only get something like a tinted combo box. I don't see anything...But when I try to click it the drop down info is ok I mean I see the drop down list but not the drop down button and first data inside.

Masking TextArea Component- POSTED MY FLA
Ok, I have tried over and over to mask the TextArea component but the text never appears! I tried to embed the font but i just can't do it! Well I posted an Fla of what i am tried to accomplish so if anyone know how to do this please give it a shot and tell me how you did it. I am desperate Thanks

Mike

Masking A Component In Flash MX 2004
Hey guys I have a problem:

I have this movie which has a component (combo box inside).
The problem is that the movie is masked and when I preview it I only get something like a tinted combo box. I don't see anything...But when I try to click it the drop down info is ok I mean I see the drop down list but not the drop down button and first data inside.

Masking TextArea Component- POSTED MY FLA
Ok, I have tried over and over to mask the TextArea component but the text never appears! I tried to embed the font but i just can't do it! Well I posted an Fla of what i am tried to accomplish so if anyone know how to do this please give it a shot and tell me how you did it. I am desperate Thanks

Mike

Masking Textarea Component Content
How can I mask the text within a textarea component? If this is not natively possible, is it possible to mask the actual textfield?

Any help appreciated :-)

Window Scroller Masking Problem
Hi - Ive managed to tweak a scroller I found somewhere and have it resizing to fit a window (even with my limited coding knowlege)

The problem Im now encountering is that I cant get the masking of the content to work correctly (ie scroll all content when the windows small and none when its large)

Ive uploaded a zip of my progress here - http://www.contrastmedia.co.uk/downloads/

- if anybody could help in ANY way it would be much appreciated, as at the moment I see this playing on my mind all christmas until I get it woring :)

many thanks

Device DropDown Component Not Compatible With Masking?
Hello there,

Not long a go I starded using the Flash-components, helps to do some things a lot quicker and easier. Unfortunately I found a annoying problem with the "Device DropDown Component" and I don't know if there is a problem with my flash or a bug in the component, anyway, do what I do I just don't get it fixet?

Problem:
My idea whas to make a simple Form-Window with some Device DropDown Components in it, until here it works fine. Problem starts, when I Mask the Form-Layer the text inside the Device DropDown disappears?
Why and what can I do against it?

Thanks for taking your time, so long Fery

Device DropDown Component Not Compatible With Masking?
Hello there,

Not long a go I starded using the Flash-components, helps to do some things a lot quicker and easier. Unfortunately I found a annoying problem with the "Device DropDown Component" and I don't know if there is a problem with my flash or a bug in the component, anyway, do what I do I just don't get it fixet?

Problem:
My idea whas to make a simple Form-Window with some Device DropDown Components in it, until here it works fine. Problem starts, when I Mask the Form-Layer the text inside the Device DropDown disappears?
Why and what can I do against it?

Thanks for taking your time, so long Fery

Window Component With Loader Component
I have the SWF loading into a shell using a Loader component. Within one swf is a trigger for a window - which ,suprise suprise, doesn't work. It works fine if I access the swf directly just not when loaded through the shell. I have added the component to the shell fla and then although a window component loads up, the content (which is linked in the library) is not found. Anyone come across this before?









Attach Code

correctAnswerBtn.onRelease = function() {
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true, {closeButton:true, contentPath:"CorrectAnswers"});
my_win.title = "Correct Answers";
var winListener:Object = new Object();
winListener.click = function(evt_obj:Object) {
my_win.deletePopUp();
};
winListener.complete = function(evt_obj:Object) {
my_win.setSize(my_win.content._width+7, my_win.content._height+32);
my_win._x = ((Stage.width/2)-(my_win._width/2));
my_win._y = ((Stage.height/2)-(my_win._height/2));
};
my_win.addEventListener("click", winListener);
my_win.addEventListener("complete", winListener);
};

Menu Component And Window Component
I have a dilema. I'm trying to create a flash application that is basically a rich text editor

well, I'm trying to make a menu component to open a window component which has a close button

here is a part of my code (attempt 1):

PHP Code:



import mx.controls.Menu;import mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var my_mb:MenuBar;var myProfile:Menu = my_mb.addMenu("My Profile");myProfile.addMenuItem({label:"View/Edit Profile Information", instanceName:"newInst"});myProfile.addMenuItem({label:"See My Profile", instanceName:"openInst"});//THE LISTENERSvar mbListener:Object = new Object();mbListener.change = function(evt_obj:Object) { var menuItem_obj:Object = evt_obj.menuItem; switch (menuItem_obj.attributes.instanceName) {  case "openInst":  var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true, {closeButton:true, contentPath:"openDialog"});    var winListener:Object = new Object();    winListener.click = function() {        my_win.deletePopUp();    };    my_win.addEventListener("click", winListener);  break;} 




The problem with this script: when I test the movie, the movie freezes and Flash asks do you want to disable the script and etc..

so I tried doing the same by attachMovie() :

PHP Code:



//THE STUFF FROM BEFORE  switch (menuItem_obj.attributes.instanceName) {  case "openInst":    _root.attachMovie("Window","openInst",this.getNextHighestDepth());    openDialog.setSize(623.9,310)    openDialog.closeButton = true;    openDialog.contentPath = "openDialog";    openDialog.title = "Open Document";//HERE IS THE PROBLEM:    openDialog.close = function() {        trace("Closing...");        removeMovieClip(_level0.openInst);    }  break; 




The problem from the 2nd Code Box: I can't close the box. When I press the X, it won't close it.

So...basically what I'm asking is...How do I call a Window Component from a Menu Bar Component and let the Window Component also close correctly when the user closes it.

Thanks in advance for your great help!

AS2: Menu Component & Window Component
well, I had a question Yesterday, and posted in the Flash 8 Section of this forum...well, I have a question now...When I open a Window Component(with a movie clip inside it ...ofcourse) via Popup Manager from the Menu Component, the Window opens up, but I can't go back to the menu and open it. Any suggestions on how?

Here is a part of my code (which I believe will summarize the rest of my code):

PHP Code:



import mx.controls.Menu;import mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var myProfile:Menu = my_mb.addMenu("File");myProfile.addMenuItem({label:"Open", instanceName:"openInstance"});var mbListener:Object = new Object();mbListener.change = function(evt_obj:Object) { var menuItem_obj:Object = evt_obj.menuItem; switch (menuItem_obj.attributes.instanceName) {  case "seemyProfileInstance":    var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Open Document", contentPath:"openDialog", closeButton:true});    my_win.setSize(320, 240);        var winListener:Object = new Object();    winListener.click = function()     {        my_win.deletePopUp();    };    my_win.addEventListener("click", winListener);  break; 

Masking Behaviour : Display Objects Vanish When Window Is Maximised
Hi,

I'm a bit confused about the behavior of my flash movie.

I have a container display object on the stage and this container display object has a mask applied to it.

Everything works normally as expected until I maximize the swf window. When I do this the container display object disappears??

Could somebody help me diagnose this problem?

Thanks,
dub


ActionScript Code:
var clipContainerClass:Object = getDefinitionByName("clipContainer") as Class;
            clipContainer= new clipContainerClass();
            clipContainer.x=0;
            clipContainer.y=200;
            clipContainer.height=200;
            clipContainer.width=300;
            addChild(clipContainer);

            var clipContainerMaskClass:Object = getDefinitionByName("clipContainerMask") as Class;
            clipContainerMask= new clipContainerMaskClass();
            clipContainerMask.x=0;
            clipContainerMask.y=200;


            clipContainer.mask=clipContainerMask;

Window Component
Hello...

I'm using the window component (MX 2004). Now in there is easy to put a close button, but i also need to put a maximize and minimize button there.

Can anyone help me on how to get this effect, since the component only have the close method


Thanks for your help

Window Component Help
How in the world do I actually get the close button to work. I have it enabled where do I go from there.

Window Component
Anyone know where I can find more information regarding the Window Component that is included with Flash 2004 MX. I see it as a component in the program UI but can't seem to find any information regarding how to use it.

Help With Window Component
Is it possible to use the same highlighted border on the textfield component in other components?

i would like to use the highlighted border on the window component when it is selected. is it possible?

Thanks

Paul

Window Component From A To Z
Hallo, all day I have been looking for a tutorial which would help me to understand how to create, modify and use the window component. I am a complete begginer so I don't understand it when I see enormous, complex code... than I don't know what to do with this at all. Where to paste it... and suchlike...
The question is: do you have some intelligible tutorial on this subject? I just want a button, that when is clicked, cause an appearance of a window. It would also be nice if the window had function to drag it. That's all. Any special effects aren't needed :-).
Hope this is not a problem.

[F8] Window Component...
Hello,

How do you use the window component? It's ever so confusing.
How do you make it appear, on button click (With Parameters)?
How do you make it dissapear, when you close the button?

Any help?

[F8] Window Component..
hw can i make the wnd component

to be resizable ..?
can annyone help me

and thnx for the button help...

Window Component Help
Can someone please help me. I am trying to make a window component pop up when a button is pressed. I successfully made this in a blank flash document using examples from these forums. But when i use the same method in my existing flash document, nothing happens when i click the button. I added a window component to the library, and renamed the button instance, so I know it is not that. I am using a non existant contentPath, so it would give me an error, but nothing happens when i click the button - no error, no window - nothing. Can anyone tell me why this might be? Thank you

Using Window Component
Hi, is this possible.?

Swf A launches Window component (createPopUp) and loads in Swf B.

Swf A uses LocalConnection() to pass variable to Swf B.

My problem is I cannot get Swf A to talk to Swf B when Swf is in a Window Component. Standalone players work fine.

Please can someone get back to me, its a major roadblock :(

Cheers!!
M

Window Component
Hi all,

I am currently working on a FAQ application, the app is working better than I expected and I have learnt a hell of a lot just with this simple project. To make my application look more pleasing I used the window component, which I need to keep as the tile of the window is taken from a global variable depending on what the user selects from two diferent combo boxes.

I have just found out that the window component can be moved by the user which is not what I wanted to use it for, it was purely for the design and layout. Is there any way to stop the windows component dragable? Your help with this would be appreciated.

Using The Window Component
Hy,
Could someone help me out with the code for the Window component in as 2.0 plz?
For example if my button name is "win_btn" and the window is named "window".
:D....thx....





























Edited: 06/13/2007 at 12:46:38 PM by vedtam

Window Component, Swf, And PHP
Hi everyone,

I have a simple mail form, which communicates with a PHP script on the server. When I go to the swf directly it works just fine. When I put it inside the window component it stops working. I think it has something to do with how the data gets sent from the window component.

Anybody have a suggestion what to do?

Thanks,

- Jan

AS3 Window Component
I am currently searching for an AS3 Window Component with similar functionality to the old AS2 one. I have been unable to find one. Does anyone have any suggestions?

Thanks,
Patrick

Window Component
How do I control the window component through a button?? Can I press the button to make the component appear? what's the deal?

Window Component
hi for all, any one can help me ? i want use the window componnent but i dont know apply one swf movie inside this! if any know how do this ! post pleae
-->
_thanks.forAll(aovivo);

Window Component
What exactly is the window component? and how do you use it? I tried reading some stuff about it in the help files but kind of got confused.

Thanks

Window Component
Any way to make the window component not drag? I tried stopDrag() but of course that doesn't work hehehehe.


Cheers!

Help With Window Component
Is it possible to use the same highlighted border on the textfield component in other components?

i would like to use the highlighted border on the window component when it is selected. is it possible?

Thanks

Paul

Window Component
I want to make a window component play an swf. KEEP READING DON'T EXIT NOW. I got it to that. But when I click the "x" to close to window it closes. Then I click my window opener button on the stage to open the window again it opens fine. But it has no video unlike the first time I opened it and it has 2 clips echoing each other. I know it is really weird and complicated.Quack Quack Quack! Look at the FLA I explained everything clearer in the FLA. PLEASE REPLY.

:flower :

Window Component
Guys, how the hell do you get a button to display into a Window Component??
Or for that matter...get an empty movie clip that has been created using code to display into the window?


newName.title = "Sample Window";
newName.closeButton = true;
newName.contentPath = "ani"; <----- It works if the MC is within the library, but anything dynamically created and attached doesnt work, same goes for trying to add a Button component to it - it doesnt work for me.
newName.setSize(500,500);

Window Component
How do I control the window component through a button?? Can I press the button to make the component appear? what's the deal?

Window Component
hi for all, any one can help me ? i want use the window componnent but i dont know apply one swf movie inside this! if any know how do this ! post pleae
-->
_thanks.forAll(aovivo);

Window Component
What exactly is the window component? and how do you use it? I tried reading some stuff about it in the help files but kind of got confused.

Thanks

Window Component
I would like to use the window component in flash.  When a user clicks on a thumbnail pic then I would like the window component to open displaying the picture.  Anyone know of a good tutorial covering the window component?  I can't seem to get it to work.



Window Component
When you set the window component to have the little "x" in the corner...how do you make the window close?

Also how do you make it so that when you click a button it opens and plays a movie saved in the same file?

Window Component Question
I have created a Window component properly and am trying to change the color of the title bar, but have been unsuccessful. I have tried all of the setStyle() options and it seems none of them allow you to change the title bar background color. I can change the text color on the title bar but that's it. Any thoughts??? Thanks in advance.

Window Component (MX 2004 Pro)
Hi
Im having a bit of a hard time trying to edit the appearance of the 'Window' component (MX 2004 Pro). I would like the component to be totaly transparent, but yet still be able to see the contents of it. If this is not possible, how about just making the title bar dissapear/transparent? If this is still not possible - does anyone know how this component works, so i could make a version for myself?
Sorry if the answer is blatantly obvious, but im sorta new to Flash.

Thanx in advance,

KungFuSheep

Window Component Won't Close... Please Help
I can get the window open, no problem, with the first part of the code but the rest of the code won't close it. Anyone know what's wrong with it? Thanks


PHP Code:



// open new window for charts
openWinListener = new Object();
openWinListener.change = function(eventObject) {
    newWindow = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, false, {title:tfStats_list.selectedItem.label, contentPath:statsUrlHolder_label.text, closeButton:true});
    newWindow.setSize(307,234);
    pBar.source = newWindow;
};
_root.tfStats_list.addEventListener("change", openWinListener);
//
//close charts window
closeWinListener = new Object();
closeWinListener.click = function() {
    _root.newWindow.deletePopUp();
}
newWindow.addEventListener("click", closeWinListener);

[HELP] Add Content To Component Window
How can i add dynamicly content that i create via. loadClip to a window component?

:/ ..

Thanx ..

[help]Spawning Window Component
Hi evryone!

I'm using this code:

Code:
myWindow = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, {title:"Login", contentPath:"login_mc"});


To spawn a window component. The content is loaded inside the window, but for some reason, the text inside won't show. The input txt and the button DO load, but the txt above it doesn't. How come??

Greets,

Dauntless

Copyright © 2005-08 www.BigResource.com, All rights reserved