ActionScript 3.0 :: Creating A Real URL W/ AS Code?

Jan 15, 2009

how do most people deal with different URLs in flash/AS3?

for ex., I want to have a site like:

mysite.com/
mysite.com/images
mysite.com/videos

but i know this has been annoying to deal with in the past. how do people create these real links currently w/ flash?

View 6 Replies


Similar Posts:


Flash 9 :: When Creating Shape -- Show Real-time W/H?

Oct 28, 2008

One thing that's really frustrating me about Flash is that the info panel doesn't display real-time width or height values.So if I'm drawing a rectangle, I can't just draw it out as do in Photoshop to say 400 X 200. I'll need to set this manually after I draw a small box.

View 2 Replies

ActionScript 2.0 :: Get The Real X And Y Positions Of An Object In The Real Movie?

Jan 19, 2005

im just wondering if theres a way to get the real x and y positions of an object in the real movie ( the root screen) that is locted in another movie

i have an object which is within 2 movie clips, first one and then another , and then my object, now i want to know what the real x and y positions of it is, not the locations realtive to the movieclip it is inside.

View 5 Replies

ActionScript 2.0 :: Code For Creating ComboBox?

Jul 25, 2005

I have a page with about 50 comboboxes, and it takes forever to load it. Guess they arent really optimized sizewise.Perhaps Im grasping for straws here, but I thought that creating the 50 comboboxes on the fly with AS instead of just placing them on the stage minimizing the loading-time.But no matter how much I search the -files, I cant find the code for creating a combobox on stage. Is it possible

View 1 Replies

Creating The Form And Coding The Flash Code?

Sep 21, 2009

I have recently created a flash website and on the contact page i wanted to put a form that would send the information the put in directly to email. After creating the form and coding the flash code which is below i coded the php file and loaded it to my webserver to see if it worked (the webserver supports php scripts) I am not recieving any emails from the form can any one look over my code and tell me my problem.

[Code]...

View 1 Replies

ActionScript 3.0 :: Creating Code For A Slideshow With Movie Clips?

Oct 2, 2009

I am trying to create a simple 6 frame flashplayer type object, and I want a movie clip in each frame. So frame 1 has movieclip1 and frame to has movieclip2 and so on. I have a forward and a back button so if you are watching movieclip1 you can hit forward and watch movieclip2.This is the code that I have on my actions layer...

stop();
forward_btn.addEventListener(event:MouseEvent.CLIC K,forward)
back_btn.addEventListener(event:MouseEvent.CLICK,b ackward)

[code].....

View 3 Replies

ActionScript 3.0 :: Creating Many Textfields And Adding Code At Runtime?

Oct 20, 2010

I have a flash project that requires a swf file with over 300 textfields i.e a datasheet like in excel.i use actionscript 3 to dynamically add them at runtime.However I have a function calculate() that references them at compile time.So i think the problem is the caluclate() cannot find the textfields because they are still not added to the stage.How can i create them dynamically and after that add a function caluclate that will surely find the textfields?

Here is a code example of my work:

