george-raphael / flexpaper

Automatically exported from code.google.com/p/flexpaper
1 stars 0 forks source link

Reference Error when using FlexPaper 2.1.2 SWC for Adobe Flex 3.5 SDK #380

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download FlexPaper 2.1.2 SWC for Adobe Flex 3.5 SDK
2. extract in libs folder
3. create an instance of the FlexPaperViewer

What is the expected output? What do you see instead?
Expected Result : 
 - new instance of FlexPaperViewer
Actual Result :
 - application throws error #1065

What version of the product are you using? On what operating system?
 - FlexPaper 2.1.2 SWC for Adobe Flex 3.5 SDK
 - Adobe Flash Builder using 3.5 SDK
 - Windows 7 64 Bit

Please provide any additional information below.
 - has license
 - server and client machine doesn't have internet access (intranet application)

Original issue reported on code.google.com by mhhechan...@gmail.com on 29 May 2013 at 5:22

GoogleCodeExporter commented 9 years ago
Try the following example of how to create a viewer:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
width="100%" height="100%" initialize="init()">
    <mx:Script>
        import com.devaldi.controls.flexpaper.FlexPaperViewer;
        import com.devaldi.controls.flexpaper.FlexPaperViewer_Base;

        private function init() : void {
            var fp : com.devaldi.controls.flexpaper.FlexPaperViewer = new com.devaldi.controls.flexpaper.FlexPaperViewer();

            mycontainer.addChild(fp)

            fp.x = 0;
            fp.y = 0;
            fp.SwfFile = "Paper.pdf.swf";
        }
    </mx:Script>

    <mx:VBox width="100%" height="100%" id="mycontainer">

    </mx:VBox>
</mx:Application>

Original comment by erik.eng...@devaldi.com on 9 Jun 2013 at 9:18

GoogleCodeExporter commented 9 years ago
Good Day, 

the code you provide doesn't resolve the issue.

Thanks.

Original comment by mhhechan...@gmail.com on 11 Jun 2013 at 6:51