ActionScript 2.0 :: Menu Component & Window Component?

Jan 16, 2007

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;impor mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var myProfile:Menu = my_mb.addMenu("File");myProfile.addMenuItem({

[code].....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Drag The MenuBar Component From The Component Window Onto Stage

Dec 11, 2004

I'm building this game, and it was working fine, until I used the menuBar component. It's not code related, 'cause i've commented out the script that does things with the menuBar. If I drag the MenuBar component from the component window, onto my Stage , the game refuses to work. If I deleet it (but keep it IN my library), it still doesn't work!. But if I turn the export settings of the MenuBar off, it works! The classes that i'm using for my game are called Node.as, JawBreaker.as The class I want to use to do something with the menuBar is called GameMenu.as (but that doesn't matter, since I commented the calling of that class out).

View 1 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

Put Scroll Of Tree Component In Left Side Of Component Or Creating A Custom Scrollbar For Tree Component

May 20, 2009

is there any way to put scroll of tree component in left side of component or creating a custom scrollbar for tree component

View 13 Replies

ActionScript 1/2 :: Flash Menu Component - Loader To Load An Swf When An Item Is Selected From The Menu

Oct 27, 2006

i created an application and it has a menu bar at the top of the stage it also has a loader component below it. i need the loader to load an swf when an item is selected from the menu. Does anybody know how to code this. I am using the following code:

[Code]....

View 1 Replies

ActionScript 3.0 :: Free Window/Window Component?

Apr 29, 2009

just wondering if there was a free window/window component for as3 that will adress root problems

View 5 Replies

ActionScript 3.0 :: FLV Component Pop Out Window

Nov 8, 2009

I have an flv component in a flash document streaming from a capture card at [URL]

Flash Media Encoder is outputting at 320x240 and the FLV component on the stage is 150x112. The fullscreen button maximizes to the entire screen leaving the 320x240 video stream pixelated and distorted. I want a button to make the FLV component only go 320x240 in a popup window.

View 1 Replies

Flex :: Does An Mx:Window Component Have It's Own ApplicationComplete

Jul 17, 2011

I'm working on an app that, from the Main.mxml, opens one or many Window.mxml instances. When it's done I want all windows to be chromeless so the custom controls need to work. In Main I've added applicationComplete="init();" so the init function gets ran, which contains clickhandlers, which makes the buttons work. However, this way of running an init function doesn't seem to be valid for an mx:Window. I can cheat by not using a clickhandler for the minimize and close buttons with a click="this.minimize();", but I don't know of a way like this to make the move work because it's a MOUSE_DOWN event.

Question 1: Is there a way to have such an init function in an mx:Window?

Question 2: What's a good way to make the buttons on the Window instances all work?

[Code].....

View 1 Replies

ActionScript 2.0 :: Swapdepths On A Ui Window Component?

Oct 7, 2004

The problem i have is that i want to use the ui window component (in order to keep file size down, and it just works well) but i want to use multiple windows on the stage. It was simple to get them to open with PopUpManager.createPopUp and to intialise the close button with deletePopUp(). Now heres the big but i can't get a swapdepths function to work.I have added in an event listener for the close button and the swapdepths but only one fuction will work at a time, ie i can get the swap depth to work but you can't drag the windows or close them, or you can drag and close one window but the other will not do anything until the top one is closed.i know that it's a swapdepth problem but i can't work out where to put the swapdepth in the code to make all fuctions work at once.The code is below

var myq1:MovieClip = PopUpManager.createPopUp(_root, Window, true, {closeButton:true, title:"Question 1", contentPath:'q1'});
myq1.setSize(600,450);

[code].....

View 1 Replies

ActionScript 2.0 :: Swapdepths On A Ui Window Component

Oct 7, 2004

i have been trying to work this out for some time and i can't find any info about this on the web.The problem i have is that i want to use the ui window component (in order to keep file size down, and it just works well) but i want to use multiple windows on the stage. It was simple to get them to open with PopUpManager.createPopUp and to intialise the close button with deletePopUp(). Now heres the big but i can't get a swapdepths function to work.I have added in an event listener for the close button and the swapdepths but only one fuction will work at a time, ie i can get the swap depth to work but you can't drag the windows or close them, or you can drag and close one window but the other will not do anything until the top one is closed.i know that it's a swapdepth problem but i can't work out where to put the swapdepth in the code to make all fuctions work at once.[code]

View 1 Replies

ActionScript 3.0 :: Alert Window Component Alternative

Nov 26, 2007

Does anyone know of a class file or third party component that has the same functions (or similar) of what the alert window component did in flash 8? I am doing this is AS3 obviously is why i need an alternative.Im trying to make a pop up modal window of sorts like the alert window component did.

View 3 Replies

ActionScript 1/2 :: Load Window Component With Button?

Jul 27, 2009

I found two tutorials that both contain pieces of what i am looking for but i cant seem to figure them out and get exactly what i want. Here is the first one[url]...

In the first one, the general idea is what i am looking for. Except that i want to load a movieclip and not an image. My problem in this one is the button component that is used. I have no clue how to skin or customize the button, and i cant find a good tutorial to help me so i figured it might be easier to just change the actionscript for this. I want to be able to create my own button (instance button) and use that so that when people release that button, the movie clip pops up![url]...

View 10 Replies

ActionScript 1/2 :: Assign This Movieclip To Window Component?

Aug 8, 2011

In my application using the window component and dynamically create the movieclip .how to assign this movieclip to window component.

View 9 Replies

ActionScript 2.0 :: Dynamic Text In Window Component

Nov 11, 2009

I have tried a few ways but have failed to get text into a dynamic text field inside the window component. I need to get the following trace command to appear in the window component. I have a workable window component and that is not the issue. I just lack the knowledge of how to link dynamic text in a window that doesn't respond to absolute instance ID scope such as _root.yadayada.[code]

View 0 Replies

ActionScript 3.0 :: Making A Console Window Component?

Apr 24, 2011

I'm trying to make a console for text based i/o. The output window needs to be able to print char by char in multiple colors, wrap horizontally and scroll vertically.Most of that isn't a problem with the default TextField class, but I'm having a lot of trouble getting the colors right.If I use the htmlText property and wrap each character with "<font color=000000></font>" it starts a new line each time I add text.TextFormats don't seem to work at all for some reason. I do something like this:

ActionScript Code:
var tf : TextFormat = new TextFormat();
tf.color = FFFFF0;
textField.setTextFormat(tf);

...and then add the new text but nothing changes. Even if it worked, could I even use multiple TextFormats in a single textfield?I've been reading about this new "Flash Text Engine", and I'm wondering if there's some way that can help me, but I'm having trouble finding enough examples to understand how it works.

View 4 Replies

ActionScript 2.0 :: Box Component That Can Be Used Then Opening A Window In A Webpage

Jan 16, 2004

it's a box component that can be used then opening a window in a webpage...or for a button.

View 2 Replies

ActionScript 2.0 :: Close Flash Window Component?

Oct 6, 2006

Im currently working on a lite fix to ease the closing function of the popup windows in a flash presentation to our customers.Right now i have used the Flash Window component, and the close button in the right corner are the only way to close the window. But are there some way possible to make it possible to close the window by clicking inside off it?

here are the AS code:

Code:

function open_popup(page_url, pageNumber) {
if (zoom_win != undefined) {
return;

[code]....

View 1 Replies

ActionScript 2.0 :: Communicating Through A Scroll Window Component?

Jun 16, 2009

when I needed a method to communicate from the (linked) content in a scroll window component to a dynamically attached mc in front of the scroll window. The code was pretty simple!

Code:
calendarPagesBtn_mc.onRelease = function(){
_level0.slideHolder_mc.attachMovie("calendarPages", "calendarPages", _level0.slideHolder_mc.getNextHighestDepth());
};

And I've been using it quite a lot, as we create a lot of scrolling timelines with clickable callouts.

However now I need to be able to communicate from the attached mc BACK to the linked content of the scroll window. I've tried a few things and nothing's working yet.

EDIT: All I need to do I think is check if the mc in front of the scroll window is empty, but my mind is a blank right now.

View 1 Replies

ActionScript 1/2 :: Loading Window Component With Button?

Dec 9, 2010

I found two tutorials that both contain pieces of what i am looking for but i cant seem to figure them out and get exactly what i want. Here is the firstIn the first one, the general idea is what i am looking for. Except that i want to load a movieclip and not an image. My problem in this one is the button component that is used. I have no clue how to skin or customize the button, and i cant find a good tutorial to figured it might be easier to just change the actionscript for this. I want to be able to create my own button (instance button) and use that so that when people release that button, the movie clip pops up![URL]

View 5 Replies

ActionScript 1/2 :: Window Component - Keep Buttons From Being Active While The Popup Window Is Active?

Mar 26, 2009

I have a window component on my main timeline that gets called up on several instances. When the popup window appears, everything looks fine, except that the user can still click on links that are now behind the actual popup window itself. My question is how do I keep those buttons from being active while the popup window is active?

View 2 Replies

ActionScript 2.0 :: Have Flash8 Menu Component?

Jun 26, 2010

The menu bar is a drop down menu, but I would like to have the menu open upward instead of downwards.

View 3 Replies

Flex :: Cannot See Context Menu On UI Component

Mar 22, 2011

I have a UIComponent (tried it also with Canvas) and some icons in it (sub views). On the UIComponent I defined some extra ContextMenuItems. Now when I'm testing it, the context menu appears only on the subviews (icons) with a right-click. I've checked the documentation but found nothing about required properties for using context menus. Why it's only on subviews?

View 3 Replies

ActionScript 2.0 :: Accessing Movieclip Inside Window Component?

Jan 16, 2007

I'm having trouble accessing some components that reside inside of a movieclip that i'm displaying inside of a window component through the PopUpManager:

Code:
var my_MC = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, { title:"movieClip", contentPath:"my_MC", closeButton:true });

how can i access any components that exist within the linked movie clip in my library? i have two labels that I want to update but can't figure out for the life of me how...

i've tried:

Code:
_root.my_MC.content.<label name>.text = "blah blah blah"

but no worky.

View 1 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

Actionscript 3 :: Control The FLVPlayback Component's Volume Using The Slider Component In Flash?

Mar 20, 2012

I was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:

import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);

[Code]...

But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?

View 1 Replies

Flex :: Custom Context Menu For A Component?

Mar 21, 2011

I have a Flex application, running with Flash Player, not AIR, that contains a Tree that I would like to put a custom context menu on.

Tried just doing <mx:Tree ... contextMenu="{MyClassWithStatic.menu}">, but that didn't do anything.

Went searching, and found this quote from some Adobe docs somewhere

In Flex or Flash Builder, only top-level components in the application can have context menus. For example, if a DataGrid control is a child of a TabNavigator or VBox container, the DataGrid control cannot have its own context menu.

so went upwards, trying each parent element until I reached my <Application>-element, which is consistent with what they wrote.

Tried making a Flex component, based on Group (the default) which contained my tree, and the context menu on the top-level element there, hoping it would work, but to no avail.

Is there any other way to manage this that I haven't found yet?

The code I use to create the menu:

var menuItems:Array = [];
var rename:ContextMenuItem = new ContextMenuItem("Rename");
rename.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,

[Code].....

View 3 Replies

ActionScript 2.0 :: XML Menu Component - Creating Subclass

Mar 18, 2004

I am in the progress of creating a XML menu component, and I am going well so far. My code is a bit messy and currently for the button press actions for the menu items I have done this below:
(a method used by Senocular in the xml menu tute)

Code:
Actions = Object();
Actions.loadGallery = function(xml, name) {
_root.transfer = new Object();
_root.transfer.galleryData = xml;
_root.transfer.galleryLabel = name;
[Code] .....

This is just sitting in my main class (called XMLMenuClass) and is not a prototype as you can see, I would like to know how to re-implement this as a class of its own, i.e. a subclass of the main class called MenuActions?

View 9 Replies

ActionScript 1/2 :: Get The Component's Single Lable Without Having All The Labels Of The Component Appearing?

Jul 18, 2010

Is it possible to get the component's single lable without having all the labels of the component appearing? Like, I'm trying to include the label into a text's .text the code I'm using now is MoVName.text=MoV.labels; but it gave me all the labels that were included in that particular component.

View 12 Replies

Actionscript 3 :: Flex - Access Component Inside Another Component In MXML?

Sep 3, 2009

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.

View 4 Replies

Flex :: Access The One Component Properties Form Other Component With Out Binding?

Sep 21, 2011

I would like to bind two components with out binding and which resides in different MXML.for eg: A.mxml has textinput and B.mxml has a combobox when choose one item in B.mxml selected item should be display in A.mxml textinput.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved