ActionScript 2.0 :: Can't Seem To Find A Smart Solution To Make?
Feb 12, 2009
I have a decent Flash knowledge, but I can't seem to find a smart solution to make my code cleaner and shorter.
- I have a menu with 12 items/buttons.
- When an item is clicked, all the other turn invisible.
[Code]...
View 3 Replies
Similar Posts:
Oct 3, 2011
i am an newbie as3 developer, and i am working on a basic, horizontal shooter platform game.and my question is: how can i make enemies move smart, towards the player? ( but ofcours you are in able to dodge)so like, an enemy is moving to me so when i am not dodging, it will hit the player.
View 2 Replies
Jun 18, 2009
Like in AS2 you can just hit a button, goto another frame, and that frame will loadXML in an executed function and then there you are.
Well AS3 is so different in approach, like some people even have an XML loader as an external class. I'm new at this an I'm kind of going in circles between tutorials trying to figure out what the best way to have a button trigger an XML loaded document revealing a thumbnail gallery etc.
Should I load my XML class in the beginning and then since I don't want it to load until MOUSE.EVENT put the function somewhere else to be loaded, and if so, what's smart?
View 6 Replies
Sep 26, 2011
Can I use a preexisting Flash file for a Smart phone, even though the size is different? Or do I have to recreate the file? What is the best dimension to use?
View 4 Replies
Nov 9, 2005
in Macromedia flash MX i noted that the scollbar component when is droped over a textbox, it take the name of that textbox like a target text box... how is this done? I mean, how the component knows where i'm droping him?? and how it knows that is a textbox object and no another thing.
View 7 Replies
Mar 10, 2011
I need to have an access to Photoshop Smart Objects?
Scripting,
CS SDK,
etc?
View 1 Replies
Jun 17, 2003
I'm trying to get a smart clip to load a external jpg, I made the smartClip already and is loading two variables from a .txt external file but I can't get the jpg to load .
I created the SmartClip so if I want to duplicate or reused the MC with different text all I need to do is change the value or .txt name and it will load it info from another external file, I want to do something similar for the jpg so if I change the value it will load a different jpg and I want to be able to tell Flash what position and size I want the jpg's to have This is the position and size I want Flash to use for the jpg's, as it now I have a place keeper on it's position.
W: 143.0-----------------------X: 46.0
H: 136.0------------------------Y: -56.5
how to get those JPG's to resize and load in a fixed position? or as a second alternative I uploaded the file in my server ( ftp://65.49.66.147 ) The MC zipped with the jpg. The file is called SmartClip.zip
View 5 Replies
Dec 3, 2007
[code]the problem is my xml file is a variable being passed from the html, so I was wondering how to write this without the inverted commas?[code]
View 2 Replies
Mar 3, 2011
I'm looking to use the Smart Seek options with netStream in an upcoming project. Currently, we are using Flash CS4 and it seems this API is not available. Am I correct on this? Is this only available in CS5 as far as Flash Professional goes? What about Flex? Which version of Flex is required to access the smart seek API? Or am I misunderstanding this, and the Smart Seek API is server side only AS?
View 2 Replies
Apr 3, 2011
I would like to intergrate 6 pictures in my AS 2 website, that uses XML, but i cannot manage to do anything. I added a flash magazine, but what it only does, is keeping my website loading hard and jerky. so i wanted to put a simple gallery with 6 images, and zoom so the user can read the newspapers images well, like 200% zoom so the text would be visible to the viewer. When it clicks on any of the pictures or a separate button,the newspaper image goes zoomed like 200% and, when the mouse is out the image zooms out, or click on the separate button and the image zooms out as its initial state.
View 1 Replies
Jun 5, 2009
I have a client who will want an e commerce area for his site. Does anyone recommend a good Flash based program out there that will allow you to constuct an e commerce solution in both AS 2 or 3 . I know that is a lot to ask for but at this point I really need something that will not break my budget, I can use easily multiple times with different looks .
View 1 Replies
Mar 3, 2010
how to create 'smart' enemy characters for a pacman game?
View 1 Replies
Dec 22, 2011
I am needing to turn off caching for and URLRequest and cannot seem to find a solution for a plain flash SWF.I see that cacheResponse can be set to false for AIR apps, but I am working in plan ol' Flash Pro creating a SWF. Has anyone succesfully set cacheResponse on an URLRequest (using URLLoader) so it does not cache any of the responses and loads the files new every time?[URL]..
View 1 Replies
Aug 26, 2011
I want to design an object for loading and showing customized data, for example, the object firstly loads all employees in database, then look up whether login user in the list, if so then show the login user, otherwise show dummy data "all employees"(means null). But another scenario is the component should "remember" last time user selected data and show in another page,
View 1 Replies
Oct 27, 2010
I'm trying to call a function in my main class's .as file from a sub-one.However, the function (in the main class called "makeTurret") needs to add it as a child to the main class. However, to access it from the sub-function it needs to be a static public function (to my knowledge).Because of this, I can't use this for the root.UNWORKING code (Specifically the makeTurret function at the bottom):
Code:
package
{
import flash.display.MovieClip;
import flash.display.Shape;[code].....
I used a "GlobalVarContainer" thing as suggested in this blog post: greenethumb.com/article/11/global-variables-in-as3 which seems pretty handy and I'll definitely use it for other things such as level number and health and so on. However, I still can't use the .this function, so I'm unsure how to actually assign anything to the MovieClip stage, so that things can be added to it as children.
View 0 Replies
Aug 9, 2010
In Nexus one smart phone(android 2.2), the flash file in the web site is played by browser, But local flash file is not played. How to play the local flash file? Does not support local swf playing yet?
View 2 Replies
Sep 5, 2011
I'm trying to replicate an smart filter from Photoshop (CS5) in AS3. Here's what I'm trying to do: I want to have a dark gray background (0x323232 to be specific) with some light, fine grained monochromatic noise on it. I've been mucking around with the perlinNoise method but it's 'too much noise'. Too much contrast. Code: bitmapData.perlinNoise(3, 3, 13, Math.random(), true, true, 7, true); Could anyone point me in the right direction?
View 2 Replies
Mar 18, 2009
I want to ' import ' or ' download ' some SWF file into my main-swf file. I then want them to do a lot of communication back and forth. The best would be if I could just call functions from the new SWF file from my main-swf file, or the other way around. Do I use the loader class? And do I use the .parent.parent thing? Or is there a better solution?
View 3 Replies
Feb 18, 2010
I've spent the past 2 days scouring Google and dozens (easily over 100) websites trying to find an answer to something that people do every day! I am absolutely shocked that this info is not available anywhere online.
A simple FMS3 and AS3 and RTMP and FLVPlayback example. totaly not simple and not possible to find
[Code]...
View 10 Replies
Apr 15, 2012
I'm on planning/modeling phase to develop a remote desktop sharing solution, which must be web browser based. In other words: an user will be able to see and interact with someone's remote desktop using his web-browser.Everything the user who wants to share his desktop will need, besides his browser, is installing an add-in, which he's going to be prompted about when necessary. The add-in is required since (afaik) no browser technology allows desktop control from an app running within the browser alone. The add-in installation process must be as simple and transparent as possible to the user (similar to AdobeConnectNow, in case anyone's acquainted with it).The user can share his desktop with lots of people at the same time, but concede desktop control to only one of them at a time(makes no sense being otherwise).
Project requirements:All technology employed must be open-source license compatible.Both front ends are going to be in flash (browser)Must work on Linux, Windows XP(and later) and MacOSX.Must work at least with IE7(and later) and Firefox3.0(and later).At the very least, once the sharer's stream hits the server from where it'll be broadcast, hereon it must be broadcasted in flv (so I'm thinking whether to do the encoding at the client's machine (the one sharing the desktop) or send it in some other format to the server and encode it there).Performance and scalability are important: It must be able to handle hundreds of dozens of users(one desktop sharer, the rest viewers)We'll definitely be using red5.My doubts concern mostly implementing the desktop publisher side (add-in and streamer):
1) Are you aware of other projects that I could look into for ideas? (I'm aware of bigbluebutton.org and code.URL...)
2) Should I base myself on VNC ?
3) Bearing in mind the need to have it working cross-platform, what language should I go with? (My team is very used with java and I have some knowledge of C/C++, but anything goes really).
View 3 Replies
Dec 9, 2011
I'm working on a project that originally required me to use <area> elements and 40 copies of a single GIF image to have a hoverable and clickable <img> tag. I suggested SVG, and the client agreed to use SVG instead, as it was easier to work with for both of us.
Anyways, my question is, what cross-browser JavaScript SVG library will allow me to display and interact with pre-made SVG images.
I know of these libraries:
Raphaƫl: I'm currently using this along with a SVG loading plugin. But that plugin does not support Inkscape or Adobe Illustrator SVGs (i.e. most SVGs). cang: This library looks promising, but it requires <canvas> support, which IE doesn't have natively. svgweb: Another more-promising library. It requires Flash, but most IE users have Flash. jQuery SVG: It seems to be able to load SVG images, but development seems to have died. And it requires me to use a modified version of jQuery 1.3.
My client would like to provide somewhat-arbitrary images to my script and have chunks of them be "selectable" (see my demo here).
View 3 Replies
Jun 2, 2010
I'm putting together a swf file and I'm trying to have clouds moving in the background from right to left infinitely. Currently I made a cloud image the height of the movie and about 4 times wider than the movie and I have it tweening slowly. The image size and the fact it eventually stops is what I'm trying to change now. I made an "infinite" cloud image about 2/3rds the width of the swf. By infinite I mean the left edge and right edge match up, so it looks seemless if you repeat it over the x axis. Now I'm looking for a solution to create a movie clip that will loop this image so it's constantly sliding to the left and repeating itself.
View 4 Replies
Jan 2, 2011
I am looking for the abilities that Youtube's Chromeless player has to offer but for non-Youtube hosted videos such as Metacafe, Vimeo, Viddler, etc. Abilities I will need are :
[Code]....
Can I use Chromeless player for videos hosted on other sites besides Youtube? If not, is there a solution out there? If not, what languages/APIs would I need use and know to create such an application?
View 2 Replies
Aug 8, 2011
We'd like to show some shiny charts/plots/tables for some business data. It targets PC browsers and iPhone/iPad.
We have done some research and here's possible solutions:
HTML5: not yet very standard and we are lack of experience. Flash: it looks like Flash on iPhone runs on some sort of virtual machine, it's not very efficient. We have little knowledge on this too. Silverlight + Cocoa Touch: it looks like MS is now giving up SL. We need two times of work on GUI if we choose this. Maybe I can write some XAML parser for iOS using UIKit and Core Animation.
View 3 Replies
Sep 4, 2011
I'm searching a solution to play a HTML 5 Video and show different images (or similar) on various points (e.g. min 2:15) in the video.
Is this even possible or I should rather use Flash?
View 1 Replies
Mar 7, 2005
just download my project and look at the missile code. I need to find out the equation make it so that the fire that is attached in the mc moves as if it didn't inherit the missile's coordinates(i.e make it so the fire moves like it was outside the missile's mc, and doesn't move with it) I know it has something to do with the circular rotation code found in the tutorials but i just need someone to write out the code.
View 1 Replies
Jul 25, 2009
Hate to drop some bribe on my first post and all but I need answers fast and if any of you have been waiting for as long as I did for a demonoid acct you should be able to figure this out real fast Anyone with some decent flash/as2 skills should be able to figure this out real quick. First one to send back a working file gets the invite code.Ok long story short I purchased a fullscreen xml gallery from FlashDen that is supposed to resize. Here is the link to the demo...Well problem is it only resizes the images based on their width and not their height. (Panorama would show fine but a tall portrait would just go off the page) You will notice in that demo how the resizing is fixed to the side of the painting and not the bottom.
Well, to me this seams useless because I really need every user to be able to see the full pictures no matter what screen resolution they are at and no matter how they adjust their browser window.Believe me when I come posting on threads it means I have spend many many hours trying to figure it out myself...In this case I have spent 30 hours trying to solve this in the last two days....Now I am over the deadline I gave to my client/family member and am still at square one basically.Also note I have figured out how to make it so that it fixes to the bottom and thus shows the tall images in full but when I do this it is no longer centered in the page.
I am really tired and worn out but would love to work with someone's advice to make this a reality.Attached is everything you would need. Please note that by downloading this attachment you are agreeing to only using these files to your new friend Sean and would never think about using this for your own project.Attachment is too big...~3Mb so I had to put it on a server.. Grab it here.
if(heightRatio<widthRatio){
eval(getResizeClip)._width = widthRatio*bgWidth;
eval(getResizeClip)._height = widthRatio*bgHeight;
[code]....
View 12 Replies
May 26, 2009
I keep getting this error in my output panel when I switch from one flv to another. I am loading up multiple flvs from an xml file.
VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/pause()
at fl.video::FLVPlayback/pause()
[Code].....
My flv componenets name is obviously myFLVPlybk and the list is myList ...
View 6 Replies
May 18, 2010
I must rejected all users outside Denmark from our live streaming (c-ip) and this is done in an access plug-insBut now I need to open up one of the streams, but I can't get the streaming name in the access-plug-ins only in the Auth-plug-ins.I cant use x-page-url or s-uri I need pStreamName. in access-plug-in like thissetStringField(m_pAev, IFmsAuthEvent::F_STREAM_NAME, pStreamName);but I cant get it inside the access-plug-in
View 1 Replies
Aug 19, 2010
I'm attempting to make it so that when a person fails to fill in blank textboxes in another app that someone else made and I have nothing to do with but affects the XML node Path, my flash file will look instead at DefaultPath if it can't load whatever is in Path..
Here is the sample XML
Code:
<abatch>
<Title>Title!</Title>
<Path>/content/main/broken/path</Path>
[code]....
Is the code I've been trying to use but it won't do what I want. I keep getting this error:
VideoError: 1000: Unable to make connection to server or to find FLV on server
The XML is being properly loaded. Everything else is working. I just need to know that when something is blank it will look at the DefaultPath. I don't seem to be able to get it to do that.
View 4 Replies