Package relocation question

I build most of my /usr/local and make packages out of everything. With my discovery of Solaris 10 zones (whee), I've gone through my packages that have scripts and prefixed paths with ${PKG_INSTALL_ROOT}.
Some of my packages need to generate userids/groupids (i.e. ssh) and have a checkinstall script that looks for assignment of the expected uid. I was actually debugging something else and stumbled upon this issue:
checkinstall:
UIDNAME="`nawk -F: '$3 == \"16\" {print $1}' ${PKG_INSTALL_ROOT}/etc/passwd`"
GROUPNAME="`nawk -F: '$3 == \"16\" {print $1}' ${PKG_INSTALL_ROOT}/etc/group`"
When I execute pkgadd -v -R /foo/zones/myzone/root -d MYopenssh-4.3p2.pkg MYopenssh:
+ nawk -F: $3 == "16" {print $1} /foo/zones/myzone/root/etc/passwd
nawk: can't open file /foo/zones/myzone/root/etc/passwd
source line number 1
To ensure that I did not fatfinger the path, I cut'n'paste that error directly into another window with root shell:
: (r) mybox; ls -l /foo/zones/myzone/root/etc/passwd
-rw-r--r-- 1 root root 752 Sep 13 16:42 /foo/zones/myzone/root/etc/passwd
All of my package documentation say that checkinstall is "executed in-place", which I take to mean "not chrooted".
I know this is not the "proper" way to add a package to a zone, but it was an easy chroot target for me to use for debugging. For this situation, that shouldn't matter.
Comments?
Message was edited by:
WRWindsor

nevermind, I found the problem here.
The script is executed with minimal privileges, which means it cannot see zone ROOTDIRs.
Now back to my other problem. whee.

