?
Solved

How I Link to powerpoint presentaion using adobe flex

Posted on 2009-04-14
7
Medium Priority
?
686 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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 what frame rate is, how to control it and what effect it has on the video.

718 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