Question about Operating Systems

1 Answer

HELP IN CHANGING COLOR FOR MAPS

Hi,
I am Anand from India I have a problem in flash and I am new to action scripts

I have created a map in flash. when I take mouse to select a city the background color changes and If I click it the color changes and immediately after releasing mouse it turn to previous color.

I want the following

If I click a city, the color should stay stable until I click it again.
If I click it once again, it should come to its original color

example:-

First Color -- Red
Mouse Over -- Blue
Click Once -- Green
Click Second -- Red

Please help me in this.

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Expert
  • 96 Answers

You're going to need some 'if then statements' linked to the color of the city. and some global procs for them so that they can tell the program what state they are in.
on mouse down-action x-
action x
if city.rgb=(rrr,ggg,bbb)
then city.rgb = (rrr2,ggg2,bbb2)
end

Posted on Nov 27, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

I need a free copy of a world map that shows all the world's time zones, preferably in colour (for my students) Thank you Regards, Barry


Hi,

This is a very large and easy to read map of the world with time zones: Map 1

This map is a lot more detailed but a little bit more difficult to read: Map 2

Hope this helps.

Mar 26, 2011 | Operating Systems

Tip

Ubuntu Nautilus in Action


1.Windows use Windows Explorer, its counterpart in Ubuntu
the Nautilus (file manager in Gnome environment).

2.Nautilus can offer us much more than that, it is enough
to wish to see Nautilus in real action.

3. Nautilus scripts are very powerful
they provide new ways to Handle files.
Right-clicking will become your new powerful weapon.

8e8c625.png

(1.A) Add a nautilus script:
System> Administration> Synaptic Package Manager
When you open it, you do Reload, Search and install:

nautilus-image-converter
nautilus-wallpaper
nautilus-script-manager
nautilus-script-collection-svn
Nautilus Subversion Management Scripts
nautilus-script-audio-convert
nautilus-share
nautilus-actions
nautilus-gksu
nautilus-open-terminal
rar
unrar


(1.B) After the installation:
Applications> Accessories> Terminal
When you open this copy it (when you ask for your password, type):

gconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir true

(1.C) Rise of Ubuntu and re-entry
System> Quit> Log Out


(1.D) Now you are quite prepared to see the Nautilus in Action

When you right-click, you get new opportunities in addiction,
whether you are on the desktop or in Nautilus, above pictures, etc..

Right-click easy to get:
-Set as wallpaper
change-size image
-open as root (administrator)
-Open Terminal here
-When you have over a file,
Right click> Create Archive. ZIP or. Rar ... the choice is yours ... etc.

on Jan 13, 2010 | Operating Systems

1 Answer

How to download dota?


www.getdota.com
download the script, then search for a file in your computer that is something like

c:/warcraft3/frozenthrone/maps/downloads

^ something like that

Then place script in the map download folder, then you will have it.

I am a GM on Dotacash.com btw!!

Mar 18, 2011 | Operating Systems

1 Answer

Hi, someone change my possword i cant log in what should i do?


Hi,
You need to boot into safe mode and then you will need to create a new account or profile. after login in your new profile you would be able to delete the account you are not able to login right now.
There is no way to get the password.

Thanks and Regards
Anand Sachan

Oct 25, 2010 | Operating Systems

1 Answer

My computer is not creating Restore Points... yes it's turned on... yes I know how to do a manual... but it disappears when the next Restore Point is created... can you help?


Creating a System Restore point using a shortcut For a more elegant way to create a System Restore point using Script in Windows Vista, check out our article Create System Restore Points Quickly using Script in Windows Vista and Windows XP.
Alternately, you may use the method below:
Copy the contents below to a Notepad document, and save it to a file name with .vbs extension (Example: createrp.vbs) and close Notepad.
set SRP = getobject("winmgmts:\\.\root\default:Systemrestore")
CSRP = SRP.createrestorepoint ("Created a Restore Point now", 0, 100)
If CSRP <> 0 then
Msgbox "Error " & CSRP & ": Unable to create System Restore point"
End if
Right-click on the Desktop and select New - Shortcut
Create a shortcut with the following target:
wscript.exe c:\scripts\createrp.vbs
Note: The above assumes that the createrp.vbs script is present in the c:\scripts folder. If that's not the case, change the Path accordingly.
Name the shortcut file name as Create Restore Point
Running the script To create a System Restore point, run the script with elevated mode. To do so, right-click on the newly created shortcut (Create Restore Point.lnk) and choose Run as administrator. When you are prompted for an administrator password or confirmation, type the password or provide confirmation. A System Restore point will automatically be created.

