Solved

How I Link to powerpoint presentaion using adobe flex

Posted on 2009-04-14
7
680 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

749 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