IDE :: Displaying PDF File Within Flash Movie?
Jan 23, 2009I have been asked to write a small flash widget in AS3 which can display a PDF within Flash Movie. NOT open a pdf file in a browser. Can this be done?
View 3 RepliesI have been asked to write a small flash widget in AS3 which can display a PDF within Flash Movie. NOT open a pdf file in a browser. Can this be done?
View 3 RepliesI want to build a flash movie displaying data from an XML file from snow-forecast.com.The file is attached.
I realy do not have enough knowledge of XML.
The file contains data for 6 days forecast.
The structure is All days are in array <periods>
How can i read and parse data in a flash movie for each day? Just give me an example of the first two days _pdayname and the params _pmax _pmin for <max> <min> and <mid>
I am using webview control for displaying a flash .swf file in my application.when i run the app screen displaying whole white scrren. Here it is my code,
public class flash extends Activity {
/** Called when the activity is first created. */
@Override[code].........
I am trying to create a flash movie that takes variables from the address bar of the page in which it is contained, and then displays the results.If possible I would like to use PHP in conjunction with flash to achieve this.
View 1 RepliesI have been asked to add support to a xml based website. I have been looking into it and have realised that it is not going to be very straight forward. The text does have english phrases in when describing products being used.
After doing some research I have found that CS3 does not 'support' rtl text. I also read that CS4 has added support, is this worth looking into? I read that it was buggy.
I found FlarabySWF which does what I think I am after, but not for all the languages I need, and only at design time rather than runtime.
I also found Gchats TextBox 3.0.0 but this didn't seem to work.
I also found some solutions using CSS, but these didn't seem to work with multiline text. See this example. It also didn't work as the text I am trying to display is bi-directional ..
Actualy, importing Arabic text is not a problem, but dealing with bidirectional text of Arabic and English within the same line is a big one.
URL...I can't seem to figure out why the swf file is so small. I published it at 100% width & height (I want it to be full screen) but it only shows up as 216 pixels tall.
View 2 RepliesI just downloaded the latest version of google chrome and my html page with flash inside is not appearing in chrome.I am using an authoring tool called outstart trainer. The pages work well in IE and Firefox but does not work in google chrome.
View 1 Repliescreate a xml news board, i finally completed the news board and i had no problem displaying my offline xml file.I uploaded it to my testing server and nothing came up. i parse the rss feed in a different way ?when i tested it on my testing server. but when i tried it locally from my flash app it worked.
View 5 RepliesI have a problem showing up a SWF file (Flash) in an ASP MVC file.I have problems adjusting the height to 100%. If this is showed in Firefox or Opera the result is the picture you see below (everything works fine under Chrome and IE).[code]
View 1 Replieshow I export the thing (as an image, or a movie, and in any format) I can't see the text. This is especially frustrating because text forms the entire basis of my animation.Tried converting text to movie clips, no difference. The weird part is, I was able to test the thing early on with no problem-- text displayed and everything. I should add: I have used MULTIPLE fonts... and I think this was about when things started not working.I'm working on a deadline and if you know how to fix this, it would make a big difference to my life.
View 1 RepliesMy _root movie is nothing more than a interface with navigation buttons. When someone clicks a button another swf is loaded into an empty movie clip on _root.
My Problem:I understand loaders and use them all the time, however, I still to this day have never gotten a loader to work with loading an external movie into a currently playing movie. (ie: in my _root movie you press the "Searching" button and searching.swf is loaded into _root.contents --> contents is the empty movie clip)So anyways... where does the loader go? The only results I've ever had is as SOON as the loadMovie method is called the movie hangs until the entire movie clip is loaded. Then the loader runs... thus making it totally useless.
How do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.
[Code]...
I have a flash movie atwww.cityofhillcrestvillage.org that will not display either locally or remotely in IE8. It is written in actionscript 2 and requires Flash Player 7 or greater. It displays fine in Chrome and Firefox. I tested it in all three browsers when I first developed it a couple of months ago and it worked fine.When the page first loads, it flashes on for a second, then disappears, and the alternate content does not display. If you reload the page, it flashes on again for a split second.
View 1 Replieshow to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?
Code:
public class robotMC extends MovieClip
{
public function robotMC()
{
[code]....
have to build an app that shows a bunch of photos (listed in an XML file) based upon certain criteria in the XML data. First view will show ALL the photos, and then the user will whittle down the choices/photos based upon criteria they select via check boxes.
how to pull the XML data into the application. I'll have to build a listener for the check box component(s), which shouldn't be difficult. The onClick event would then have to search through the XML/array and show only the user-selected data. It would be good also if the pictures were actually pulled from the server's hard drive rather than having them stored in the Flash file. That would allow the site's owner to easily add images by simply copying them to the server and adding data to the XML. Is that do-able, and if so, can anyone put me on the right path (theorhetically) to developing it?
I have at this pre-planning stage is this: ALL the pix are certainly not going to fit on the stage at one time. I am going to have to have a finite number of pix, say six, visible on the stage, and then allow the user to filter through the as-yet-unseen images by clicking on a number (Page 2 of 7), or something along those lines.
I'm working with Scotty's image gallery code and I would like to use CDATA instead of a node attribute to supply captions for the images. The reason being that it should be *easy* to apply HTML formatting to the CDATA, including bolding and line breaks. At this stage I have two issues:
1) The only way to get the HTML to display is to apply a stylesheet. For some reason the stylesheet isn't working here (even though the exact same code works for me in a different file).
2) I don't know how to iterate through the nodes to pull the appropriate CDATA when a thumbnail button is clicked. I do know how to target the very first CDATA node value so that's what you see displayed. But I'm not figuring out how to loop through them properly.
[Code]...
how can i display specific line of .txt file in a text field??
View 3 RepliesWe're making a viral video which is going to be distributed as FLV movie file free for download and redistribution.
I don't know much about flash yet but I can imagine FLV is just some sort of special flash application which can also include arbitrary code.
Is it possible to track how many times that movie file has been played by letting the FLV file perform a server-callback when playback begins?
I have to build one MXP package for Flash (not Flex). But i have multiple components, somthing like HelpSymbolMovieClips(have its on class), one image holder. etc. I need to combine there swc file into a single MXP file.How can i make a all these multi movieClip functionality in a single SWC file. Am bit confused about the structure of the component which is having multiple functions/MoiveClips. like (Image gallery components.
View 1 RepliesHow would one go about diplaying text from the html file within which the swf movie is embedded?
Basically i have a rotating banner on a page (jquery isn't right for this one) and wish to have the text messages within the diferent slides of the animation load from the html page.
this is a requirement from upstairs for SEO reasons.
Actually my requirement is my application consists a button(submit_Btn) when we click on the button(submit_Btn), each time it must to database(through servlet) and brings the data from database and places it on the flash swf file.Here my problem is for the first time when we click on the button it goes to database and place the data(which was returned from database) on the swf file.Next when we click on the button for the second time(or anytime) it is not going and bringing the new data from database(if some data is modified in database or not),Infact it is showing the old data(the data that was collected from previous ClickListener) only on the swf file and it is also not showing any complile time or run time error.
my Code looks like this:
submit_Btn.addEventListener(MouseEvent.CLICK,onCheck2);
function onCheck2(evnt:MouseEvent):void {
var xmlLoader:URLLoader = new URLLoader(); var xmlurl:String =
[Code].....
I have a 843 pixel x 181 px SWF file that is in a Dreamweaver CS4 HTML table. It plays but the Flash files actual location on the web page is off.It is shifted about 1 or 2 pixels down and 1 or 2 pixels to the right on IE 8, Firefox 3.6.12 and Safari 5.0.1 on the PC.[url]...
View 5 RepliesI have a desktop AIR app that sends vars to a php page, which then rewrites a new css style file. After the vars are uploaded, I set off a refresh function in AIR that refreshes an html display pane, so you can see the css style changes on the html page.I was working great, but since I have changed hosts, I find I have to send the vars twice to see changes.
I thought maybe the problem was that AIR was displaying the new page before php had a chance to write the new css file, but even after putting a 2 second delay timer on the refresh, the problem still exists.I have also made the refresh function URL request append date and time as in:
varSend2 = new URLRequest("http://www.blah.com/"?time=" + new Date().getTime());
I am creating an interactive cd which basically runs a blank projector which then loads in various swf files from fscommand folder as and when required.
Part of the CD is a quiz - created using one of the standard flash templates. When this is loaded into the main projector as a swf file it runs perfectly until it gets to the "results page" - at this point it returns the blank templates e.g Answered = 0.
If you play the swf file on it's own it works fine. If you play the file as a projector on it's own it works fine too.
The problem only occurs when it is loaded into the main projector on a level above the root.
I've got a problem displaying a hyperlink pulled in from an xml file. This is my AS:
[Code]...
ive been trying to build a small internet radio player and it works fine besides displaying what current song is playing to some dynamic text we have it set up to upload a plain .txt file to our website every time the song is changed it is displayed for example
Rick Astley - Never Gonna Give You Up
like i said plain text, this is the code i have that displays it, and it HALF works
Code:
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.text = this;
};
myData.load("example.txt");
but the text displays with %20 for spaces and stuff at the end like so:
Rick%20Astley%20%2D%20Never%20Gonna%20Give%20You%2 0Up=&onLoad=%5Btype%20Function%5D
what am i doing wrong?
I want to display MovieClip "Loading" while loading an XML File, but something went wrong and MovieClip is displayed on the screen after the XML is loaded.the main idea is:when the Test object is added to the stage I call loadQuestions function
ActionScript Code:
private function onAddedToStage(event:Event):void
{
event.target.removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
loadQuestions();
}
it should display movie clip "loading" and load xml:
ActionScript Code:
public function loadQuestions()
{
[code]...
This code doesn't work as it should, because while xml is being loaded there is no MovieClip on the screen(it appears after to load is completed) [URL]
I've been animating with flash for a while but I've recently wanted to get into game programing. I've learned a lot in the past month and I'm trying to create a fairly simple point and click adventure game with some basic stats and scoring. I'm facing a somewhat simple problem and I'm not sure how to get it to work in AS 3.0.
At the beginning of the flash I've established my variables to keep score while exploring the game.
var Health:Number = 1000;
var Day:Number = 1;
var EXP:Number = 0;
var Money:Number = 1000;
What I'm trying to do though is set up a movie clip with menu options that, when clicked, brings up a screen that displays those stats as well as a couple extra menu options. What I can't figure out to do is how do I display those variable inside the movie clip.
When I create a dynamic text field and place "info_day.text = String(Day);" i get an error unless I create a variable within that movie clip. And when I do that the variables in the movie clip are not affected by the chances of the variables in the main flash.
how do I have the variable in the movie clip to accurately display the variables established in the main part of the flash?
I have a simple question, let's say I have a PHP script to return a number for values separated by commas(,). (E.g 2,5,6,1,3) What I wanted to do is to create a Flash file that accepts the PHP values above as individual values and display different Movie Clips based on the values (in this case it'll be Movie Clip 2, Movie Clip 5, Movie Clip 6, etc.)
View 3 RepliesWhy won't my movieclip show? I am not getting any error messages and have used to trace to make sure there are no problems but the movie clip still doesn't show.Class A calls a function in Class B.This function creates a movieclip with a basic graphic just for testing.[code]
View 2 Replies