ActionScript 3.0 :: Activating A Page Without Opening It?

Dec 29, 2009

I was given a .FLA containing a banner and was asked to create an input text field and a button that, when clicked, opens a new window with the address, say "www.mywebsite.com/page.php?value=..." where "..." is what the user types in the input text field. The page the user is sent to then performs some action. Now they're asking me to make the page automatically perform that action, as in, they want the .FLA to send the value typed in by the user to that page at [URL] without the user actually going to that page at all. Is this flash-related or even possible?

In short what I'm asking is: Is it at all possible, in principle, to hand a value over to a .php page using flash and then make that page perform an action without being opened? If so could you point me in the direction of how to do it?

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Activating Buttons And Loaders From Child SWF Page

Jun 15, 2009

Background: I have an Index.SWF that loads a Home.SWF. The website has essentially three layers, top layer is menu bar, middle layer is content, bottom layer is links to home page and e-mail. All the buttons on the top and bottom layers work. When I go to add a new button to the middle layer of Home.swf. I get all kind of errors associated with not referencing the right objects or having undefined objects.

I believe my structure is as follows:
> Index
>> Home
>>> Any other SWF through "myLoader" object and buttonclick function

Here's the code:
Select allvar myLoader:Loader = new Loader();
addChild(myLoader);
function buttonClick(event:MouseEvent):void{
gotoAndStop(event.target.name);
this.myLoader.load(new URLRequest(event.target.name + ".swf"));
[Code] .....

So here's the structural question, "where do I define my new button?" and what code do I use so that the new button is placed on the home page works with the myLoader and buttonclick function located in the parent page? I have the same structural question, if I decide to add a loading status message, if "the pitch" button is clicked.

View 2 Replies

Professional :: What Code To Navigate From Page Without Opening A New Page

Feb 11, 2010

I have a flash button embedded into a css/HTML page that I want to use to navigate into a new page without opening a new window. Here's the code I'm using in the SWF which I got from the adobe tv tutorial:Here is the test page that I have embedded the flash button in:The flash button is the "about Ian" button on the upper left. I want the navigation to be like the traditional rollovers on the page. (I'm working my way up to having the embedded flash button fade into place, that's why I'm using flash.)

// 1. Event handler function
function clickHandler (Event:MouseEvent): void { trace("CLICK!");   navigateToURL(new URLRequest("http://ianmartinphotography.com/about.html")); } // 2.

[code].....

View 3 Replies

Flex :: One Page To Another Page Without Opening New Window?

Mar 9, 2011

how to one page to another page without opening new window only url changed using flex?for example you can click log in button user name and password correct then going to home page without opening new window at the same window..

View 1 Replies

ActionScript 2.0 :: Activating And De-activating Loaded Movies?

Jan 7, 2009

Am working on a flash AS 2.0 project where am loading movies from the same folder. my code goes like

on (release) {
loadMovie("HAD.swf",2);
}

problem is the swf loads infront of the main movie but the main movie's links are still active.

View 4 Replies

ActionScript 1/2 :: Activating/de-activating Buttons?

Mar 9, 2009

I want to create some AS to disable and enable a button.Let's call this ButtonX. I want this button to appear disabled at first, and then allow the user the option of enabling this button(ButtonX) by clicking another button. Let's call this ButtonY. I cannot get this to work. I am attaching the code I am trying. I have this AS added to ButtonY and ButtonX is the instance name for the button I want to de-activate-activate.

View 7 Replies

Opening New HTML Page From Flash

Nov 26, 2009

In IE7 and IE8 block popup lock my external link (page html). I use GetUrl(url,"_blank") but not it works. I use flash cs4. With firefox it work

View 3 Replies

C# :: Flash Opening New Page Rather Than In The Same Browser?

Apr 6, 2011

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>

[code]....

It opens a new page rather than in the same browser.

View 1 Replies

ActionScript 3.0 :: Opening New Page To A Specific Frame

Sep 1, 2008

I am still learning Action Script but I have a problem with writing the full script for combing navigate to new URL and gotoAndPlay. More specifically what I want to do is use a button which when clicked will open a new page and then start playing my Flash movie at a certain frame on the Timeline. I have used buttons to navigate to a new URL and used the gotoAndPlay ( ) ; command to play a certain frame, both have been successful but when I combine the two I run into trouble. What happens is the new page loads correctly and goes to the specific frame but then opens the browser in a new window with the movie playing from the beginning. The correct sequence within the correct Webpage is playing but only if I close the current page, in other words what I am trying to achieve is running but in the background.

View 8 Replies

ActionScript 1/2 :: Sample Button - Opening New Page In Same Tab

Mar 27, 2010

I have movieclip in my php page. I have button in that clip. What code should I use for change all page to an other one because when I use
on (release){getURL("[URL]");}
It opens that page at swf file's spot but I don't want it. I tried
on (release){ getURL("[URL]", "_blank");}
But it opens in new tab. I want to open new page in same tab. Is there any way to do that?

View 3 Replies

ActionScript 3.0 :: Opening An External HTML Page?

Aug 13, 2011

I need to load in an external HTML webpage on the stage of one of my .SWF files. Currently I have a primary .SWF pulling from a .XML database that has a list of other .SWF files it will import and display every time you "flip" a page as this site is being designed like a book. I have a .swf working that will pull and display an external HTML page but when i try to embed that .swf into the parent book.swf (Book.swf --> book.xml --> html.swf) it doesnt work. Likely the code i am using doesnt display the HTML if testing the .swf on a local server but the moment you place it on a webserver and call it through a web browser it works.

I don not need anything special, just something that will display the HTML page in a static box that i will set with a fixed size and a scroll bar.

View 7 Replies

Professional :: Canceled Opening Page Error In All Browsers

Jun 7, 2011

I added a Flash animation to a web page, and instead of showing it, I get this Canceled opening the page error (that, or it just shows this big blank space) in all of the browsers I've tried (IE, Firefox, Safari, Chrome, Opera). Adobe says Flash won't play in a 64-bit browser. I made sure I'm using Safari's 32-bit mode; it still won't play. I empty the cache, reset Safari, still nothing. I admit to not having loads of Flash experience, but this strikes me as odd.g

View 1 Replies

Flash :: Opening Page In Same Window Using NavigatetoURL Function?

Jul 18, 2011

I have a flash code, in which i am loading images and opening urls through xml file, now it is opening in a different window(pop up window) but i want it to open in the same window.

var xmlReq:URLRequest = new URLRequest("XML/ImagesData01.xml");
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(xmlReq);

[Code]....

View 2 Replies

ActionScript 2.0 :: Flash PHP - Any Way To Stop Blank Page Opening?

Jun 22, 2006

I am working in flash and php.. I want to write a text file from flash via php. The thing is when I click on button it rites and redirects to another page. I have stopped the re-direction. 2ndly I want that instead of on click of button I want the variables to be passed to php and write a text file when a frame is loaded. Its basically a gallery, where images are loaded one after another. I want that when one image is loaded via xml. It should write a text file with Hit = 1, so that I know that the image is viewed. All things is working fine, except when I use GetURl on loading the image a new window opens( blank) and my flash file goes off.. Is there any way to stop a blank page opening.

View 2 Replies

ActionScript 2.0 :: Opening Popup Page In Standalone Projection

Apr 28, 2005

I am creating a standalone projector (CD with autorun). This means my swf files are NOT contained within html. I would like to, when clicking on button, open a popup html page with specific dimensions. I was wondering if it is possible to do that, and what AS to use,
or if I have the obligation, to openpopups, to launch my swf files within html mother page.

Here is the code of button that works (but does not open popup):
on (press) {
getURL("URL", "_blank");
}

Here is the code for popup but does not work (opens html page normally):
on (press) {
getURL("URL", "", "width=580,height=400,left=100,top=100");
}

View 2 Replies

Flash :: Professional - Reduce File Size Of Opening Page In A Site

Sep 27, 2011

I'm using the Flash CS4 IDE, and the first page of my site takes a lot longer to load than I want it to.  So I wanted to go through the varied images / symbols / movie clips / sounds and so on to see where all the memory is being chewed up. When I go into my library, however, I can see the Name, LInkage, usecound and Type of my elements, but no mention of file size and I can't seem to find any right click menu that lets me add file size to the list of details being displayed. Is there a way to make it show file size?  Or some workaround? And are there any best practices to reduce file size aside from using symbols for anything that's used more than once and reducing image and sound quality?

View 4 Replies

ActionScript 3.0 :: Link To Url, "_self" Is Opening A New Page?

May 13, 2010

I am trying to get my button to navigate to _self and the link is opening a new page. Is there something wrong in my code?

my_btn.addEventListener(MouseEvent.MOUSE_DOWN,[code].....

View 5 Replies

ActionScript 3.0 :: Gallery Page With A Bunch Of Page Numbers - Click On A Page Number, The Over Script Should Stop Until Go To Another Page?

Jan 26, 2009

i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,

function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....

View 0 Replies

CS3 : Keep Button From Activating Until After Mc Plays?

Jul 17, 2009

I have a simple movie clip of fading in text displaying on page with a sound. also have a button that allows user to go to the next frame. It is an exercise for students that basically goes like this: object presented in each frame, spelling (text) for that object fades in on mc with sound attached to mc, then button activates to let them move on to next. Since they are trigger happy, I don't want the button that allows to move on to activate on the frame until AFTER the movieclip and it's sound have played out (which is like 2 seconds so not a long wait) - otherwise, they would just keep clicking next and not listen to the material presented (it's very young children).

How do I set this up? I knew it's likely very simple, but I'm a newbie. Of course, I could always just do it on the timeline, but I have a ton of material, so am trying to use actionscript to be more efficient. for even younger kids, am considering setting this up so they can move to next frame through any keypress. I know how to set up a certain key, but not ANY key.

View 2 Replies

ActionScript 2.0 :: Activating A Swf Without Click?

May 20, 2010

I' am building a web site where i have a navigation which also works by pressing the (4) keyboard buttons, up, right, down, left. When the web site loads the keyboard navigation works only after i click somewhere on the screen.

The same things happens in Safari, Firefox and I.E.Any thoughts about how can i make this work without the need to click somewhere on screen before it works?

View 6 Replies

ActionScript 2.0 :: Activating An Animation?

Mar 13, 2004

this is what I need, I made a 3d model of a PC, What I want is to clic on the monitor and turn on the computer, I have the animation of the computer monitor turning on, but I don�t know how to activate it....

View 10 Replies

Professional :: Re -activating Script After Stop

Jan 10, 2010

How do I stop a script from running, or remove it from a swf at a specific frame, (on its own layer "actions") and then start it again, or script it again on another frame further down the timeline?If I try and put the same script on another layer, past the stop(); or anywhere for that matter, flash gives me a duplicate function definition error.Lets say my swf is embedded in an html and its url is abc.com. When you navigate to that url the swf plays, all scripts work, buttons work to link to frame anchors back and forth within the swf and all is fine. As long as you remain at abc.com and link with a gotoAndPlay(frame), or gotoAndStop(frame) function from the script internally in the swf.However lets say one of those buttons goes to dce.com (urlRequest... dce.com...) essentially navigating away from the swf, .and at dce.com there is a link to go back to abc.com/index.html#frame, when you choose to navigate back to that frame in the swf, it does, but the script no longer works.

The script is on all anchor frames, and works intially in the swf when you play the movie for the first time, the movie stops (stop();) at a specific frame, and continues to navigate around to specific frame anchors and back and forth, the script continues to work as long as you are within the movie so to speak. However if you decide to go to dce.com, essentially leaving the movie and then at dce.com there is a link back to a specific frame, when I link back to the swf, from dce.com, the script no longer functions?I cannot imagine this is not something that quite a few people use, a combination of flash pages and html pages and interlinking them back and forth, I just cannot find ANY info searching exhaustively on why the script will not work after returning to a swf frame after navigating away to anywhere else and then back to the swf frame needed.

View 4 Replies

ActionScript 2.0 :: Frame Labels And Activating Them?

Oct 23, 2009

I have a game I am working on currently, and say I have an animation that plays (this is in a seperate mc) when you click. So it's basically a function. Anyway, one the animation plays through inside the mc, the last frame I put:

ActionScript Code:
stop();
gotoAndStop(1)

After this, I added five or so frames on a seperate layer with another animation on it, put the same code on the last frame, and gave the first keyframe of this second animation the label name "reload".If I then go back to the main stage, how would I code it so that if, for example, I press the down key, it would play that particular frame label?

View 1 Replies

ActionScript 2.0 :: Activating A Href Link From Swf?

Jul 4, 2010

I've created a button in html using a href. (HTML Button)

I also I have a button within a swf which I want to activate my a href button when clicked on. (Flash Button)

I know that i will prob have to use the geturl function but do not know how to implement it.

Here is the a href code in my html

HTML Code:
<a href="SITC.flv" rel="shadowbox[movie];height=330;width=587" title="SITC FLV"><img src="button.jpg"></a>

and here is a link for an example

[URL]

View 4 Replies

ActionScript 3.0 :: Activating Webcam With Flash?

Sep 18, 2010

I am trying to activate a my webcam and run a live stream from it. Im running into problems though. I can get the webcam to turn on(the green light comes on). However, nothing is displayed. I have copied the code i am using to try and achieve this, hopefully its just a simple mistake.I am using Flash Builder 4 to put all this together.

Code:
package camera
{
import flash.display.Sprite;
import flash.media.Camera;

[code]....

View 2 Replies

ActionScript 2.0 :: Activating The Application At Later Date?

May 25, 2005

i am builing an application which will use a feature called "deffered sms".It means that user will enter the sms and the phone no. and a date and time and will submit this info to the application.when the time and date will come this application will send the sms that was written on that day for deffered sms.when the user had entered the sms and time , he will certainly close the application and the application will no longer be active. my application will store the time and date in a variable .How would my application will come to know that the specified time has come and then it should send the sms.

View 1 Replies

ActionScript 2.0 :: Activating Lightbox 2.0 From Flash

Mar 14, 2007

Im using the Lightbox 2.0 [URL] And a flash movie in the same page. Now ive got this thumbnail slider in the flashmovie with thumbnails loaded from an xml file. As soon as i hit a thumbnail i want the Lightbox to show the full image of the thumbnail.

I've got everything set up and if i test if the Lightbox works with an html link it works perfectly:

HTML Code:
<a href = "path/to/image.jpg" rel="lightbox" title="my Title">Lightbox test</a>

Now my question is how do I call the same action in AS?

I understood the rel attribute refers to both the Lightbox JavaScript and the StyleSheet. But i really dont know how to set the rel attribute in flash.

View 14 Replies

ActionScript 2.0 :: Activating Lightbox 2 From Flash

Jun 20, 2007

if it is possible to activate lightbox 2 from flash.

As extracted from the Lightbox tutorial, lightbox needs an <a href> tag with a rel="lightbox" attribute to be activated.

e.g.

Code:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>

However I dun think it is possible to use getURL(); for this in flash right?

is there a work around for this? what i am aiming to do is have the user click on an image/mc in my flash

e.g.

Code:
my_mc.onRelease = function() { // Activate lightbox from here };

and have it call the light box up.

View 1 Replies

ActionScript 3.0 :: Activating An Animation Via Keystokes?

Apr 8, 2009

i'm wondering if it's possible to add a listener for multiple keys pressed at the same time. for example if it wanted the user to hold CTRL+A+B+C to trigger an animation.

View 4 Replies

ActionScript 2.0 :: Activating Hittest By Pressing A Key?

Nov 12, 2009

how to activate a hittest with a key. For example, I have my character and I want that when my character is on the door and he presses a certain key he goes to a different frame.

View 5 Replies







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