//add 50 textInput components
for (var intr:Number=1; intr<=50; intr++) {
var intTextField:TextInput=new TextInput();

[code]....

View 9 Replies

Actionscript 3 :: Creating A Flex Skin By Copying Code A Bad Thing?

Oct 6, 2011

I've created a number of skins for various components recently. Some of these were for Spark components and the default behavior of Flash Builder is to take the source code of the original skin and copy into your skin as a starting point.

Normally, I am 90% ok with the original skin, I just want to tweak or add one little thing. It seems to me that duplicating 3 pages of source code to do this is a bad idea. What do I do when I upgrade Flex SDKs? Do I have to go back through the source of all these original skins and (re)compare? This sounds like a disaster.

Is there a way I can create a new skin in MXML that inherits from the old skin? Can I do this via ActionScript?

View 1 Replies

ActionScript 3.0 :: Flash - Creating Multiple Instances Of Code Generated Mc?

May 15, 2010

I need to generate multiple instances of a code generated movieclip. If I try:

Code:
var mc:MovieClip = new MovieClip();
var n:mc = new mc();

[code]......

View 4 Replies

ActionScript 3.0 :: Dynamically Creating TextFields - When I Copy The Code Into The Loop It Fails?

Oct 15, 2009

I'm currently creating an app which allows users to select blocks of text from a List and dynamically create a TextField on the stage.I'm calculating the height of the TextField and positioning the next TextField beneath.I'm also recording the total heights of the TextFields so that I know when the total height exceeds the available height, at which point I move the x position and reset to y position to zero.

When the next TextField will exceed the available height I want to split it into two, so I'm calculating the remaining height, making the TextField.height into the remaining height.when I try to get the position of the last visible line.If I have the TextFieldAutoSize as LEFT, then I can dynamically generate the heights of the TextFields.For the final TextField in the column I need to set TextFieldAutoSize to NONE so I can change the height of the TextField. i.e. I don't want it to autosize.However, bottomScrollV returns the total number of lines, not the last visible line.

I can create the required behaviour in a separate doc but when I copy the code into the loop it fails.Here is the code.

Code:
public function buildTextFields() {
3 columns (I'm calling them TextBlocks)
// so the first is 0;[code]....

View 1 Replies

Actionscript 3 :: Write Script For Clicking Button Using Following Code For Creating Button Dynamically?

Nov 11, 2011

i have to generate a button dynamically... and have to keep a click handler for the same how to write script for clicking buttonim using following code for creating button dynamically

var btn:Button = new Button;
btn.label = "Print";

View 2 Replies

ActionScript3 :: Get Real Url Of Page In Which Swf Is Placed?

Nov 27, 2010

So I tried

var url:String = String(this.loaderInfo.url);
var request:URLRequest = new URLRequest(url);
try {

[Code]....

but thay bouth return me to [URL] while I had url [URL] I use flash builder. So what shall I do to recive real full link - not swf link?

View 1 Replies

Flash :: Use FXG In Real World?

Feb 26, 2012

Have anybody found or seen real world example of using FXG files in real world applications?

View 1 Replies

ActionScript 3.0 :: Masking In Real Time?

May 30, 2009

I'm currently using the Graphics library to draw bands of color across an image (bitmap).So, I draw a square of colored bands, and mask it with the bitmap image. Unfortunately, when I use a mask (or even set the blend mode to .LAYER, OR use a shader filter) the FPS drops to un-usable levels.Is there some way that I can draw the bitmap shape I want without killing the FPS? I was thinking that I could like, draw the bitmap on top of the sqaure of Graphics, and then make a certain color transparent.

View 7 Replies

Delete A Shape For Real In JSFL?

Sep 24, 2009

I have this big JSFL project I'm working on that involves deleting a raw shape (ungrouped) and then replacing it with another one. The problem is that the original shape doesn't always actually get erased (I haven't figured out the precise circumstances where this happens yet though).  Even if it does get deleted, though, when I draw the new shape on the stage (using Path.makeShape), the new shape has extra vertices where its edges cross those of the original shape. So even if I end up with the correct-looking shape on the stage without the one that was there before, my shape I just created is likely to have extraneous vertices (and I need the vertices to be unchanged).

View 2 Replies

Javascript :: Create A Web Real Time App?

Mar 13, 2010

I want to create an application like this:

[URL]

What is the most efficient way to create this real time application ?Flash ? Long polling ? Http Streaming ? or anything else ?

View 3 Replies

Flex :: Get The Real Objects Width?

May 3, 2010

when I check the width of my objects I always get 0. Here is an example:

newTag = new LinkButton();
newTag.label = dataManager.tagViewTimelineModel.tags.getItemAt(i).name;
newTag.setStyle("color","#FFA500");[code]....

I guess because width is a property I can set, but it is not automatically computed by Flex. How can I know how big are my objects (as conseguence of the included text ?)

View 3 Replies

Actionscript 3 :: Make Swf Address Be A Real URL And Not Use A #?

Mar 14, 2011

Is it possible to make swfaddress, or any script really, to allow flash to change the URL displayed(without actually switching to a new page) in the browser to anything I choose? I realize that swfaddress makes the url so that it will always refer back to an originating swf file, which is great, but a web template I'm working on will always load a swf, no matter what URL you visit on the site. The difference will be what content is immediately loaded. As you navigate through the flash to different articles, I want to be able to change the URL to be that of the article as if it was an html page, as I'm going to have matching html content for SEO purposes. This is going to be a large site and I want to optimize it for sharing and searchability

View 2 Replies

Php :: Real-time Streaming Of An MP4 File

Apr 8, 2011

Is it possible to play the video (mp4) in real time using some flash player? What I mean by in real-time is that player would receive data on the fly, not from alredy saved file but e.g. php script (which sends appropriate content-type header) THAT IS DOWNLOADING AND 'ECHO-ing' THE FILE AT THE TIME PLAYER PLAYS IT - like e.g. some kind of live stream.

View 3 Replies

Html :: Have Real 3d Models In Flash?

Sep 30, 2011

[URL] I was told HTML5 might be involved, how? And how to have real 3d models in Flash?

View 1 Replies

ActionScript 3.0 :: Real Width And Height Of A MC?

Aug 10, 2010

Lets say that I have a MC called "myMovieClip", and in it there is a: Layer 1: 100px X 100px square Layer 2: 200px radius circle And Layer 1 is set as a mask for Layer 2. Is there a simple way to get the dimensions of the visible elements of the mask effect, and not the bounds of all of the elements in "myMovieClip"?

View 2 Replies

Professional :: Drawing In Real Time In A Film

Aug 1, 2010

Drawing in real time in a film

View 6 Replies

ActionScript 1/2 :: Make A Real Movement Animation?

Jan 6, 2011

how to make a real movement animation.I saw some game makeing movement program i saw its not that hard .They register movement from on other movement or video some litlie spots are placed in some colors and registring the movement and applyed in the new animation.

View 1 Replies

PHP :: Flex - Output Of C File In Real Time?

Oct 31, 2009

I have a C executable (named myprogram). When I run it by ./myprogram I get some output statements on the standard output of my Linux shell. I used run.php to get access to whatever is being printed to the standard output:

#run.php
<?php
$output = shell_exec('./myprogram');
echo $output;
?>

Then I called an HTTPService having id="service" to access this run.php file and I also set the text attribute of a TextArea to {service.lastResult}. When I run my Flex app, the interface kind of halts for a moment and then the TextArea displays all the 20 lines at once. But if program is run from Linux shell they appear one by one. Is there a way by which I can display a line as soon as it gets printed to standard output? This will then make the TextArea show the output in real time.

Or is Flex unable to do this? Rather how can a PHP program achieve such effect i.e. showing, whatever is being printed on standard output, concurrently in the browser in real time? Myprogram outputs 20 lines each after some microseconds. I want only the first line of standard output to appear in TextArea of Flex or in the browser (but in real time) while the program may then continue running the program.

View 3 Replies

Actionscript 3 :: A Real DrawText Call In Flex?

Dec 22, 2009

I am now developing a Flex application in which I need to control each pixel of my control of Flex. I want to calculate that how width and how height of some text used in my control and do some layout stuff.After some searching I find that the only way to draw text in Flex is to use something like TextField. So, I use TextField to display text and try to get the width and height of the text through:

textfiled.getLineMetrics(0).width/.height;

But the real textfield is much more bigger than this, so I do:

textfield.width = textfiled.getLineMetrics(0).width;
textfield.height = textfiled.getLineMetrics(0).height;

But, the textfield get part not displayed, and I am surprised by this effect. I know there should be a 2-pixel gutter around the text, but what the remain space? Why nearly 20% part of the text height/width are not displayed?

how can I get a real drawText call in Flex, I mean something like Windows's drawText method...

View 2 Replies

Flex :: Who Uses IntelliJ For Real Commercial Projects

Jul 6, 2010

Just a simple question: Would you prefer IntelliJ? If so, what are the Pro- and Cons?

View 2 Replies

Php :: Real-Time Communication Between Flex Application?

Nov 19, 2010

I have a Flex/AIR application communicating with a PHP server application. Recently my client requested real-time-like connectivity between the applications to replace what we currently have; refresh buttons which have to be clicked to refresh data.So effectively the server needs to push data to the client when something changes. I can write the code that detects when something changes, but I'm not sure about the push side of things.

View 4 Replies

CSS :: Implement Real Cascading Or Child Selectors

Nov 19, 2010

We all know there's CSS support in AS3. But actually it's not CSS, but just SS. Is there a way to implement cascading? For example I have
Compare <em>regular italic</em> and
<strong>bold text or event <em>bold italic.
</em></strong>
How can I define special fonts for regular italic and strong italic? How is it named? Basically "How to make styles for child selectors work?"

View 1 Replies

Php :: Play Mp4 Videos In E.g. Flowplayer In Real-time

Apr 8, 2011

How to play mp4 videos in e.g. flowplayer in real-time (streaming) - without downloading it fully first?

View 2 Replies

Flash 9 :: Animations Updating In Real Time

Aug 21, 2008

We're currently building a fairly big dynamic website, and I was wondering if there was a way to have an animation that updates and move in real time as there's action on the site. Ex. red bulbs light up each time a user posts something on the forum or whatever. It'd be all related to the mysql database.

View 1 Replies







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