ActionScript 3.0 :: Lines Visible In Flash Player, But Not In Flex?

Aug 12, 2009

I've made an animation showing the constellation Orion in 3D (see attached swf). As you can see, it's working properly, displaying stars and lines connecting those stars. The depth scaling is ok. The animation also responds to mouse movements as it should.The problems occur when I embed the swf in Flex using Flex Builder (I posted this question on the Flex forum as well, but I suspect the problem is more AS related than Flex 3 related): the stars of the constellation are visible, the animation responds to mouse movements, depth scaling is OK...but the lines connecting the stars aren't visible. Feel free to make the comparison for yourself.So any suggestions how I can make the lines visible? Can they be exported for Actionscript in the same way the movieclips are?Geography and sciences teacher (not a professional programmer alas)I used Flash CS4 professional version 10.0.2 , Flex Builder 3, IE8, Flash Player 10

import __AS3__.vec.Vector;var balls:Array = new Array();var marks:Array = new Array();var numBalls:uint = 10;var fl:Number = 400;var vpX = 300;var vpY = 300;var commands:Vector.<int> = new Vector.<int>(50,true);var data:Vector.<Number> = new Vector.<Number>(100,

[code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Max Number Of Lines Visible In A Textfield?

Jun 23, 2009

Is there a max number of lines that can be displayed in a textfield?

I have a tf that is just cutting off text being pushed into it when it goes over a certain number of lines.

View 1 Replies

ActionScript 3.0 :: Offscreen DisplayObjects - How Does Flash Player Handle Objects When They Are No Longer On The Visible Stage

Dec 28, 2010

How does flash player handle objects when they are no longer on the visible stage? Is the graphical data still in memory? Does hittestobject/point consider them? Are enterframe and interval events still running?

In AS2 I would hold metaobjects (minimal x,y,width,height data) that would delete/create movieclips as the screen scrolled. Is this still a correct approach in AS3? If not, is there anything I can do to offstage display objects that improves efficiency, assuming around 400 are created initially?

View 4 Replies

Professional :: Publishing A Flash Video: Player Not Visible - Height And Width Referenced 3-times In Html?

Mar 5, 2010

When I publish my FLV video using Flash CS3 and the "SkinUnderAll" option...the player controls are not visible unless I change the height & width in the html file Flash created.But, Flash shows the height & width 3-times in the html.
 
Question-1: Why 3-times? What does each of the 3 Height & Width references do?
 
Question-2: How should I modify the code to be able to see the entire video and the player controls?

It seems if I change all 3 everything just gets bigger and bigger.
 
1 - I import it into Flash CS3 on a PC w/XP Pro using... File | Import | Video take all the defaults and choose "Skin Under All" as the player option.
 
2 - In "Properties" panel at bottom of screen Flash shows the video as 640x480
 
3 - I then click File | Publish to publish the video. Flash creates all my files for me.
 
MyVideo.fla
MyVideo.flv
MyVideo.html
MyVideo.swf
SkinUnderAll.swf
AC_RunActiveContent.js
 
4 - I then put the folder with the files on my website.
 
5 - The video plays but the player controls are not visible.
 
6 - I see the Height & Width referenced 3 times in the html file Flash created for me (and none are 640x480, they are 550x400 !)
 
7 - I try changing the 550x400 to 640x480 in all three places... no good. Even at 1000x1000 the entire player is not visible. Everything just gets larger.
 
What are each of the 3 references to Height and Width in the html file Flash Creates and which should I change to simply show all the player controls?

View 2 Replies

ActionScript 2.0 :: Video Player - Menu MC To Visible On RollOver

Oct 31, 2011

I am making a videoplayer for an embedded flv and I want the menu mc to appear when the mouse pointer is on the video. My problem, is that inside that mc I have 4 buttons (play, pause, stop, volume). When I make the rollOver, the menu is visible but the buttons are not clickable...

Code:
_root.menu_mc.play_btn._visible = false;
var silencio:Boolean = false;
var s:Sound = new Sound(root);
s.setVolume(100);
_root.menu_mc.onRollOver = function() {
[Code] .....

View 1 Replies

ActionScript 3.0 :: 2D Lighting Shader - Making Stuff Near Player Visible

Oct 25, 2011

How would I go about making a 2d lighting shader, that only made the things near the player visible?

View 3 Replies

Flex :: Increase Max Limit(lines) Of Console In Flash Builder?

Aug 25, 2011

I need to be able to output some large xml strings, and they are getting cutoff.

View 2 Replies

Flex :: Flash Printing Only Prints What Is Visible On A Canvas

Jul 18, 2011

I am building a very basic report writer for an AIR application that I am developing. I am using the Flash PrintJob class to output the contents of my report (in which pages are stored as Canvas objects in a ViewStack object).The problem is, only the content that I see in the report preview screen gets printed.Is there a way that I can print what the Canvas object contains not just what is visible? Here is a code snippet that I am using:

protected function doPrintReport(event:Event):void
{
var pj:PrintJob = new PrintJob();

[code]......

View 1 Replies

Flash :: Flex - 3D - AS3 - Convert Degrees Of Rotation To Visible Height

Nov 5, 2009

I need to know what the visible height of a display object will be after I change it's rotationX value. I have an application that allows users to lay out a floor in 3D space. I want the size of the floor to automatically stretch after a 3D rotation so that it always covers a certain area. EDIT: I guess what I am really trying to do is convert degrees to pixels.

On a 2D plane say 100 x 100 pixels, a -10 degree change on rotationX means that the plane has a gap at the top where it is no longer visible. I want to know how many pixels this gap will be so that I can stretch the plane. In Flex, the value for the display objects height property remains the same both before and after applying the rotation, which may in fact be a bug.

EDIT 2: There must be a general math formula to work this out rather than something Flash/Flex specific. When viewing an object in 3D space, if the object rotates backwards (top of object somersaults away from the viewer), what would the new visible height be based on degrees of rotation? This could be in pixels, metres, cubits or whatever.

View 5 Replies

Actionscript 3.0 :: Blitting Lines - Draw Approximately 50000 Lines And Performance Is Poor?

Aug 17, 2011

I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.

Code: Select allvar movie:Shape = new Shape();
for( ... )
{
movie.graphics.clear();[code].....

View 2 Replies

ActionScript 3.0 :: Drawing Lines Between Mc's, Getting Lines In Stage Co-ords, Not Mc's?

Nov 15, 2009

My code is on the main timeline.I call a function loop to draw lines between them.The lines are drawing between the right x, y values BUT between those values on the main stage, not those values within the kite.For example, dot1_mc is at x100, y0 inside kite. the line that should go from its center, draws from stage x100, 0.How do I draw the lines inside kite so that they draw between the dots?Heres my code that draws the linesPHP Code:

function loop():void{ lineDrawing.graphics.clear(); var a:Point = new Point(kite_mc.dot1_mc.x, kite_mc.dot1_mc.y); var b:Point = new Point(kite_mc.dot2_mc.x, kite_mc.dot2_mc.y); var c:Point = new

[code].....

View 4 Replies

Flex :: Text - Truncate A Flex StyleableTextField After Two Lines?

Aug 19, 2011

In my Flex 4.5 mobile app, I have an actionScript item renderer (that derives from Flex's LabelItemRenderer). I want to fit in exactly 2 lines of text, and then truncate the rest. The width and height of the label are fixed and known statically. How can I do this? The StyleableTextField.truncateToFit() method only works for one line of text.

I've set wordWrap = true, so the text now flows into the second line - but I need to truncate the text if it doesn't fit in two lines. I need it to show all the text if there is only one line. (in both cases the label should be vertically middle-aligned in my renderer) I know how to override layoutContents to do sizing and positioning etc of the StyleableTextField. So I'm looking specifically for ideas to implement custom text truncation with the StyleableTextField).

View 1 Replies

ActionScript 2.0 :: Create A Video Player But The Video Is Not Visible?

Apr 13, 2011

i am trying to create a video player in AS 2.0, but I have a problem.My code loads a video, and plays the video, but.... I don't see my video xD.This is my code :

ActionScript Code:
var connection:NetConnection = new NetConnection();
connection.connect();
var flux_video:NetStream = new NetStream(connection);

[code]...

View 3 Replies

Flex :: Amazon - Upload From Flex/flash Player In The Browser To S3?

Dec 9, 2009

I want to upload directly to an S3 bucket.I know this can be done in AIR,whether it is actually possible in flex in the browser, or will I have to use some code server side to get this going?

View 1 Replies

Flex :: ComboBox Has Lines Around It

Feb 16, 2010

I'm stumbling my way through designing my first Flex app, using Flex Builder 4 Beta 2. I'm trying to use a ComboBox, but they always seem to have lines around it and I can't figure out how to get rid of them. The ComboBox looks like this: [URL] All I did was drag the ComboBox from the Controls section in the Design section of the UI onto the screen. I haven't changed any settings, no special css, just used the default ComboBox and this is what I get.

View 1 Replies

Flex :: Draw Lines In Canvas?

Dec 13, 2010

I'm trying to draw lines on a canvas object. When the width of the Canvas is less that the width of the line, it draws outside the Canvas over other elements. I read about this problem and I try to resolve using a inner Canvas with a longer height so a scrollbar appears.But I also read that this problem can be correct using a mask but I do not know what is the better way. Which do you recommend?

<mx:Canvas id="panelContentECG" width="100%" height="400" backgroundAlpha="0.5" styleName="miCanvas" borderStyle="solid" cornerRadius="20" borderColor="0xFCFE00" horizontalScrollPolicy="off">

[code].....

View 1 Replies

Flex :: Drawing Lines Between Shapes?

Jan 24, 2011

I have one left panel in which there are different shapes like start,end connectors..... when i drag line image inside canvas i want to draw line/connector between two shapes how would i do it

View 1 Replies

Flex :: How To Hide Axis Lines With CSS

Oct 25, 2011

How do I hide my axis lines with CSS? Shouldn't this work?

<mx:Style>
@namespace mx "library://ns.adobe.com/flex/mx";
mx|ColumnChart {

[code].....

View 1 Replies

Flex :: How To Split Text By Lines

Jun 3, 2009

I created a TextArea object. Then I typed some text in it. Then i got this text useing TextArea.text property.How can I split text I got by lines and convert it to the array of strings?

View 3 Replies

ActionScript 3.0 :: In-visible Sprite With Visible Children?

Sep 28, 2011

My question is: Set parentSprite.visible = false will make all children in parentSprite all invisible, right? And is there any way to just make parentSprite itself invisible without effecting it's children?

View 2 Replies

ActionScript 3.0 :: On Click Object Visible Not Visible

Aug 8, 2010

I want to click on an object and make it appear and disappear. As the object is rectangular, I figured putting a white button the same size on a white background on a layer underneath the object would do this, but I can't seem to make it happen.I'm a complete novice, frustrated as I've been trying to achieve this all day and I'm sure it should be pretty simple, but could you give me the idiots guide. I know how to name an instance, make an object, script in actions on a separate layer. I would like to draw the button myself and give it an instance rather than drag it off the button component (as I can't work out how to make the component button white, change its size etc.!)

View 5 Replies

ActionScript 2.0 :: Visible = True & Visible = False?

Apr 1, 2009

Code:
my_Dyn_Txt1._visible = false
cb1.onRelease=function()[code]....

When the checkbox (cb1) is clicked the "my_Dyn_Txt1" is visible. The problem I'm having is - when I move forwad and back in my frames the checkboxes which were clicked are not visible due to

Code:
my_Dyn_Txt1._visible = false

How can I make ("my_Dyn_Txt1"), a clicked checkbox STAY VISIBLE even after I move forwad and back in my FLA frames?

View 11 Replies

Flex :: Adding New Lines To Alert Text?

Mar 30, 2010

I want to create a simple multiline Alert popupAlert.show("Blah\nBlah")shows BlahBlah when what I really want is two lines, one Blah each.

View 2 Replies

Flex :: How Can Supress Warnings For Specific Lines

Nov 24, 2010

I use FDT for my flex programming and there are some warnings that I want to suppress.for example:Private function is never used. Found 'list_ itemRendererFunc' at line foo column bar.I actually paste this function name as a string to a datagroup's itemRendererFunction property. how do I mark this line that will not show the warning?

View 1 Replies

Flex :: Remove Multi-lines In Text?

Dec 5, 2010

How do I remove line 1,2,3 and retain line 4?

Like:

Programmer
Business Owner
Manager
Marketer

View 1 Replies

Flex :: Components - Chart That Has Both Plots And Lines?

Apr 6, 2011

Flex has a plotchart component and a linechart component.. but I am looking to make a chart that has lines connecting points as well as larger dots with rollover info. Is this easily possible? Would I have to create a custom component from scratch to achieve this?

View 2 Replies

Flex :: >500 Lines In <fx:Script> And It All Stops Working?

May 10, 2011

it's a little ridiculous; and probably unbelievable, but when I have more than five hundred lines of actionscript in tags in my MXML FLEX Main.mxml, all syntax highlighting, error and syntax verification, error reporting, "Problems" pane, and even sometimes compilation fail. Upon removing any chunk of code, it works again.I don't see why Adobe could release a product such as Flash Builder 4.5 Premium, have this big of a problem; and nobody notice. Therefore I believe the problem has to do with my computer, or my project; as there's now ay more people have had this happen if I can't even find it on Google.

Additionally, many objects that have been defined in the MXML properties above the code, even those in All States, are now showing as warning: Access of undefined property down the side of my document. However, these warnings are not showing up in the "Problems pane", and aren't even yellow squigly underlining the right sections of code to pertain to the message.Steps I have taken to TRY and fix this:I have tried restarting, as well as re-installing the IDE (Adobe Flash Builder 4.5).I have tried creating a new projectI have tried splitting my code into smaller .as files and including them.I have tried compiling my application.

View 1 Replies

Flex :: Display Grid Lines In A List?

May 27, 2011

I am using a spark list control to display certain items with my custom Item Renderer. I am trying to achieve the following: (1) show a separating line between rows in my list control (2) even when not a single row has been added, I want a horizontal grid lines to be displayed in the background

I am not sure whether (1) and (2) can be achieved in one go. I can solve (1) by modifying my item renderer to have a border, I guess. But I want to know whether there is a better or more conventional way.

View 1 Replies

Flex :: Multiline - Linkbutton Text To Span 2 Lines

Feb 23, 2010

is there a way to span the text of a link button to 2 lines? so instead of "Save Page" to be in one line only, I want it to be in 2 lines.

View 1 Replies

Flex :: HTTPService Is Very Slow By Sending 10'000 Lines Of XML To The Server

Apr 6, 2010

I have a flex app which allows user to create some content. this content will then be sent via xml back to the server:

private function saveBackXMLToServer():void {
var params:Object = {};
params["xml_file"] = XML_content();
http_Service.send(params);
}

My problem is, that the transport of the data this way is very slow... It takes about 20 sec for 10'000 lines of XML... How can this be done better?

I'm trying to follow all of your hints, but they don't seem to be simple to change. My code is done in a way that I can't get access to every Object, and save it. So what I do is to load the swf file with one xml, and return the whole xml after I run it. My guess is, that the time isn't spent on transporting those lines to the web server (this task gets done quickly normally), I thing that there happens something on the send function of the HTTPService that every object must get changed, before sending...

UPDATE2: I just realized that it is not a matter of the flex app it is a matter of the rails app. It receives a 700 KB String. I guess it is not done for handling such a object. How to transport it then? I tryed to work with the file upload but couldn't get it done... Error 2037 was occuring! I'll go on trying.

View 5 Replies







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