Solved

How I Link to powerpoint presentaion using adobe flex

Posted on 2009-04-14
7
679 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

777 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