ActionScript 2.0 :: Linking The Flash Action Script To The Php?
Apr 6, 2011
Im doing a project based on a mobile bar finder application. I am having trouble linking the flash action script to the php. I Havnt used flash before but have some knowledge of PHP, so go easy on me.
-----------------------------PHP CODE----------------------------------
<?php
//Random Exampe test
// if no input from Flash, redirect to a help page
Load the link in as a flashvar and allow the Flash to open the URI
Load the link into the Flash file using AJAX/AJAH and allow the Flash open the URI
Just have the Flash file call a Javascript function that opens the URI
Is one of these methods better than the other(s)?
I'm working in a CMS, so each method requires a different process to edit/control the link. In #1, the editor needs to open the Flash node and add the path to a flashvar. In #2, the editor just needs to add the path as an anchor with a specific ID to a page (or XML). In #3, the paths could be stored in many different ways. The links aren't known when the Flash files are created, so they can't be embedded in the Flash. Is there a performance/efficiency/compatibility/good reason to use #1 over #2 or #3, etc?
'm currently following this tutorial [URL] on setting up a AR video player using FLARManager, however I'm having trouble setting up the global actionscript folder that's supposed to contain the actual FLARManager components. In the tutorial that part gets brushed over(1min - 1min30 ish)
If I wanted to change an action from a button click to a frame-based action, what do I use instead of onPress? The hints from the AS editor are all click-based.
I have a slideshow that is looped ... it contains 5 slides.I am using a gotoandPlay action to control the slide show.
on (release) { this._parent.gotoAndPlay("98"); }
There is a fade transition between slides.When a button is released ... I want to gotoandPlay (frame 98) ... and then have it stop 10 frames later on (frame 108). Frame 98 includes the transition ... if I just gotoandStop on frame 108 ... I loose the transition.Is there any way to incorporate a stop action, after a gotoandPlay action on my button ... without naming instances etc.I.E.
on (release) { this._parent.gotoAndPlay("98"); STOP ON FRAME 108 INTEGRATED HERE }
I just want to make a simple button action using actionscript 2 but I can't get it to work! I'm sorry for even asking but I've been at this for too long now for it to not work I'm using Adobe Flash CS4 and I do the following --
File -> New Flash File (ActionScript 2.0) Insert -> New Symbol Name - test Type - button Export for ActionScript Identifier - test
And then draw it in using the keyframes and add the code to 'Actions - Button' for my button
Code: on(release) { trace("trace"); }
I click on the button and it animates but no action event in the trace?
the project im working on is all database driven, there are no html files and all coding that is created is made by php then stored within a db to be called later on. now because of this i can't use relative links at all with anything i.e. images, videos and swf files.
so.....i am using swfobject to link to a swf file using absolute linking as shown in the coding below. but what i need to do now is link an .as file in my swf using absolute linking so i can call some arrays from the file.i have doubled checked to make sure my vars can be passed by local testing and it works but now i need it as absolute....is this possible?
How can I get an action to follow another action when a button is clicked? When a button is clicked, I want the timeline to go to a certain frame and play and when it's done playing, to go to another frame and play. I basically want two actions in one function.
I'm still a newbie at this, so pleasse bear with me. I have a links page on a website for myself. I wish to create a link from a hidden button over the text to a pdf file within the project folder. I keep getting errors saying that it cant find the file and points to an address which is totally wrong.[code]Is this the right way to link a pdf file to flash?Is there some other code I should be using?
I'm working with Flash CS4 / ActionScript 3.0I just wanted to know how to link my finished flash ad to its corresponding webpage.-->Click anywhere on the banner and it links you to...youtube or whatever :]
Project is a map of Europe - in Flash 8, with an xml document linked to it. for each country (or group of countries, where they need to be grouped together), there is going to be ultimately a URL link which displays a relevant article. The xml document needs to 'tell' the flash file there is an article - with the default being that there isn't (if that makes sense) - if and when there IS a story, that country needs to change to a button, which can be clicked by the user to open the article .. probably on a new page. thus far I think I need to have an xml document something like this (forgive my fumblings):
I'm creating an interactive flash tutorial for kids teaching them about healthy eating. Part of the tutorial involves them learning about different food groups, then playing different 'games' to test their knowledge.
I would like to incorporate a user login system, so the user logs in on the main menu, and then the system records which activities have been completed, and a score for each activity. This will update whenever they finish a game or achieve a score better than their previous attempts.
I found a gotoAndLearn.com tutorial but that was just retrieving stuff from a database and plugging it into an SWF. any suggestions / tutorials available on how I can achieve this 2 way interaction?
I have a flash movie that i embedded into a webpage. I have it set up to have three symbols come in then another that says enter. When i click this i want everything to disappear and then go to another webpage. This is my code i have everything working but i dont know how to link out of the movie. This is my code: (The mouse click function is at the very bottem)
Im sure that i did this a long way but i just got Flash CS4 like 2 days ago so w/e. Anyway could someone tell me how to link out of the page AFTER everything has faded out. how to/link me to how to have a mouse over effect on the enter button. Just something like having it increase in size.
I am new to this. I have followed several tutorials with noluck. I am using action code 3. I want to link an invisible buttonto an url. I placed the code in the layer with the button.Thefollowing code I have used, but then follows the error message. Ican't figure it out.1180: Call to a possibly undefined method on.1120: Access of undefined property release1180: Call to a possibly undefined method getURL.
I have created seven buttons using Flash version 9 following a tutorial on this site [URL]. The buttons function the way they were designed, however, when I attempt to link them with a URL or a unpublished website file (eg. contact.html or index.html) the button brings up the "TextEdit" application on my Mac.
The action script 3 code that I am using: btn_6.addEventListener(MouseEvent.CLICK, onMouseClick); function onMouseClick(event:MouseEvent):void { navigateToURL(new URLRequest("contact.html"), "_same");}
I have even tried using action script 2 code after changing the publish settings to AS2: btn_6.onRelease=function(){ getURL("[URL]", _same);} The results are the same. When I test the buttons, they link to an application on my Mac. All of my buttons are on the same layer.
I'm looking to call a flash method from a method in javascript and recieve a result:Example:Flash -
ExternalInterface.addCallback("getProgress", getProgress) // Javascript to flash public function getProgress():void { ExternalInterface.call("getProgress", progress); // Send progress back to javascript from
I have a project I'm trying to compile with alchemy. It will compile .o and .a files, but when trying to create a .swc, it will fail. It appears to crash with this error:
I was following this tutorial http:[url].... and I wanted to add links to pictures shown within the banner. So I've edited 'picture 1/2/3' in the library panel transforming them into movie clips, and then opened them in edit mode and added required actionscript. But when I publish/preview them, they're not linking. I'm getting a clickable mouse-cursor over my banner, bun nothing happens. What should I do to make it work ?This is the actual project :
http:[url]....and here's the code I'm adding : on (release) { getURL ("my link here","_blank"); }
basically I want to embed a SWF file on one site, and then I want to be able to send that code to people so they can easily embed the file on their site,however, when I tried this on a separate site, the embedded FLV didn't play
I created a Flash image gallery where you can scroll through small thumbnails and when you click on the thumb, the larger image appears inside a movieclip (instance "picture"). All the images are loaded in from an external XML file.
I want to know how to make it so that when the user click on the larger image that loads into the movielcip (instance "picture") it takes the user to another HTML page.
My Flash code is: function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild;
If there is a link to a section of a flash website from an HTML and/ or another Flash Movie... is there a way that the link could load the next Flash movie and then go to a specific keyframe or, even better, allow a custom animation to play when the user goes from the link on the first page to the "deep link" within the Flash movie?I can try to clarify the problem and question if I have to. Curious if this can be done and if anyone out there has had any success.Have used named anchors before to allow Windows toggling and bookmarking of Flash sections... however, this would have to work on ALL platform browsers and as info is somehow passed into the new Flash movie it seems different altogether
I want to find a relatively easy solution for deep dynamic linking within flash. There are plenty of tutorials out there, so please don't jump to the conclusion that I haven't done a search. What I am looking for is a tutorial that should theoretically be easy to follow for someone who is a non-coder.
I am but a lowly martial arts instructor who has 'foolishly' decided to try and do our website. I decided to use a flash template which has actually worked out ok (word to the wise - DON'T BUY FLASH TEMPLATES UNLESS YOU ARE WILLING TO KISS YOUR LIFE GOODBYE FOR A COUPLE OF MONTHS).
Anyway, I wanted to put a news ticker on the site to display 'latest news' - I took an example that was kindly supplied from this site, and it works fine. However, I just cannot figure out how to create a link in the XML file that when clicked takes you back into another part of the flash site. I can get it to link to an external URL no problem at all but just cannot get the link to take it back to a section of the site I want it to go to.