Actionscript 3 :: Automatic Device/App Discovery With TCP Instead Of UDP?
Oct 7, 2011
In the windows environment I believe it is possible to use UDP broadcast to allow apps to easily communicate without spcifing the IP address.
For example a presentation running on one computer/projector, and then several tablets with a ui to control it. No matter what local wifi (on change of loaction) is used the apps are able to communicate, without any further setup other than joing the network.
How can this be accomplished using TCP (or other method) so that I can keep cross platform and mobile compatibility. Without the need to specify the IP addresses of the device/app?
When I first started playing with the new motion tweens I realized that you cannot copy keyframe "properties" on multiple layers at once. You have to copy them one at a time. But I just found out that if you select the multiple property keyframes you can hold Alt and drag to duplicate them all at once.
I have imported my wav files to my library added them to the down state of my buttons and when I test the file I get (Sound has no valid device sound path although exporting device sounds was requested in the export settings. This sound will be ignored.) I have been surching for an answer but as of yet have found none.
I've been making a short movie. It contains some tweens (both shape and motion). I want the movie to automaticly pause at a specific moment (which bisects multiple tweens) and for a button to appear to contine the movie
I've been reading up on GC in AS3, I understand how it works now, and how I should go about things, nullifying all references, weak references, avoiding circular references etc (I tend to have circular references now I think about it).
How does the GC in AS2 work in comparison? How often is GC activated in both environments?
And is performance the reason that the AS3 GC has become less automatic and less frequent?
In AS2 presumably it's having to do far more scans and more frequently, thus being more of an overhead?
How does the delete keyword differ in AS3 compared to AS2? I know many people used null in AS2. I tended to use delete for onEnterFrame events and instances of classes no longer being used, then just remove for movieclips obviously.
/*This creates a new timer object, that fires every 1000 milliseconds (each second), and will fire 10 times after it is started, then stop. Next we will create an event listener that will catch the Timer event, and call a function "changeText".*/
var alienTimer:Timer = new Timer(1000,10) // declare an integer that starts the timer at 10! this shows the seconds left on the timer var secondsLeft:int = 10;[code]................
I've been making a short movie. It contains some tweens (both shape and motion). I want the movie to automaticly pause at a specific moment (which bisects multiple tweens) and for a button to appear to contine the movie. I am completly new to flash and will have to have everything spoon fed to me.
When I instantiate a new object I want the object to automatically be named the same as the name used in the instantiation.var fred:Person=new Person();trace(fred.name); // traces "fred"Is there a reference I can use in the Person constructor to do this?
public class Person extends MovieClip { public function Person() { name = ??? // what goes here? }}
Why didn't my Flash version change after I invoked the update alert on 08/12/10. I had V 10.1.53.64 and your website shows the latest recommended to be V 10.1.82.76. After the update it shows mine still unchanged.
My system particulars are: XP SP2 32 bit IE V6.0.2900 32 bit
I'm new to the world of as3. I was wondering if it was at all possible to have the UIloader load my external images with automatic fading transitions . I have searched the internet, and have found a few methods that include xml files, but I was wondering if there was a simpler method that used code that could have the same effect when directed to the source location.
I'm having a problem with flash that every time I load my website flash flash plays an automatic preloader (three black cricles flashing) that stays on top of my preloader and I was wondering if there is any way of disabiling it.
I need to create a flv file that change automaticaly his dimension if I modify the dimension of the window of the browser. Is that possible? which is the right way to do this? Is there a tutorial?
i am working in application of twitter in flex 3 and action script 3, this in the text area when the user write my application automatically change http address to a short address but i don't know find the address within the text
I have the following scrip below, where I call some images through an XML, and create a gallery that every 3 seconds it moves to left, passing the pictures automatically. But my images are of different sizes in width, the height is the same.
var dados:XML = new XML(); dados.ignoreWhite = true; dados.load("xml/" + _root.xmlport);
The one on the right under 'Add To Basket'I dont know where to start and I am a complete noob :-( asically I need it to be the same as that one,For example lets say today is Monday and it is 9pm It should say 1 hour left for delivery on Tuesday... But if it is Monday 10.01pm I need it to say 23hrs 59mins for delivery on WednesdayNow the trickier part is because there is no delivery on Sunday if on a friday night past 10pm I need it to say 47hrs 59mins for delivery on Monday...I hope that makes sense... I managed to find the file they use to process their countdown , but because I am a noob and there is a load of other bumf in the file I dont know what to keep and delete
I am going to use the automatic slide show that is explained in this site for my dad's website (I've used it in the past and it's great!) and I would like to know if the images can faded out as well as faded in. Basically, I want to have a seemless, progressbar-less, slide show with pictures that fade in and fade out. This is going to be used for a wedding photography site by the way.
I know that this tutorialas been here for a long time, but I started using it just now. It works fine, although I need to have the slides animate automatically.
I have a problem where my images are not fully displaying their dimensions (cannot see the whole image). How can I have the image being loaded scale to the properties of the holder? Would the whole image show properly, if I were to make the images the same size as the holder via photoshop?
I assumed, that once you've brought in the image it would scale automatically? I am loading these via XML. So now, I will need a way to scale each of the loaded images to match that of the holder.
I have a slideshow of images tweeneing in and out. I have buttons also where a user can control which image they view.
The slideshow is running automatically. I'm trying to figure out how to fade out whatever image is viewable and load the correct image once the button is clicked.I have made the button work and stop the slideshow from running but I need to know how to fade out whatever image is viewable and then tween in the correct image.
function OneClick (e:MouseEvent) {TweenLite.to(button, 1, {x:254, overwrite:false});myTimelineImages.stop();myTimelineButton.stop();};
On my homepage I want a video and when the video has ended, the user gets redirected to the next page. So far I've got my video in flv format, imported it into Flash CS4 and the added video control thing. I've then exported the movie and imported it into Dreamweaver CS3. I can get it working on my website.
I have a bunch of Flash (.fla) files where I need to convert all absolute (root) target paths in timeline scripts to relevant relative ones. Doing it manually in Flash CS4 is very tedious work and using "replace" action is tedious too as there are multiple nested timelines. Is there any way to automate this task?
I am trying to edit an old XML gallery that I made so that it will scroll through the images automatically, without any user interaction at all. Currently it's set to scroll through them one at a time and is controlled by mouse clicks.
Here's my code:
var xmlRequest:URLRequest = new URLRequest("homeImages.xml");var xmlLoader:URLLoader = new URLLoader(xmlRequest);var imgData:XML;var imageLoader:Loader;var rawImage:String;var rawH:String;var rawW:String;
I installed CS5 and opened an old .fla which did not embed the Arial font because everyone has it already. Mostly it is used for user-entered and dynamic content.However, CS5 is auto-embedding the few characters I use in Arial, and all of the other characters are no longer showing up in the swf file.The only fix seems to be embedding the entire Arial font in the movie, which is too large since I want to be able to support all kinds of characters.Is there a way to turn off auto-font embedding?This feature seems well-intentioned but critically flawed if it can't be turned off.