Nov 23, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

How to do Printer Mapping through log on Scripts


Goto Active Directory Users and Computers in Administrative Tools
Right Click Users Container > Click Properties >Click Group Policy tab > then click Open
Right Click on Grop Policy Ojects > Click New > Set the name Accordingly > Right Click and then Edit the Policy
Then Expand the User Configuration > Expand Windows Settings > then click on Scripts
Right Click on Logon > click Show Files > click File > New Text Document
Copy and paste information below and Edit Appropriately > then Save As a Batch File (.bat)


@ECHO OFF
:: -----------------------------------------------------------------------------------------
:: -----------------------------------------------------------------------------------------
ECHO Executing the Printer Installation - Kanata Colonial
:: SET PRNTSRVR=control1
::-------------------------------------------------------------------------------------
:: Mapping Printers
::-------------------------------------------------------------------------------------

IF EXIST "%USERPROFILE%\PrintersInstalled_00.flg" GOTO DONEPrinter

::IF EXIST "%USERPROFILE%\PrintersInstalled_01.flg" GOTO UPDATEPrinter

GOTO INSTALLPrinter

::UPDATEPrinter ::Del "%USERPROFILE%\17PrintersInstalled.flg" ::RUNDLL32 PRINTUI.DLL,PrintUIEntry /dn /n \\ServerName\PrinterShareName ::RUNDLL32 PRINTUI.DLL,PrintUIEntry /dn /n \\ServerName\PrinterShareName

:INSTALLPrinter REM Install BrightWell printers RUNDLL32 PRINTUI.DLL,PrintUIEntry /in /n \\%PRNTSRVR%\LJ4050 RUNDLL32 PRINTUI.DLL,PrintUIEntry /in /n \\%PRNTSRVR%\LJ4650

echo > "%USERPROFILE%\PrintersInstalled_00.flg"

:DONEPrinter ECHO "Printers Installed" :END

Jul 10, 2009 | Microsoft Windows Server 2003 Enterprise...

1 Answer

Action script for windows


Hi,

I think you need a FOR - DO Scriptcode.

example:
FOR /f %%f IN (actual.txt) DO echo %%f >> list.txt

"FOR" with Parameter "/F" means:
read in "actual.txt" every line as text, then save it in variable "%%f" and "DO" an "ECHO" in variable "%%f" which will be written in ">>" "list.txt"
Hope that helps.

May 23, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

Action script


Here is the simpliest of them all:

this.createTextField("myText", 1, 0, 0, 100, 25);
this.myText.text = "Hello world!";
This script writes Hello world! on the screen, and if you want to get to know ActionScript better, here is a great way to start:
http://en.wikipedia.org/wiki/ActionScript
Read that page, visit some of the external links you find there and later you may search Google for terms like "Action script tutorial" or "Action script examples"

Hope this helps. Ask again if you need more help.

Sep 12, 2008 | Microsoft Windows XP Professional With...

1 Answer

How to change the button color in Delphi


Alas, you can't change the color of a Delphi button. Delphi's buttons have the same color as Windows' buttons. This color depends from the Windows version (XP, 2000, 98,...) and from what might have been changed by the user in Windows' "Display Properties".
There is no standard Delphi method to make a button "flash" (such as for example Button1.Flash). But you could imitate flashing by showing and hiding the button's caption (text) every so many milliseconds, under program control. If you are interested in this, let me know and I'll figure out some source code :)
Second solution: imitate a colored button. Use a TPanel component instead, it also has OnClick, OnMouseDown and OnMouseUp events just like a button has, but it also has a Color property.
In the OnMouseDown event handler, change the panel's appearance: change the BevelOuter property to bvLowered, and restore it to bvRaised appearance when OnMouseUp comes. If you want to try this, let me know and I'll cook up some code :)
Last possibility: get a custom button component that has a color property. There are several freeware colored buttons around on the web.

Jul 31, 2008 | Operating Systems

1 Answer

Access Dened on Local networked drive


if u r using NTFS you should go to the shared folder-->right click it-->click sharing and security -->go to security tab-->add the your user and give it full permission.

you may need to be logged with same user name on the other Pc that has the mapped drive .

Jul 07, 2008 | Microsoft Windows XP Professional

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

74 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18297 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...