ActionScript 1/2 :: Forcing A "save As" Dialogue?

May 1, 2009

I have some pdf files which I need to link to a few buttons inside a flash animation, but I don't want to do it with "getURL" because then they start opening in the browser. I want a "save as..." dialogue to pop up. I've googled around for forced "save as dialogue" but all I can find are php and asp solutions.
 
Is this doable in flash?
 
I'm using Flash 8 professional, with Action script 2.

View 5 Replies


Similar Posts:


Actionscript :: Save Text File Without Dialogue Box In It?

Jan 13, 2010

I want to save the text file without dialogue box and store the given particular path in flash actionscript 3.0 or 2.0.

View 1 Replies

ActionScript 3.0 :: Download File Without Prompt Of Save As Dialogue?

Aug 29, 2009

I need a way to be able to download a file without the prompt of save as using filereference i need to download this file, manipulate the file and then later on, upload it back to the server!

View 4 Replies

ActionScript 2.0 :: CS3 Dialogue Trees And Allow Them To Progress?

Feb 9, 2010

As I said once before I'm making a dialogue based flash game.I'm relatively new to flash, so I've been having to scavenge for bits of code for what I want to do...-------Right now my situation is this -When a player "talks" with a character by pressing the "talk" button I want them to be able to pick up at the conversation point they were at last time. Not a save file, but more of a progression,so if they were to explore other parts of the world and come back to the same character, they'd have to click on the same "talk" button, but //still// be advanced in their dialogue tree.

Is there a way to do with with action script code?Something that will tell flash, "Oh, this is where we left off, I'll go to the next frame of dialogue" when players clic on the "talk" button?My only idea to do something like this is quite a hassle -make a variable named "times talked to" and have the button depended on this variable, and make it gain a point every time it is pressed,but I'm under the impression that this effect can be achieved without something like this.

View 1 Replies

Empty Char Embedding Dialogue Box?

Oct 4, 2010

I'm using flash cs4 on a mac and I need to embed some characters to support greek, and probably a lot of other languages. The problem is, my Character embedding dialogue box is empty! There's nothing in it at all... I'm using Tekton Pro as the font for that dynamic text box, I tried using something more basic, Arial and Helvitica didnt work, still nothing to embed. I know the phrase that will be in it, at least the first one, when I put it in the "Include these characters" box and reran, all the dt box would show is an apostrophe. I put the phrase into the dt filed itself and "autofilled" it did the same thing. I also tried doing the same with the % character version ie %B6, it picked up that they were characters but still wasnt displaying right. I'm diverging.

View 3 Replies

ActionScript 2.0 :: RPG-style Dialogue In Flash 8?

Feb 9, 2011

I'm building an RPG game and need help with the dialogue. I have no idea how to go about it. What I want to set up is something that after approaching a character and pressing spacebar (or any key), text displays with an image to the left of the character speaking. I've tried looking up tutorials but they all seem to be for CS3 (I am using Flash 8).

I currently have no code whatsoever to share, since...I don't know where to start =/ . Source codes would be appreciated, but most of all, I'd love a link to a tutorial or past thread that explains in detail (and layman terms...) how to do something like this, since I want to learn as I go.

View 2 Replies

Flash :: Professional - Change Pop-up Dialogue Box?

Mar 22, 2011

I am creating interactives that are interfaced via touchscreens. When someone holds their finger on the screen for more than a few seconds, a settings pop-up appears where the zoom, etc. can be changed in flash. Is there a way to disable this? I use flash cs3 - as2.

View 2 Replies

AS3 :: Php - Open A File Dialogue Box From Zend AMF?

Dec 3, 2010

I want to send a request to my Zend AMF to Open a Dialogue Box for a File Download.The process:Send a request to the Zend Server from my flash App, process the MYSQL results with PHP, then send the result to the browser as a file download (.csv) AND a result true or false to the appI have the code working just fine outside of the Zend Environment, but of course, when i go to echo/print the file - it sends back to flash with nothing happening.Is there any way around this?

$file = "";
$outtype = "Content-type: application/octet-stream";
header($outtype);

[code]......

View 2 Replies

Empty Char Embeddign Dialogue Box?

May 26, 2009

I'm using flash cs4 on a mac and I need to embed some characters to support greek, and probably a lot of other languages. The problem is, my Character embedding dialogue box is empty! There's nothing in it at all... which is... problematic.

