I am trying to put an image from my database into a Flash MC using this php. The php works great in html, but i want that image to show up in a flash mc. Here is the php file content:
$products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
$products = tep_db_fetch_array($products_query);
I want my Flash button to call a URL from an XML that then opens up a AJAX window (like lightbox or multibox) over the page.So the user clicks on Flash and a AJAX pop up appears.I've set up the popups, I'm using facebox (which is really nice).They way the do this is by creating an ID DIV like below:[code]now I have a Flash that can call to XML and get a URL...The problem is when I put "#world1div" in the url portion of the XML, it doesn't work.How do I call this ID from XML?
I am working photo gallery in that their are 5 buttons.I am calling photos from xml file.I want to change photos as per as click on other button.so,I want change to change the xml file as per as related button click button.
I am trying to create a simple audio flash player, that calls a js function on click, it works perfectly in all browsers, except IE. i cant figure out what seems to be the problem!here is html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" >
I'm trying to set a variable in AS3 and then use an event to call that variable. The links are set in an xml file. I have it working with hyperlinks using navigateToURL, but it's not doing exactly what I want. What I want is to use flash to call the link in the xml file. That link will target a javascript function. There is no need to open a new window. I'm trying to target a particular div on the page. Here's what I have so far:
I need to create a really basic flash video (actionscript 2) where I click on a bit of text which will call a javascript function. I have created a flash video which has a bit of text I converted to a button symbol. I then opened the "Actions" tab and added:
I'm trying to call a function declared with ExternalInterface in a Flash swf, using JavaScript.It worked once, but all of a sudden, it stopped working.I have a debug version of the Flash Player, but no errors occur in Flash.Not even a "Security Sandbox Error" or something. The only error I get is the following error in JavaScript Error: Error in Actionscript. Use a try/catch block to find error.I'm using AS3, exporting for Flash Player 10 and testing on Firefox 3/Safari 4, on a Mac.
I'm trying to call a function to another class after an event.
Here's my code:
From the doucment class:
public static function redrawMap():void { removeChild(global.world); var world:WorldHandler = new WorldHandler(40,30);
[Code]....
I can't get it to work correctly, I get weird messages like "Call to undefined method removeChild" and it pointing to the redrawMap function. Which means it found the function, but I can't seem to do anything with it.
I got two AS3 functions. One that toggles fullscreen and one that is called with javascript with ExternalInterface that only logs "Hello World". Both works well in the browser, but if I try to call the fullscreen function with javascript the same way, i get an error like this: Error calling method on NPObject! I googled that problem but that only had something to do with same domain access, and sinced it worked with the other function, it has to be something else.
I have a layer named "splash" and a layer named "home". On the splash layer I want to call a function which is stored on a layer named "navigation" inside a MovieClip called "page" on the home layer.
I'm new to flash and have created a thumb slideshow containing buttons. I want the buttons to trigger colorbox (like lightbox but displays html content as well as images). Colorbox is working fine in the containing html page when i create a normal link. Ive looked at a couple of tutorials but i keep getting errors when exporting the flash doc. I've been trying this
I'm having a bit of trouble in sending cookies through flash (.swf file). Is there a way to always allow the referrer to be shown? At the moment it appears only to show in Internet Explorer, but not in any other browsers.
we are currently working with a tv site (flash) in which we have included 3 buttons , mini , standard and fullscreen.Mini will resize the browser window into a smaller size , while standard will resize it to the maximum available width and height.The fullscreen will play the video in fullscreen which is a new flash 9 feature.
The mini and standard buttons actually invokes a javascript function which resides in the flash container html page.The javascript code contains the satement window.Resizeto .The problem we are facing is that the functionality seems to behave inconsistently in IE.In IE 6 ,all the 3 buttons works perfectly.But once we touch the scrollbar , then the mini and standard wont work , it shows a javascript "access denied error".This error does not appear when the wmode in flash object tag is made transparent.But if wmode is made transparent , fullscreen wont work.This is given in adobes website.There is no problem in mozilla firefox .In IE7 we have the same problem as in IE6, apart from this mini and standard does not work at ALL when multiple tabs are open.I would like to know if thr is any way we could overide the javascript error and why does the error not appear when wmode is made is transparent ?
I am trying to attach URL's to a button in my Flash movie for a photo gallery. Photo, description and URL's will be generated from a XML file. The action script is as follows:
var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onLoaded); var xml:XML;
[code]....
I get no errors when testing the movie, except when clicking on the button (that should be going to the URL from the XML file), I get the following error in the Output window:
TypeError: Error #2007: Parameter url must be non-null. at global/flash.net::navigateToURL() at Function/<anonymous>()
I'm trying to call a javascript function from within my swf and I'm having a couple of problems which are confussing me somewhat. I'm using this to call the function from flash: ExternalInterface.call("pgcover"); I know that this is calling the function as I have set it trigger an alert action and this comes up properly. But I don't want the function to trigger an alert, this is just for testing purposes. I instead want it to change the styling on a div. I have set up a test page where I have asigned the function to a button and this works, the div display changes from block to none. When I get the swf to call the function setup to do the same thing, nothing happens.
how to call a flash function from an HTML page. The idea is to have a link on my page (HTML link) that once clicked displays a movieclip in flash. I know i have to use the asfunction in HTML. So far I have just created my swf file with a function called showInfo. I've embedded the flash into an HTML page. I have then added a link on the HTML page as follows:
<a href="asfunction:showInfo">Link name</a> but when I click it says: "Firefox doesn't know how to open this address, because the protocol (asfunction) isn't associated with any program."
is there a piece of code I need to write in flash for this to work?
I have what I think is an easy question but I am having problems with it... Using AS2 / CS3, I am calling a javascript function from Flash, but i would like the value to be a variable and I cant figure out how to do it. the started code is below and I need direction on how to make "myVar" actually a variable.
Basically I have a function that is needs to tell 2 other classes to do something. It works for one of the classes: BigPlayButton, but not Background for some reason.TabMenu.as Class functionNote: The function below WILL call the hitPlayCircle function in my BigPlayButton class, but I get an undefined property error for the Background switchTitle function.
I'm new with strings and arrays. I want script to calling display objects to the stage and the timer to move images up and down to appear like a scrolling numbers. I start getting sloppy, and mess up passing to Tweener.
- An explanation or strategy may be enough, "I've got pretty close on this one" - There was confusion regarding the Containers and addChildren...looked like arrays
The code "get as far as error with NumbersView and numbers undefined etc".
The methods were proved separately. "I got a earlier version of the document going, but I need to work through this to understand it."
Symbol Properties Class ImageView Tweener The "caurina" folder needs to be present Rolling Numbers "Success loading numbers and connecting to counter".
Placed the movie clip object on stage with two dynamic text fields in it. Make sure the container is placed on stage, has the two text fields in it, and everything is given a proper instance name. Also include the caurina folder.
Seconds MovieClip symbol with instance name of seconds firstDigit Dynamic text field with instance name of firstDigit, placed in seconds secondDigit Dynamic text field with instance name of secondDigit, placed in seconds
Symbol Un-tick 'Export for ActionScript' Use 'Name, Class, and Instance' correctly
Everywhere I've looked has instructed me to download plugins and addons because they're "superior." I'm just looking for a simple fade in/fade out when a child is added/deleted (if fadein is all I can get, I'll take it.) Here is a function I'm calling...
AS3 documentation says that Strings in AS3 are in UTF-16 format.There is a textbox on a Flash Clip where user can type some data.When a button is clicked, I want this data to be sent to a php script.I have everything set up, but it seems that the PHP script gets the data in UTF-16 format. The data in the database (which is utf-8) shows some unrecognizable characters (where special characters are used), meaning that the data has not been sent in a correct encoding.
var variables:URLVariables=new URLVariables; var varSend:URLRequest=new URLRequest("http://website.com/systematic/accept.php"); varSend.method=URLRequestMethod.POST;
Seems like sometimes when Selenium should call a certain method, it instead calls another, as pointed out by the following log
[Code]...
I've tried both Selenium server 1.0.3 and the 2.0 alpha 7 versions, they both display this behaviour. FlashSelenium is involved so I'm not sure where along the way lies the bug. Furthermore it's hard to reproduce as it doesn't happen only for some methods, and doesn't always happen.
I've tried searching for issues similar to these but couldn't find any remotely similar... Anyone experienced the same behavior? And if so, is there a fix for it? Edit: I doubt FlashSelenium is at fault for this, as the log tells that the command arrives correctly at the server... But I can't seem to be able to follow the path of execution from the moment the Selenium server gets the command and passes over to the browser, to the moment where it gets the response.