w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Flash AS3 Loading XML from server (from Flash Pro AND Flash Builder)
For anyone else having this problem, I was talking to people from beanstalk and it seems that I was just doing it wrong. I was trying to use the repository for version control and hosting the assets when really subversion repositories should only be used for backing up your files and versioning. I went with Amazon S3 which is basically exactly what I was looking for, a spot "in the internet" where I could drop my swf, xml, image, sound files and have a path generated for my games to reference. It ended up looking something like this: _xmlPath = "https://s3.amazonaws.com/xmlFiles/1234235/explosion_guy.xml";

Categories : Xml

Galaxy S4 Can't Debug in Flash Pro or Flash Builder. Always connects as "Media Device"
Have you installed the usb divers for you device? http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows I had the same problem then I changed mine from a media device(MTP) to a Camera(PTP) which fixed it for me

Categories : Actionscript

How can I access my Text Field from Flash with ActionScript in Flash Builder 3.0?
I think puppy is a class you have written. Just like Goat or Dog. And you are trying to call a non static function on the class. example: var mrSnible:Dog = new Dog(); mrSnible.description.text = "An hilarious dog"; //this works Dog.desription.text = "this is going to return an error"; //this won't

Categories : Actionscript

Store Flash Player privacy settings in Flash cookies
Flash cookies are used through SharedObject. Flash has its own way of storing its privacy settings through the popup, when camera or microphone is to be published. If you are refering to your own internal privacy protocol, research about SharedObjects. Its quite easy. Don't forget to flush() :D

Categories : Actionscript

Flask: getting random repeated flash messages when flash() is in @app.before_request
You can access the list of waiting messages via flashes = session.get('_flashes', []). You can view the code on Github On the note of why you're getting a few messages flashing, it's because you're making multiple requests (but probably don't know it). Your web-browser is probably asking for favicon.ico which is a request, so causes a flash, etc. If you're running in debug mode, your console window will show all the requests being handled. For example loading a simple flask example in Chrome causes this to show: 127.0.0.1 - - [21/Jun/2013 16:35:05] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [21/Jun/2013 16:35:05] "GET /favicon.ico HTTP/1.1" 404 - One is my request to view the homepage, the other is Chrome asking for the favicon (and it being told it doesn't exist).

Categories : Python

Error #1034: Type Coercion failed: cannot convert flash.text::TextField@1182e101 to flash.display.MovieClip
Looks like Dialogue is not a textField. Is Dialogue a MovieClip with a textfield inside? If so, give the textField inside an instance name like tf. Then set the text like: Dialogue.tf.text = 'some text';

Categories : Actionscript

Possible to step through/breakpoints as3 in flash buider when compiling with flash pro?
This should work. I use the same setup almost all the time. How did you create your project? I usually create the fla, then in FB I select new->flash pro project and point it to the fla file. Now if I add a breakpoint in FB and I test the movie with ctrl(cmd)+shift+enter, the movie is published in Flash and is stopped at the first breakpoint.

Categories : Actionscript

could not find implicit value for parameter flash: play.api.mvc.Flash
You have masked the implicit request with the _ wildcard. As far as I understand Scala, when you use the wildcard, it means, ignore this whatever it is. Meaning, you cannot use it further in your code. But the flash scope needs access to the request, that's why it isn't working. This should work : def index = IsAuthenticated { username => implicit request => ... }

Categories : Scala

How to import actionscript 3 flash game into flash builder?
There are numerous options, such as: Flash Pro If your game has already been created in Flash Pro, you could simply target AIR for Android from Flash Pro's publish settings: ADT Command Line Packager Likewise, you could simply use the ADT command line packager to build your SWF to an Android distributable. Flash Builder Otherwise from Flash Builder, you can create a new ActionScript mobile project: Select Android, or other target platforms: Place code and packages relative to the src/ folder, same as you would relative to your FLA: Your entire Flash app could be published as a SWC, then instantiated from Flash Builder, or individual assets may be exported as SWCs: Likewise you can programmatically embed SWF assets in ActionScript classes using the em

