Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
NullDesigner #1
Support Flash Element ActionScript 3.0
I have made flash component for the test.
In Flash CS3 all works perfectly. I create extension for Dreamweaver CS3. For
an insert of a component on page I use a code
"dw.getDocumentDOM().insertFlashElement('MyCompone nt.swc')", in file MXI. At
attempt to insert component Dreamweaver gives out the message " The MyComponent
Flash Element could not be found ". With components ActionScript 2.0, similar
problems were not. What is the problem? Whether supports Dreamwever such
components?
// MyComponent.as
package {
import flash.display.Sprite;
import flash.text.TextField;
public class MyComponent extends Sprite {
private var _tf:TextField;
private var _width:Number = 0;
private var _height:Number = 0;
private var _background:Sprite;
public function MyComponent() {
init();
createChildren();
draw();
}
private function init():void {
_width = width;
_height = height;
scaleX = 1;
scaleY = 1;
removeChildAt(0);
}
private function createChildren():void {
_background = new Sprite();
_tf = new TextField();
_tf.autoSize = "left";
addChild(_background);
addChild(_tf);
}
protected function draw():void {
_background.graphics.clear();
_background.graphics.beginFill(0xFF0000, 1);
_background.graphics.drawRoundRect(0, 0, _width, _height, 10, 10);
_background.graphics.endFill();
_tf.text = "w: " + _width + ", h: " + _height;
_tf.x = Math.floor((_width - _tf.width)/2);
_tf.y = Math.floor((_height - _tf.height)/2);
}
public function setSize(w:Number, h:Number):void {
_width = w;
_height = h;
draw();
}
}
}
NullDesigner Guest
-
Spry Menu Bar & Flash Element
The Spry menu bar widget works fine, except that on two pages where I have Flash elements at the top of the page (just under the bar) the Menu bar... -
pop-up menu showing up behind flash element
I have a website that i am working on (www.arfsepa.com/test) and the navigation on the left side of the page has a pop-up menu. The problem is that... -
flash element
Hi, I purhased a flash element for nav bar from f-source.com and it works great in netscape, but not in ie. here is the code <object... -
Problem with Flash element - mirror reflection!
Could anyone help? We are getting the sporadic error on our web page running flash-based element - as a result, our nice animated text+images element... -
[HTML::Element] how to read element by element
Hello I read the doc about HTML::Element, but I don't find how to read the tree create by parse() element by element. The doc says the tree looks... -
constsi #2
Re: Support Flash Element ActionScript 3.0
Just the same problem. AS 3.0 SWC files have different structure (there are no
*.asi files inside it and the catalog.xml is different). Unzip your SWC file
and change the library.swf file name to the name of your component
(FooterNav.swf for example). After that just zip it again and create new MXP.
In this case you'll get rid of the "could not be found" error. But this doesn't
solve the problem with element parameters - the "Flash Element" panel is just
empty.
It looks like Dreamweaver CS3 just doesn't have normal support for AS 3.0
Flash Components yet.
constsi Guest
-
danilocelic AdobeCommunityExpert #3
Re: Support Flash Element ActionScript 3.0
constsi wrote:
Given that Adobe is removing Flash Elements from the next version of Dreamweaver, I'd be quite surprised if they did any more work to include AS3 support inside of Dreamweaver CS3. Read the features to be removed:> Just the same problem. AS 3.0 SWC files have different structure (there are no
> *.asi files inside it and the catalog.xml is different). Unzip your SWC file
> and change the library.swf file name to the name of your component
> (FooterNav.swf for example). After that just zip it again and create new MXP.
> In this case you'll get rid of the "could not be found" error. But this doesn't
> solve the problem with element parameters - the "Flash Element" panel is just
> empty.
>
> It looks like Dreamweaver CS3 just doesn't have normal support for AS 3.0
> Flash Components yet.
>
[url]http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402489&sliceId=1[/url]
--
Danilo Celic
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Adobe Community Expert
danilocelic AdobeCommunityExpert Guest
-
constsi #4
Re: Support Flash Element ActionScript 3.0
[q]Given that Adobe is removing Flash Elements from the next version of
Dreamweaver, I'd be quite surprised if they did any more work to include AS3
support inside of Dreamweaver CS3. Read the features to be removed: [/q]
Such information must be included into the official "Extending Dreamweaver
CS3" document. Its current version describes the Flash Elements API but there
are no any notes about the lack of AS3.0 SWCs support. We spent several hours
trying to follow the official document instructions.
constsi Guest
-
danilocelic AdobeCommunityExpert #5
Re: Support Flash Element ActionScript 3.0
constsi wrote:
Livedocs allow you to add comments on specific pages, if what you've found is true, that Flash CS3 SWCs are not compatible with Dreamweaver CS3 I'd suggest you added you findings on the appropriate pages:> [q]Given that Adobe is removing Flash Elements from the next version of
> Dreamweaver, I'd be quite surprised if they did any more work to include AS3
> support inside of Dreamweaver CS3. Read the features to be removed: [/q]
>
> Such information must be included into the official "Extending Dreamweaver
> CS3" document. Its current version describes the Flash Elements API but there
> are no any notes about the lack of AS3.0 SWCs support. We spent several hours
> trying to follow the official document instructions.
>
[url]http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/index.html[/url]
--
Danilo Celic
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Adobe Community Expert
danilocelic AdobeCommunityExpert Guest



Reply With Quote

