Question About Live Preview In MX Component
Does anyone know if it's possible to load other movies in a live preview for a component so that at design time, you could set a property to something and it would do an attachMovie or something like that?
I'm just curious if I'm going down an impossible road or of it's attainable...thanx a lot
FlashKit > Flash Help > Flash MX
Posted on: 01-30-2003, 11:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Live Preview 4 Component
Has anyone played around with this? I have read 2 tutorials and they both talk about an xch movie clip which passes values to the preview clip when a change is made.
There is suppose to be a onUpdate function inside the preview.swf. It doesn't seem like I can set the vars of teh preview movie to the values entered by the user. I have tried
Code:
funtion onUpdate(){
startX = _root.xch.startX;
msg = _root.xch.msg;
}
but it won't put the new value in for msg or startX. If anyone has figured this out I would appreciate some help. Thank you.
Component And Live Preview
Hi.
I'm trying to use a live preview inside a component.
This component uses the _targetInstanceName parameter for automatic targeting.
Now, I can't figure out how to set the live preview using this _targetInstanceName.
If I write this :
PHP Code:
function onUpdate() {
trace( xch._targetInstanceName )
}
It returns the string of the target MC ok.
but this returns nothing :
PHP Code:
function onUpdate() {
MC = eval( xch._targetInstanceName ) ;
trace (MC)
}
I guess it is just because inside the live preview, the target MC just doesn't exist... but is there any solution then ?
hope somebody knows what I mean.
Well thank you guys in advance.
News.
Component Live Preview
Does anyone know how to make a component snap to the width of clip it is dropped on, like the scrollbar component does? I am pretty sure the code needs to go into the live preview swf, and I have already tried---
trace(this._parent[xch._targetInstanceName]._width);
but that doesnt work, because "this" ends up referring to the _root of the live preview movie, not the component clip on the stage in the authoring environment. So, "this._parent" doesn't exist.
Even if you can point me to some good reference material or sites I would be grateful. Thanks,
Clown
Component Live Preview
Does anyone know how to make a component snap to the width of clip it is dropped on, like the scrollbar component does? I am pretty sure the code needs to go into the live preview swf, and I have already tried---
trace(this._parent[xch._targetInstanceName]._width);
but that doesnt work, because "this" ends up referring to the _root of the live preview movie, not the component clip on the stage in the authoring environment. So, "this._parent" doesn't exist.
Even if you can point me to some good reference material or sites I would be grateful. Thanks,
Clown
Desperate Help With Component And Live Preview
(FMX2004Pro)
Hi guys and girls,
I needed to create a smart clip which resizes a window without distortion since normal resizing would distort the rounded corners and gardient drop-shadow and also because I wanted to use Robert Penners easing to create an elsatic bounce. So I divided the clip up into sections and made it so that it would resize the inner section and adjust the corner and side pieces accordingly. I extracted this into a method called resizeTo(w,h) which would resize the window to a provided size with the elastic ease. This worked well but I couldnt see any changes until i ran test movie which was frustrating so I decided to turn it into a component and use Live Preview..No comes my problem.
In addittion to the resizeTo, since I want to use many window instances to make up an interface I wanted to make it so I could use the Free Transform tool on the component and it would update its initial size (using a method i call setSize()). I cant get this to work properly, and also Im having trouble getting the Live Preview swf to lineup properly with the component.
Could someone please help me with this?
Much appreciated
Ive attached the component and its Live Preview as well
Component Live Preview Problem
Hi every one,
I have a problem with my component live preview. When i drag and drop a component in the stage the first time and resize it by the component panel inspector, the live preview is not updated in the IDE. But soon as i put an another instance of the same component in to the IDE, the other one get updated. I dont know if somebody have ever had the same problem?
thx for your response
Desperate Help With Component And Live Preview
Hi guys and girls,
I needed to create a smart clip which resizes a window without distortion since normal resizing would distort the rounded corners and gardient drop-shadow and also because I wanted to use Robert Penners easing to create an elsatic bounce. So I divided the clip up into sections and made it so that it would resize the inner section and adjust the corner and side pieces accordingly. I extracted this into a method called resizeTo(w,h) which would resize the window to a provided size with the elastic ease. This worked well but I couldnt see any changes until i ran test movie which was frustrating so I decided to turn it into a component and use Live Preview..No comes my problem.
In addittion to the resizeTo, since I want to use many window instances to make up an interface I wanted to make it so I could use the Free Transform tool on the component and it would update its initial size (using a method i call setSize()). I cant get this to work properly, and also Im having trouble getting the Live Preview swf to lineup properly with the component.
Could someone please help me with this?
Much appreciated
Ive attached the component and its Live Preview as well
Desperate Help With Component And Live Preview
Hi guys and girls,
I needed to create a smart clip which resizes a window without distortion since normal resizing would distort the rounded corners and gardient drop-shadow and also because I wanted to use Robert Penners easing to create an elsatic bounce. So I divided the clip up into sections and made it so that it would resize the inner section and adjust the corner and side pieces accordingly. I extracted this into a method called resizeTo(w,h) which would resize the window to a provided size with the elastic ease. This worked well but I couldnt see any changes until i ran test movie which was frustrating so I decided to turn it into a component and use Live Preview..No comes my problem.
In addittion to the resizeTo, since I want to use many window instances to make up an interface I wanted to make it so I could use the Free Transform tool on the component and it would update its initial size (using a method i call setSize()). I cant get this to work properly, and also Im having trouble getting the Live Preview swf to lineup properly with the component.
Could someone please help me with this?
Much appreciated
Ive attached the component and its Live Preview as well
Live Preview / Published Resize Issue Of Custom Component That Extends MovieClip
uggggh!! I am really at my wits end. I have struggled with this hobbie project for well over 6 months and seem to be getting no where!!! I ahve read countless numbers of articles, documentation, etc. and seem to be even more confused than when I started.
I believe that my biggest problem is that I have spent so much time on this issue, and have read so many different posts, articals, etc. that I am not sure that is factual and what is not. I think I have even gotten confused on how basic functions actually work. ugh!!!
Could someone look over this code and tell be all the dumb crap I have done and how I can fix it. Here is a list of the issues I am having and can not seem to correct.
1) Live preview of the component scales correctly the very first time you scale it. All other times it seems to be using the original component size and adjusting it by the delta value of the scaling.
2) My text area during live preview 99% of the time does not appear.
3) When I Publish, the text within the component scales rather than being the font size I indicate even though I am using autoSize.
4) A problem that occurs some times is that the Published version of the component will be way way bigger than what live preview shows me.
So, please please please. Take a look at this class I have built and tell me all the dumb things I have done. The one things that I ask is that this component continue to extend movieClip.
Many thanks!!!!
Charles
Code:
import flash.filters.DropShadowFilter;
class com.camber.component.Balloon extends movieClip {
// Constants:
public static var symbolName:String = "Balloon";
public static var symbolOwner = com.camber.component.Balloon;
public var className:String = "Balloon";
public static var CLASS_REF = com.camber.component.Balloon;
public static var LINKAGE_ID:String = "Balloon";
// Public Properties:
// Private Properties:
private var balloonText:TextField;
private var _balloonText:String;
private var _dsDistance:Number;
private var _dsEnabled:Boolean;
private var updatedWidth:Number;
private var updatedHeight:Number;
// UI Elements:
// Initialization:
private function Balloon() {
this.init();
}
// Public Methods:
// ====== Text Field FUNCTIONS =================
[Inspectable(defaultValue="Text goes here", type=String)]
public function set text(zText:String){
try{
this._balloonText = zText;
} catch(err){
trace("ERROR in SET text():" + err);
}
//invalidate();
}
public function get text():String{
return _balloonText;
}
// ====== Drop Shadow Distance FUNCTIONS =================
[Inspectable(defaultValue=10, type=Number)]
public function set dsDistance(zSetTo:Number){
try{
if(zSetTo > 0){
this._dsDistance = zSetTo;
var x = this.getFilterIndex();
var filterList:Array = this.filters;
filterList[x].distance = this._dsDistance;
filters = filterList;
}
} catch(err){
trace("ERROR in SET dsDistance():" + err);
}
//invalidate();
//draw();
}
public function get dsDistance():Number{
return this._dsDistance;
}
// ====== Drop Shadow Enabled FUNCTIONS =================
[Inspectable(defaultValue=true, type=Boolean)]
public function set dsEnabled(zSetTo:Boolean){
try{
this._dsEnabled = zSetTo;
var x = getFilterIndex();
var filterList:Array = this.filters;
if(_dsEnabled){
filterList[x].strength = 1;
} else {
filterList[x].strength = 0;
}
filters = filterList;
} catch(err){
trace("ERROR in SET dsEnabled():" + err);
}
//invalidate();
}
public function get dsEnabled():Boolean{
return _dsEnabled;
}
// Semi-Private Methods:
// Private Methods:
// ====== Init FUNCTION =================
private function init(){
try{
this.updatedWidth = this._width;
this.updatedHeight = this._height;
this.createChildren();
//_dsDistance = 10;
//_dsEnabled = true;
this.instanceDS();
} catch(err){
trace("ERROR in init():" + err);
}
}
// ====== CreateChildren FUNCTION =================
private function createChildren(){
super.createChildren();
//size();
try{
this.createTextField("balloonText", this.getNextHighestDepth(), 6, 6, this.updatedWidth - 12, this.updatedHeight - 12);
this.balloonText.autoSize = true;
this.balloonText.text = _balloonText;
} catch(err){
trace("ERROR in createChildren():" + err);
}
}
// ====== Instance Drop Shadow FUNCTION =================
private function instanceDS(){
try{
var angleInDegrees:Number = 45;
var color:Number = 0x000000;
var alpha:Number = .75;
var blurX:Number = 10;
var blurY:Number = 10;
if(this._dsEnabled){
var strength:Number = 1;
} else {
var strength:Number = 0;
}
var quality:Number = 2;
var inner:Boolean = false;
var knockout:Boolean = false;
var hideObject:Boolean = false;
var dsFilter:DropShadowFilter = new DropShadowFilter(this._dsDistance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject);
var filterArray:Array = new Array();
filterArray.push(dsFilter);
filters = filterArray;}
catch(err){
trace("ERROR in instanceDS():" + err);
}
}
// ====== GetFilterIndex FUNCTION =================
private function getFilterIndex():Number{
try{
for(var i in filters){
if(this.filters[i] instanceof DropShadowFilter){
trace("filters.length:"+filters);
trace("filters[index]:"+i);
var index = i;
break;
}
}
return index;
} catch(err){
trace("ERROR in getFilterIndex():" + err);
}
}
// ====== Draw FUNCTION =================
private function draw(){
super.draw();
try{
//this.balloonText.text = _balloonText;
//this._balloonText = "this._width = " + this._width + "
";
//this._balloonText += "this.width = " + this.width + "
";
//this._balloonText += "this.balloonText._width = " + this.balloonText._width + "
";
//this.balloonText._width = this._width - 12;
//this.balloonText._height = this._height - 12;
this.balloonText.removeTextField();
createChildren();
this._balloonText = "this._width = " + this._width + "
";
this._balloonText += "this.width = " + this.width + "
";
this._balloonText += "this.updatedWidth = " + this.updatedWidth + "
";
this._balloonText += "this.balloonText._width = " + this.balloonText._width + "
";
} catch(err){
trace("ERROR in draw():" + err);
}
}
// ====== Size FUNCTION =================
private function size(){
super.size();
try{
this.updatedWidth = width;
this.updatedHeight = height;
//this.balloonText._width = this._width - 12;
//this.balloonText._height = this._height - 12;
} catch(err){
trace("ERROR in size():" + err);
}
//draw();
//invalidate();
}
private function onLoad(){
draw();
}
}
Live Preview ?
I have been playing around with a sample file from flash MX. I think I understand the actionscript, but I have been having problems with the live preview. (I think...)
The sample file is "Feature highlight: Components, Live Preview, and Custom UI" it is in the sample folder for flash MX. My problem comes when I want to change the 1 or 2 player icon. I get it all changed in the library, and it publishes fine. But in flash it still gives the old icon.
Any Ideas....
Live Preview
I'm sorry to ask such a basic question, but, I've spent the past few hours of my life searching on Google, browsing multiple Flash sites, and I can't find an answer to this question that works.
How do I get live preview to work in Flash MX 2004? How can I make a live preview for a component?
Help With Live Preview - Simple
Greetings
i have created a really simple component. It has one dynamic textfield.
I am wanting the text that is added via the properties pane to display inside the component within the developemnt enviourment,ie, with a live preview.
Can someone explain how to do this?
It should be really simple as it has only one variable, which is a textfield.
Thanks
Embedded Live Preview
If we embed the live preview in flash file then how it effects the size of file(.fla and .swf)?
Please let me know,awaiting your reply.
Components & Live Preview.
Hello,
I am trying to make a small component in FlashMX 2004 and I have a problem with Live Preview.
I have followed some tutorials on how to make a simple component. Everything is fine.
I have made a swf that holds the live preview of the component and I am using this code to make the livepreview to work:
function onUpdate() {
this.main_box._width = _root.xch.Umw;
this.main_box._height = _root.xch.Umh;
}
Everything is working fine.
Now for the problem.
When I am using the component for a second time on the scene and change the properties both instances of the component changes.
I setup the width and the height of the mc and everytime i change the value to the component a in the live preview I can see that it changes the b also.
Although the component works fine.
In the final preview I can see that each instance of the component takes the correct value.
Any ideas of how I can make the live preview work fine and not mix up the values?
Thanks in advance.
AS2.0/Shared Lib/Live Preview
Hi All,
I have an AS2.0 component that attaches a movieClip that is pointing to a shared library. It seems that this is causing the live-preview not to work at all for the component. When I unlink the shared library item, live preview works fine. Does anyone have any more information on this?
Thanks in advance,
JSFL And Live Preview
Those of you who have tried to develop components will have noticed that you cant get the bounding box of a component to resize during live preview. I have read that their is a workaround using JSFL and i have made my JSFL script which works fine however im having trouble getting my class to trigger it.
To simplify things why doesnt this call when used with livepreview:
ActionScript Code:
MMExecute('fl.trace("Mark");');
Thanks in advance
Mark
Live Preview Problem
man this is driving me crazy,
i made a custom button component with a live preview movie
when i test with multiple instances on stage....if i change 1 button all the buttons change in preview movie
Access Libary From Live Preview
is it possible for a components live preview to access (eg. use attachMovie() ) the libary of the .fla it is running in.
thanks
Live Preview And Custom Components
How do I get textfields in components that I've built , to show the data passed from a component paramater inside of FMX with Live Preview enabled?
Attaching MovieClips In Live Preview
Hi!
Does someone can tell me if it´s possible to attach movieClips in live preview I mean as skins. I want to be able to set a parameter of the component [a symbol id] and that it load the associated movieClip in live preview with attachMovie.
hope I have explined it correctly..
greetings,
Polaco
SetSize() Not Working In Live Preview
Hi,
I have a problem with a component I´m developing. Before when building components I have used Internal SWC:s to get the Live Preview of the components. In this case I can´t do this, however, so I need to use an external swf as live preview. What I do is, I right-click the component in the library and select "Export Flash Movie" to create the live preview swf. Then, in the component definition dialog I select "Live preview in external .swf file" and select the swf I exported.
This seems to work fairly well. The component is drawn correctly on stage when i put it there (authoring time). However when resizing the component, the setSize() funtion does not seem to be called. It just resizes the "normal way" scaling the whole movieclip.
Is this problem familiar to anyone. Any ideas would be very appreciated!
Thanks,
Makac
[CS4] Live Preview Of Nested Clips?
Hello,
I was watching a demo video of Tweening in cs4 on the adobe site and i noticed that it looked like there was a live preview of a nested clip. There was a clip of a ball bouncing inside of a clip that made it move left to right. when the animation for the clip on the root level was scrubbed, the animation of the clip inside it played. Is this a new feature? I can't find it documented anywhere and have yet to find it in Flash myself.
Thanks
Cameron
Compiled Clip Vs Live Preview
Hi
Does anybody know how to create a compiled clip that diaplay when add to the stage. I explaine. The clip I build has an outline to know the diaplay zone. This outline visible = false at the clip ADDED event. It means that when I publish the Fla, the outile desapear. My problem is that when I Compiled it to a Compiled CLip, when I put it on the stage the ADDED is execute. So I can't view the outline to position it to the stage.
I tried to used the Component properties and set the live preview, I put a link to a swf that is exactly the preview of it, but when ADDED to the stage the preview is jsut a small square of 10 px. Not the real preview in the external swf.
I need to have a Compiled Clip that is visisble on the sateg and execute the outshape visible to false on publish only
Any Idea
Live Preview Registration Point Issues
Hi I'm really struggling with this guys.
Ive spent all this time creating a component which revolves around a centred registration point and then went to create a Live Preview and found that my Live Preview is being offset from the main component. The centred registration point in the Live Prevew is lining up with the top left of the main component. Why is this?
I know the stage takes TL for its registration point, but this a Live Preview sitting within a component movie with a centre reg point.
What do i do to fix this?
Thanks in advanced
Live Preview Does Not Work, All Compoennts Are Updated
1. Create and component and a live preview, both FLA files work fine.
2. Export the compoennt, put multiple copes on a new FLA file.
3. When you change a property on one instance, it executes for every instance. Every id/name at every level is unique.
How does one avoid this, it seems like doing anything with a live preview is limite.d
Live Preview Registration Point Issues...
Hi All, I'm really struggling with this...
Ive spent all this time creating a component which revolves around a centred registration point and then went on to create a Live Preview. All was fine until I found that my Live Preview is being offset from the main component. The centred registration point in the Live Prevew is lining up with the top left of the main component. Why is this?
I know the stage takes TL for its registration point by default, but this a Live Preview sitting within a component movie with a centre reg point? Im confused.
Ive got this DITRY FIX, but surely there is another way?
ActionScript Code:
winPreview_mc._x=Stage.width/2;winPreview_mc._y=Stage.height/2;
The rest of my code for Live Previw ..
ActionScript Code:
Stage.scaleMode = "noScale";Stage.align = "TL";//align top-left of stage//routine called whenever component properties have been changedfunction onUpdate() { this.winPreview_mc.removeMovieClip();//remove existing instance trace("update.."); // create an instance of the Window //settings = new Object(); //settings.content = xch.content; //settings.changeHandler = xch.changeHandler; // make sure that we don't lose the size setting when // user clicks in/out of the component parameters panel _root.attachMovie("RLWindowPreviewSymbol", "winPreview_mc", 1000, {_x:Stage.width/2, _y:Stage.height/2}); winPreview_mc.setSize(10, Stage.width, Stage.height);}// make sure we update the size of the component // when the live preview is resized!function onResize() { trace("stage resize detected.."); winPreview_mc._x=Stage.width/2; winPreview_mc._y=Stage.height/2; winPreview_mc.setSize(10, Stage.width, Stage.height);}Stage.addListener(this);
What do i do to fix this?
Thanks in advanced
Problem With Live Preview When Building Components
I was wondering if someone has some links to good tutorials about building components for Flash MX. And then especially about Live Preview.
I've read some tuts like:
http://www.macromedia.com/devnet/mx/...omponents.html
and
http://www.ultrashock.com/tutorials/...Components.php
but regarding creating Live Preview some things seem to be done differently in there. For instance, the tut on ultrashock places an instance of the actual component on stage in the live preview movie whereas macromedia's tut does not.
Since I'm having problems with Live Preview when resizing my component, and also with the size of the bounding box I thought maybe one of you might know which is THE way to go?
Thanks in advance.
p.s. I feel like building components might also make a good subject for a tutorial here on Kirupa. Just an idea
Live Preview Registration Point Issues...
Hi All, I'm really struggling with this...
Ive spent all this time creating a component which revolves around a centred registration point and then went on to create a Live Preview. All was fine until I found that my Live Preview is being offset from the main component. The centred registration point in the Live Prevew is lining up with the top left of the main component. Why is this?
I know the stage takes TL for its registration point by default, but this a Live Preview sitting within a component movie with a centre reg point? Im confused.
Ive got this DITRY FIX, but surely there is another way?
ActionScript Code:
winPreview_mc._x=Stage.width/2;winPreview_mc._y=Stage.height/2;
The rest of my code for Live Previw ..
ActionScript Code:
Stage.scaleMode = "noScale";Stage.align = "TL";//align top-left of stage//routine called whenever component properties have been changedfunction onUpdate() { this.winPreview_mc.removeMovieClip();//remove existing instance trace("update.."); // create an instance of the Window //settings = new Object(); //settings.content = xch.content; //settings.changeHandler = xch.changeHandler; // make sure that we don't lose the size setting when // user clicks in/out of the component parameters panel _root.attachMovie("RLWindowPreviewSymbol", "winPreview_mc", 1000, {_x:Stage.width/2, _y:Stage.height/2}); winPreview_mc.setSize(10, Stage.width, Stage.height);}// make sure we update the size of the component // when the live preview is resized!function onResize() { trace("stage resize detected.."); winPreview_mc._x=Stage.width/2; winPreview_mc._y=Stage.height/2; winPreview_mc.setSize(10, Stage.width, Stage.height);}Stage.addListener(this);
What do i do to fix this?
Thanks in advanced
Problem With Live Preview When Building Components
I was wondering if someone has some links to good tutorials about building components for Flash MX. And then especially about Live Preview.
I've read some tuts like:
http://www.macromedia.com/devnet/mx/...omponents.html
and
http://www.ultrashock.com/tutorials/...Components.php
but regarding creating Live Preview some things seem to be done differently in there. For instance, the tut on ultrashock places an instance of the actual component on stage in the live preview movie whereas macromedia's tut does not.
Since I'm having problems with Live Preview when resizing my component, and also with the size of the bounding box I thought maybe one of you might know which is THE way to go?
Thanks in advance.
p.s. I feel like building components might also make a good subject for a tutorial here on Kirupa. Just an idea
Are There Any Tutorials About Creating A Live Preview And Custom Icon For Custom Flash Components
Hi
I need tutorials about the custom components and how to make a live preview for them and also custom Icons,
basically I want to know if we can put an swf in the live preview field and when we are in the design view of the component that I can interact with the swf like click it and show a copyright message (all at design time not run time of the component)?
and about the custom Icons, flash asks for Fireworks PNG and when I put mine it does not show in the library???
thanks.
Live Preview And Custome Icon For Custome Flash Components
Hi
are there any tutorials about creating a live preview and custom Icon for custom flash components
I need tutorials about the custom components and how to make a live preview for them and also custom Icons,
basically I want to know if we can put an swf in the live preview field and when we are in the design view of the component that I can interact with the swf like click it and show a copyright message (all at design time not run time of the component)?
and about the custom Icons, flash asks for Fireworks PNG and when I put mine it does not show in the library???
thanks.
Component Preview
Hi!
I made a component.
I made another swf file to act as the preview movieClip,
as in the macromedia docs.
My problem is what I want to preview is an attachMovie.
But the attachMovie is done in the librairy of the preview swf, Not in the one where the component is.
What is the problem?
How can I made a preview for a component It can attach a movieclip in the librairy of the swf where the component is?
Tnx!
Component Preview Incorrect When Own X Changes
Not too surprisingly, my component's live preview is thrown off when the component changes its own x and width values (the component changes width and x based on the its own label).
I've basically got a Boolean Inspectable parameter that allows the user to decide whether the component can determine its own width based on the length of the Label text (its autoSize property). The component is also anchored left, right or center depending on the align property of the label.
It looks fine in Test Movie, but the Live Preview bounding box doesn't change when the autoSize property sets my label field wider (although the bounding box does change if autoSize isn't set and I just drag the box wider or type a new width in the property inspector).
The Live Preview does all its other tasks perfectly, it just gets screwed up when the component wants to change its own x position and width. I'm wondering if this is just a limitation of what you can do with Live Preview or if I need to send an invalidate() up to the Flash UIComponent.
To make matters a little more complicated, my Label component extends a base component that extends UIComponent. So I'm a little uncertain where to send this. Also, the x and width values are being changed in the draw function, so I'm unsure whether I can send an invalidation to myself.
As always, any suggestions would be appreciated.
Jennifer
Component - Reference Preview From Inspector
Hi.
I've built a component with custom inspector and preview file. I was wondering how can I call a function embeded inside the preview from the inspector?
The problem I've got is when I open two new FLA files and put the component in each file the preview doesn't refresh itself while switching between active windows (I have to make a change inside the inspector to update the preview)
Component Creation - Problems With Preview
Hi to everyone!
Seriously in need of help.
I'm developing some small components (for personal use) where the color is changed using the properties inspector. The actionscript for the properties is in an external .as file. The actionscript for the preview is on the first frame of the .fla file. I've attached a .zip file to this message with test files.
The problem is this: if I use the component without compiling it, everything works fine (the preview works and the pubblished .swf is perfect). As soon as I compiled it and drag 2 or more instances of the compiled clip on stage, the preview starts to go wrong. What happens is that when I change the color in the properties inspector it changes on all the instances on the stage (this does not happen if I use the component without compiling it). If I apply 3 different colors to 3 instances they all take the color of the last instance on the stage (preview) while when I publish the movie everything is correct and the colors are different (as they should be). Obviously the problem is in how I've done the preview but I can't get it right.
I'm not a developer or an actionscrip expert but a graphic designer and this problem is driving me nuts!!
Please help!
Flvplayback Component - Preview Image Problem
Hi all,
I am using the Flvplayback component to stream an flv file via rtmp, this is all working great apart from two issues.
Firstly, and most importantly, the preview image function doesnt seem to work at all. When i click OK to add the image i receive an error saying "Error exporting video preview image" and the image is not exported. Preferably i would like to sort this issue out, if not then i would imagine it is possible to add this image dynamically but i have not been able to find any documentation on this.
Secondly, although i have chosen autohide to be true this only seems to make the video launch with no skin but it doesn't remove the skin after i have rolled off the video as i would imagine it should do, again any ideas ?
Would really appreciate some help on these topics.
thanks a lot.
Using VideoDisplay Component With FMS Live Streams
Hi:
i'm working on a Flex2 & Flash Media Server Project and have a problem with VideoDisplay Flex2 Component.
I'm trying to publish a FMS camera live stream with a VideoDisplay, but it doesn't work.
I checked somo examples with the first release of Flex, but it doesn't work on Flex2.
I need some help.
Thank you.
Resize Component In Live View
Hi there,
I'm working on a component, which is different as I've done in the past. On off possible properties that can be modified is an image background, which would be used as preview in the Live View, when the component is placed to the Stage, during development. OK, this isn't complicated. The issue is that any background image has different dimension. I need to resize the component on the Stage, when the user changes the background image. Is it possible from the component actionscript code to resize the component instance on the Stage? When I try to change the size via the setSize method, the component is resized, but this change isn't visible during development in the Flash IDE. I have to manually resize the component on the Stage to see, how the result will look, or I can publish and preview the compiled SWF.
Does anybody have some solution for this issue?
Thank you,
Michal
Saving Live Video An Audio Shared Component
I want to know if it is possible to saver the Live Video And Audio Shared Components to HD on the server for later streaming or reporting.
What i want is to save all the conversations taken in a chatroom via Video Chat and be able to check them Later.
How's this done and where are they saved.
FLVPlayback Component For Both Live And Storded Video Contnet On A FMS?
Hi,
I am working with a Flash Media Server and a video component to view both live and stored video contnet. All of this works perfectly for me.
What I want to do is use the FLVPlayback component instead because it has so many nice methods to use to view both live and stored video content on my FMS.
How is this done?
Do I need a main.asc file - if so, where is it? i tried one but all I get are a bunch of errors.
Does a FLVPlayback component work for streaming video
Here is a bit of the code I am using to connect the FLVPlayback component to the live stream:
aFLVPlayBack[0] = new FLVPlayback();
aFLVPlayBack[0].isLive = true
aFLVPlayBack[0].load("rtmp://IPAddress/servcam/streams/_definst_")
aFLVPlayBack[0].play();
addChild(aFLVPlayBack[0])
The rtmp line I have tried every combination I could think of and I used the FMS console to view how my flash apps log on. I have a hard time controlling the rtmp path - it seems like it always points to either _definst_ or streams only.
I know the live stream is working because I use a video Component to connenct to it, but when I use the FLVPlayback component I get nothing.
thanks,
4D
FLVPlayback Component For Both Live And Storded Video Contnet On A FMS?
Hi,
I am working with a Flash Media Server and a video component to view both live and stored video contnet. All of this works perfectly for me.
What I want to do is use the FLVPlayback component instead because it has so many nice methods to use to view both live and stored video content on my FMS.
How is this done?
Do I need a main.asc file - if so, where is it? i tried one but all I get are a bunch of errors.
Does a FLVPlayback component work for streaming video
Here is a bit of the code I am using to connect the FLVPlayback component to the live stream:
aFLVPlayBack[0] = new FLVPlayback();
aFLVPlayBack[0].isLive = true
aFLVPlayBack[0].load("rtmp://IPAddress/servcam/streams/_definst_")
aFLVPlayBack[0].play();
addChild(aFLVPlayBack[0])
The rtmp line I have tried every combination I could think of and I used the FMS console to view how my flash apps log on. I have a hard time controlling the rtmp path - it seems like it always points to either _definst_ or streams only.
I know the live stream is working because I use a video Component to connenct to it, but when I use the FLVPlayback component I get nothing.
thanks
HTML Preview Works, But Flash Preview Doesn´t
I made a little app. with some display containers and tween (regular) alpha effects. It works fine in the html preview (& file) but it doesn´t in the flash one (containers/layers order/alpha/transitions doesn´t works correctly).
When I upload the files to my server, I have the same problem.
Any ideas about what's going on?
Live Webcamp,live Chat And Sms Related Question.
Hi there,
My company had got a huge project there demand to
Show there company "live on there website, live chat and the worse part is send SMS from the mobile to the website. … and believe me I have no idea about any of these… please help. What we need and where to get it from if possible …. Please..
Embed Live Cue Data In Live Stream?
I am currently using the new FME to encode live to a FMS. Both applicatioins are running on the same machine. Is there a way to embed live cue and metadata into the live stream? Once embedded we want to record the stream AND send it on to viewers. Is there a way to process this on the server. The live cue and metadata is coming in the serial port.
Publish Preview As Flash VS Publish Preview As Html
Ive made a movie that add strings from several input text fields to an array. This array is sent from the flash video to php.
This is working fine when I preview the movie as Flash. The php script prints the variables as intended.
But when I preview it as html the arrays are all empty...
Can anyone tell me why?
ActionScript Code:
on (release) { number_of_attr1 = main._currentframe + 1; suggestions1 = new Array(); if(main.attr1.text.isEmpty()) { gotoAndStop(8); } else { for(i=1; i<=number_of_attr1; i++) { attr = main["attr"+i] suggestion = attr.text; if(!suggestion.isEmpty()) { suggestions1.push(suggestion); } } var submit1 = new LoadVars(); submit1.sugg1 = suggestions1; submit1.send("<a href="http://mylink.php" target="_blank">http://mylink.php","_self","POST</a>"); }//end else}
Publish Preview As Flash VS Publish Preview As Html
Ive made a movie that add strings from several input text fields to an array. This array is sent from the flash video to php.
This is working fine when I preview the movie as Flash. The php script prints the variables as intended.
But when I preview it as html the arrays are all empty...
Can anyone tell me why?
ActionScript Code:
on (release) { number_of_attr1 = main._currentframe + 1; suggestions1 = new Array(); if(main.attr1.text.isEmpty()) { gotoAndStop(8); } else { for(i=1; i<=number_of_attr1; i++) { attr = main["attr"+i] suggestion = attr.text; if(!suggestion.isEmpty()) { suggestions1.push(suggestion); } } var submit1 = new LoadVars(); submit1.sugg1 = suggestions1; submit1.send("<a href="http://mylink.php" target="_blank">http://mylink.php","_self","POST</a>"); }//end else}
|