Categories : Actionscript

Autoplay flash in ie8 when using a html5 to flash player fallback
Found the answer b clicking on one of the links to the left! get embeded flash to autoPlay so basically i replaced my &poster = in the embed in the flashvars with &autoPlay=true"

Categories : Jquery

Convert Flash into HTML5, keep using Flash if browser does not support HTML5
I think it is because your js file never loads. It loads after you append it to the document. Try it like this: try { new Audio(); var js = document.createElement("script"); js.type = "text/javascript"; js.src = "https://www.gstatic.com/swiffy/v5.2/runtime.js"; document.head.appendChild(js); // Add it to the head. } catch (er) { alert(er); <!-- displayFlash('abc.swf', 420, 450); //--> document.write("<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="420" height="450" align="middle"><param name="allowScriptAccess" value="always"><param name="movie" value="../../images/thap_deluxe.swf"><param name="wm

Categories : HTML

Chrome's Flash player Shared Objects and External Flash Player Shared Objects
Because the Flash plugin itself controls where shared objects are stored and you cannot (as far as I am aware) change that location nor determine what that location is, there is nothing you can do about this one, unfortunately. You will have to deal with the lost data. It will happen eventually anyway, because I believe shared objects are cleared when you clear temporary browser data (or at least they should be, anyway). On the bright side, the average user does not know you can switch between plugins nor do they know how. The vast majority of Chrome users, even those with a more technical background, will be using the terrible Pepper Flash plugin, so your scenario should be a rarity. There is a way around it, however. You could set up a remote server and store the shared object there.

Categories : Actionscript

Turn Flash On/Off
It looks like you can't retrieve the acquisition device twice (I'm not sure why), so you should store it in a property: protected AudioVideoCaptureDevice Device { get; set; } private async void ButtonTurnOn_Click(object sender, RoutedEventArgs e) { var sensorLocation = CameraSensorLocation.Back; try { if (this.Device == null) { // get the AudioViceoCaptureDevice this.Device = await AudioVideoCaptureDevice.OpenAsync(sensorLocation, AudioVideoCaptureDevice.GetAvailableCaptureResolutions(sensorLocation).First()); } // turn flashlight on var supportedCameraModes = AudioVideoCaptureDevice .GetSupportedPropertyValues(sensorLocation, KnownCameraAudioVideoProperties.VideoTorchMode); if (

Categories : C#

flash file does not appear
Take a few moments to read through the code... public SimpleFlashExample_1() { // 1... initComponents(); JFlashPlayer flashPlayer = new JFlashPlayer(); flashPlayer.load(getClass(), "/clientserver/fl.swf"); // 3... add(flashPlayer, BorderLayout.CENTER); } private void initComponents() { setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); // 2.... javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 675, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .add

Categories : Java

flash to html5, How to
From as far as I know Adobe Flash CC has the ability to export, including apps built using ActionScript, into HTML5 + JS + CSS web apps. Take a look > http://tv.adobe.com/watch/creative-cloud-for-web/adobe-flash-professional-cc-overview/

Categories : HTML

How to make a d-pad in flash AS3?
You could do something like this (all your buttons do need a name and your man: var speed:int = 10; var xdir:int = 0; var ydir:int = 0; UpBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown); DownBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown); LeftBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown); RightBtn.addEventListener(MouseEvent.MOUSE_DOWN, onDown); addEventListener(MouseEvent.MOUSE_UP, onUp); addEventListener(Event.ENTER_FRAME, onEnterFrame); // What happens when a button is released. function onUp(e:MouseEvent):void { xdir = 0; ydir = 0; } // What is happening when one of the buttons is clicked. function onDown(e:MouseEvent):void { // Reset direction onUp(e); switch(e.target.name){ case 'LeftBtn': xdir = -1; break;

Categories : Actionscript

Flash[:notice] does not appear
You probably have a redirection to multiple actions. Try this flash.keep(:notice) Also see here: flash message in redirect not working Rail3

Categories : Ruby On Rails

AS3/Flash: XML to array
const xml:XML = <list> <label>ALPHA</label> <label>ALLAN</label> <label>ANTARES</label> <label>...</label> </list>; const list:Array = new Array(); //xml..label.(trace(text())); xml..label.(list.push({label:text()})); // now we have an array: // [{label:"ALPHA"}, {label:"ALLAN"}, {label:"ANTARES"}, {label:"..."}] I recommend to read the AVM2 specification and to pay special attention to namespaces. Seriously. It's interesting and it's fun! Hmmm... Alternative boring way: const list:Array = new Array(); const xml:XML = <list> <label>ALPHA</label> <label>ALLAN</label> <label>ANTARES</label> <label>...&

Categories : Arrays

How to set AS2 as dialect in flash
I do a lot of Flash banners where I work. When the specs tell you that you need to use ActionScript 2, you're best of doing exactly that. Many publishers have tools that process banner ads, and reject them if they do not meet certain criteria. We use Cadreon most often which does exactly that. A lot of the reason is that the platform will promise to get the largest reach with a client's media. That means they typically only accept really old formats (like Flash Player 8, AS2) to make sure they hit as many consumers as possible. It might seem odd that they need SWFs this ancient - but consider that there are a lot of corporations that do not update software on their machines for many years at a time.

Categories : Actionscript

Flash swf is not playing in IE8
Use SWFObject https://code.google.com/p/swfobject/ Here is how you use it <script type="text/javascript" src="swfobject.js"></script> <div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699"); so.write("flashcontent"); </script> Here is what each parameter means var so = new SWFObject(swf, id, width, height, version, background-color [, quality, xiRedirectUrl, redirectUrl, detectKey]); Create a new SWFObject and pass in the required arguments: swf – The file path and name to your swf file. id – The ID of your object or embed tag. The embed tag will also have this value set as it’s name attribute for files tha

Categories : HTML

Is my Flash SWF on screen?
Use Flash's ExternalInterface to call a javascript function that checks to see if the element of off screen. In javascript, use JQuery with the Viewport plugin to figure out if we're off screen. (http://www.appelsiini.net/projects/viewport). I haven't tested the Viewport plugin, but I've talked to people who use it, and it worked out OK for them. In as3: var returnValue:int = ExternalInterface.call("jsCheckerFunction"); if(returnValue == 1) // your flash is on-screen. in javascript: function jsCheckerFunction() { if($("#flashContent:in-viewport").length > 0) return 1; // flash div visible return 0; // returns 0 if the element is offscreen } You could have it call jsCheckerFunction on each frame to see if the status has changed.

Categories : Actionscript

How does the flash become available through the request?
Your method index is a part of some class, that extends Controller, so all methods of Controller are in scope. There is implicit method flash in Controller: implicit def flash (implicit request: RequestHeader): Flash So if you have implicit RequestHeader in scope it can be converter to Flash implicitly. `

Categories : Scala

How to Flash CS5 AS3 Random Elastic?
Something like this ? var properties:Array = ['rotationX', 'rotationY', 'rotationZ', 'rotation']; var eases:Array = [Elastic.easeIn, Elastic.easeInOut, Elastic.easeOut, Bounce.easeIn, Back.easeOut]; function completeHandler(event:Event):void { uiLoader.x = (back.width - uiLoader.content.width) >> 1; uiLoader.y = (back.height - uiLoader.content.height) >> 1; new Tween(mc, getRandom(properties), getRandom(eases), 90, 0, 4, true); } function getRandom(array:Array):* { return array[Math.floor(Math.random() * array.length)]; } EDIT : I had a look at the doc (I usualy use greensock's tweens). You should to: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/transitions/Tween.html I edited the code.

Categories : Actionscript

Why does my sprite flash in LibGDX?
this goes in your render method: batch.begin(); mainMenu.draw(batch); batch.end(); Render is the method that is constantly called, show is only called once when the screen is shown.

Categories : Java

Flash AS3 erratic scrubber
The video service used (DigiZuite) seems to re-encode the video with keyframes every 10 seconds. Re-encoding the video with keyframes every second fixed the problem (small video so it was VERY noticeable).

Categories : Actionscript

Flash (AS3) Movieclip Rotation
your problem is assignment within the 2nd condition. you need to use "==" if (rotCW) { tramp1.rotation += 3; if (tramp1.rotation == 90){ tramp1.rotation += 0; } } edit: the +=3 line you have executes regardless of angle. if you are passing 90 and dont want to, you can test for the opposite condition and increment in that case. eg: if less than 90. if (rotCW) { if (tramp1.rotation < 90){ tramp1.rotation += 3; } }

Categories : Actionscript

Algorithm paused in flash
The trick is, your function should work in start-stop mode in itself in order for you to srop process execution. This is because Flash event engine requires the event listener to actually end before another event can be launched. I have solved this with the following approach: Make an enterframe listener, make ONE cycle of your function to execute within it (make sure no local vars are used that should be available between cycles!) and exit the listener. Make a set of variables (best to use one, but it's not performance friendly) that this cycle will update each time it's run. Either control cycle execution via global var/function like you have tried, or add/remove listener itself. The global flag is better, as you can accidentally add two listeners and possibly screw up the process. In yo

Categories : Actionscript

how to close web page in the flash
UPDATE: This regretfully does not help with the firefox. The issue is not in actionscript, but in the way how the firefox handles the window.close() function. You can simply replicate this by trying to call window.close() directly from javascript without any actionscript. It is a security restriction. There are some related questions, answers and possible solutions here: Close windows that were not opened by script using javascript and here: How can I close a window with Javascript on Mozilla Firefox 3? END OF UPDATE I am sure this is a security issue. Have a look in the console, isn't there something similar to the following? Scripts may not close windows that were not opened by script. @ javascript:window.close(); I suggest to create a function in javascript which would clo

Categories : Javascript

LED flash light activation
The method getPackageManager() is not static, according to the Javadoc: http://developer.android.com/reference/android/content/Context.html You'll need to get a reference to the context and then you can call the method. To get a reference to the context you can all: Context appContext = Context.getApplicationContext(); Then you can get access to the package manager as follows: appContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH); Make sure to include the import: import android.content.Context; Assuming you're using Eclipse, you can press: ctrl-shift-o and it will reorganize your imports and pull in anything that's missing. If you're still having trouble, another way is to get the Camera Parameters, as described in this posting: How to find fl

Categories : Android

Flash Media Server, HLS and FLV
i'm actually not about FMS.. i work with Wowza and i suppose you'll need something like nDVR feature or have someone write special module for you that will split live stream into small recordings, and so you'll need to play playlist of such recorded files from your iPhone. hopefully someone will recommend true solution, not just some assumptions :)

Categories : IOS

My flash menu going crazy. AS3
You have to not add multiple event listeners to one MC. See, if all the other functions are this one copypasted with altered frames, then each of them adds an enter frame listener. These are cumulative, thus calling homect.addEventListener(Event.ENTER_FRAME, nexttohome); twice will result in two calls to nexttohome per frame. Probably you can avoid this listener altogether by putting code to the timeline of homect movie clip on the last frame, to call stop(); MovieClip(root).gotoAndStop(4);

Categories : Actionscript

Flash to html5 converter
You best choice is Tools For Create JS. It's a Flash Professional plugin that allows you to publish flash content to HTML5. Link: http://www.adobe.com/products/flash/flash-to-html5.html Also, take a look at the tutorial by Lee Brimelow: http://gotoandlearn.com/play.php?id=174 --- Flash Toolkit for CreateJS and http://gotoandlearn.com/play.php?id=172 --- Converting ActionScript to JavaScript As you will see you can do some amazing stuff using Flash Professional just to make a design/art but you'll also see that you'll have to do some coding as well, so it's not a perfect solution. If you're interested in creating games/applications that will run in Flash (.swf), JavaScript (.html, .js) and most other popular platform, your best bet is to look into Haxe (http://haxe.org). Moreover it'

Categories : HTML

AS3/Flash/Air: Database sharing
You can write to the file, but it won't work if multiple application tries to write the file at the same time. And, lets say app A changes one data, and app B changes another data. App A writes the new XML, then B writes its own version of the XML without acknowledging the changes from A. The changes from A are lost. One way to go here is SQLite. Natively supported in AIR. But then again, you can not write the file at the same time from 2 different apps. AIR is supposed to handle those writing issues, but i already experienced some problems with it. A much better way to go here would be setting a SQL server up (or any other real DB server, i am no expert) and some php interface. Maybe AMFPHP : http://gotoandlearn.com/search.php?q=amf, or simply use urlloaders ...

Categories : Actionscript

Flash Alpha Value of Color
Keep a counter using long, take the modulus, you don't have to worry about overflow as it will increase by 60 per second and your code needs to run for 292471208678 years before overflow. long alphacntr = 0; .... public void update(){ alphacntr += 3; int alpha = alphacntr%256; .... }

Categories : Java

php session flash message
In the code you provided $message is never defined as a member of the Controller class or its derived class Home. If you want to use that member variable you have to declare it as a member of the class, I.E. public $message and then set it somewhere in execution, presumably in your Uri::redirectToAction function.

Categories : PHP

Flash/AS3: error #1010
Check the XML. Either localXML.children()[i] is null or Name does not exist as a child node on the object. Also remember that if Name is an attribute in the XML, then you need to access it differently. If the Name is setup like this: <node> <Name>Stuff</Name> </node> Then you access it as you have done so already. But if it is an attribute like so: <node Name="stuff"></node> Then you need to access it like this: localXML.children()[i].@Name Another possible issue is the children() call. I've never used it before so I do not know specifically how it behaves. If the above issues do not fix it, try rewriting the parser to skip the children() call and just parse it like you normally would with nested loops. In the end, though Error #1010 mea

Categories : Actionscript

Adobe Flash and JSON
You can send GET/POST request with the URLLoader class: import flash.net.URLLoader; import flash.events.Event; import flash.net.URLRequest; import flash.net.URLLoaderDataFormat; import flash.net.URLRequestMethod; var urlRequest:URLRequest = new URLRequest("LINK_HERE"); urlRequest.method = URLRequestMethod.POST; urlRequest.data = your_json_object; var urlLoader:URLLoader = new URLLoader(); urlLoader.addEventListener(Event.COMPLETE, onComplete); urlLoader.load(urlRequest); function onComplete(e:Event):void { trace(e.currentTarget.data); // the response from the server }

Categories : Json

AS3 Flash: getTime value to Date?
Try this var time:Number = 1377564829609; var date:Date = new Date(time); The Date class contructor public function Date(yearOrTimevalue:Object, month:Number, date:Number = 1, hour:Number = 0, minute:Number = 0, second:Number = 0, millisecond:Number = 0) And the adobe doc said like this yearOrTimevalue:Object — If other parameters are specified, this number represents a year (such as 1965); otherwise, it represents a time value.

Categories : Actionscript

AS3 Flash CS5 - XML node filters?
I was too sleepy: //FILTER BY ATTRIBUTE NAME ------------------- var filteredByLocation:XMLList = destinations.destination.(@location != "japan"); trace("Attribute Name: "+filteredByLocation); Anyway, it can be useful for someone there.

Categories : Xml

Flash or HTML will be more suitable?
I wouldn't use Flash. Flash is being killed by HTML5 as we speak. Besides, Flash requires a separate install, while HTML/HTML5 is supported natively by browsers. HTML5 already has great media support with <audio> and <video> tags just to name a few.

Categories : HTML



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.