Preset PDF Security Setting
Hey guys, does anyone here know how to set preset PDF security setting. You can only do this by export option.
thanks for your help.
You would need to program that step yourself or use a 3rd-party Report Managers listed at http://www.kenhamady.com/bookmarks.html (I know at least one of them provides that functionality).
Similar Messages
-
PDF Security Setting in Crystal report
Hi All,
I would like to ask, is there anyway for us to change the PDF security setting that created by crystal report? We ussualy see the security setting in PDF documents settintg.
Thanks!
NicoYou would need to program that step yourself or use a 3rd-party Report Managers listed at http://www.kenhamady.com/bookmarks.html (I know at least one of them provides that functionality).
-
Security setting in PDF generated from SAP
Do you have any idea how to set up the security setting for PDF which is generated from function module
"CONVERT_ABAPSPOOLJOB_2_PDF
we wanted PDF not to be printed and no one can do copy pasteCan any one help on this.
-
How to Export local security setting all filed name & value against filed.
HI all,
I am trying to export local security setting from local policy using bellow scrip. but it is showing only these are configured. I need expert help which allowed me to export all filed with value where it is configure or not. Please give me.
$output=@()
$temp = "c:\"
$file = "$temp\privs.txt"
[string] $readableNames
$process = [diagnostics.process]::Start("secedit.exe", "/export /cfg $file /areas USER_RIGHTS")
$process.WaitForExit()
$in = get-content $file
foreach ($line in $in) {
if ($line.StartsWith("Se")) {
$privilege = $line.substring(0,$line.IndexOf("=") - 1)
switch ($privilege){
"SeCreateTokenPrivilege " {$privilege = "Create a token object"}
"SeAssignPrimaryTokenPrivilege" {$privilege = "Replace a process-level token"}
"SeLockMemoryPrivilege" {$privilege = "Lock pages in memory"}
"SeIncreaseQuotaPrivilege" {$privilege = "Adjust memory quotas for a process"}
"SeUnsolicitedInputPrivilege" {$privilege = "Load and unload device drivers"}
"SeMachineAccountPrivilege" {$privilege = "Add workstations to domain"}
"SeTcbPrivilege" {$privilege = "Act as part of the operating system"}
"SeSecurityPrivilege" {$privilege = "Manage auditing and the security log"}
"SeTakeOwnershipPrivilege" {$privilege = "Take ownership of files or other objects"}
"SeLoadDriverPrivilege" {$privilege = "Load and unload device drivers"}
"SeSystemProfilePrivilege" {$privilege = "Profile system performance"}
"SeSystemtimePrivilege" {$privilege = "Change the system time"}
"SeProfileSingleProcessPrivilege" {$privilege = "Profile single process"}
"SeCreatePagefilePrivilege" {$privilege = "Create a pagefile"}
"SeCreatePermanentPrivilege" {$privilege = "Create permanent shared objects"}
"SeBackupPrivilege" {$privilege = "Back up files and directories"}
"SeRestorePrivilege" {$privilege = "Restore files and directories"}
"SeShutdownPrivilege" {$privilege = "Shut down the system"}
"SeDebugPrivilege" {$privilege = "Debug programs"}
"SeAuditPrivilege" {$privilege = "Generate security audit"}
"SeSystemEnvironmentPrivilege" {$privilege = "Modify firmware environment values"}
"SeChangeNotifyPrivilege" {$privilege = "Bypass traverse checking"}
"SeRemoteShutdownPrivilege" {$privilege = "Force shutdown from a remote system"}
"SeUndockPrivilege" {$privilege = "Remove computer from docking station"}
"SeSyncAgentPrivilege" {$privilege = "Synchronize directory service data"}
"SeEnableDelegationPrivilege" {$privilege = "Enable computer and user accounts to be trusted for delegation"}
"SeManageVolumePrivilege" {$privilege = "Manage the files on a volume"}
"SeImpersonatePrivilege" {$privilege = "Impersonate a client after authentication"}
"SeCreateGlobalPrivilege" {$privilege = "Create global objects"}
"SeTrustedCredManAccessPrivilege" {$privilege = "Access Credential Manager as a trusted caller"}
"SeRelabelPrivilege" {$privilege = "Modify an object label"}
"SeIncreaseWorkingSetPrivilege" {$privilege = "Increase a process working set"}
"SeTimeZonePrivilege" {$privilege = "Change the time zone"}
"SeCreateSymbolicLinkPrivilege" {$privilege = "Create symbolic links"}
"SeDenyInteractiveLogonRight" {$privilege = "Deny local logon"}
"SeRemoteInteractiveLogonRight" {$privilege = "Allow logon through Terminal Services"}
"SeServiceLogonRight" {$privilege = "Logon as a service"}
"SeIncreaseBasePriorityPrivilege" {$privilege = "Increase scheduling priority"}
"SeBatchLogonRight" {$privilege = "Log on as a batch job"}
"SeInteractiveLogonRight" {$privilege = "Log on locally"}
"SeDenyNetworkLogonRight" {$privilege = "Deny Access to this computer from the network"}
"SeNetworkLogonRight" {$privilege = "Access this Computer from the Network"}
$sids = $line.substring($line.IndexOf("=") + 1,$line.Length - ($line.IndexOf("=") + 1))
$sids = $sids.Trim() -split ","
$readableNames = ""
foreach ($str in $sids){
$str = $str.substring(1)
$sid = new-object System.Security.Principal.SecurityIdentifier($str)
$readableName = $sid.Translate([System.Security.Principal.NTAccount])
$readableNames = $readableNames + $readableName.Value + ", "
$output += New-Object PSObject -Property @{
privilege = $privilege
readableNames = $readableNames.substring(0,($readableNames.Length - 1))
#else = $line."property"
$outputAs an alternate approach wee can preset the hash and just update it. This version also deal with trapping the errors.
function Get-UserRights{
Param(
[string]$tempfile="$env:TEMP\secedit.ini"
$p=Start-Process 'secedit.exe' -ArgumentList "/export /cfg $tempfile /areas USER_RIGHTS" -NoNewWindow -Wait -PassThru
if($p.ExitCode -ne 0){
Write-Error "SECEDIT exited with error:$($p.ExitCode)"
return
$selines=get-content $tempfile|?{$_ -match '^Se'}
Remove-Item $tempfile -EA 0
$dct=$selines | ConvertFrom-StringData
$hash=@{
SeCreateTokenPrivilege =$null
SeAssignPrimaryTokenPrivilege=$null
SeLockMemoryPrivilege=$null
SeIncreaseQuotaPrivilege=$null
SeUnsolicitedInputPrivilege=$null
SeMachineAccountPrivilege=$null
SeTcbPrivilege=$null
SeSecurityPrivilege=$null
SeTakeOwnershipPrivilege=$null
SeLoadDriverPrivilege=$null
SeSystemProfilePrivilege=$null
SeSystemtimePrivilege=$null
SeProfileSingleProcessPrivilege=$null
SeCreatePagefilePrivilege=$null
SeCreatePermanentPrivilege=$null
SeBackupPrivilege=$null
SeRestorePrivilege=$null
SeShutdownPrivilege=$null
SeDebugPrivilege=$null
SeAuditPrivilege=$null
SeSystemEnvironmentPrivilege=$null
SeChangeNotifyPrivilege=$null
SeRemoteShutdownPrivilege=$null
SeUndockPrivilege=$null
SeSyncAgentPrivilege=$null
SeEnableDelegationPrivilege=$null
SeManageVolumePrivilege=$null
SeImpersonatePrivilege=$null
SeCreateGlobalPrivilege=$null
SeTrustedCredManAccessPrivilege=$null
SeRelabelPrivilege=$null
SeIncreaseWorkingSetPrivilege=$null
SeTimeZonePrivilege=$null
SeCreateSymbolicLinkPrivilege=$null
SeDenyInteractiveLogonRight=$null
SeRemoteInteractiveLogonRight=$null
SeServiceLogonRight=$null
SeIncreaseBasePriorityPrivilege=$null
SeBatchLogonRight=$null
SeInteractiveLogonRight=$null
SeDenyNetworkLogonRight=$null
SeNetworkLogonRight=$null
for($i=0;$i -lt $dct.Count;$i++){
$hash[$dct.keys[$i]]=$dct.Values[$i].Split(',')
$privileges=New-Object PsObject -Property $hash
$privileges
Get-UserRights
A full version would be pipelined and remoted or, perhaps use a workflow to access remote machines in parallel.
¯\_(ツ)_/¯ -
Adding PDF Security attributes while PDF Merge
Hi,
I am trying to merge multiple pdf document and want to secure the output using pdf security attributes.
Is there a way to achieve this while pdf merge ?
(I am able to do so while generating the pdf using FO Processor but not while merging existing pdf files.)
Thanks in Adavance
~neerajHi Neeraj
What API are you using to merge the documents ?
If you are using PDFDocMerger you can use the setConfig method on the API to set the password.
Regards, Tim -
Ms word95 to pdf - "security level too high"?
I'm a brand new user of Acrobat 9.0 (on XP system) - all kinds of problems (including major file crash and loss during 9.0 installation - more on that later). for now, I need to get started immediately on converting some MS Word doc files to pdfs - What I get from 9.0 is the message that "The Security Level is Too High". If it's referring to the MS word docs, they are unprotected (I've checked and tried several - Word shows they are not protected, and as far as I know, never have been). They were originally created on a mac with macWord - but were not protected and converted to windows with MacDrive7. They show in MS Word in good condition and unprotected. What do I need to do to get them into acrobat and into pdf format? I've also check the knowledge base here and elswhere without any clues except one chap who seemed to be having similar problems (along with serious crashes) using 8.1. Other than that, I'm mistified.
I've also tried using the context menu 'covert to pdf' method and also creating a new pdf (blank) and inserting them. In both cases the security message aborted the process. Need to do this right away. I'm not technically skilled, so if someone can give me some clear instructions I'd be grateful. - redThank you all for responding so quickly. First, I'll mention the serious message and a warning. DO NOT INSTALL ACROBAT 9.0 IN AN ENVIRONMENT WITH WORD 7.0 (or any old(er) MS Word version before 2k). The consequences are ghastly, including the deletion of half or more of your program files (including your email clients, av software and other primary programs), the corruption of your browser, registry (including restore points) and other not so nice events - worse than most bad viruses. That's a problem Adobe and I will probably be taking a look at next week. Mean time, they indicate that they are going to add the matter to their KB and elswhere so that users have a heads-up on the issue.
As for the conversion problem from Word 7.0 .doc to .pdf - Bill, you just about nailed it. It was, indeed, a problem that could be circumvented by going to the printer dialog and setting the printer to 'Adobe pdf file' (something a novice wouldn't think of, nor line tech-support for that matter.). As far as Word/pdf 'printer' is concerned you're just printing the file. However, as I understand things, that's how Adobe attaches the Word documents - It does it through the printer interface. Once that setting is changed to 'Adobe pdf printer' the file is simply picked from the print queue (or before) and loaded into A9. Save it from A9, and the job is done. So, Bill, If Adobe hadn't found the answer, I do believe you would have been telling me exactly how to do it after a few more posts. The credit, though, goes to Neo Johnson, tech-support supervisor in New Delhi. The last two days (almost 9 hours of phone time) were spent with various tech-support agents at Adobe; but, he was the one who finely thought about the interaction between A9 and Word and figured it out.
Ok -that's the brief. The rest is a little history/background for whomever is interested (skip, otherwise - not important). The problem begins with failure to install - first, setup can't find the msi file - it was there, and I browsed it, so that was solved. Then 'invalid licensing - process stopped' messages appear. That was a little tougher and http://kb2.adobe.com/cps/405/kb405970.html and some other articles had me doing repair, reinstall, and other complex (for me) procedures. One of the problems was that flexnet had failed to install, which was a stumper for me (I couldn't find it to download separately - barely knew what it was/did - and finally understood that Adobe was supposed to install it. After that, I did several uninstalls, to no effect. Finally I did a few moderate and then deep uninstalls (with Revo) and several reinstalls. Things got progressively worse. On one reboot, my desktop came up and all the program icons were broken links. I examined targets and such and then went to my 'program files' directory. To my horror, nearly all my primary program (including thunderbird email client, AVG etc.) files had disappeared. The folders were simply empty. Firefox still loaded, but the tabs were non functional. Several checks and some light disc analysis indicated the files vanished. No trace. However, my document folders and data were intact (also backed-up). I went to restore and found that all the old restore points (including the one's Revo sets before uninstalling) were gone. If it had been a virus, it couldn't have done a better job at making a mess of things. At that point, I knew the registry had been toasted and I was facing a complete OS reinstall. Instead, I opted for reinstalling some of the critical programs (and because the document files appeared to be intact). After the first few - thunderbird, firefox etc. - I was relieve to find that they were picking up on the old settings and restoring themselves to their previous states. I still have a number of these to do - and a few must be re-configured. But that's going ok.
Then the saga of Adobe, several phone calls; several times the phone connection was cut off and I had to call again and start over from the beginning with a new person. The matter always had to be esculated to the next tier - more time, more cues, no solutions. They went over the firefox settings, the adobe settings. They were puzzled about the broken links. Attempts to open doc files (after a fresh install of winword) were resulting in 'invalid win32 application'. All kinds of problems made progress difficult. We cleared up the 'invalid....' messages by reparing the file associations (in XP folder options) and then opening the docs in Word and resaving them as something else. It was a labor. Finally, there was simply no answer except, like the post here, Word 7 is simply too old and uses different scripting. The only solution was to either buy (ugh, ouch!) Word 2007 (and hope that it would load them and save them in A9 useable form) or, try installing Word2k (which I have) and processing them through that; and, then using Acrobat 8.x to load those and save the pdfs for A9 to use. However, when Adobe said they could not provide me with a free (even trial) version of 8.x to do the job - licensing problems etc. -- It seemed like a really ugly solution. Finally, I'm begging Adobe to give me a free copy of 8.x and in steps Neo. He can't provide the free copy, but he asks a few questions himself. We go to Adobe and reset some of the security settings (something other agents didn't know or think of). No dice - still can't load the docs. But then he says, Open up Word. Ok. load the file and then hit 'print' - ok, the print dialog comes up. 'Now,' he says, 'open the properties and see what printers are listed.' Ok I do that, and I'll be... 'Adobe pdf printer' is among them. "Just what I thought," he said, Adobe was hooking up with word, but didn't have its printer to attach." So we set 'Adobe pdf' as the printer and lo and behold, the docs loaded into Adobe as pdfs. End of that story. (so bill, you had it too - wish you had answered the phone in the first place!)
Clean up. So, there's a few simple solutions, I think (though i'm no techie and you folks will certainly have better ideas). First, I don't buy the story that early versions of Word are either 1) unsupported by MS or, 2) nobody uses them, as valid reasons why not to fix the problem of the "unloadable" docs. I figure there are at least a couple of aproaches and easy patches that will correct the matter. One is from the Word side - to is to set the current printer setting to use 'Adobe printer', get the file and then reset the printer back to what it was - default. The other is to patch A9 to detect legacy source applications and bypass things that would normally make the file unloadable, unless, of course, they were actually protected or, read only files. In that case, Adobe could simply inform the user to 'unprotect' them, the same as it now does with its 'Security Setting too High' message for later versions. I'm sure there are even better ways. But, that would fix things as far as file loading and conversion.
As to the installation and crash problems - those need to be addressed. Even if its only a few dozen people that might have the same problem, it needs 1) to be given as a noticable warning and keyword in Adobe documents (which now simply indicate that it can process .doc files); 2) it needs to be examined to insure systems that have Word 7.x or older can install without problem, and certainly without harming their system. Adobe has a good reputation and does a good job. That's worth protecting with all customers, even if Marketing can't quite see why and the bean counters can't find much profit in the task. It's what I expect from professionals and to do less certainly subtracts from Adobe's standing. That should be worth a great deal, I would imagine.
Anyway, thanks folks - got to get some sleept, and then get those pdfs done and sent to people who are waiting for them. - best to you all, red. -
PDF.js removing PDF security
I am facing similar problems as discussed in the below mentioned forum post
https://support.mozilla.org/en-US/questions/1014746
PDF.js is not considering the enabled PDF security. The functionality what i want to achieve is to control the print to file option using tools like CutePDF. If a user tries to print the PDF to a file and PDF is created by setting encryption is opened in Adobe reader, the saved PDF will be blank. But this is not happening in PDF.js and it is saving the content of the PDF. Can this be handled in PDF.js?I am hearing you say that you do not want it to print the content and you want the security to create the page blank. It looks like it should handle security according to the bug mentioned. [https://bugzilla.mozilla.org/show_bug.cgi?id=792816#c12]
-
Hi,
I have just created my gallery but run into a difficulty with the security setting. If I apply a password to my Album/Event, the Key Photo, number of photos, and scrolling feature is disabled in the My Gallery page. Is there a way of applying this security at the My Gallery level so that I do not loose this feature of the application?
Thanks,
NickNick:
No, you can't have the gallery protected and still have the scrolling feature. Part of the protection is keeping the photos unavailable at that level as well as limiting access.
Happy Holidays
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file. -
Hello everybody! I have a question concerning the PDF security settings. We are using Adobe Acrobat Professional 8 (CS3) on an Mac OS X 10.4.11 system.
When creating a PDF, is it possible to...
...permit printing AND enable reading aids BUT forbid editing (like copying text)?
Or can I only either permit all OR forbid all?
Thank you for your kind help!
MatsOkay, I solved it myself. :-)
I had set the "PDF compatability" to "1.4". This removes the a.m. option. So now, I have set it to "1.5" (or even another later standard), and can now allow printing AND allow reading aids BUT forbid copying text.
Thank you! -
Using pdf-security with FormProcessor blanks out entire PDF
When I try to set the pdf-security property and its associated properties with the FormProcessor.setConfig API method, the resulting PDF document is completely blank. And no, it's not an issue of my security. When I view the security properties within the document, it says there is no security. Has anyone been able to get this to work with FormProcessor, and if so, HOW???
Regards,
KHIt's rather sad to have to be answering my own post, but for anyone else who might need this info this seems to have worked in my project - at least locally... Although it doesn't appear to be documented, you can use the same properties from the FOProcessor engine with the FormrProcessor engine, and call the FormProcessor.setConfig() method.
Properties props = new Properties();
props.setProperty("remove-pdf-fields", "true");
props.setProperty("pdf-security", "true");
fProcessor.setConfig(props); -
Printing and Signing PDF Security Questions
Hi,
I noticed one of the PDF security features for Acrobat 8.0 is to set the printing permissions between "None", "150 DPI", and "High Resolution". However, when I print between two PDF's with 150 DPI and max resolution, I honestly can barely notice the difference between the two (the 150 DPI is "slightly" worst, i.e. letters are slightly more jaggedly). I was wondering is this normal, as I was hoping the lower setting would make the printout hard to read, not just a "quick-print" (I used a Laser Printer with 1200 DPI). I don't mean to make a big deal out of it, but I personally do not think this a very useful feature from a security standpoint.
Secondly, I'm having trouble creating signable PDF's. I basically want the file to only allow a user to sign, and nothing else, so I set the "Changes allowed" to just "filling in forms and signing existing signature fields". But doesn't seem to work, because instead I have to set it to allow "any except extracting page". Only then can I sign the PDF, but then this also allows it to be changed (which I don't want). Is there something wrong with what I'm doing? Any help is appreciated!It's a very common question, and as Michael says there's not a lot you can do. Even doing the imposition yourself is unlikely to help, as most commercial raster image processors (RIPs - the software which turns your document with its fonts, graphics etc into the pattern of dots needed to physically generate the image on the printing drum) need unencrypted files.
If the print shop has an ad-hoc workflow which supports encryption (such as printing direct from Acrobat in the way desktop users do), there are plugins for Acrobat to handle the page imposition; but it's not something native to the application and the printer will have to give you very precise directions as to what layout to create. Many print shops won't entertain that idea unless there's an overriding commercial reason, as it's too much hassle for them to deal with errors in the client plates. Worth asking, but I doubt they'll agree to it.
Given the need to send unsecured files to an external contractor for printing, your "protection" is in the form of the contract, not digital encryption. The former can be settled in court if they break the terms, the latter can be bypassed in ten seconds and you'll probably never know. If the files are truly too sensitive to send to anyone, it's time to get yourself a laser printer - these days the machines many local print shops rely on are in essence a color photocopier, and you can rent them for about the same price. -
How do I overcome the security setting on a pdf document so I can covert it to word. This is not to alter the meaning of the original document, purely to copy and paste into a word document.
You would need
1. Adobe Acrobat (not acrobat.com services)
2. The password chosen by the document's maker
The document might allow you to copy/paste text without converting to Word. Check it out. Otherwise contact the copyright holder to see if they will grant or sell you a copy for your use. -
Airport Express not recognized by Utility after changing security setting.
We use an Extreme with an Express to extend the network and run speakers. While trying to eradicate Airtunes dropouts I changed the security setting on the Express using the Airport Utility. After the update, the Express is no longer being recognized. Help!!! I've unplugged it and used the reset button to no avail. I'm a techno-dummy, so please be gentle. I really do appreciate any insight.
Hi,
It seems you have set a too strong security on the Extreme that is not supported on the Express.
I don't know what model of Express you have so try to use a less strong security on the Extreme.
(you can find the security specs of your express on Apple's website : http://support.apple.com/specs/#airport )
As you have reset the Express... you will first have to set it up again...
P.S. : Do the connection drop problems occur on the Express and / or on the extreme ?
As security settings "should" not be the cause for WiFi connection drop, something else is.
Can you give more info on what you already tried ? Ex : Multicast Rate, Transmit Power, Use wide channels, Closed network, Use interference robustness
Kind regards, -
Why can't I connect to my brother MFC-J4510DW printer wirelessly? The printer is connected to the router.
I can surf the web. My wife can print from her PC wirelessly on it.
I wonder if some security setting may be keeping it from connecting to my MacBook Pro. I've installed the software, firmware and driver updates but
it still shows "off line"
with the printer power on. Any suggestions?All I can suggest right now is back up first the try to reset the printing system, (all printers in the list will be removed).
Then connect directly to the printer via ethernet or to the Mac using USB and restart the efforts you have made up until now.
As for router settings, it's possible but not likely that your router only allows a small number of clients. It's also posible that you have MAC address filtering on, lastly are you using the correct wireless protocol, (802.11a/b/g WEP or WPA etc)? -
SendAndLoad fails in mac .app version - possible security setting problem?
Hi all,
I'm having trouble with sendAndLoad working on the .app version of a flash application I made. So far it's only happening on one computer, so it appears to be some sort of security setting. Here's what's going on:
I've built a flash application (Flash 9, AS2) that has three versions: an online version, a standalone .exe version for PC, and a standalone .app version for mac. The user must log in to use the application. Online, this is handled by the portal hosting the flash. In the standalone versions, the user must login through the flash application. Through sendAndLoad, it accesses the same database of user info as the online version. The user just enters username/password, clicks "Submit," and if it finds the combination in the database, it lets the user in. If not, it gives them a message saying they entered the wrong username/password.
This has tested fine across macs and pcs, but sadly one macbook can't use the .app version. It launches, they put in valid username/password, hit submit and it freezes. All I can tell is that it gets the httpStatus number 0. As you can see below, I've got it set up to spit out an error message if it fails to load (login_lv.onLoad = function(success)), but it doesn't even do that.
I've put a crossdomain.xml file at the root level of the domain that's set to allow access from any domain.
This computer can log in successfully to the online version of the course, but the .app version seems to be hampered by some sort of security setting. The problem computer's settings match the settings of a mac I've tested successfully. It has up-to-date Flash 10 and is running Leopard. Here are security settings:
System Preferences>Security
General
Everything is unchecked
FileVault
Turned off
Firewall
"Allow all incoming connections" is selected
I'd appreciate any ideas anyone has. I'm far from wise about the ins-and-outs of mac security, so I may be missing something. I'm happy to clarify anything.
Code is below. It loads login_lv first, then bookmark_lv. It never gets far enough to load bookmark_lv. The severAppUrl is set to a placeholder for confidentiality's sake. The path is defintely right. It works on other computers.
Thanks!
Mike
// create a LoadVars instance
var login_lv:LoadVars = new LoadVars();
// add the login variables to pass to the server
login_lv.userid = "";
login_lv.pwd = "";
login_lv.modname = "a";
// setup login urls
var serverAppUrl = "http://myurlhere"; //this is just a placeholder. good ol' confidentiality agreements...
var loginUrl = serverAppUrl+"login.asp";
// setup bookmark urls
var bookmarkUrl = serverAppUrl+"menu.asp";
var bookmark_lv:LoadVars = new LoadVars();
// add the bookmark variables to pass to the server
bookmark_lv.studentid = "";
bookmark_lv.isAdmin = "";
bookmark_lv.modname = "A";
_global.modnameTemp = bookmark_lv.modname;
// setup login function
function doLogin() {
login_lv.userid = login_mc.user_txt.value;
login_lv.pwd = login_mc.pwd_txt.value;
login_lv.sendAndLoad(loginUrl,login_lv,"GET");
// send the login info
login_mc.continueBtn_mc.onRelease = function() {
this.enabled = false;
doLogin();
// variables will appear in the login_lv object
login_lv.onLoad = function(success) {
if (success) {
if (this.studentid == undefined) {
login_mc._x = 0;
trace("not logged in");
debug_mc.body_txt.text+="\nnot logged in";
if(this.reas == "Please Complete Overview and first 3 Module(s) with at least 70 score."){
login_mc.loginBad_mc.gotoAndStop("r2");
login_mc.loginBad_mc._visible = true;
} else if(this.reas == "Please Complete Overview Module first."){
login_mc.loginBad_mc.gotoAndStop("r3");
login_mc.loginBad_mc._visible = true;
} else {
login_mc.loginBad_mc._visible = true;
} else {
login_mc._x = 800;
trace("now logged in");
debug_mc.body_txt.text+="\nnow logged in";
trace("studentid: "+this.studentid);
trace("isAdmin: "+this.isAdmin);
//track variables for later use
_global.studentidTemp = this.studentid;
_global.isAdminTemp = this.isAdmin;
bookmark_lv.studentid = ""+this.studentid+"";
bookmark_lv.isAdmin = ""+this.isAdmin+"";
bookmark_lv.sendAndLoad(bookmarkUrl,bookmark_lv,"GET");
}else{
debug_mc.body_txt+="\nlogin load error"
login_lv.onHTTPStatus = function(httpStatus:Number) {
this.httpStatus = httpStatus;
if(httpStatus < 100) {
this.httpStatusType = "flashError";
else if(httpStatus < 200) {
this.httpStatusType = "informational";
else if(httpStatus < 300) {
this.httpStatusType = "successful";
else if(httpStatus < 400) {
this.httpStatusType = "redirection";
else if(httpStatus < 500) {
this.httpStatusType = "clientError";
else if(httpStatus < 600) {
this.httpStatusType = "serverError";
debug_mc.body_txt.text+="\n login_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;
//prepare bookmarkXML to receive returned info from bookmark_lv function
var bookmarkXML = new XML();
bookmarkXML.ignoreWhite = true;
bookmarkXML.onLoad = bookmark_lv;
// variables will appear in the bookmark_lv object
bookmark_lv.onLoad = function(success) {
if (success) {
trace("bookmarked");
debug_mc.body_txt.text+="\nbookmarked";
trace("bookmarkXML: "+bookmarkXML);
var bookmarkNode = mx.xpath.XPathAPI.selectNodeList(this.firstChild, "/bookmark");
trace("bookmarkNode: "+bookmarkNode);
var bookmarker:String = unescape(eval("bookmark_lv"));
trace("bookmarker: "+bookmarker);
bookmarker = bookmarker.split("<xml>").join("");
bookmarker = bookmarker.split("<bookmark").join("");
bookmarker = bookmarker.split("/bookmark>").join("");
bookmarker = bookmarker.split("</xml>").join("");
var startIndex:Number;
var endIndex:Number;
startIndex = bookmarker.indexOf(">");
trace(startIndex);
endIndex = bookmarker.indexOf("<");
trace(endIndex);
var bookFinally:String;
bookFinally = bookmarker.substr(startIndex+1, endIndex-2);
bookFinally = bookFinally.split("<").join("");
setBookmarkStr = ""+bookFinally+"";
trace("string: "+setBookmarkStr);
_global.newBookmark = bookFinally;
play();
}else{
debug_mc.body_txt+="\nbookmark load error"
bookmark_lv.onHTTPStatus = function(httpStatus:Number) {
this.httpStatus = httpStatus;
if(httpStatus < 100) {
this.httpStatusType = "flashError";
else if(httpStatus < 200) {
this.httpStatusType = "informational";
else if(httpStatus < 300) {
this.httpStatusType = "successful";
else if(httpStatus < 400) {
this.httpStatusType = "redirection";
else if(httpStatus < 500) {
this.httpStatusType = "clientError";
else if(httpStatus < 600) {
this.httpStatusType = "serverError";
debug_mc.body_txt.text+="\n bookmark_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;try using different loadvars instances for your send loadvars and for your receive loadvars.
Maybe you are looking for
-
unable to download previous purchases to my pc when i click on the quick link section on the itunes store home page
-
Buying New Phone but Contract can't yet what are my options???
Okay I dropped my phone in some water and had to find a replacement it is a razor but being it was given to me there are issues with it... The phone changes settings on its own and I can't access VM called Verizon and they can't help with changing it
-
100 GB missing hard drive space J115
Hi, My hard drive is rapidly disappearing! Explorer calls the C drive SW_preload and says the capacity is 225 and 32.8 remains. I can find about 70 GB of data files (mostly video) and 10 GB of program files. Any ideas of where the space is being
-
Installing the new camera raw plugin for pse6 HELP!!!
Ok, so what am I doing wrong? I've downloaded the new camera raw 4.6 plugin for pse6 and It isn't updating! Can someone help me??? I'm obviously doing something wrong - if you could walk me through the steps I'd greatly appreciate it! Thanks!!!
-
Pink & red vertical & horizontal lines with mini box?
I moved an object I was creating to the artboard. In doing so, it reveals pink & red vertical lines around all the elements within the object. Each line section has a mini pink or red box with a number at the top corner and what looks like a histog