Multidmedia Limited (MDM)
Search
advanced search »    
Quick Links
advanced search »
   Tuesday September 7th 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-3273BI
Verified on 19 March 2010
mdm.Application.Trial.daysLeft should return NaN in non trial-enabled application  
Reported By Staff Member
This issue is Pending and is marked as a Medium priority.
 
Zinc 3.0 > Windows > SWC > 3.0.19 > Incorrectly Functioning  
Description
mdm.Application.Trial.daysLeft should return NaN in non trial-enabled application.
When api returns NaN from mdm.Application.Trial.daysLeft developers expect that application current trial protection state is either undefined (no trial protection api/feature was ever used) or trial protection was just removed (there is no other dedicated property to indicate that state except of checking for NaN value).

Below code should always return NaN (and yields PASSED) once compiled to native application but without any trial protection option used:

import mdm.*;
//
function initApp():void
{
// #1 in non-protected application we should get NaN (no trial was used at all or trial was lifted)
var numOfDaysLeft:Number = mdm.Application.Trial.daysLeft;
// #2 check for NaN = for not protected applications that should be always NaN
var msg:String = "numOfDaysLeft = "+numOfDaysLeft+" ("+(isNaN(numOfDaysLeft) ? "PASSED" : "FAIL")+")";
debug(msg);
};
//
var tf:TextField = null;
function debug(msg:*):void
{
if(!tf)
{
tf = new TextField();
tf.autoSize = "left";
tf.x = tf.y = 20;
addChild(tf);
};
tf.text = msg.toString();
};
//
mdm.Application.init(this, initApp);


To repeat:
#1
compile provide flash source/ZINC project
#2
run resulting executable

Expected output:

numOfDaysLeft = NaN (PASSED)

Actual output:

numOfDaysLeft = 0 (FAIL)
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 33 Users Online.