flex pagination example help - apache-flex

I've found a flex paging example I'd like to get working, but can't seem to get it running.
The Example files can be found here: http://blogs.adobe.com/tlf/2008/12/actionscript-pagination-exampl.html
I've downloaded and imported the project into flex. However I seem to have an error that prevents the example from running. Here is the error that appears
The definition of base class DisplayObjectContainerController was not found. – PaginationWidget.as
Method marked override must override another method. – PaginationWidget.as

Here's things I would look at:
Did you install Flex builder in another directory? Is it in your path? Is it on a removable or network drive?
Do you have Flex builder OR Flash CS4 Professional with the TextLayout plugin? Do I have the appropriate example download for my setup?

I've resolved the issue.
Got a hold of someone from Adobe and turns out that the files posted contained old beta code.
He was able to direct me to the new updated source code. - http://blogs.adobe.com/tlf/files/2010/09/Pagination20Build169.zip
He informed me that they are currently slowly working on posting all their examples with current source.

hey, take a look at this component ..
http://forums.adobe.com/message/3166670#3166670
it may help you

Related

Modifying AjaxToolkit Source Code

I have decided to make some changes in source code of ajaxFileUpload but i don know after making changes how can I use that.
How to build that and add the newly modified file to ajax library.
I have googled about this but dint get any solution.
I need help regarding this.
You can make the change in the .js file but make sure to recomplie and add the newly compiled .dll to your project. I think if you found a problem with browsers and know the problem, I'd suggest submitting the fix on Code Plex so it can be included for everyone vs. creating your own version. This way when a new version comes out you don't have to refix the problem before adding the new features.

Displaying Actionscript Documentation in Eclipse

This is probably a very basic question, but how does one enable the actionscript documentation to appear properly in Eclipse? For example, if you hover over addChild, the ASDoc view brings up the class hierarchy with flash.display.DisplayObjectContainer.addChild(child:DisplayObject):DisplayObject, but does not give any of the details, descriptive text, parameters, etc. If I write my own documentation using the /** */ format, it does appear in there. What have I done wrong? :P
I'm using the Helios version of Eclipse with Flash Builder 4. Thanks!
If you are talking about something like following:
then, it is available in Flash Builder. You might want to try it.

How do I display content assist in flex builder for all classes?

I have a components and classes project library. Within the library, flex builder only seems to display content/code assist options for top level classes (e.g. arguments, Array) but not other classes such as VBox. Also, within the non top level classes, class properties are not provided by content assist.
In my other flex projects in the workspace, content assist works fine.
Any help would be greatly appreciated!
Flex / Flash Builder is often inconsistent in stuff like this; but I have never seen the exact situation you describe.
Have you tried closing down and relaunching Flex Builder?
Have you tried launching Flex Builder with the '-clean' attribute?
Have you tried cleaning your workspace?
Are you sure you do not have a syntax error somewhere causing issues? Are all the classes in the library included in your library class? Sometimes error don't show up if the class is not used, and therefore not compiled into the file SWC.
Did you save your source files? I don't think Eclipse updates its index until you save - so, if you just wrote class X with function Y, but didn't save X.as, then Eclipse won't know what to do with X.Y(...
Sometimes when I've run into the problem you're describing, it's been because FB wasn't able to determine what type of object I was using (for example, obj["toto"] = ?).
Another idea may be to update your version of eclipse ("Software Updates" or something like that under the Help menu).
Finally, there's an annoying issue that happens to me sometimes where the content assist will appear for about half a second, then disappear like the window tried to scroll and lost the pop-up. Do you get anything when you press Ctrl-Space?

Any way to analyze the size of a SWF built in Flex?

I have a Flex application that seems larger than it should be. There is a lot of code in it, but not a lot of assets and it just seems large, but I'm not sure how to go about figuring out where the space is going.
I know about the –link-report option, but it only gives the sizes of externally linked library classes. I'm very interested in seeing a report of the sizes of all the classes and resources in my application and it would be a huge bonus if I could also view their dependencies. Not knowing how the code is compiled I'm not sure if this is even possible, but it seems like it should since the compiler can give me the sizes of individual classes linked from other libraries.
I did some searching around, but couldn't find anything helpful. Everything points to the optimization techniques of modularizing and externally linking libraries, which I understand and will implement, but I would really love some more detailed reports of what my compiled application looks like.
To be clear, I'm not really interested in tips on how to reduce the file size, just a report on what is used for and which classes are referencing what.
Anybody have any ideas?
CORRECTION - The link report does show all classes. My particular project in Flex Builder had several CSS files set to compile to swfs. My link report for the main app was being overwritten by these css compiles!
The link report actually contains all compiled classes and not just the ones in external libraries (at least with the Flex 4 SDK). There is an xsl available that will generate an html file of the link report so it is easier to read.
Check this post: http://blog.iconara.net/2007/02/25/visualizing-mxmlcs-link-report/
There is a command-line utility called flash.swf.tools.SwfxPrinter in swfkit.jar, which comes with Flex Builder (or the plug-in or the SDK) and which you can use to analyze information about class sizes. Joe Berkovitz wrote some good instructions on how to make use of it in his blog, and he was working on an AIR-based GUI tool that leverages it, but I'm not sure if he ever published the tool. Still, you can use his instructions to leverage the utility directly from the JAR.
I found a handy little AIR app that really helps organize the link report info.
http://www.kahunaburger.com/2008/03/08/air-link-report-visualizer/
It's old but still works very well.

How to pass custom variables to Flex applications

I'm trying to write an application where parameters have to be passed to the application. In Flex builder I modified the and tags in the index.template.html, but when debugging I still don't see the variables passed (using from as3 the Application.application.parameters object)...
after reading a post i found that I had made a stupid mistake. I had added the
"flashvars", "var1=blah&var2=blah..." to the first
AC_FL_RunContent() which installs the Flash Player. My bad. As soon
as I modified the index.template.html to add the "flashVars" to the
2nd AC_FL_RunContent(), it worked like a charm.

Resources