Actionscript 3 :: Reason Flash Doesn't Respond On Local Zend Amf Services?

Dec 25, 2011

I've (actually my classmate) got a problem with loading local ZEND_AMF services on Windows 7 (XAMPP). I can't find any answer on Google or on Stackoverflow. I found one similar topic without any answers: ActionScript 3 AMF Zend fails silentlyLet me describe the problem: I've developed the UI and dataloading for a Memory(matching) Game in FLASH CS5. The games uses data from an ZEND Framework website (you can add levels/cards/images there).[code]Everything works fine on my Macbook Pro (Using MAMP as local server), but a classmate (who's helping with it) of me that is using a Windows 7 laptop with XAMPP doesn't see anything. We're both using Flash CS5.5.For some reason his Flash isn't able to load local services. When he uses the same URL path like me Flash doesn't do anything in the responder. No Error function call and No Complete function call. We've been searching for the cause and tried several things.In a ZEND_AMF tutorial on the Internet we've found an online AMF Service and put that in the code. Of course we're using a nonexisting service function so the responser will call the Error function. And yes, this works. He runs the function returnError(). The cause of this problem is obvious: Flash on my classmates PC (using XAMPP) won't load local services. Allowing swf to correspond with non-local URLs (is an option where you have to add your swf to the Flash settings) => Has happened

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Flex Services + Zend AMF + CakePHP = FlexibleCake?

May 11, 2009

I'm working on a new project in Flex with a CakePHP backend and since I'm using Mate, I wanted to use the RemoteObject stuff it does to call CakePHP.First I tried just doing one call at a time in CakePHP but I saw that that would mean a lot of endpoints, so I looked into some like amfphp for cakephp. I saw that Zend AMF is now the successor to AMFPHP so I wanted to try to integrate it.

I probably spent 8 hours on the final solution that is probably 10 lines of code.So without further ado I give you FlexibleCake: a CakePHP controller that acts as an AMF Endpoint and is able to instantiate and call any controller / method. I also built a "tester" or "explorer" app that allows you to send requests to the end point and visualize the result.

[URL]

PS there where some changes I had to make to the core CakePHP classes to make it work. It only involved modifying the comments in the model.php class I believe (since Zend AMF reads the comments to gather metadata for the functions called).

View 5 Replies

Flex :: Accessing Services Directory When Setting Up Zend AMF In Codeigniter?

Sep 1, 2011

I followed the instructions in this tutorial to set up Zend AMF as a way of passing data from my flash app to my PHP app:So I have the directory structure and everything as described there. This is my gateway controller:

