Advertisement

02.04.2008 at 02:33PM PST, ID: 23136563
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Is it possible to zoom a picture over 100%?

Asked by The_Kingpin08 in Adobe Flex, Web Languages/Standards

Tags: , ,

Hi experts,

I decided to learn the Flex language, and even though I've done some Flash before, I feel completely lost right now!

I found an open source flipbook version of Flex (http://www.quietlyscheming.com/blog/components/flexbook/) and I'd like to customize it.

What I'm trying to do right now is pretty simple: I want to be able to zoom a page over 100% (up to 300% if possible) of it's size when the user click it.

To do this, I have use the FlexBook image browser example (found here http://demo.quietlyscheming.com/book/FullPage.html) but the zoom only streches the pictures to 100%. Also, unlike this example I'm gonna use image that are gonna fill the entire page.

I would really appreciate if someone could helpe me out or give me some hints on how to do this.
I post my code below, so feel free to let me know if you need more information.

Thanks a lot and have a nice day.
Frank
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml" xmlns:l="*" layout="absolute" 
	xmlns:controls="qs.controls.*"
	creationComplete="initTimer();" xmlns:containers="qs.containers.*"
	viewSourceURL="/source/FlexBook.zip"
	>
<!--
Copyright (c) 2006 Adobe Systems Incorporated
 
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
 
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
-->	
 
	<Script>
		<![CDATA[
			import mx.containers.Form;
			import mx.core.UIComponent;
			import mx.controls.Alert;
			
			public  function focusOn(target:*):void
			{
				if(landscape.selection.length == 1 && landscape.selection[0] == target)
				{
					landscape.selection = []; 
					Alert.show("Zoomout")
				}
				else
				{
					landscape.selection = [target];
					Alert.show("Zoomin")
				}				
			}
			
			[Bindable] public var dataSet:Array;
		]]>
	</Script>
	
	<containers:Landscape width="70%" top="40" bottom="1" paddingLeft="1" paddingTop="1" paddingBottom="1" paddingRight="1" id="landscape"  zoomLimit="none" clipContent="false" cachePolicy="on">			
		<Canvas width="100%" height="100%" >
			<controls:FlexBook id="book" y="47" left="40" right="40" top="40" height="80%" animateCurrentPageIndex="true" showCornerTease="true" edgeAndCornerSize="80" itemSize="halfPage">
 
				<!-- Book's cover -->
				<controls:cover><controls:SuperImage maintainAspectRatio="true" width="100%" height="100%" source="images/page001.jpg" click="focusOn(event.currentTarget)" /></controls:cover>
				
				
				<controls:itemRenderer>
				<Component>
					<VBox>								
						<controls:Zoomer>
							<controls:SuperImage maintainAspectRatio="true" width="100%" height="100%" data="{data.slice(0,data.indexOf(','))}" click="outerDocument.focusOn(event.currentTarget)" />
						</controls:Zoomer>
					</VBox>
				</Component>
				</controls:itemRenderer>
				
				<!-- Images of the other pages of the book -->
				<String>images/page002.jpg</String>
				<String>images/page003.jpg</String>
				<String>images/page004.jpg</String>
			</controls:FlexBook>
			
		</Canvas>
	</containers:Landscape>	
</Application>
 
Keywords: Is it possible to zoom a picture over 1…
 
Loading Advertisement...
 
[+][-]02.04.2008 at 11:14PM PST, ID: 20821214

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.06.2008 at 12:45AM PST, ID: 20830447

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.06.2008 at 11:28AM PST, ID: 20834882

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.06.2008 at 11:57PM PST, ID: 20838978

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Adobe Flex, Web Languages/Standards
Tags: Adobe, Flex Builder, 2
Sign Up Now!
Solution Provided By: Robinsonx6
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.07.2008 at 12:01AM PST, ID: 20838995

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 06:47AM PST, ID: 20841098

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628