I'm using Tekton Pro as the font for that dynamic text box, I tried using something more basic, Arial and Helvitica didnt work, still nothing to embed. I know the phrase that will be in it, at least the first one, when I put it in the "Include these characters" box and reran, all the dt box would show is an apostrophe. I put the phrase into the dt filed itself and "autofilled" it did the same thing. I also tried doing the same with the % character version ie %B6, it picked up that they were characters but still wasnt displaying right. I'm diverging. get that Char embed box to have chars in it... I don't know why its empty.

View 4 Replies

ActionScript 3.0 :: Close The RPG Text Box After The Dialogue Is Completed?

May 20, 2010

I have been using this tutorial to get RPG text boxes in my game. So far, so good. The RPGtext.as I'm using comes from that tutorial, and hasn't been altered, while I'm calling the var arrays containing the character speeches from yet another document class. Something like this:

[Code]....

The dialogue begins and it's all good. Now, here's my dilemma: Is there a way to "shut down" the rpgText movieclip when the Dialogues.d1 has no more text to provide? Each time I press the rpgText movieclip, it refreshes with new text, but when it reaches the final text, I want to be able to press it and make it go away (remove movieclip from scene, something like that).

I tried the "if (Dialogues.d1.length == 0)", but it doesn't work. Is there a way to detect if the Dialogues.d1 has reached its final sentence? Will it be necessary to alter the rpgText.as?

View 12 Replies

ActionScript 3.0 :: Call Javascript Alert Dialogue Window?

Aug 2, 2010

I think I remember hearing that you can trigger a java alert message from within actionscript out to the html page but whats the code to do such a thing?

View 2 Replies

ActionScript 2.0 :: Creating Flash Game With Story Dialogue

Mar 9, 2011

I'm using Macromedia Flash Professional 8 at the moment, and I'm fairly inexperienced with actionscript and most Flash processes. What I'm looking to do is create a game of sorts where characters appear on either side of the screen and a dialogue box appears at the bottom with text scrolling across every time the player clicks "Next" or whatever, and the characters' mouths move and their eyes blink as the text scrolls. We're using voice actors so we'd put an audio clip at the start of each piece of dialogue.

View 1 Replies

Flash :: HTTP Authentication Using Htaccess/htpasswd Dialogue Box Comes Up Twice?

Dec 2, 2009

I have a site that has the main path under password protection. I also have a subfolder that have a separate (htaccess/htpasswd) password protection. For some reason, when I access the subfolder, I'm asked to put in my id/password twice. All of the files that are referenced are under the subfolder.

What should I be doing to troubleshoot this? I've tried this on different browsers and it's the same behavior. There is one main html page with a .swf (the only thing on the page)...it loads other assets but they are within the same subfolder.

View 1 Replies

ActionScript 3.0 :: Splitting Dialogue Text Into Smaller Chunks/Lines?

Apr 27, 2010

I'm working on an RPG engine where all the dialogue is stored in an XML file. Ideally like to be able to pass the engine a large paragraph of dialogue text and display it bit by bit inside a fixed-width text field without splitting any words.So for example, if I were to pass the following chunk of text:"Good countrymen, let me depart alone, And, for my sake, stay here with Antony. Do grace to Caesar's corpse, and grace his speech. Tending to Caesar's glories; which Mark Antony"The engine would work like this:"Good countrymen, let me depart alone, " - PRESS SPACEBAR"And, for my sake, stay here with Antony. " - PRESS SPACEBAR"Do grace to Caesar's corpse, and grace his speech. " - PRESS SPACEBAR"Tending to Caesar's glories; which Mark Antony" - PRESS SPACEBARDoes anyone have any ideas how I could achieve this?

View 1 Replies

ActionScript 2.0 :: Create An Array For Every Time Two Characters Exchange Three Lines Of Dialogue?

Jul 9, 2009

i'm creating a very linear game which will be dialogue-heavy. In fact, there will be little action involved at all. Think a game storybook. I'm using ActionScript 2 because AS3 is just too complicate for the type of newbie that I am. But all I'm trying to do is set up dialogue between two characters in my game with an image of the speaking character to the left of the textbox. Something very much like this:I considered creating arrays for the dialogue but my problem is that if I create an array for every time two characters exchange three lines of dialogue, I would end up with over 300 arrays. Not my cup of tea.

So, instead, I focused on this. I created a function called speak. Speak pulls two parameters: charNum and charText. CharNum is a number which specifies which frame of the charPic instance should be displayed, showing which character is currently speaking. CharText is simply the dialogue the character will speak, which will be displayed in the dynamic textbox with variable name 'dialogue'.The following code is an example of what I have at home. I'm at work trying to get help, so I don't have the actual coding. Therefore, small errors may be present. I'm looking more at the overall functions guiding my code.

[Code]...

