Solved

How I Link to powerpoint presentaion using adobe flex

Posted on 2009-04-14
7
684 Views
Last Modified: 2013-11-11
I have a web page using Adobe Flex 3, and I have one button that will link to PowerPoint presentation file, how can I make the link using action script 3 to link to the file. The file is located in a local area network server.
Regards
Khalid Almansour

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1316.2122" height="798.25757">
	<mx:Panel width="412" height="565" layout="absolute" horizontalCenter="-389" verticalCenter="11" title="Today's Agenda" backgroundColor="#C8C8CE">
		<mx:Label text="Agenda" fontSize="30" color="#134FD7" fontFamily="Arial" alpha="0.33" fontWeight="bold" horizontalCenter="0" verticalCenter="-221"/>
		<mx:Button x="120.5" y="106" label="IS Overview" fontSize="18"
			click="getURL(new getURL('Arch.pptx'))"
			 borderColor="#B7B7BC" fillAlphas="[1.0, 1.0]" fillColors="[#A0B0EB, #3135E0]" color="#FAFAFA" width="175.5"/>
		<mx:Button x="31" y="146" label="A Day in Salior's Live" fontSize="18" width="330" color="#FFFFFF" fillAlphas="[1.0, 1.0]" fillColors="[#201E8D, #7673FA, #2F2BE7, #2F2BE7]"/>
		<mx:Button x="113" y="195" label="Aviation" fontSize="20" width="183"/>
		<mx:Button x="113" y="238" label="Marine" fontSize="20" width="183"/>
		<mx:Button x="113" y="281" label="MSSD" fontSize="20" width="183"/>
		<mx:Button x="113" y="324" label="RHED" fontSize="20" width="183"/>
		<mx:Button x="113" y="367" label="TD" fontSize="20" width="183"/>
		<mx:Button x="113" y="420" label="PDD" fontSize="20" width="183"/>
		<mx:Button x="31" y="474" label="Admin R&amp;R Program" fontSize="20" width="330" height="41" color="#F4FBFC" fillAlphas="[1.0, 1.0]" fillColors="[#261F85, #261F85]"/>
	</mx:Panel>
	<mx:Image width="729" height="519" source="../images/Picture1.jpg" horizontalCenter="189" verticalCenter="3"/>
	
</mx:Application>

Open in new window

0
Comment
Question by:mansouka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 24144781
Try this:

<mx:Button label="click me" click="{navigateToURL( new URLRequest("http://.../presentation.ppt") )}"/>
0
 

Author Comment

by:mansouka
ID: 24145234
Thank you for the help, but it did not work, I also created a folder on the project folder and copied all of my presentaion but it did not work, please help, I need it urgently, I will increase the point to 500.
by the way I am using .pptx instead of .ppt for office 2007.

Regards
Khalid Almansour
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 24145390
Please post your code and I'll debug it.
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:mansouka
ID: 24166217
The folowing is the codes that I am using:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1375.6" height="1007.1">
      <mx:Panel width="352" height="684" layout="absolute" x="22" y="36" backgroundColor="#88989E">
            <mx:Label text="Agenda" fontSize="30" color="#110DC1" fontFamily="Arial" alpha="0.33" fontWeight="bold" fontStyle="normal" horizontalCenter="-5" y="3"/>
            <mx:Button x="51.5" y="217" label="Aviation" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest(&quot;Av.pptx&quot;))"/>
            <mx:Label x="10" y="172" text="Departments' Shows:" fontSize="20" fontWeight="normal" width="322" height="37"/>
            <mx:Button x="51.5" y="274" label="Marine" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest(&quot;marine.pptx&quot;))"/>
            <mx:Button x="51.5" y="331" label="Mechanical Shops" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest(&quot;mssd.pptx&quot;))"/>
            <mx:Button x="51.5" y="388" label="Roads &amp; Heavy Equip." fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest(&quot;p.pptx&quot;))"/>
            <mx:Button x="51.5" y="445" label="Transportation" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest(&quot;p.pptx&quot;))"/>
            <mx:Button x="51.5" y="502" label="Power Distribution" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest(&quot;pdd.pptx&quot;))"/>
            <mx:Button x="106" y="83" label="IS Overview" click="navigateToURL(new URLRequest(&quot;IS.pps&quot;))" fontFamily="Georgia" fontSize="15" fontWeight="bold"/>
            <mx:Button x="69" y="119" label="A Day in a Sailor's Life" click="navigateToURL(new URLRequest(&quot;isvideo.avi&quot;))" fontFamily="Georgia" fontSize="15" fontWeight="bold"/>
            <mx:Button x="79" y="588" label="Recognition Program" click="navigateToURL(new URLRequest(&quot;p.pptx&quot;))" fontFamily="Georgia" fontSize="15" fontWeight="bold"/>
      </mx:Panel>
      <mx:Image x="382" y="69" source="../images/Picture1.JPG" width="873" height="652"/>
      
</mx:Application>
I can not load any powepoint presenation from my local network, nothing happend when I click the button.

Regards
Khalid ALmansour
0
 
LVL 12

Accepted Solution

by:
lexxwern earned 500 total points
ID: 24166240
Please try this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1375.6" height="1007.1">
      <mx:Panel width="352" height="684" layout="absolute" x="22" y="36" backgroundColor="#88989E">
            <mx:Label text="Agenda" fontSize="30" color="#110DC1" fontFamily="Arial" alpha="0.33" fontWeight="bold" fontStyle="normal" horizontalCenter="-5" y="3"/>
            <mx:Button x="51.5" y="217" label="Aviation" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" 
			color="#110DC1" click="{navigateToURL(new URLRequest("Av.pptx"))}"/>
            <mx:Label x="10" y="172" text="Departments' Shows:" fontSize="20" fontWeight="normal" width="322" height="37"/>
            <mx:Button x="51.5" y="274" label="Marine" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest("marine.pptx"))"/>
            <mx:Button x="51.5" y="331" label="Mechanical Shops" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest("mssd.pptx"))"/>
            <mx:Button x="51.5" y="388" label="Roads &amp; Heavy Equip." fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest("p.pptx"))"/>
            <mx:Button x="51.5" y="445" label="Transportation" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest("p.pptx"))"/>
            <mx:Button x="51.5" y="502" label="Power Distribution" fontSize="15" width="239" height="49" fontWeight="bold" fontFamily="Verdana" color="#110DC1" click="navigateToURL(new URLRequest("pdd.pptx"))"/>
            <mx:Button x="106" y="83" label="IS Overview" click="navigateToURL(new URLRequest("IS.pps"))" fontFamily="Georgia" fontSize="15" fontWeight="bold"/>
            <mx:Button x="69" y="119" label="A Day in a Sailor's Life" click="navigateToURL(new URLRequest("isvideo.avi"))" fontFamily="Georgia" fontSize="15" fontWeight="bold"/>
            <mx:Button x="79" y="588" label="Recognition Program" click="navigateToURL(new URLRequest("p.pptx"))" fontFamily="Georgia" fontSize="15" fontWeight="bold"/>
      </mx:Panel>
      <mx:Image x="382" y="69" source="../images/Picture1.JPG" width="873" height="652"/>
      
</mx:Application>

Open in new window

0
 

Author Comment

by:mansouka
ID: 24169893
Thank you
It works
0
 

Author Closing Comment

by:mansouka
ID: 31570280
Thanks much
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question