Multidmedia Limited (MDM)
Search
advanced search »    
Quick Links
advanced search »
   Friday September 10th 2010

 




Untitled Document
+
Products & Solutions
 
Products
- Zinc 3.0 Builder
- Zinc 3.0 Plug-In Windows
- Zinc 3.0 Plug-In Mac OSX
- Zinc 3.0 Plug-In Linux
- Zinc 3.0 Development Suite
- Inferno 1.0 Windows
- Inferno 1.0 Mac OSX
Solutions
- Developers
- Designers
- Education
   
+
Support & Resources
 
Support
- Support Home
- Technotes & Known Issues
- FAQs
- Contact Us
Resources
- Software Updates
- Software Release Notes
- Software Bug Management
- Developer Articles
- File Exchange
- LiveDocs
- Support Forums
   
+
Purchase Online
 
- Online Shop
- Find a Reseller
- Volume Licensing
   
+
Company
 
- About Multidmedia (MDM)
- Client Showcase
- Legal Information
- Job Opportunities
- Press Room
- Blog
   
 

breadcrumbs

Home > Support > Bugs

 

Software Bug Management & Tracking

The MDM Software Bug Management and Tracking System is used to track and monitor the progress of user reported software bugs. You can search for a reported issue below to track it's progress and/or to get more information on an outstanding technical issue.


Bug Report #ZNC-2254QM
Verified on 19 March 2010
calling mdm.Application.Trial.activate has no effect  
Reported By Software User (Registered)
This issue is Pending and is marked as a Medium priority.
 
Zinc 3.0 > Windows > Wrapper/Projector > 3.0.19 > Non-Functioning  
Description
When there is application trial feature enabled and there is serials text filed provided and built into executable calling mdm.Application.Trial.activate(...) method with correct serial key should remove trial protection and change results that are returned for example with mdm.Application.Trial.usesLeft property.
The expected change is that value returned by "usesLeft" after activate is either non number value (NaN) or value of -1.
In current release activate seems to not have any affect either on what is returned by calling mdm.Application.Trial.usesLeft on application startup or after activate was called.

To repeat please download and compile provided sample project.
It's code is based on below script:

//
//
//
import mdm.*;
//
const SERIAL_CODE_IN_SERIAL_TEXT_FILE:String = "abcd";
//
function initApp():void
{
// #1 check results on application startup
var numOfUsesLeft:Number = mdm.Application.Trial.usesLeft;
// #2 NaN (or at least -1) should mean "trial protection was removed"
debug("num of uses left: "+numOfUsesLeft+" at startup");
// #3 evaluate/validate serial key (provided with setup in ZINC Builder)
var isValidKey:Boolean = mdm.Application.Trial.evaluate(SERIAL_CODE_IN_SERIAL_TEXT_FILE);
debug("key: "+SERIAL_CODE_IN_SERIAL_TEXT_FILE+" is valid: "+isValidKey);
//
if(isValidKey)
{
// #4 remove trial protection feature after checking serial code validity
var trialRemoved:Boolean = mdm.Application.Trial.activate(SERIAL_CODE_IN_SERIAL_TEXT_FILE);
debug("trial removed: "+trialRemoved);
}else
{
// ops, in test that should be always correct
debug("incorrect test setup");
return;
};
// #5 display what is currently returned by mdm.Application.Trial api
numOfUsesLeft = mdm.Application.Trial.usesLeft;
debug("num of uses left: "+numOfUsesLeft+" at end");
};
//
var tf:TextField = null;
function debug(msg:*):void
{
if(!tf)
{
tf = new TextField();
tf.width = stage.stageWidth;
tf.height = stage.stageHeight;
addChild(tf);
};
tf.appendText(msg+"\n");
tf.scrollV = tf.maxScrollV;
}
//
mdm.Application.init(this, initApp);


and one should see results similar to:

num of uses left: 998 at startup
key: abcd is valid: true
trial removed: true
num of uses left: NaN at end

(or)
num of uses left: -1 at end

The actual results are:

num of uses left: 998 at startup
key: abcd is valid: true
trial removed: true
num of uses left: 998 at end
Attached File(s)
Click Here to download the Attached File
Resolution
Pending

View all Pending Bug Reports » Report a new Software Bug/Issue »

 

 
Multidmedia Limited (MDM)

AddThis Social Bookmark Button
Copyright © 2002-2010 Multidmedia Limited (MDM) All rights reserved. Use of this website signifies your agreement to the Terms of Use.
Flash, Flex and associated Logos are the Registered Trademarks of Adobe Systems, Inc.
There are currently 24 Users Online.