You see, AS2 sees these as I believe what is called synchronous functions, meaning they run at the same time. Therefore, the second speak function overwrites the first one before the user presses the space bar to go to the next one. See the issue?I've tried to seek help on this issue (and other before), and I keep getting told about arrays and setInterval. But my problem is that I've tried it all. I don't see a good array tutorial about this type of thing, and setInterval doesn't function like I'd want as well. Instead, it seems that from what I've read and tried, setInterval is for setting a delay up for a certain amount of time. I don't want that. I want a delay to occur until a button (namely the space bar) is pressed.

Like I said, this seems like a fairly common thing to do (stringing together dialogue in a flash movie/game), but I have seen no tutorial nor other help through all my Google and forum searching. A little push in the right direction would be appreciated. Like I said, I've figured out everything else my game needs from preloaders to game inventory to animation effects.

View 1 Replies

ActionScript 2.0 :: Make A Ticker Counter That Starts From 0 - 0 Rand And Counts Up For Portion Of Dialogue?

Sep 27, 2010

I need to make a ticker counter that starts from 0 - 0 rand and counts up for this portion of dialogue.

a commission of between R6,000 and R12,000 per month,
again depending on the amount of each person's
purchases.
200 customers gives you R15,000 to R30,000.
And 600 customers gives you a return of R50,000 to
R100,000. Per month.

View 1 Replies

Actionscript 3.0 :: Forcing A Failure Because T1 <> T2?

Apr 5, 2009

Simulating Validators, how do I programmatically invalidate a TextInput because it doesn't match some external criteria? (even though it passes regexp/other internal validator tests).e.g. on lost focus, point out to the user that "confirm email" doesn't match "email" (even though both are valid email addresses). I've got a regex validator on a cell phone TextInput field that ensures the user enters with the international prefix e.g. 0044 for the UK Then I have a confirm_mobile field but I want to check the mobile TextInput against confirm_mobile TextInput.

The input on confirm_mobile could always be a valid phone number and pass the regexp test but I need to ensure field 2 == field 1 and if not then invalidate field 2 (or at least simulate the Validator behavior) to tell the user the fields don't match. I can catch this at the end via a trigger on the form submit button but still need to know how to throw a red box round "confirm_mobile" using a validator.

