Solved

How I Link to powerpoint presentaion using adobe flex

Posted on 2009-04-14
7
683 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to capture audio with video on my presentation on dell windows 7 laptop 65 223
How to setup an account in YouTube 5 103
PDF: Display my cards game? 8 161
PDF edit software 2 64
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

752 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