class Gateway extends CI_Controller
{
function __construct()

[code]......

View 1 Replies

Flex :: Example Flex Zend AMF Sharing Web Services Between Components In ViewStack

Aug 10, 2011

I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.

Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?

View 1 Replies

Flex :: Swf Doesn't Respond When Relocating It?

May 30, 2010

i have in my program few swf files and using mxmlc i compile the application into one swf file. when i open the swf from the output directory(just dbl click) everything works fine. But, when i copy the directory to another location in the hardisk the application stops responding (i can see my swf main picture and its buttons in it. But, when i click a button which just popup a message, it doesn't work!) Note: any location in my workspace, the swf still works fine. But when moving out the workspace it fails

View 1 Replies

ActionScript 3.0 :: Nested Mc Button Doesn't Respond?

Mar 3, 2010

I'm using AS3 timeline actions. I have a movie clip nested in another movie clip, which has five buttons. The code is on the parent movie clip's timeline. The buttons activate movie clips with tweens. I wonder why the buttons need to be clicked several times before I see the tween movie clips appear. Some times the movie doesn't even show up. Is it a script problem or something else?
 
stop();import fl.transitions.Tween;import fl.transitions.easing.*;
pers_1.addEventListener(MouseEvent.CLICK, showMovie);pers_2.addEventListener(MouseEvent.CLICK, showMovie);pers_3.addEventListener(MouseEvent.CLICK,

[Code].....

View 4 Replies

ActionScript 2.0 :: Empty Movieclip Doesn't Respond To Events?

Dec 19, 2007

This code doesn't do anything when I rolled over...

this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth());
_root.logo_mc.onRollOver = function(){
trace("rollover!!!");
}
logo_mc.loadMovie("http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg");

View 4 Replies

ActionScript 3.0 :: Movie Clip Doesn't Respond To GotoAndPlay()?

Aug 4, 2010

My movie clip doesn't respond to gotoAndPlay(1) command at all. Here is the situation: The Main.fla has a movie clip instance "Mov1" and the following AS3 code in the first timeframe:

function LoadSWF(Mov:Object, swf:String ):void {
fl_Loader = new Loader();
fl_Loader.load(new URLRequest(swf));[code]......

Once it's loaded it plays once (there is a stop(); at the end).So far so good but... the following code in the button script doesn't trigger any action at all:

Mov1.gotoAndPlay(1);

Any other code in that button works fine, so the button itself works ok.

View 5 Replies

Flex :: Program Doesn't Respond When Add Canvas On EnterFrame Function

Oct 23, 2009

I have been making a simple aplication and i have a problem i cannot find the solution (neither why it is happening) The thing i want to do is to dynamically add a canvas containing a button to the application and then i want the canvas to be moved from the left side of screen to the right. So i have made the following code

[Code]....

View 1 Replies

ActionScript 3.0 :: RadioButtonsGroup Change Event On The Stage - Doesn't Respond

Oct 8, 2009

The situation: - some radio buttons on the stage (design time, flash GUI) - A quiz class What I want: - create a RadioButtonsGroup in the quiz class (not with the flash GUI) - assign all the radios to that group (radio.group = myGroup) - respond to the CHANGE event It seems not to work. The group gets created (all the radios of that group are indipendent from the others on the stage), but it doesn't respond to the event.

View 1 Replies

Actionscript 3.0 :: Custom Event Dispatcher Fires, Listener Doesn't Respond

Feb 4, 2009

I've built a custom event dispatcher:

Code: Select allpackage com.tests{
import flash.events.EventDispatcher;
import flash.events.Event;

[Code].....

The event traces out that it successfully fired, but the listener doesn't catch it...

View 2 Replies

Flash :: Loading SWF Doesn't Work When SWF Is Stored On Local PC

May 2, 2011

I have an HTML file which contains a Flash .FLV player; which then loads a given FLV video and plays it. The idea is all these files are stored locally on the PC as part of an application install, we use HTML/flash for the help/manual. On my PC it works fine but on a user's PC nothing is displayed. However if I host the exact same file-structure online and give them the URL, it works perfectly.

I am guessing this is a security issue of some sort but have no idea how to address it. The browser being used is actually a XULRunner app, i.e it's the FireFox 3 engine but not actually FF. Since my PC isa developer PC it's entirely possible I've done something in the past on another project that makes it work, rather than my PC being special in some way. For reference the HTML has the following in it - this is generated from some 3rd-party app:

[Code]...

View 1 Replies

Flash - Adobe Cirrus (Stratus) Doesn't Work If User Have Local Network

Aug 20, 2011

I am developing flash p2p chat. It works fine on my friends' computers (they can chat each other), but not on mine. The problem is that I have local network at home, and I think that Flash Player tries to make p2p requests to peers inside my local network.Can I check if user have local network in AS3 and up the level of network to the WWW?

View 1 Replies

ActionScript 2.0 :: MX: Attach An "onRollOver"-handler To The Movieclip But It Doesn't Respond - Array

Sep 28, 2005

I have a loop that goes through an array and duplicates (and positions) movieclips on the scene and loads JPGs into them with "loadMovie". I then try to attach an "onRollOver"-handler to the movieclip but it doesn't respond. Here's the thing: It works fine when I don't load the images into the MC instances... but as soon as I do, the onRollOver is not responsive anymore.

I read the telltale line "loading a JPG or SWF into a movieclip replaces it"... is that the cause of the problem? I mean- can I not refer to the duplicated MCs anymore as soon as I load something into them? How could I work around it?

[Code]...

View 2 Replies

Professional :: Flash Closes For No Reason

Feb 28, 2012

For some reason my flash program closes on me. The strange thing is, it is only 2 MB. I have a good amount of shapehits in it as well. Would that cause it to crash?

View 1 Replies

ActionScript 3.0 :: Loaded Swf Doesn't Respect Local Space

May 7, 2010

I made a particle generator that spawns bubbles... the particle spawner is a movieclip and all particles are children to it... this spawner is then loaded to stage with some more instances of it and they're arranged so that they produce enough bubbles to cover pretty much the whole screen...

So far so good... the trouble is that this project is meant to be projected into a hologram, and needs to be positioned, rotated and distorted to fit the irregular projection space...

My idea is to just leave the particle generating swf as it is and load it into another swf, then do all the positioning and rotationing as if it were a movieclip... My knowledge of Flash and the way movieclips have they own local spaces tells me that this has no reason to not work... but apparently, loaded swf's have a mind of their own...

I'm loading the swf using the UILoader component, which seemed to me the easiest way to get it working, since it doesn't need to be dynamic or anything... I just want to position it once, save it at that, and leave it be...

the trouble is that once loaded, the particle generating swf spawns it's emmiters (there are 5) in relation to stage space, and not loader space... so it doesn't respect it's boundaries or orientation...

I've tried all possible settings of the UILoader parameters... none seem to work with an swf that is creating movieclips at runtime...

Does anyone know why this is? I'm probably missing something stupid here... I'm feeling rather dumb today... yesterday I created the whole particle emmiter and bubble physics in 2 hours, but today it seems my head doesn't want to go and I'm stuck with this rather silly problem...

I tried placing the UILoader into another movieclip, so that any loaded content would be inside that movieclip's space, but it just doesn't respect any orientation... btw, I'm not rotating it by code... yet... I was trying to get it working using the editor, which would indeed be much faster and simpler.

View 5 Replies

FLVPlayback Skin Doesn't Work On Local Access

Oct 13, 2009

I want to play a video, for it I decided to use a FLVPayback with a skin, and it works very well when I test it in Flash CS4, also when i called it from my server with the "network access" only preference. But when i embeded into a html... it plays the video but the skin does´t shows up.

here is my code:
 
package
{
import fl.video.FLVPlayback;
import flash.display.Sprite;
import flash.display.*;3

[Code].....

View 1 Replies

ActionScript 3.0 :: Detect If User Doesn't Allow Local Storage?

Mar 18, 2009

I have an actionscript app which needs to use SharedObjects. I see how if the user doesn't allow the Flash Player to access local storage, the security settings panel automatically pops up and asks for user input.

My problem is that my app runs with a 1x1 pixel stage, because it doesn't display anything. So the user will never see that panel and the program will seem to hang.

What I want to do is to somehow detect that the user doesn't allow the Player to access local storage so that I can open a new window large enough to display that panel.

The only way I've been able to detect this so far is to try to call SharedObject.flush() and check the return value, but that displays the settings panel.

View 2 Replies

Javascript :: Doesn't Run When Loading File From Local Disk On Android?

Jun 2, 2011

While trying to develop some Android app I ran into the following problem:I load an swf file to a WebView, that makes js calls. I want to catch those js calls, so I useWebViews.addJavascriptInterface() to do so.Everything worked just fine when i loaded the swf file from a remote server, but when I load the same swf file form the Android file system, the javascript methods seem not to run (at least I cannot see them).

View 1 Replies

ActionScript 3.0 :: Error #2148: Only Local-with-filesystem And Trusted Local SWF Files May Access Local Resources

Jul 4, 2010

I'm trying to load a local xml file:

xmlLoader.load(new URLRequest("../xml/xmlData.xml"));

But I'm getting this security sandbox violation:

#2148: Only local-with-filesystem and trusted local SWF files may access local resources.

I don't get this error when I embed the XML file directly with the EMBED metadata tag.

View 3 Replies

Adobe :: Flash FLA File Size Becoming Huge For No Good Reason

Mar 31, 2012

What is the reason for the enormass bloating of FLA file size, when many edits and saves are made to a FLA file, yet assets are not being added to the library? What is the best technique to keep FLA files smaller in size? (with the problem described below. I am not talking about published SWF files or asset management)Over many edits and many saves of my FLA files, they become 30 times the size on disk from where they start out. Example 750k can get as high as 34mb. In the past "save and compact" used to fill the role of reducing FLA file sizes but now that feature is gone.When I save as a CS4 file then back to CS5 the file becomes much smaller after it has become bloated, BUT I take a risk every time I do this that the file will become corrupted (I've had corruptions happen).I have read that files which were created in CS5 and are never in the format of CS4 don't have this problem, but I find that theory unlikely since I have tried to follow this rule to no success.

I have also read that every FLA file tracks its "history" of assets. So adding and removing assets to the library will sometimes cause bloating because old assets that are removed from the library remain in the FLA file. This seems bogus because there is no purpose to this, but could be an indication of a bug in Adobe Flash Professional CS5, and CS5.5.Personal details: the files I am editing contain personally created flash components, images, audio, many symbols (20+) but no embedded video.For me personally, this bloating is a problem because I'm dealing with hundreds of flash FLA files that should be about 1-4mb in size but are instead much larger. The overall effect is that I end up with gigabytes of files instead of hundreds of mbs.

View 1 Replies

ActionScript 2.0 :: Links Within Flash Movie Are Moving For No Reason On Hover?

Mar 4, 2011

I have got a very obscure problem that I cannot for the life of me figure out. I have a flash movie which contains a number of pages which contain dynamic text fields containing HTML read from my database. This works absolutely fine, however for reasons that I cannot understand when you hover over some of my links they move to the right so they are inline with the edge of the first linked image at the bottom. The code is as follows:

PHP Code:
<p><a href="http://www.testlink.com">A LINK</a></p><p>Test text <a href="http://www.testlink.com">ANOTHER LINK</a>More text</p><p>

[code]....

View 2 Replies

Eclipse :: Flex Builder Debugger Doesn't Display Local Variables

Feb 11, 2010

I am using the Flex Builder 3 debugger almost every day and it's starting to be a real pain that the 'Variables' tab in the 'Flex Debugging' view doesn't show local variables, only 'this' is displayed.

Also I can not add Watch Expressions for local variables.

Am I forgetting something here or is the debugger just very limited?

View 3 Replies

ActionScript 3 :: Flash - AMF Zend Fails Silently

Jun 1, 2011

I'm trying to connect to a Zend-PHP service within a pure ActionScript program. I've managed to use the service successfully using Flex. (But Flex mobile apps are bloated, and typically 10x bigger than pure ActionScript apps - which is why I'm trying to write it in Pure Actionscript). I'm trying to access the PHP/Zend service that I downloaded, and used in the following tutorial:- [URL] The PHP code that I'm connecting to is available as a download from this site - as well as instructions about how to use it in Flex. And this is what I've written in ActionScript:-

[Code]...

View 2 Replies

Actionscript 3.0 :: Zend AMF On Flash Online / Not Localhost

Jun 25, 2009

i managed to make a image gallery with the help of the gotoAndLearn ZendAmf Flash tutorial. When i use the WAMP localhost it works absolutely great, but when i try to use it online it doesn´t work.[code]

View 1 Replies

Flash :: Embed Movie In A Zend View Programmatically?

Mar 15, 2010

I have tried to embed a flash movie in a zend view using the htmlFlash helper.

In theory you only have to pass the movie path to the htmlFlash helper in a phtml view[code]...

View 3 Replies

Flash :: Execute An External .exe From A Local .swf Using A Local XML Socket Server (C#)

Jan 7, 2012

I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.

I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.

My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."

The only way i know to fix this - is to change the security settings of flash - not very user friendly!

So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.

View 1 Replies

Zend Framework :: Connect From Flash Media Server 3.5 To Zend_Amf?

Dec 31, 2009

i want to be able to connect from flash media server 3.5 to Zend_Amf (latest ZendFramework version). i tried doing the following:

function amfresponder ( ) {
this.onResult = function (result) {
trace("Success: " + String(result));

[code]....

View 2 Replies

Flash :: Get My Swf To Respond To Visibility?

May 13, 2010

I'm using external XML to set flash vars. Alpha works, but not Visibility. How do I get my swf to respond to visibility?

XML

<?xml version="1.0" encoding="utf-8"?>
<SESSION>
<BGv TITLE="visible true">false</BGv>[code]...

View 2 Replies

Zend Framework - Zend_AMF Endpoint Protection In A Flash Game Deployed In Facebook?

Apr 25, 2011

feasable protection of my Zend_AMF gateway? I mean, how can I prevent someone from calling my service methods?

View 1 Replies







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