Code: Select allprivate function check_mobile2(evt :FocusEvent)
{
if (strings_match(confirm_mobile.text , mobile.text))
{

[code]....

View 1 Replies

IDE :: Forcing Flash Player 10?

Apr 25, 2009

I just finished a website that requires Flash player 10, and I published in for Flash player 10, but earlier flash players still try to run it.Does anyone know where I can find a script that hides my flash movie and asks the user to upgrade, along with a link to upgrade? the link would start the upgrade installation right there so that users dont have to worry about navigating adobe's website.

View 2 Replies

ActionScript 3.0 :: Forcing XML Refresh?

Nov 30, 2010

I am having the (apparently common) problem, where my flash file won't update its XML source when I make changes. I've research this, and learned that I need to add a unique reference to the loader, to "fool" the browser into reloading the XML each time.

However, I'm not sure exactly where to put the unique variable. Here's my XML loading code.

[Code]...

View 3 Replies

ActionScript 3.0 :: Forcing An Update Of Textfield?

May 1, 2009

Currently I have a for loop which goes through and draws a really long list of objects.  Each object is contained in its own sprite and as it draws them I wanted to have a text box saying "Ojects" + nObjectsTotalLoaded + " of " + nObjectsTotal + " have been Loaded."  Right now I am timing out because my loops takes so long, but i figured that if I have a textbox updating as it creates each object that it will also fix my problem with timeout. 

View 3 Replies

Flex :: Forcing Extension On A File Name?

Jul 28, 2009

In flex when I allow user to download a file using :

dwFile = new FileReference();
dwFile.download(downloadURL, dwFileName);

Is there a way to ensure that the downloaded file always ends up with the extension .tar or any other extension for that matter? By default I give it a name like xyz.tar, but as of now the user can tamper with filename, including its extension. Can I prevent him from doing so?

View 1 Replies

ActionScript 3.0 :: XML, Forcing Attributes To Have Namespaces?

Aug 6, 2009

I'm writing some actionscript to provide a flash frontend to an MS Excel spreadsheet. The idea is that the user will be able to press buttons in a flash application, and that will enter data into the spreadsheet (which will be read and written as XML).

The XML of an MS Excel document looks like this:

Code:
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"

[Code]....

View 1 Replies

ActionScript 3.0 :: Forcing A Class To Compile?

Feb 22, 2012

Through researching, i've discovered that the problem with using getDefinitionByName is that the compiler believes that my classes aren't being used, unless they're explicitly referenced in the code, and thus isn't compiling them into the swf.I'm having no luck finding an amicable solution to this problem though. So far the only thing that i've found which works, is explicitly mentioning the name of the class, somewhere in my code. This creates huge problems as it forces me to manually edit an additional part of the code. And really, harcoding anything is horribly sloppy.this isn't an acceptable solution as i'm designing a game with potentially hundreds of weapons, and two classes for each one. I need some way to automate this, and force them to compile.

View 6 Replies

IDE :: Forcing Setfocus On A Text Area?

May 29, 2009

I'm dealing with an inline hyperlink in a textarea filled with htmlText. I'm getting incredibly vexxed by this problem with having to click the link twice.I have learned here that this is because the first time a link is clicked, the text area receives focus. Then links become activated. The workaround for this, according to the article, is:

solve this by setting mouseOver = textFieldID.setFocus();

I really wish he'd set this in context, because no variant I've tried works.

Code:
mouseOver=showText.setFocus();
and

Code:
showSlice.mouseOver=showText.setFocus();

cause the link not to work at all. showSlice is the movie clip containing the textfield, which is called showText.This isn't as bad, but you still have to click the link twice (because I don't think this is doing anything at all):

Code:
showSlice.onRollOver=function() {
showText.setFocus();
};

It's a dynamically created textfield, and I am using AS2 in Flash 8. Code in full for this textarea is here:

Code:
var showText:TextField=showSlice.createTextField(instanceName="showText", castMems, castX, castDrop, castWidth, 100);
showText.embedFonts=true;
showText.multiline=true;
showText.setStyle("backgroundColor", "transparent");

[code]...

View 1 Replies

ActionScript 2.0 :: Forcing Input Txt To UPPERCASE

Nov 23, 2004

say I've got an input field and I want the entries to be UPPERCASE, how can I set this up in flash so that these characters appear capitalized even if the user doesn't have CAPSLOCK on? I've tried myTextField.toUpperCase(); but this doesn't work.

View 4 Replies

Flex :: Forcing An Array To Contain Only A Specific Class?

Jan 16, 2010

I'm trying to create a class that contains an array. However i want to require that the items in the array are themselves of a specific class. Im told there is some sort of tag you can add to do this, but for the life of me i cannot find what it is.What i hope for is something like:

public class myClass{
public var foo:String;
[ArrayType(class="BarClass")]

[code]........

View 1 Replies

Flash :: Forcing A Negative Bottom Margin?

Aug 4, 2011

I have an .swf navigation carousel that is 650 pixels high, the bottom 200 pixels being reserved for the reflection of the carousel. The reflection is very subtle and is not considered important information, so we would like to remove vertical scrollbars when the window is high enough to fit the topmost 450 pixels, but not the reflection.

I tried to accomplish this by setting a margin-bottom: -200px to the flash <object> but this only made the container's height shrink 200 pixels, causing the background pattern to cut before the bottom of the page.the Flash itself is still taking up 650 pixels.

Is there some "proper" fix to this, other than hiding/showing the scrollbars actively using javascript?

View 1 Replies

Javascript :: Forcing Redraw Of Flash Content In IE 7?

Dec 19, 2011

I have an flash swf on a page loaded with object/embed tags.

<object width="565" height="300" >
<param name="movie" value="/swf/Sample-Elf.swf">
<param name="wmode" value="transparent">
<embed src="/swf/Sample-Elf.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" width="565" height="300"></embed>
</object>

I need to be able to start/stop or reload this swf with purely javascript as I don't have access to the source swf file to add any actionscript.I figured the easiest way to pull this off is by removing the element and replacing it forcing a redraw with would hince reload the swf movie. Though ie seams to cache the flash element and pretty much look over any updates I make to the embed/object tags and keeps right on going.So how do I force IE to redraw/update a flash element on a page?

View 1 Replies

ActionScript 2.0 :: [FMX]Forcing Return In Dynamic Text Var?

Jul 21, 2004

I'm making a preloader right now and i want to list kb load, kb total, percent complete and all that jazz in 1 multiline text box like this: Total KB: 100KB Loaded: 56Percent Complete:56when write all this data into the var for the text box how to I force it to go to the next line?

View 3 Replies

ActionScript 2.0 :: Forcing Input Text To UPPERCASE

Nov 23, 2004

I've got an input field and I want the entries to be UPPERCASE, how can I set this up in flash so that these characters appear capitalized even if the user doesn't have CAPSLOCK on?I've tried myTextField.toUpperCase(); but this doesn't work.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved