a7mdfm / flexpaper

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

How do i get the current page of swf file which is viewing by the user? #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How do i get the current page of swf file?
I explain you why i need this thing?
I want to get the current page number bcz one every page i want to change
the background color change so i want to add some manipulation on page
number and according to that manipulation i will change the color of the
background.

What version of the product are you using? On what operating system?
Version : FlexPaper_1.2.4_flash.
OS      : Windows 7

Please provide any additional information below.
sorry if i had posted on wrong area. but i don't where to ask this
question, so i have posted here.

Original issue reported on code.google.com by nitishsu...@gmail.com on 16 May 2010 at 6:35

GoogleCodeExporter commented 8 years ago
Hey guys,
i have found the function from which i can get the current page number.
But i don't know how can i bind that function to javascript function.

This function is at....

FlexPaper\src\com\devaldi\controls\flexpaper\Viewer.as  [ i have download the 
source
code so this is the location of that ]

[Bindable]
        public function get currPage():Number {
            return _currPage;
        }   

        private function set currPage(n:Number):void {
            _currPage = n;
        }

Now i want to bind this   get currPage() function to javascript function or i 
want to
call from the javascript function so that i can get the return value...

So if any one had bind with or get the value from the inbuilt function then plz 
tell
me how to do that?

Is their any way to do the same thing?

Thanks in advance...

Original comment by nitishsu...@gmail.com on 16 May 2010 at 8:24

GoogleCodeExporter commented 8 years ago

Original comment by erik.eng...@gmail.com on 18 May 2010 at 3:42

GoogleCodeExporter commented 8 years ago
Hi, I'm using FlexPaper in an AIR project, but in the code I used <fp:Viewer /> 
instead 
of <fp:FlexPaperViewer />. Now I can call method's like .gotoPage(PAGE_NUMBER) 
and 
currPage etc.

Original comment by esd...@gmail.com on 19 May 2010 at 9:05

GoogleCodeExporter commented 8 years ago
Available in the latest version of FlexPaper. Please check the API documentation

Original comment by erik.eng...@gmail.com on 17 Aug 2010 at 7:13

GoogleCodeExporter commented 8 years ago
SecurityError: Error #3207: Application-sandbox content cannot access this 
feature.
    at flash.system::Security$/allowDomain()
    at rfx::MainTimeline_20347c81073e94eeb899bbd5dc9e43f2()[constructor.as:0]

Original comment by redhatli...@yahoo.com.cn on 13 Mar 2011 at 8:25