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.
I need to use the window component in flash...
"Nickels55" <[email protected]> ha scritto
nel messaggio
news:eh3do3$9o9$[email protected]..
>
http://www.flash-db.com/PopUp/
>
> You need to add windowname.focus(); to your pop-up code
Similar Messages
-
Problem loading window component more than once
I have a swf with a button that opens a window component
(from my library). it loads fine and also closes fine when I click
the close button in the window. but when I try to open the window
again, it actually loads again, but it stalls and locks up
immediatley. can anybody tell me what is wrong with my code? I also
was going to have different buttons to open different windows (each
swf playing a song and has written lyrics). it does the same thing
when i load the first window, close it, then try to open a second
window. it stalls and locks up.
please, I really need some help!Ok it sort of works... here is my code:
on (release) {
trace("button works");
win.title = "Yellow Birthday Package";
win.closeButton = true;
win.contentPath = "yellowPack";
win.setSize(550,500);
var listener:Object = new Object();
listener.click = function(){
win._visible = false;
win.addEventListener("click",listener);
It order to make it work, the window component has to be on the stage but i want it to popup only when the user clicks on the button. So the window should be hidden/invisible when the page first loads. I tried changing win._visible = true; but that did nothing.
The other problem is that the movie clip inside the window, isnt aligning center. i can only see a corner of the movie clip. in the top left. I havent tested the whole thing live though! -
Loading Window Component with Button!
Hello! 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:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveD ocs_Parts&file=00004289.html
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!
Now in this second tutorial that i found:
http://www.getw3help.com/2008/07/window-component.html
Its pretty much exactly what i want and it loads a movieclip. Problem is, when i add the code to a button, it doesnt work!
Can anyone help me? Hope i am clear in my explanation!
Thanks!Ok it sort of works... here is my code:
on (release) {
trace("button works");
win.title = "Yellow Birthday Package";
win.closeButton = true;
win.contentPath = "yellowPack";
win.setSize(550,500);
var listener:Object = new Object();
listener.click = function(){
win._visible = false;
win.addEventListener("click",listener);
It order to make it work, the window component has to be on the stage but i want it to popup only when the user clicks on the button. So the window should be hidden/invisible when the page first loads. I tried changing win._visible = true; but that did nothing.
The other problem is that the movie clip inside the window, isnt aligning center. i can only see a corner of the movie clip. in the top left. I havent tested the whole thing live though! -
Window component / external swf - plz help :( !!
Hi,
any clues here would be appreciated, its kept me up lately.
My flash app consists of a main swf, a button on the stage
which when clicked creates a Popup and loads an external swf like
so
myWindow = mx.managers.PopUpManager.createPopup(_root,
mx.containers.Window, true, (title:"My Title",
contentPath:"Status.swf"});
so far so good...
After I create the window and load the external swf I use
LocalConnection to pass values between the swfs eg.
sendingLC = new LocalConnection();
sendingLC.send("lc_name", "myMethod", txtUniqueID);
now i can pass values between swfs fine if I run the swfs in
separate players (or debugging both swfs in flash mx), but I cannot
pass in a value to a swf that is loaded in a window component into
the main swf
Would be really grateful if someone could post a sample fla
of the Window component loading external swfs and passing values
between the swfs or some ideas about how to achieve the same thing.
Thanks
MikeSkip the hub and use one of the rear ports on the computer.
-
Hi all,
I've got a problem with a Flash application I'm developing.
I'm creating an application with multiple nested screens, each of
these screens is a Window component. The problem that I'm having is
that if I move a Window by dragging it then set its "_visible"
property to false then set it back to true, any other components
inside it appear empty (for example text areas lose the text
within, data grids lose the data within etc), sometimes you'll also
get two copies of the Window!
It's really easy to recreate!
If anyone knows any way around this, I'd greatly appreciate
it...
Thanks,
Lee.Bump :-)
Anyone?
Thanks in advance!
Lee. -
Steps to create a custom Window component?
What steps do I need to take to create a custom Window component? My approach now results in the component being uneditable in design view. What I do is simply select "New > MXML component", base it on spark.components.Window and supply a filename. I tried with a Panel component and that works fine.
Hi,
Step by Step creation of SAP Payroll Funcitons:
1) Follow the menu path
Human Resources>>Time Management>>Administration>>Tools>>Funtions/Operations
or transaction PE04. Enter a four digit name for e.g ZIABC, and press the create
button, enter the description. On creation the system proposes the name of
the routine use it, or enter a name of your choice by selecting the option 'Self-defined'.
2) During the execution of payroll some tables are filled with wage types and there amounts
to make these tables available to your routine enter the name of the table for e.g (RT or
CRT) in the input parameters, and to make the changes done to the data in the tables
avaiable to the payroll enter the name of the table in the Output parameters as well.
Input Parameters
Ctry Num Object Name
99 1 RT
99 2 CRT
and same shall be done in the Output Paramters if required.
3) Create an include in the program PCBURZ990 (using Transaction:
SE38), in which create a subroutine with the name supplied by SAP or the
name selected by you during Funtion creation,
in our case, it is FUZIABC.
Note: The program PCBURZ990 is in SAP Namespace, so an Access Key
will be required before you can proceed. But it will not be overwritten during any upgrade.
*Example of the subroutine
FORM FUZIABC.
*enter the code
ENDFORM.
4) After this activate the program the Funtion and add it in the schema used for payroll processing.
Reward points if helpful.
Regards,
Manoj. -
How To Use a Custom Close Button In Window Component
Hello,
I have a window component, with the default close button
turned off, and a new custom close button added to the movie clip
that is displayed inside the window component. How do I get a click
on the close button to close the window?
This is the code I currently have to create the window (and
the listeners to close the window using the default close button):basicalyyou have to use
myWindow.deletePopUp();
if my memory serves the content mc is loaded into a mc called
contentHolder, inside the window component, so
if you are referencing the window from the scope of your
loaded mc it will be
this._parent._parent.deletePopUp();
or if from the button's scope
this._parent._parent._parent.deletePopUp();
try traceing the parantage down til you hit the window. -
I just bought a 2013 late model Mac Book Pro Retina and am wondering if it is worth installing windows through boot camp.
If I install the windows component in order to run an exe file and its component "Declans Korean Flash Cards"... will it make my mac suseptible to viruses overall due to having a windows component? also will it make my mac slower as wellIf you are only going to use one or two window only programs then I wouldn't waste the space. Try WinonX it allows you to install exe. Files on Mac without installing windows.
-
Don't know how to close UI-Window Component
I don't know how to write a close function for UI windows
component.
This is what i did.
1) Dragged windows UI component to the library.
2) Dragged button from UI to stage
3) Gave instance name to the button as my_button
4) For frame 1, i added this actionscriptthat will create the pop up.. you will need another button if
you want to close it and make a call to the window.deletePopUp()
method -
How to center mx:window Component in adobe air
Hello Friends
i am making a simple application in adobe air 2.0 .In this application i made a seprate window on some button click.but every time it open with random positoning i just want to center that window component.if any body having any idea then please guide me.
Thanks and regards
Vineet OshoThis depends on the type of server from which you are downloading the files. For example, if you are downloading the files from an HTTP server, and the server provides "Last-Modified" values in the HTTP response headers, you could use the following ActionScript code to determine those values:
var urlReq:URLRequest = new URLRequest("http://www.example.com/");
var urlStream:URLStream = new URLStream();
urlStream.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, statusListener);
urlStream.load(urlReq);
private function statusListener(event:HTTPStatusEvent):void
for each(var header:URLRequestHeader in event.responseHeaders)
if(header.name == "Last-Modified")
trace(header.value); -
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?There is a discussion of modules and popups on my blog
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui -
Hi, I'v inserted a Window Component to my movie and got it
all to work perfectly. Now the problem I am having is that I want
to insert another windows component but it will not let me change
the Linkage Identifier...I can't even see the properties of the
component. Every time I dbl-click on it, it says; "Create an
instance of this SWF symbol and edit its properties using the
Parameters panel...".
Can anyne help me? What I want is to have different window
components in my movie that each get executed by the click of
corresponding button.
Thank youYou are seeing that alert when you double click on the
component in the Library. That is your "master" component. To set
or change the properties of a component instance by selecting the
instance on the stage and then opening the Parameters tab of the
Properties window.
If you want a second Window component in your movie, just
drag a new instance of the component from the Library window, give
it an instance name and set unique property values for that new
instance. -
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,
- JanThis is the AS that is used in the form. When I navigate to
the swf directly, it works like a charm. When I load the the swif
with the form into my popup window it stops working. It seems that
the actionscript goes through the motions but doesn't receive a
response from the server.
The setup is as follows: On the main timeline I have a
button, which opens the popup window, in which the
"contactform.swf" loads. The attached ActionScript is in the 1st
frame of the actions layer in contactfrom.swf
Any help is greatly appreciated.
- Jan
The swf can be viewed at
SWF
and to view the swf in the popup window goto
Click Button
at Top -
I have created a flash window component that pops up, every
thing works ( it moves, it displays the content and closes) but it
disables everything else. is there anyway i can enable the entire
movie aswell as the window?
JakBTW, this also happened with the List component, and in
v10.1.0 aswell.
If you're interested in more about this bug, bowl on over to
http://www.experts-exchange.com/Web_Development/Software/Macromedia_Director_Video_Softwa/ Q_23580077.html#a22076034
As for a solution...
Turns out that the factor that makes this happen is if
backgroundAnimation is off.
Turn it on, and the issue disappears.
I did this in the projectorName.ini file, with the line:
[Settings]
BackgroundAnimation=1
or, if you're creating a projector, and not using a .ini
file, by checking Background Animation in the publishing settings
dialog. -
Hpqdirec.exe has stopped working; "This program requires a missing Windows component"
Anytime I try to access the HP solution center I get a message pop-up. It is from Windows & says: "This program requires a missing Windows component. " "This program requires flash.ocx, which is no longer included in this version of Windows." How do i fix this????
Dear Customer,
Welcome and Thank you for posting your query on HP Support Forum
It looks like you are facing issues with regards to one of the Windows component which is missing
We will surely assist you with this issue
Please click on the below shown link to find the steps involved in resolving the issue
http://tinyurl.com/khb65xv
You can Check your warranty Here to verify the status if required
Hope this helps, for any further queries reply to the post and feel free to join us again
**Click the KUDOS star on left to say Thanks**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
Thank You,
K N R K
Although I am an HP employee, I am speaking for myself and not for HP -
Im programatically creating a Window component with a close
button using
the Tween class as animation.
When not using the Tween class all is fine but when I use the
Tween
clase window appears without the close button?
Any ideas why?
This is the code":
interactividad.onRelease = function(){
import mx.managers.PopUpManager;
import mx.containers.Window;
pop.start();
var intera:MovieClip = PopUpManager.createPopUp(this, Window,
true,
{contentPath:"",closeButton:true, title:"Interactividad A"});
mx.transitions.TransitionManager.start(intera,
{type:mx.transitions.Zoom, direction:0, duration:1,
easing:mx.transitions.easing.Bounce.easeOut, param1:empty,
param2:empty});
intera.setSize(750,500);
intera._x = 25;
intera._y = 75;
var twListener:Object = new Object();
twListener.click = function(evt:Object){
pop.start();
evt.target.deletePopUp();
intera.addEventListener("click", twListener);Fixed. I was tyring to publish version 6 as 2. Tried v8 as2
and it worked with no errors. I then backed my way back down to 6
as 2 and not problems.
Maybe you are looking for
-
How do you share same iTunes account on two iphones?
With iCloud and iTunes my two iPhones now swap contacts, calendars, etc and everything gets mixed up. How can I have two users on the same iTunes account but keep all our content separate?
-
Need advice with upgrading to a new HD
Hello, all. My available hardware: MBP 13-inch w/160GB HD running OS X Lion 500GB external firewire HD which I exclusively use for Time Machine 8GB USB flash drive 500GB internal 2.5-inch HD which I intend to install in the MBP USB 2.5-inch HD enclos
-
Multiple a/c assgt SRM PO - Error in process
Hi all, SRM 5.0 SP 12 ecs When I create a purchase order with mutliple a/cassignment in SRM and order it,it gets replicated to ECC with the indicators "Confirmation-Related Invoice Verification" and "Confirm Performance of Service/Goods Receipt " che
-
Hi, I am using the Jdev 11g. is there any component which will take array of images path and rotate it. my problem is -- I have n number of images and i want to show it in rotating fashion. please tell how will i do it using the ADF component. Thnaks
-
I have JscrollPane on that I am placing some JGraph symbols.When I drag that symbol towards right and down side of scrollpane,horizontal or/and vertical scroll bar appears.But when I drag symbol towards left and up side of scrollpane,scrollbar doesn'