Similar Messages

  • Windows 8.1 official offline upgrade package & GPO question related to Metro & UAC

    Hello!
    I am testing pre-deployment of Windows 8.1 in our 2008R2 domain. So far only my workstation is upgraded to win8x64 (from win7x64) and I am assessing if all of our LOB aps and servers will work fine with it. A few questions
    1. We use workstations coming with OEM win8 license (all currently running win7 downgrade). I noticed that oficially there is no win8.1 offline upgrade package! Does that mean that Microsoft officially wants people to sing into Windows Store with a Microsoft
    account to perform online upgrade with administrative privileges? That's pretty awkward ...
    I figured that I could use win 8.1 installer ISO/UFD that I created in past (for home computer actually), but am not sure if that works out with our win8 OEM license keys tied to BIOS/UEFI on each desktop computer.
    Was actually expecting an 8.1 Service Pack package that I could publish to WSUS, so it could take care of upgrade on win8 computers, but there is no such thing ... and no official package for 8.1 offline deployment either ... weird ...
    Currently I am actually about to upgrade my own/test workstation to 8.1 (from 8.0, using Windows Store online), then sysprep it and create a reference WIM image and see if I can deploy 8.1 thick image (with all updates and company apps installed) this way
    via WDS. anybody tested if it works this way? any gotchas?
    2. win8 GPOs
    Can somebody enlighten me where in Group Policies I can find a setting to re-assign ALL file/media extensions (e.g. jpg, tiff, png, bmp, mp4, WMV, etc.) back to Desktop applications instead of the horrible Metro UI equivalents?
    We are actually about to bypass Metro UI completely on each computer so it boots straight to desktop and all file upon double-click must open an application within Desktop (no Metro UI for end users).
    I know how to do this manually one by one via Group Preferences, but am asking if there is some specific GPO ADMX setting that would replace Metro UI apps with Desktop application in any and all file associations.
    Personally I see no point in using the clunky Metro UI without a touchscreen.
    3. is UAC enabled required for Windows Store to work?
    Seems like it needs at least the Low security setting, so the Windows Store and Metro UI stays operational. no workaround for that for disabled UAC environment?
    Just asking, it's not a big deal, people can learn to live with UAC, but am curious if that's by design.
    Thanks for answers!

    Hi,
    1. For upgrading to Win8.1, please refer the following link:
    http://windows.microsoft.com/en-in/windows-8/update-from-windows-8-tutorial  As I know, Win8 activated using KMS, cannot upgrade to Win8.1
    2. No, there is no such GPO settings added into Admin template. You will have to work around this using GPP...
    3. There is no way to bypass UAC and allow Windows Store at one time. UAC is headache since Vista times and we have to live with the Protection :) Believe me, it does good to PC safety.
    Regards, Brian
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    thanks for the answers!
    Yeah, UAC is a bit of a headache especially with legacy software. When deploying our Win7 domain clients however I got away by simply disabling it to make it easier for all users coming straight from XP environment.
    for future win8.1 deployments however, I will set the UAC level to Low and keep it there, so modern apps and winstore stays operational if anybody wanted it or needed it. not  a big deal, plus an added security layer, I agree with that.
    As per default win8 file extension associations ... well, that's a bummer, and yeah, the GPP is what I had in mind to work around that manually.
    I am running on upgraded win8.1 right now and so far I like it more or less in work environment, after adjustments that is :)
    My only problem is related to win 8.1 clean installation and imaging and deployment however, wanted to use Lite Touch via WDS for w8.1, but problem is that I have no image of win8.1 that can activate with OEM licenses tied to BIOS.
    Sysprep doesn't work on upgraded 8.1 (from 8.0), so I can't image that with generalization and on other hand the only generalized image I can take is from bare win 8.0 without the 8.1 upgrade. What I mean is that our computer vendor (HP) switched to OEM
    win8 licenses tied to UEFI/BIOS (no more case stickers) and that doesn't activate when I try to clean install 8.1 even though it should, but the build ID string in BIOS must be changed ... need to open a case with HP to work it out, I am sure it's still possible
    to achieve even without volume licensing.
    We use a Basic Infrastructure model so far with retail+OEM keys (no KMS so far but it's in plans if Office deployment plans get approved by CFO). I thought for 8.1 actually it was a good idea to implement Standardized Infrastructure with thick images, as
    manual upgrade to win 8.1 from win 8.0 is painful.

  • Slackware user - Arch install process and package management questions

    I currently am using Slackware 12 with updates.  It has become increasingly cumbersome to compile new software given the number of dependencies that also have to be compiled, and have their own dependencies compiled, etc and so on. 
    Other than the fact that the adoption of new packages is somewhat glacial, and that there is no automatic dependency resolution, I really like Slackware.  Its fast, relatively easy to configure, and easy to use.  I'm conversant in commandline-ese.
    I've been led to understand based on the Arch wiki that Arch is very similar to Slackware in its layout, but with bleeding edge packages and dependency resolution, so I would think it would be about perfect.
    However, I also understand that the install is more difficult that Slackware.  How much more so is my question.  Is it impossibly confusing and unhelpful like Debian installation was, or just slightly more difficult than Slackware or FreeBSD (both of which have very smooth installation scripts)
    Also, for packages that have to be compiled from source, are dependancies easy to satisfy from the arch repository, or do dependencies for new software have to be compiled with their dependencies.
    I'd probably just be trashing everything but /home, and doing a clean reinstall.
    Is Arch the right distro for me, or am I better off staying with Slackware?  Like I said, I really like Slackware except for the package management issues.

    I've been led to understand based on the Arch wiki that Arch is very similar to Slackware in its layout, but with bleeding edge packages and dependency resolution, so I would think it would be about perfect.
    You are right about that.
    However, I also understand that the install is more difficult that Slackware.  How much more so is my question.  Is it impossibly confusing and unhelpful like Debian installation was, or just slightly more difficult than Slackware or FreeBSD (both of which have very smooth installation scripts)
    They are quite similar, but Slackware provides more help when doing tasks like - how can I partition my harddisk and so on. But If you're comfortable with Slack's install procedure then installing Arch is much easier, just read the install guide.
    I think Arch is good for you, because currently I have both - Slackware and Arch and both suit me fine for my needs.
    Also remove all *. entries in your /home

  • Package manager - question?

    Hello folks,
    I wish to know why Package manager in openSolaris is so
    slow application. I know that it is written in Python, but
    I still do not understand why somebody did not offer some
    patch for that application. I will help honestly in programming
    if you need coders.
    Uros

    Please send your question to [email protected] That is the best place for discussion OpenSolaris packaging tools such as packagemanager. This forum is better for Solaris installation issues (from Solaris 10 and SXCE, for example).
    -- Alan

  • Import Packages - A Question to All Java-Professionals

    Question:
    I installed the J2SE 1.3.1_02, J2EE 1.3.1_01 and Forte Java CE 3.0. Why I can't use the Packages included in the j2ee.jar located in the \bin directory?
    I can't use the Packages like
    import javax.jms.*;
    import javax.sql.*;
    Why? Please to all Java-Experts. Thank you very much

    sorry this is kinda late, no I dont use forte, I use codewarrior , and I have not used the j2ee.jar but I have used the servlet.jar , activation.jar, and mail.jar . And I simply add a refrence to those files and Codewarrior sets the classpath for me.

  • Upgrading package billing question

    Hello everyone, just registered, so this is my first post! (sorry it's so long)...
    My query is this - I rang BT yesterday to upgrade to BT Unlimited Broadband (and to try to get a better deal, since we were still on the now presumably obsolete broadband option 2 at £23.80 per month!). Anyway, we were offered a great deal of £13.65 a month for the next twelve months which we were very pleased with. We had also been paying for the 'Unlimited Evening and Weekend calls' package on the phone (which had initially been free) but since we hardly ever use the landline and 'Unlimited Weekend calls' was being offered as a package with the unlimited Broadband offer, I asked for us to drop the Evening and Weekend calls subscription on the phone, which was agreed to. We also paid for a year's Line Rental Saver then and there for £141.
    We had been paying quarterly up until now, but I was told that since we were starting a new contract, we would be changing to monthly payments, which I also agreed to.
    All well and good. 
    However, due to very bad timing, our next quarterly bill was due to be issued that same day and, lo and behold this morning we received a pdf email notification with all our (few) phone calls listed (that's fine) and also the upcoming three monthly charges for 'Unlimited Evening and Weekend Calls' and 'Broadband, Option 2 - 40gb limit'. It also included the next three months line rentals, which of course, we have now already paid for in advance via the Line Rental Saver.
    My question is this - will we still be charged for the next three months and then gain this back via a rebate in the September bill? I did call up BT this morning when we received this next bill and was told that it 'was wrong' and would be updated. However, as of right now, the bill is still there, charging us for the wrong packages and for line rental for which we have already paid. We were told that we would receive a letter in the post 'over the next few days' but the email we were promised yesterday confiriming our broadband upgrade and phone package change never materialised, so I'm a little dubious that it will arrive either!
    Incidentally, when we log in our account (actually, it's my father's account, but I'm dealing with it for him), the correct, upgraded packages (Unlimited broadband and Unlimited Weekend calls) are listed, so I'm sure there's just some updating needing on the billing side. I wonder if I should contact them again or wait to see if the (promised) letter arrives and see what that says??...
    Solved!
    Go to Solution.

    try online chat and see if they can clarify 
    live chat http://bt.custhelp.com/app/contact/c/2902/?s_intci​d=con_intban_sanda_contact_us_chat_from_forums
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Package Deal Question

    When you don't see a package deal on the website do they still carry the deal in the stores? or what? 
    package deal (Canon 2762B003 Black EOS Rebel XS 10.1MP Digital Camera with Extra Lens) 
    TechGirl
    Solved!
    Go to Solution.

    Hi TechGirl,
    The answer to your question is sometimes. What we offer for sale on BestBuy.com is most often reflective of what is for sale in a Best Buy® store, but is not required to be the same. I would contact a Best Buy® store to find out if they are still offering this package.
    Thanks for posting!
    Allan
    Community Connector
    Best Buy® Corporate
    Allan|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • Package : Simple question

    Hi,
    A really simple question : how can i get a list of all the fonction an procedure of a package (just the name, not the the package source).
    DB -> 8.1.7 / openVMS
    Thanks...
    Alban

    you can query the tables
    USER_METHOD_PARAMS
    USER_METHOD_RESULTS
    USER_ARGUMENTS
    or you can use the dbms_describe package (see documentation)
    greetings
    Freek D
    Hi,
    A really simple question : how can i get a list of all the fonction an procedure of a package (just the name, not the the package source).
    DB -> 8.1.7 / openVMS
    Thanks...
    Alban

  • Package maker question...

    Hi everyone!
    I've got a question about doing an install with package maker. Everything is basically setup and running ok...but I noticed if I install a new version on top of an old version it will update the files of the same name but it will not just replace the entire app. For example version 1.0 has files A, B, C, D. And let's say version 2.0 has files A, B, E, F, G. The files that are the same (A, B) will be updated. The new files (F, G) will be added. But the old files that are no longer needed (C, D) will not be removed. So basically my question is how do you get the install of the new to completely overwrite the old?
    Thanks in advance,
    Reg
    Note: I tried to work with the "Locator" feature but no matter what I did I was still not able to achieve the overwrite. Seems there must be something that I'm overlooking???

    Hi Niel!
    Thanks for the reply! If that's the way to do it is with a script then I know which route to go!
    Reg...

  • "Internet" MP & DP Package Deployment Questions

    Good Morning:
    First of all, thanks for all your help over the years - lurking social.technet has provided many a relief for headaches. Now onto my hopefully simple question(s):
    I recently set up SCCM 2012 SP1 in our work environment. I have 1 Site with two servers (let's call them MP & IMP). IMP is set to internet only, and MP to internet & intranet serving our AD-site boundary groups (a couple through forest trusts). PKI
    shows as working on clients/server as far as I can tell (my first PKI implementation). The IMP has a live/valid DNS entry in public DNS with port 443 opened to it through our building firewall and is an MP, DP, EP, EPP, FSP. The site, MP, and IMP are healthy
    and after turning off PULL DP, the IMP is receiving all packages/applications from the primary DP happily. Clients are being pushed with the DNS name of the IMP when they log onto our network from the office (and are receiving it successfully). Updates
    for SCEP and Office/Windows are being delivered timely to clients on the intranet, the ADR's are running well and pretty much allow me to not mess with them except to rebuild every 6 months (which will happen in July). My question is probably something simple,
    so pardon my ignorance... but it seems that clients are phoning home from the IMP just fine (seeing all the 192.x.x.x addresses when laptops call in from home) but they're not getting the deployment packages (SCEP updates is my only reference point at the
    moments) pushed to them while on the internet, even though they reside on IMP's DP. Clients should be getting SCEP updates every morning starting after 6AM (just 1 package a day for now) but the clients at home talking to the IMP are just not receiving the
    push it seems? They check in with policy requests etc... I'm not sure if this could be a simple Windows Firewall issue on the clients I can remediate with GP, is there an extra port(s) that need opened to the IMP other than 443 through the building firewall...
    I'm not tearing out my hair by any means, but I am a bit miffed. I'm happy to provide any logs and run any tests desired. I have ample loaner laptops to try multiple configurations on. Any help would be greatly appreciated in getting the last piece our SCCM
    2012 SP1 puzzle in place so we can label it working at 100% and move onto learning more of its nuances and advanced capabilities. Thanks so much for any help or guidance. 

    Since no one has answer this post, I recommend opening  a support case with CSS as they can work with you to solve this problem.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • New openldap package & some questions

    Hello,
    Let me say first of all, I'm relatively new to the archlinux dist. That being said I've folllowed the instructions for making a abs PKGBUILD file for the latest STABLE release of openldap. I have a few questions though if I may?
    1. Open ldap uses a somewhat strange versioning system .. the file is openldap-stable-<DATE>.tgz but it extracts to a openldap-2.4.16 directory.. I've worked around this  by creating a new var pgkverM  and giving it the date of the build (20090411). Per the abs package guidelines is this something that is allowed? If not how might I achieve this and stay withing.
    2. Baring a fix or approval of #1, is this something I can/should share with the rest of the community? If so, whats the process for submission/approval ? I'd love nothing more than to contribute my part to the community...
    The package is a very simple build all in all.. I looked at the pkgbuild from the abs repo's for the old version. which by the way is an outdated RELEASE (not stable) version. I found a workaround for solving the cpeerid error without having to patch any of the source..
    Thanks

    Just so you know, this actually is not quite as simple as updating one package.  There is a soname bump on libldap that requires rebuilding:
    [core]
    nfsidmap-0.21-2
    [extra]
    alpine-2.00-3
    apache-2.2.11-3
    apr-util-1.3.4-1
    autofs-5.0.4-4
    claws-mail-3.7.1-1
    courier-authlib-0.62.2-2
    courier-mta-0.61.1-1
    cyrus-sasl-2.1.22-10
    cyrus-sasl-plugins-2.1.22-10
    dirmngr-1.0.2-1
    dovecot-1.1.15-1
    ekiga-3.2.4-1
    evolution-2.26.2-1
    evolution-data-server-2.26.2-1
    evolution-exchange-2.26.2-1
    gconf-2.26.2-1
    gnash-common-0.8.5-2
    gnash-gtk-0.8.5-2
    gnupg-1.4.9-1
    gnupg2-2.0.11-1
    kdepimlibs-4.2.3-2
    kdevelop-3.5.4-1
    kopete-cryptography-1.3.0-2
    lighttpd-1.4.22-3
    mod_perl-2.0.4-3
    nss_ldap-264-1
    pam_ldap-184-1
    pdns-2.9.22-2
    php-5.2.9-3
    postfix-2.5.6-2
    samba-3.3.4-1
    seahorse-2.26.2-1
    smbclient-3.3.4-1
    subversion-1.6.2-2
    sylpheed-2.6.0-1
    wine-1.1.21-1
    [community]
    balsa-2.3.28-1
    cherokee-0.99.15-1
    dbmail-2.2.11-2
    freeradius-2.1.4-1
    gq-1.2.3-1
    hula-r2661-1
    kdesvn-1.3.0-2
    libgda3-3.1.5-2
    mailutils-2.0-5
    opensips-1.5.0-2
    pppd-ldap-0.12b-1
    pppd-ldap-simple-0.12b-1
    python-ldap-2.3.6-1
    qsvn-0.8.1-1
    rapidsvn-0.9.8-1

  • ITunes Relocation Question.

    Hi,
    I wish to move my iTunes default folder from user/music/.... to a external hard drive to free up around 500Gb worth of music, Tv shows and movies, 2 questions.
    1 - will it affect my libray inside iTunes and will i have to import everything back in?
    2 - Any iOS devices connected to this computer what will happen?
    Any answers?

    The easiest way is to just drag the entire iTunes folder (the _entire_ folder, _not_ just the iTunes Music folder) to your desired location. Then hold down the Shift key while launching iTunes. You'll be given a dialog box where you can select the iTunes library you want to use. Navigate to and select the iTunes folder in it's new location. Your library and sync to the iOS devices will remain as they are now.
    Note that this procedure assumes that all of your content is contained in the iTunes Media/Music folder. If things are scattered around your drive, moving them becomes much more complex. 
    Once you get things moved successfully, be sure not to launch iTunes with the external drive not mounted or iTunes will default back to the internal drive. If it does, though, just mount the external drive and launch iTunes with the Shift key again.
    Regards.

  • Creating a package name questions.

    If I want to put all my classes in a package called:
    package com.xxx.yyy.zzzz;
    Can I use com? Is com like a reserved name? Where would I place xxx?

    packages should correspond with your domain name, so if you own a .com (say [url http://forum.java.sun.com/thread.jsp?forum=53&thread=399128&tstart=0&trange=15]weLoveTheForumAdmin.com), then you package would be
    package com.welovetheforumadmin.<whatever you want>;
    if you own a .tk or .gb or .uk, it would change approperatly.
    If you don't own a domain name, then you could use your website url (say you have a geocities account called [url http://forum.java.sun.com/thread.jsp?forum=53&thread=399128&tstart=0&trange=15]welovetheforumadmin , then you could use
    package com.geocities.welovetheforumadmin.<what everyour want>;
    (or get a free domain/sub domain from say from [url http://www.dot.tk/].tk or [url http://www.no-ip.com/]No IP.
    If you have no web pressence, its acceptable to place under something that is not, and never will be a TLD, eg
    package we_love_the_forum_admin.<what ever you want>;
    However, NEVER put anything in the java, javax or com.sun name spaces.
    It should be noted that not [url http://www.microsoft.com]everyone [url http://classpath.org]one follows these rules.
    (Microsoft not only puts stuff in the java name space, but also under the com.ms namespace (Morgan Stanley), while Classpath buts its plateform dependent stuff in the gnu namespace, not org.gnu, while many people don't care it becomes a problem if say both morgan stanley and MS release a com.ms.WeLoveTheForumAdmin class).

  • Amazon Store Packaged App Question - Web Service

    Hi!
    I was very excited when I saw the Amazon Store packaged app! It's exactly what I need for a venture of mine, but unfortunately the packaged app is not working.
    I get the following error:
    <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aws="http://webservices.amazon.com/AWSFault/2005-15-09"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>aws:Client.MissingParameter</faultcode><faultstring>The request must contain the parameter Signature.</faultstring><detail><aws:RequestId xmlns:aws="http://webservices.amazon.com/AWSFault/2005-15-09">69ae79fc-d6d2-41ed-a451-763974b95bf3</aws:RequestId></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    I know why: apparrently Amazon changed the authentication method, and the answer lies somewhere here:
    http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?RequestAuthenticationArticle.html
    I have created and downloaded my private key file and X.509 certificate file, but am not sure where to make the rest of the changes they describe.
    Can anybody help? Is the original creator of Amazon Store anywhere out there?
    Many thanks in advance for any help! You have NO IDEA what a huge help it would be for me to get this working!!!
    Michelle

    Hi,
    According to your description, I am afraid your problem is out of support in windows store app. Apache is a  third party web service. We cannot support it.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
    makes it easier for other visitors to find the resolution later.

  • Flash package - beginner question

    hi, i have found this flash package to
    convert shapefiles  to flash but I am not sure what needs to be done with the flash package.  I have my
    shapefiles ready to go. Am i supposed to just paste this code in flash
    (making sure the .as is in the same folder as my shapefile) and voila, flash will convert the shapefile to .fla
    or .swf format?  Please explain what i need to be doing. Thanks
    here is the code:
    package {
        import com.cartogrammar.shp.ShpFeature;
        import com.cartogrammar.shp.ShpMap;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.geom.ColorTransform;
        [SWF(width='800', height='600', backgroundColor='#ffffff', frameRate='30')]
         * An example of drawing a simple map from a shapefile using my ShpMap class and Edwin van Rijkom's library.
         * @author Andy Woodruff (cartogrammar.com/blog)
        public class ShapefileExample extends Sprite
            private var map : ShpMap;
            public function ShapefileExample()
                map = new ShpMap("data/STATES.shp","data/STATES.dbf");
                addChild(map);
                map.addEventListener("map loaded",onMapLoaded);
                map.addEventListener("attributes loaded",onAttributesLoaded);
            // Need to wait for the map to finish loading/drawing before it can be resized correctly.
            private function onMapLoaded(event:Event):void
                map.scaleX = map.scaleY = map.width > map.height ? stage.stageWidth/map.width : stage.stageHeight/map.height;
                // just for fun, add a marker to somewhere around my house!
                addMarkerAt( 42.36,-71.11 );
            // To demonstrate retrieving a particular feature and doing something to it. This colors Wisconsin green.
            private function onAttributesLoaded(event:Event):void
                var f : ShpFeature = map.getFeatureByAttribute("STATE_NAME","Wisconsin");
                if (f != null){
                    var cTrans : ColorTransform = new ColorTransform();
                    cTrans.color = 0x009933;
                    f.transform.colorTransform = cTrans;
            // Super basic method for adding a green box at a specified lat/long.
            private function addMarkerAt( lat : Number, lon : Number )  : void
                var box : Sprite = new Sprite();
                box.graphics.lineStyle(1,0,1,false,"none");
                box.graphics.beginFill(0x009933);
                box.graphics.drawRect(-.5,-.5,1,1);
                box.graphics.endFill();
                map.addMarker(lat,lon,box);

    hi, i have found this flash package to
    convert shapefiles  to flash but I am not sure what needs to be done with the flash package.  I have my
    shapefiles ready to go. Am i supposed to just paste this code in flash
    (making sure the .as is in the same folder as my shapefile) and voila, flash will convert the shapefile to .fla
    or .swf format?  Please explain what i need to be doing. Thanks
    here is the code:
    package {
        import com.cartogrammar.shp.ShpFeature;
        import com.cartogrammar.shp.ShpMap;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.geom.ColorTransform;
        [SWF(width='800', height='600', backgroundColor='#ffffff', frameRate='30')]
         * An example of drawing a simple map from a shapefile using my ShpMap class and Edwin van Rijkom's library.
         * @author Andy Woodruff (cartogrammar.com/blog)
        public class ShapefileExample extends Sprite
            private var map : ShpMap;
            public function ShapefileExample()
                map = new ShpMap("data/STATES.shp","data/STATES.dbf");
                addChild(map);
                map.addEventListener("map loaded",onMapLoaded);
                map.addEventListener("attributes loaded",onAttributesLoaded);
            // Need to wait for the map to finish loading/drawing before it can be resized correctly.
            private function onMapLoaded(event:Event):void
                map.scaleX = map.scaleY = map.width > map.height ? stage.stageWidth/map.width : stage.stageHeight/map.height;
                // just for fun, add a marker to somewhere around my house!
                addMarkerAt( 42.36,-71.11 );
            // To demonstrate retrieving a particular feature and doing something to it. This colors Wisconsin green.
            private function onAttributesLoaded(event:Event):void
                var f : ShpFeature = map.getFeatureByAttribute("STATE_NAME","Wisconsin");
                if (f != null){
                    var cTrans : ColorTransform = new ColorTransform();
                    cTrans.color = 0x009933;
                    f.transform.colorTransform = cTrans;
            // Super basic method for adding a green box at a specified lat/long.
            private function addMarkerAt( lat : Number, lon : Number )  : void
                var box : Sprite = new Sprite();
                box.graphics.lineStyle(1,0,1,false,"none");
                box.graphics.beginFill(0x009933);
                box.graphics.drawRect(-.5,-.5,1,1);
                box.graphics.endFill();
                map.addMarker(lat,lon,box);

Maybe you are looking for

  • Report by material/valuation type

    Is there a report that shows usage of a material by valuation type? Thanks in advance. Eric

  • Reminder & Term Code for prepayments in Performa Invoices or Vendor POs

    Hi, I need set proper Term Code for AR, PO.  All orders will be paid before ship the goods, the Terms will be 1/3, 1/3 and 1/3 and 2 weeks apart with each prepayment.  PO need pay to vendors 1/2 and 1/2 before they ship.  How to setup those Term Code

  • Removing Install Files

    Hello Arch forums. I've recently just reinstalled Arch because it was going to *bleep*, and after I installed and uninstalled some packages (namely the Eclipse and Eric IDEs) I noticed that when I reinstall them, the total download size is 0.00 MB, a

  • Unable to get streaming media on FIOS

    I have recently switched to FIOS and I am having trouble accessing streaming media from this site: http://player.omroep.nl/?aflID=10779627&wmv=true It just says "Connecting to Media" for about one minute and then goes to "Ready" without ever playing

  • Linking accordian menu

    I want to lik the images and swf to local files but I'm not able to do so. Could you please tell me how? I took the code from an accordian menu tutorial This is the xml code <?xml version="1.0" encoding="utf-8"?>   <menu menuOpen="1" moveOnMouseOver=