Dragging a image in flex - apache-flex

Hi I am having trouble in dragging a image within a loader. I am able to do
zooming and rotating image but not moving image with mouse. Purpose is when I
zoom a image info is out of boundaries and so is hidden. To see that info users
should be able to drag the image any way they want. Please help.

I'm not quite sure if I understood what you're trying to do, but take a look on this adobe pan/zoom component and see if that's what you were looking for
http://www.adobe.com/devnet/flex/samples/fig_panzoom/

Related

How to create scrolling text in A-frame

I am working in A-frame and I need scrolling text to display on top of a 3d object. From preliminary research, html css does not work in a-frame. Can scrolling text still be accomplished? How can i use css in a-frame?
Thanks
Html can be embedded in Aframe (but it is not built in).
Use this component by superEggbert
https://github.com/supereggbert/aframe-htmlembed-component
Scrolling text is a bit more involved (don't think you get it automatically with aframe-htmlembed-component, but I haven't used it yet, so not sure).
Here is a tutorial that walks through making a VR blog in Aframe.
Towards the bottom it gets into how to make a giant slab of scrolling text.
https://www.nateliason.com/blog/vr-blog
Also worth noting that you can have screen space html that sits on top of your aframe scene. It's not very attractive, but that is one way to add scrolling text on top of your 3D scene.

How do I make a logo align to artboard as one object in adobe illustrator?

I have been working on this issue for days and have been trying different methods that I have found in similar questions on stackoverflow and other forums to make this work but can still not figure out what is keeping me from aligning the entire object as one in adobe illustrator.
I have grouped all of the objects and the objects are merged into one layer. I click Align in the control panel. Then I make sure Align to Artboard is selected. I also click on Transform to make sure the two boxes are unchecked. Then I click Align to center horizontal, everything moves accordingly. Then when I click Align to center vertically, the logo is altered. All I am trying to do is get the entire logo centered on the artboard.
Does anyone have an idea on what step I am missing to make the entire logo move as one object?
I didn't have enough reputation to post images so I provided the image links below.
Before: http://tinypic.com/r/fxyq1h/8
After: http://tinypic.com/r/2gui1ph/8
You can see that the smile is moved up a few pixels which is driving me crazy. I can resize the objects as one. I can move the objects as one. But I can't align the objects to the center of the artboard as one.
You have to active the guideline, but it's already activated.
You should see some tutorial one Adobe TV

Resize Sprite Flex/ActionScript

I am creating Sprite objects as simple shapes, and would like to know how to resize them dynamically.
my question:
How can I enable the Sprite to be re-sized on mouse drag(perhaps enabling a only a portion of the Sprite for this behavior)?
It might be important to note that I am using the Flex SDK, and therefore do not have full
access to the Flash libraries.
Thank you in advance.
You might want to check out the Flex Object Handles open source library. Check out the demo to see how it can be used to allow users to resize any object in a Flex app.
Doesn't the sprite always adapt itself to its contents to set its height and width? (like movieclips in as2). If you want to resize a sprite, I guess you'd have to draw something as background?
What do you mean by enabling a portion of the sprite to be re-sized?

Lightbox with Flex

I want a fusion chart in my flex app to display with a Lightbox effect like the effect you get when you click on any of the charts here or checkout the demos here
These effect have been attained with the help of javascript. How do i get the same effect via Flex? Any idea?
Thanks a lot
I built a Flex component called PopUpThumbnail that is very similar to HTML/JavaScript lightbox components.
Here's an example application that I created with it to displays Flickr images.
Add a mask over the top of the whole application with the content area in the middle and the semi alpha area around it. Clicking on the surrounding mask removes the layer, and you can interact with the content area as normal (make it look like a popup rather than actually using one...)

To build a flex volume control component similar to that of Youtube

Hey, I've been assigned to design a flex 3 volume control component similar to the one Youtube players have. I mean, you move the mouse over the volume icon and a vertical slider appears.
My only doubt is about how making this vertical slider to appear and to hide properly.
Should I extend a PopUpButton somehow? Maybe another kind of PopUp component? Or do I really need to program the whole thing in actionscript(that would be just sad and sounds like reinventing the wheel)?
Is anyone able to simply point me in the right direction?
OBS: No need to teach me about skinning, designing.. or any of the rest. :)
No! Don't use a popup. Put a canvas somewhere hidden behind your bar of controls and just set it's visible to true when you mouse over the control.
I don't remember if the youtube slider covers the volume button or appears above it, but either way you can put it in there with a canvas.
If you want it to be one single component, the problem you run in to is that the size will be wrong if you hide the slider in the button component (It will be measured to be the size of the slider, instead of the button). But don't worry! Just override measure() and measure the button instead of both. Then if you set clipContent to false, it can display the slider outside of its bounds
What I suggest is to create a flex control that contains a graphic for displaying the volume meter and a hidden slider.
When you roll over the graphic volume meter you show the slider.
When you roll out the slider or the volume meter then you hide the slider.
I believe that's all

Resources